data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp
 line:162: before: "("
1: b"%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:161: Define or directive not defined: '`mname'\nmodule `mname`\n       ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:161: syntax error, unexpected $undefined, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER\nmodule `mname`\n             ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:164: Unsupported or unknown PLI call: $ifc_ref\n   `$ifc_ref->mname`.cfgIn cfgIn,  \n    ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:165: Unsupported or unknown PLI call: $ifc_ref\n   `$ifc_ref->mname`.cfgOut cfgOut,  \n    ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:170: Unsupported or unknown PLI call: $reg\n    input logic [`$reg->{Width}-1`:0]       `$reg->{Name}`_d,\n                  ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:170: Unsupported or unknown PLI call: $reg\n    input logic [`$reg->{Width}-1`:0]       `$reg->{Name}`_d,\n                                             ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:170: Define or directive not defined: '`_d'\n    input logic [`$reg->{Width}-1`:0]       `$reg->{Name}`_d,\n                                                         ^~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:173: Unsupported or unknown PLI call: $reg\n    input logic                        `$reg->{Name}`_en,\n                                        ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:173: Define or directive not defined: '`_en'\n    input logic                        `$reg->{Name}`_en,\n                                                    ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:184: Unsupported or unknown PLI call: $reg\n    output logic[`$reg->{Width}-1`:0]       `$reg->{Name}`_q,\n                  ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:184: Unsupported or unknown PLI call: $reg\n    output logic[`$reg->{Width}-1`:0]       `$reg->{Name}`_q,\n                                             ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:184: Define or directive not defined: '`_q'\n    output logic[`$reg->{Width}-1`:0]       `$reg->{Name}`_q,\n                                                         ^~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:191: syntax error, unexpected input, expecting IDENTIFIER or '=' or do or final\n    input logic                        Reset\n    ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:196: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$cfg_addr_width-1`:0]       cfgIn_addr_del;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:196: Unsupported or unknown PLI call: $cfg_addr_width\n   logic [`$cfg_addr_width-1`:0]       cfgIn_addr_del;\n           ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:197: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$cfg_bus_width-1`:0]        cfgIn_data_del;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:197: Unsupported or unknown PLI call: $cfg_bus_width\n   logic [`$cfg_bus_width-1`:0]        cfgIn_data_del;\n           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:198: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$cfg_op_width-1`:0]         cfgIn_op_del;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:198: Unsupported or unknown PLI call: $cfg_op_width\n   logic [`$cfg_op_width-1`:0]         cfgIn_op_del;\n           ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:203: Unsupported or unknown PLI call: $flop_inst\n   `$flop_inst->instantiate` (.Clk(Clk), .Reset(Reset), \n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:210: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$num_regs-1`:0]             onehot_en;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:210: Unsupported or unknown PLI call: $num_regs\n   logic [`$num_regs-1`:0]             onehot_en;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:212: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$num_req_addr_bits-1`:0]    cfgIn_addr_del_int;  \n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:212: Unsupported or unknown PLI call: $num_req_addr_bits\n   logic [`$num_req_addr_bits-1`:0]    cfgIn_addr_del_int;  \n           ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:213: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$num_regs-1`:0]             regs_en;\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:213: Unsupported or unknown PLI call: $num_regs\n   logic [`$num_regs-1`:0]             regs_en;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:214: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$cfg_bus_width-1`:0]        regs_d[`$num_regs-1`:0];\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:214: Unsupported or unknown PLI call: $cfg_bus_width\n   logic [`$cfg_bus_width-1`:0]        regs_d[`$num_regs-1`:0];\n           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:214: Unsupported or unknown PLI call: $num_regs\n   logic [`$cfg_bus_width-1`:0]        regs_d[`$num_regs-1`:0];\n                                               ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:215: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\n   logic [`$cfg_bus_width-1`:0]        regs_q[`$num_regs-1`:0];\n          ^\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:215: Unsupported or unknown PLI call: $cfg_bus_width\n   logic [`$cfg_bus_width-1`:0]        regs_q[`$num_regs-1`:0];\n           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:215: Unsupported or unknown PLI call: $num_regs\n   logic [`$cfg_bus_width-1`:0]        regs_q[`$num_regs-1`:0];\n                                               ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:218: Unsupported or unknown PLI call: $base_addr_hex\n   assign addr_in_range = ((`$base_addr_hex` == cfgIn_addr_del[`$base_addr_range`]) &&\n                             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:218: Unsupported or unknown PLI call: $base_addr_range\n   assign addr_in_range = ((`$base_addr_hex` == cfgIn_addr_del[`$base_addr_range`]) &&\n                                                                ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:219: Unsupported or unknown PLI call: $usable_addr_range\n                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;\n                                      ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:219: Unsupported or unknown PLI call: $num_req_addr_bits\n                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;\n                                                              ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:219: Number is missing value digits: 'd\n                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;\n                                                                                   ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:219: Unsupported or unknown PLI call: $num_regs\n                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;\n                                                                                      ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:222: Unsupported or unknown PLI call: $num_req_addr_bits\n   assign cfgIn_addr_del_int[`$num_req_addr_bits-1`:0] = (addr_in_range)? cfgIn_addr_del[`$usable_addr_range`]: `$num_req_addr_bits`'b0;\n                              ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:222: Unsupported or unknown PLI call: $usable_addr_range\n   assign cfgIn_addr_del_int[`$num_req_addr_bits-1`:0] = (addr_in_range)? cfgIn_addr_del[`$usable_addr_range`]: `$num_req_addr_bits`'b0;\n                                                                                          ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:222: Unsupported or unknown PLI call: $num_req_addr_bits\n   assign cfgIn_addr_del_int[`$num_req_addr_bits-1`:0] = (addr_in_range)? cfgIn_addr_del[`$usable_addr_range`]: `$num_req_addr_bits`'b0;\n                                                                                                                 ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:227: Unsupported or unknown PLI call: $wrop\n      onehot_en[cfgIn_addr_del_int] = (cfgIn_op_del == `$wrop`) && (addr_in_range == 1'b1);\n                                                        ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:232: Unsupported or unknown PLI call: $rdop\n                  (cfgIn_op_del == `$rdop`) ? regs_q[cfgIn_addr_del_int] :  \n                                    ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:236: Unsupported or unknown PLI call: $nop\n                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:       \n                                    ^~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:236: Unsupported or unknown PLI call: $cfg_op_width\n                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:       \n                                              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:236: Number is missing value digits: 'd\n                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:       \n                                                            ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:236: Unsupported or unknown PLI call: $bypassop\n                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:       \n                                                               ^~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:237: Unsupported or unknown PLI call: $cfg_op_width\n                  `$cfg_op_width`'d`$nop`;                               \n                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:237: Number is missing value digits: 'd\n                  `$cfg_op_width`'d`$nop`;                               \n                                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/generator_z/jtag/Template/src/digital/reg_file.svp:237: Unsupported or unknown PLI call: $nop\n                  `$cfg_op_width`'d`$nop`;                               \n                                    ^~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n"
module `mname`
  (

   `$ifc_ref->mname`.cfgIn cfgIn,
   `$ifc_ref->mname`.cfgOut cfgOut,




    input logic [`$reg->{Width}-1`:0]       `$reg->{Name}`_d,


    input logic                        `$reg->{Name}`_en,










    output logic[`$reg->{Width}-1`:0]       `$reg->{Name}`_q,
                           


   

    input logic			       Clk,
    input logic                        Reset
   );



   logic [`$cfg_addr_width-1`:0]       cfgIn_addr_del;
   logic [`$cfg_bus_width-1`:0]        cfgIn_data_del;
   logic [`$cfg_op_width-1`:0]         cfgIn_op_del;




   `$flop_inst->instantiate` (.Clk(Clk), .Reset(Reset), 
			      .din({cfgIn.addr, cfgIn.data, cfgIn.op}),
			      .dout({cfgIn_addr_del, cfgIn_data_del, cfgIn_op_del}));




   logic [`$num_regs-1`:0]             onehot_en;
   logic                               addr_in_range;
   logic [`$num_req_addr_bits-1`:0]    cfgIn_addr_del_int;
   logic [`$num_regs-1`:0]             regs_en;
   logic [`$cfg_bus_width-1`:0]        regs_d[`$num_regs-1`:0];
   logic [`$cfg_bus_width-1`:0]        regs_q[`$num_regs-1`:0];


   assign addr_in_range = ((`$base_addr_hex` == cfgIn_addr_del[`$base_addr_range`]) &&
                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;
   

   assign cfgIn_addr_del_int[`$num_req_addr_bits-1`:0] = (addr_in_range)? cfgIn_addr_del[`$usable_addr_range`]: `$num_req_addr_bits`'b0;
   

   always_comb begin
      onehot_en = 1'b0;
      onehot_en[cfgIn_addr_del_int] = (cfgIn_op_del == `$wrop`) && (addr_in_range == 1'b1);
   end


   assign cfgOut.data = (addr_in_range != 1'b1) ? cfgIn_data_del :
                  (cfgIn_op_del == `$rdop`) ? regs_q[cfgIn_addr_del_int] :
                  cfgIn_data_del;
   assign cfgOut.addr = cfgIn_addr_del;
   assign cfgOut.op = (addr_in_range != 1'b1) ? cfgIn_op_del :
                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:
                  `$cfg_op_width`'d`$nop`;
      















   assign regs_en[`$cnt`] = `$reg->{Name}`_en | onehot_en[`$cnt`];


   assign regs_en[`$cnt`] = 1'b1; 


   assign regs_en[`$cnt`] = onehot_en[`$cnt`]; 





   assign regs_d[`$cnt`][`$reg->{Width}-1`:0] = cfgIn_data_del[`$reg->{Width}-1`:0]; 


   assign regs_d[`$cnt`][`$reg->{Width}-1`:0] = (onehot_en[`$cnt`])?cfgIn_data_del[`$reg->{Width}-1`:0]:
                                                                  `$reg->{Name}`_d[`$reg->{Width}-1`:0]; 


   `$flop_inst->instantiate`
     (.Clk(Clk), .Reset(Reset), .en(regs_en[`$cnt`]),
      .din(regs_d[`$cnt`][`$reg->{Width}-1`:0]), .dout(regs_q[`$cnt`][`$reg->{Width}-1`:0]));



   assign `$reg->{Name}`_q[`$reg->{Width}-1`:0] = regs_q[`$cnt`][`$reg->{Width}-1`:0]; 



   assign regs_q[`$cnt`][`$cfg_bus_width-1`:`$reg->{Width}`] = '0; 

   


endmodule
module `mname`
  (

   `$ifc_ref->mname`.cfgIn cfgIn,
   `$ifc_ref->mname`.cfgOut cfgOut,




    input logic [`$reg->{Width}-1`:0]       `$reg->{Name}`_d,


    input logic                        `$reg->{Name}`_en,










    output logic[`$reg->{Width}-1`:0]       `$reg->{Name}`_q,
                           


   

    input logic			       Clk,
    input logic                        Reset
   );




   logic [`$cfg_addr_width-1`:0]       cfgIn_addr_del;
   logic [`$cfg_bus_width-1`:0]        cfgIn_data_del;
   logic [`$cfg_op_width-1`:0]         cfgIn_op_del;




   `$flop_inst->instantiate` (.Clk(Clk), .Reset(Reset), 
			      .din({cfgIn.addr, cfgIn.data, cfgIn.op}),
			      .dout({cfgIn_addr_del, cfgIn_data_del, cfgIn_op_del}));




   logic [`$num_regs-1`:0]             onehot_en;
   logic                               addr_in_range;
   logic [`$num_req_addr_bits-1`:0]    cfgIn_addr_del_int;
   logic [`$num_regs-1`:0]             regs_en;
   logic [`$cfg_bus_width-1`:0]        regs_d[`$num_regs-1`:0];
   logic [`$cfg_bus_width-1`:0]        regs_q[`$num_regs-1`:0];


   assign addr_in_range = ((`$base_addr_hex` == cfgIn_addr_del[`$base_addr_range`]) &&
                     (cfgIn_addr_del[`$usable_addr_range`] < `$num_req_addr_bits+1`'d`$num_regs`))? 1'b1: 1'b0;
   

   assign cfgIn_addr_del_int[`$num_req_addr_bits-1`:0] = (addr_in_range)? cfgIn_addr_del[`$usable_addr_range`]: `$num_req_addr_bits`'b0;
   

   always_comb begin
      onehot_en = 1'b0;
      onehot_en[cfgIn_addr_del_int] = (cfgIn_op_del == `$wrop`) && (addr_in_range == 1'b1);
   end


   assign cfgOut.data = (addr_in_range != 1'b1) ? cfgIn_data_del :
                  (cfgIn_op_del == `$rdop`) ? regs_q[cfgIn_addr_del_int] :
                  cfgIn_data_del;
   assign cfgOut.addr = cfgIn_addr_del;
   assign cfgOut.op = (addr_in_range != 1'b1) ? cfgIn_op_del :
                  (cfgIn_op_del != `$nop`) ? `$cfg_op_width`'d`$bypassop`:
                  `$cfg_op_width`'d`$nop`;
      















   assign regs_en[`$cnt`] = `$reg->{Name}`_en | onehot_en[`$cnt`];


   assign regs_en[`$cnt`] = 1'b1; 


   assign regs_en[`$cnt`] = onehot_en[`$cnt`]; 





   assign regs_d[`$cnt`][`$reg->{Width}-1`:0] = cfgIn_data_del[`$reg->{Width}-1`:0]; 


   assign regs_d[`$cnt`][`$reg->{Width}-1`:0] = (onehot_en[`$cnt`])?cfgIn_data_del[`$reg->{Width}-1`:0]:
                                                                  `$reg->{Name}`_d[`$reg->{Width}-1`:0]; 


   `$flop_inst->instantiate`
     (.Clk(Clk), .Reset(Reset), .en(regs_en[`$cnt`]),
      .din(regs_d[`$cnt`][`$reg->{Width}-1`:0]), .dout(regs_q[`$cnt`][`$reg->{Width}-1`:0]));



   assign `$reg->{Name}`_q[`$reg->{Width}-1`:0] = regs_q[`$cnt`][`$reg->{Width}-1`:0]; 



   assign regs_q[`$cnt`][`$cfg_bus_width-1`:`$reg->{Width}`] = '0; 

   


endmodule