data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp
 line:76: before: "("
1: b"%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:75: syntax error, unexpected $undefined, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER\nmodule `$self->get_module_name()`\n       ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:75: Unsupported or unknown PLI call: $self\nmodule `$self->get_module_name()`\n        ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:83: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_extest,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:84: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_intest,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:85: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_sample,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:86: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_capture_en,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:87: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_shift_dr,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:88: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic bsr_update_en,  \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:89: syntax error, unexpected input, expecting IDENTIFIER or '=' or do or final\n   input  bsr_tdo,  \n   ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:93: Unsupported or unknown PLI call: $jtag_inst\n   output logic `$jtag_inst->{name}`_capture_dr,  \n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:93: Define or directive not defined: '`_capture_dr'\n   output logic `$jtag_inst->{name}`_capture_dr,  \n                                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:94: Unsupported or unknown PLI call: $jtag_inst\n   output logic `$jtag_inst->{name}`_shift_dr,  \n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:94: Define or directive not defined: '`_shift_dr'\n   output logic `$jtag_inst->{name}`_shift_dr,  \n                                   ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:95: Unsupported or unknown PLI call: $jtag_inst\n   output logic `$jtag_inst->{name}`_update_dr,  \n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:95: Define or directive not defined: '`_update_dr'\n   output logic `$jtag_inst->{name}`_update_dr,  \n                                   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:100: Unsupported or unknown PLI call: $jtag_inst\n   input  `$jtag_inst->{name}`_tdo,  \n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:100: Define or directive not defined: '`_tdo'\n   input  `$jtag_inst->{name}`_tdo,  \n                             ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:109: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n   output logic tdo_en          \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:115: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$width-1`:0] instruction;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:170: syntax error, unexpected IDENTIFIER\n   DW_tap #(\n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:174: Unsupported or unknown PLI call: $version\n     .version(`$version`),\n               ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:175: Unsupported or unknown PLI call: $part\n     .part(`$part`),\n            ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:176: Unsupported or unknown PLI call: $man_num\n     .man_num(`$man_num`),\n               ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:207: Number is missing value digits: 'd\n `$width`'d`$intest`: muxed_tdo = bsr_tdo;  \n         ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:207: Unsupported or unknown PLI call: $intest\n `$width`'d`$intest`: muxed_tdo = bsr_tdo;  \n            ^~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:208: Number is missing value digits: 'd\n `$width`'d`$extest`: muxed_tdo = bsr_tdo;  \n         ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:208: Unsupported or unknown PLI call: $extest\n `$width`'d`$extest`: muxed_tdo = bsr_tdo;  \n            ^~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:209: Number is missing value digits: 'd\n `$width`'d`$sample`: muxed_tdo = bsr_tdo;  \n         ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:209: Unsupported or unknown PLI call: $sample\n `$width`'d`$sample`: muxed_tdo = bsr_tdo;  \n            ^~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:211: Number is missing value digits: 'd\n `$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;  \n         ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:211: Unsupported or unknown PLI call: $jtag_inst\n `$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;  \n            ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:211: Unsupported or unknown PLI call: $jtag_inst\n `$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;  \n                                              ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:211: Define or directive not defined: '`_tdo'\n `$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;  \n                                                                ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:222: syntax error, unexpected assign\n   assign at_capture_dr = tap_state[3]; \n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:224: syntax error, unexpected assign\n   assign at_shift_dr = shift_dr;\n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:226: syntax error, unexpected assign\n   assign at_update_dr = sync_update_dr;\n   ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:230: syntax error, unexpected $undefined, expecting ',' or ';'\n   logic  at_`$jtag_inst->{name}`;\n             ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:230: Unsupported or unknown PLI call: $jtag_inst\n   logic  at_`$jtag_inst->{name}`;\n              ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:231: Unsupported or unknown PLI call: $jtag_inst\n   assign at_`$jtag_inst->{name}` = (instruction==`$width`'d`$jtag_inst->{code}`) ? 1'b1 : 1'b0;\n              ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:231: Number is missing value digits: 'd\n   assign at_`$jtag_inst->{name}` = (instruction==`$width`'d`$jtag_inst->{code}`) ? 1'b1 : 1'b0;\n                                                          ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:231: Unsupported or unknown PLI call: $jtag_inst\n   assign at_`$jtag_inst->{name}` = (instruction==`$width`'d`$jtag_inst->{code}`) ? 1'b1 : 1'b0;\n                                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:232: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_capture_dr = at_`$jtag_inst->{name}` & at_capture_dr;\n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:232: Define or directive not defined: '`_capture_dr'\n   assign `$jtag_inst->{name}`_capture_dr = at_`$jtag_inst->{name}` & at_capture_dr;\n                             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:232: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_capture_dr = at_`$jtag_inst->{name}` & at_capture_dr;\n                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:233: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_shift_dr = at_`$jtag_inst->{name}` & at_shift_dr;\n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:233: Define or directive not defined: '`_shift_dr'\n   assign `$jtag_inst->{name}`_shift_dr = at_`$jtag_inst->{name}` & at_shift_dr;\n                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:233: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_shift_dr = at_`$jtag_inst->{name}` & at_shift_dr;\n                                              ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:234: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_update_dr = at_`$jtag_inst->{name}` & at_update_dr;\n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:234: Define or directive not defined: '`_update_dr'\n   assign `$jtag_inst->{name}`_update_dr = at_`$jtag_inst->{name}` & at_update_dr;\n                             ^~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/tap.svp:234: Unsupported or unknown PLI call: $jtag_inst\n   assign `$jtag_inst->{name}`_update_dr = at_`$jtag_inst->{name}` & at_update_dr;\n                                               ^~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n"
module `$self->get_module_name()`
  (

   output logic test_logic_reset,




   output logic bsr_extest,
   output logic bsr_intest,
   output logic bsr_sample,
   output logic bsr_capture_en,
   output logic bsr_shift_dr,
   output logic bsr_update_en,
   input 	bsr_tdo,
  


   output logic `$jtag_inst->{name}`_capture_dr,
   output logic `$jtag_inst->{name}`_shift_dr,
   output logic `$jtag_inst->{name}`_update_dr,




   input 	`$jtag_inst->{name}`_tdo,



   input 	tms,
   input 	tck,
   input 	trst_n,
   input 	tdi,
   output logic tdo,
   output logic tdo_en
   );

   

   logic 	muxed_tdo;
   logic [`$width-1`:0] instruction;
   logic [15:0] 	tap_state;

   logic 		shift_dr; 
   logic 		sync_capture_en;
   logic 		sync_update_dr;
   

   












































   logic clock_dr, update_dr;

   DW_tap #(

	    .width(`$width`),
	    .id(1),
	    .version(`$version`),
	    .part(`$part`),
	    .man_num(`$man_num`),
	    .sync_mode(1)
	    ) tap (

		   .tck(tck),
		   .trst_n(trst_n),
		   .tms(tms),
		   .tdi(tdi),
		   .so(muxed_tdo),
		   .bypass_sel(1'b0),
		   .sentinel_val(`$width-1`'b0),
		   .test(1'b0),
		   

		   .clock_dr(clock_dr),
		   .shift_dr(shift_dr),
		   .update_dr(update_dr),
		   .tdo(tdo),
		   .tdo_en(tdo_en),
		   .tap_state(tap_state),
		   .extest(bsr_extest),
		   .samp_load(bsr_sample),
		   .instructions(instruction),
		   .sync_capture_en(sync_capture_en),
		   .sync_update_dr(sync_update_dr)
		   );
   


   always_comb begin
      unique case(instruction)
	`$width`'d`$intest`: muxed_tdo = bsr_tdo;
	`$width`'d`$extest`: muxed_tdo = bsr_tdo;
	`$width`'d`$sample`: muxed_tdo = bsr_tdo;

	`$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;

	default : muxed_tdo = 1'b0;
      endcase
   end




   assign test_logic_reset  = tap_state[0];
   logic  at_capture_dr;
   assign at_capture_dr = tap_state[3]; 
   logic  at_shift_dr;
   assign at_shift_dr = shift_dr;
   logic  at_update_dr;
   assign at_update_dr = sync_update_dr;
   


   logic  at_`$jtag_inst->{name}`;
   assign at_`$jtag_inst->{name}` = (instruction==`$width`'d`$jtag_inst->{code}`) ? 1'b1 : 1'b0;
   assign `$jtag_inst->{name}`_capture_dr = at_`$jtag_inst->{name}` & at_capture_dr;
   assign `$jtag_inst->{name}`_shift_dr = at_`$jtag_inst->{name}` & at_shift_dr;
   assign `$jtag_inst->{name}`_update_dr = at_`$jtag_inst->{name}` & at_update_dr;



   logic  bsr_update_dr;
   

   assign bsr_intest = (instruction==`$width`'d`$intest`) ? 1'b1 : 1'b0;
   assign bsr_shift_dr = at_shift_dr & (bsr_intest | bsr_sample | bsr_extest);
   assign bsr_capture_en = sync_capture_en; 
   assign bsr_update_dr = at_update_dr & (bsr_intest | bsr_sample | bsr_extest);

endmodule
module `$self->get_module_name()`
  (

   output logic test_logic_reset,




   output logic bsr_extest,
   output logic bsr_intest,
   output logic bsr_sample,
   output logic bsr_capture_en,
   output logic bsr_shift_dr,
   output logic bsr_update_en,
   input 	bsr_tdo,
  


   output logic `$jtag_inst->{name}`_capture_dr,
   output logic `$jtag_inst->{name}`_shift_dr,
   output logic `$jtag_inst->{name}`_update_dr,




   input 	`$jtag_inst->{name}`_tdo,



   input 	tms,
   input 	tck,
   input 	trst_n,
   input 	tdi,
   output logic tdo,
   output logic tdo_en
   );


   

   logic 	muxed_tdo;
   logic [`$width-1`:0] instruction;
   logic [15:0] 	tap_state;

   logic 		shift_dr; 
   logic 		sync_capture_en;
   logic 		sync_update_dr;
   

   












































   logic clock_dr, update_dr;

   DW_tap #(

	    .width(`$width`),
	    .id(1),
	    .version(`$version`),
	    .part(`$part`),
	    .man_num(`$man_num`),
	    .sync_mode(1)
	    ) tap (

		   .tck(tck),
		   .trst_n(trst_n),
		   .tms(tms),
		   .tdi(tdi),
		   .so(muxed_tdo),
		   .bypass_sel(1'b0),
		   .sentinel_val(`$width-1`'b0),
		   .test(1'b0),
		   

		   .clock_dr(clock_dr),
		   .shift_dr(shift_dr),
		   .update_dr(update_dr),
		   .tdo(tdo),
		   .tdo_en(tdo_en),
		   .tap_state(tap_state),
		   .extest(bsr_extest),
		   .samp_load(bsr_sample),
		   .instructions(instruction),
		   .sync_capture_en(sync_capture_en),
		   .sync_update_dr(sync_update_dr)
		   );
   


   always_comb begin
      unique case(instruction)
	`$width`'d`$intest`: muxed_tdo = bsr_tdo;
	`$width`'d`$extest`: muxed_tdo = bsr_tdo;
	`$width`'d`$sample`: muxed_tdo = bsr_tdo;

	`$width`'d`$jtag_inst->{code}`: muxed_tdo = `$jtag_inst->{name}`_tdo;

	default : muxed_tdo = 1'b0;
      endcase
   end




   assign test_logic_reset  = tap_state[0];
   logic  at_capture_dr;
   assign at_capture_dr = tap_state[3]; 
   logic  at_shift_dr;
   assign at_shift_dr = shift_dr;
   logic  at_update_dr;
   assign at_update_dr = sync_update_dr;
   


   logic  at_`$jtag_inst->{name}`;
   assign at_`$jtag_inst->{name}` = (instruction==`$width`'d`$jtag_inst->{code}`) ? 1'b1 : 1'b0;
   assign `$jtag_inst->{name}`_capture_dr = at_`$jtag_inst->{name}` & at_capture_dr;
   assign `$jtag_inst->{name}`_shift_dr = at_`$jtag_inst->{name}` & at_shift_dr;
   assign `$jtag_inst->{name}`_update_dr = at_`$jtag_inst->{name}` & at_update_dr;



   logic  bsr_update_dr;
   

   assign bsr_intest = (instruction==`$width`'d`$intest`) ? 1'b1 : 1'b0;
   assign bsr_shift_dr = at_shift_dr & (bsr_intest | bsr_sample | bsr_extest);
   assign bsr_capture_en = sync_capture_en; 
   assign bsr_update_dr = at_update_dr & (bsr_intest | bsr_sample | bsr_extest);

endmodule