data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp
 line:18: before: "parameter"
1: b"%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:17: Define or directive not defined: '`mname'\nmodule `mname`  #(\n       ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:17: syntax error, unexpected $undefined, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER\nmodule `mname`  #(\n             ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:19: syntax error, unexpected ')', expecting ';'\n) (\n^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:28: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in0,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:29: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in1,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:30: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in2,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:31: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in3,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:33: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0][Width - 1:0] out0,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:34: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0][Width - 1:0] out1,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:35: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0][Width - 1:0] out2,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:36: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0][Width - 1:0] out3,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:39: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0]              in0_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:40: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0]              in1_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:41: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0]              in2_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:42: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0]              in3_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:44: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0]              out0_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:45: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0]              out1_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:46: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0]              out2_p,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:47: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0]              out3_p\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:52: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [ `$num_res-1`:0][Width - 1:0] res;\n        ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:52: Unsupported or unknown PLI call: $num_res\nlogic [ `$num_res-1`:0][Width - 1:0] res;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:53: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [ `$num_res-1`:0]              res_p;\n        ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:53: Unsupported or unknown PLI call: $num_res\nlogic [ `$num_res-1`:0]              res_p;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:81: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [$clog2(`$N`)-1:0] cb_a_sel;\n              ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:81: Unsupported or unknown PLI call: $N\nlogic [$clog2(`$N`)-1:0] cb_a_sel;\n               ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:82: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [$clog2(`$N`)-1:0] cb_b_sel;\n              ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:82: Unsupported or unknown PLI call: $N\nlogic [$clog2(`$N`)-1:0] cb_b_sel;\n               ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:83: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [$clog2(`$N`)-1:0] cb_d_sel;\n              ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:83: Unsupported or unknown PLI call: $N\nlogic [$clog2(`$N`)-1:0] cb_d_sel;\n               ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:91: Unsupported or unknown PLI call: $N\n    cb_a_sel <= cfg_d[$clog2(`$N`)-1:0];\n                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:99: Unsupported or unknown PLI call: $N\n    cb_b_sel <= cfg_d[$clog2(`$N`)-1:0];\n                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:107: Unsupported or unknown PLI call: $N\n    cb_d_sel <= cfg_d[$clog2(`$N`)-1:0];\n                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:112: Unsupported or unknown PLI call: $CB_a\n`$CB_a->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_a->iname()`\n ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:112: Unsupported or unknown PLI call: $N\n`$CB_a->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_a->iname()`\n                                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:112: Unsupported or unknown PLI call: $CB_a\n`$CB_a->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_a->iname()`\n                                                     ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:119: Unsupported or unknown PLI call: $CB_b\n`$CB_b->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_b->iname()`\n ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:119: Unsupported or unknown PLI call: $N\n`$CB_b->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_b->iname()`\n                                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:119: Unsupported or unknown PLI call: $CB_b\n`$CB_b->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_b->iname()`\n                                                     ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:126: Unsupported or unknown PLI call: $CB_d\n`$CB_d->mname()` #(.DataWidth(1),.NumInp(`$N`)) `$CB_d->iname()`\n ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:126: Unsupported or unknown PLI call: $N\n`$CB_d->mname()` #(.DataWidth(1),.NumInp(`$N`)) `$CB_d->iname()`\n                                          ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:126: Unsupported or unknown PLI call: $CB_d\n`$CB_d->mname()` #(.DataWidth(1),.NumInp(`$N`)) `$CB_d->iname()`\n                                                 ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:135: syntax error, unexpected $undefined, expecting TYPE-IDENTIFIER\nlogic [$clog2(`$N`)-1:0] cb_c_sel;\n              ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:135: Unsupported or unknown PLI call: $N\nlogic [$clog2(`$N`)-1:0] cb_c_sel;\n               ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:141: Unsupported or unknown PLI call: $N\n    cb_c_sel <= cfg_d[$clog2(`$N`)-1:0];\n                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:145: Unsupported or unknown PLI call: $CB_c\n`$CB_c->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_c->iname()`\n ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:145: Unsupported or unknown PLI call: $N\n`$CB_c->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_c->iname()`\n                                              ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:145: Unsupported or unknown PLI call: $CB_c\n`$CB_c->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_c->iname()`\n                                                     ^~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:155: Unsupported or unknown PLI call: $PE\n`$PE->mname()` #(.DataWidth(Width)) `$PE->iname()`\n ^~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:155: Unsupported or unknown PLI call: $PE\n`$PE->mname()` #(.DataWidth(Width)) `$PE->iname()`\n                                     ^~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/tile/rtl/test_tile.svp:177: Unsupported or unknown PLI call: $SB\n`$SB->mname()` #(.Width(Width)) `$SB->iname()`\n ^~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n"
module `mname`  #(
  parameter Width   = 16
) (
  input               clk,
  input               rst_n,

  input        [15:0] cfg_d,
  input        [9:0]  cfg_a,
  input               cfg_en,


  input        [`$N-1`:0][Width - 1:0] in0,
  input        [`$N-1`:0][Width - 1:0] in1,
  input        [`$N-1`:0][Width - 1:0] in2,
  input        [`$N-1`:0][Width - 1:0] in3,

  output logic [`$N-1`:0][Width - 1:0] out0,
  output logic [`$N-1`:0][Width - 1:0] out1,
  output logic [`$N-1`:0][Width - 1:0] out2,
  output logic [`$N-1`:0][Width - 1:0] out3,


  input        [`$N-1`:0]              in0_p,
  input        [`$N-1`:0]              in1_p,
  input        [`$N-1`:0]              in2_p,
  input        [`$N-1`:0]              in3_p,

  output logic [`$N-1`:0]              out0_p,
  output logic [`$N-1`:0]              out1_p,
  output logic [`$N-1`:0]              out2_p,
  output logic [`$N-1`:0]              out3_p

);


logic [ `$num_res-1`:0][Width - 1:0] res;
logic [ `$num_res-1`:0]              res_p;























logic [Width - 1:0] op_a_in;
logic [Width - 1:0] op_b_in;
logic               op_d_p_in;

logic [$clog2(`$N`)-1:0] cb_a_sel;
logic [$clog2(`$N`)-1:0] cb_b_sel;
logic [$clog2(`$N`)-1:0] cb_d_sel;



always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_a_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h0)) begin
    cb_a_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_b_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h1)) begin
    cb_b_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_d_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h3)) begin
    cb_d_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end


`$CB_a->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_a->iname()`
(
  .data_in (in0),
  .sel     (cb_a_sel),
  .res     (op_a_in)
);

`$CB_b->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_b->iname()`
(
  .data_in (in1),
  .sel     (cb_b_sel),
  .res     (op_b_in)
);

`$CB_d->mname()` #(.DataWidth(1),.NumInp(`$N`)) `$CB_d->iname()`
(
  .data_in (in0_p),
  .sel     (cb_d_sel),
  .res     (op_d_p_in)
);


logic [Width - 1:0] op_c_in;
logic [$clog2(`$N`)-1:0] cb_c_sel;

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_c_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h2)) begin
    cb_c_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

`$CB_c->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_c->iname()`
(
  .data_in (in0),
  .sel     (cb_c_sel),
  .res     (op_c_in)
);




`$PE->mname()` #(.DataWidth(Width)) `$PE->iname()`
(
  .clk       (clk),
  .rst_n     (rst_n),

  .cfg_d     (cfg_d),
  .cfg_a     (cfg_a[7:0]),
  .cfg_en    (cfg_en & (cfg_a[9:8]==2'b00)),

  .op_a_in   (op_a_in),
  .op_b_in   (op_b_in),

  .op_c_in   (op_c_in),


  .op_d_p_in (op_d_p_in),

  .res       (res[0]),
  .res_p     (res_p[0])
);


`$SB->mname()` #(.Width(Width)) `$SB->iname()`
(
  .clk      (clk),
  .rst_n    (rst_n),


  .cfg_d    (cfg_d),
  .cfg_a    (cfg_a[7:0]),
  .cfg_en   (cfg_en  & (cfg_a[9:8]==2'b01)),

  .in0      (in0),
  .in1      (in1),
  .in2      (in2),
  .in3      (in3),

  .res      (res),

  .out0     (out0),
  .out1     (out1),
  .out2     (out2),
  .out3     (out3)
);


`$SB_p->mname()` #(.Width(1)) `$SB_p->iname()`
(
  .clk      (clk),
  .rst_n    (rst_n),


  .cfg_d    (cfg_d),
  .cfg_a    (cfg_a[7:0]),
  .cfg_en   (cfg_en & ~cfg_a[8]),

  .in0      (in0_p),
  .in1      (in1_p),
  .in2      (in2_p),
  .in3      (in3_p),

  .res      (res_p),

  .out0     (out0_p),
  .out1     (out1_p),
  .out2     (out2_p),
  .out3     (out3_p)
);




endmodule
module `mname`  #(
  parameter Width   = 16
) (
  input               clk,
  input               rst_n,

  input        [15:0] cfg_d,
  input        [9:0]  cfg_a,
  input               cfg_en,


  input        [`$N-1`:0][Width - 1:0] in0,
  input        [`$N-1`:0][Width - 1:0] in1,
  input        [`$N-1`:0][Width - 1:0] in2,
  input        [`$N-1`:0][Width - 1:0] in3,

  output logic [`$N-1`:0][Width - 1:0] out0,
  output logic [`$N-1`:0][Width - 1:0] out1,
  output logic [`$N-1`:0][Width - 1:0] out2,
  output logic [`$N-1`:0][Width - 1:0] out3,


  input        [`$N-1`:0]              in0_p,
  input        [`$N-1`:0]              in1_p,
  input        [`$N-1`:0]              in2_p,
  input        [`$N-1`:0]              in3_p,

  output logic [`$N-1`:0]              out0_p,
  output logic [`$N-1`:0]              out1_p,
  output logic [`$N-1`:0]              out2_p,
  output logic [`$N-1`:0]              out3_p

);



logic [ `$num_res-1`:0][Width - 1:0] res;
logic [ `$num_res-1`:0]              res_p;























logic [Width - 1:0] op_a_in;
logic [Width - 1:0] op_b_in;
logic               op_d_p_in;

logic [$clog2(`$N`)-1:0] cb_a_sel;
logic [$clog2(`$N`)-1:0] cb_b_sel;
logic [$clog2(`$N`)-1:0] cb_d_sel;



always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_a_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h0)) begin
    cb_a_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_b_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h1)) begin
    cb_b_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_d_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h3)) begin
    cb_d_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end


`$CB_a->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_a->iname()`
(
  .data_in (in0),
  .sel     (cb_a_sel),
  .res     (op_a_in)
);

`$CB_b->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_b->iname()`
(
  .data_in (in1),
  .sel     (cb_b_sel),
  .res     (op_b_in)
);

`$CB_d->mname()` #(.DataWidth(1),.NumInp(`$N`)) `$CB_d->iname()`
(
  .data_in (in0_p),
  .sel     (cb_d_sel),
  .res     (op_d_p_in)
);


logic [Width - 1:0] op_c_in;
logic [$clog2(`$N`)-1:0] cb_c_sel;

always_ff @(posedge clk or negedge rst_n) begin
  if(~rst_n) begin
    cb_c_sel <= 'h0;
  end else if(cfg_en & (cfg_a[9:8]==2'b10) && (cfg_a[7:0]==8'h2)) begin
    cb_c_sel <= cfg_d[$clog2(`$N`)-1:0];
  end
end

`$CB_c->mname()` #(.DataWidth(Width),.NumInp(`$N`)) `$CB_c->iname()`
(
  .data_in (in0),
  .sel     (cb_c_sel),
  .res     (op_c_in)
);




`$PE->mname()` #(.DataWidth(Width)) `$PE->iname()`
(
  .clk       (clk),
  .rst_n     (rst_n),

  .cfg_d     (cfg_d),
  .cfg_a     (cfg_a[7:0]),
  .cfg_en    (cfg_en & (cfg_a[9:8]==2'b00)),

  .op_a_in   (op_a_in),
  .op_b_in   (op_b_in),

  .op_c_in   (op_c_in),


  .op_d_p_in (op_d_p_in),

  .res       (res[0]),
  .res_p     (res_p[0])
);


`$SB->mname()` #(.Width(Width)) `$SB->iname()`
(
  .clk      (clk),
  .rst_n    (rst_n),


  .cfg_d    (cfg_d),
  .cfg_a    (cfg_a[7:0]),
  .cfg_en   (cfg_en  & (cfg_a[9:8]==2'b01)),

  .in0      (in0),
  .in1      (in1),
  .in2      (in2),
  .in3      (in3),

  .res      (res),

  .out0     (out0),
  .out1     (out1),
  .out2     (out2),
  .out3     (out3)
);


`$SB_p->mname()` #(.Width(1)) `$SB_p->iname()`
(
  .clk      (clk),
  .rst_n    (rst_n),


  .cfg_d    (cfg_d),
  .cfg_a    (cfg_a[7:0]),
  .cfg_en   (cfg_en & ~cfg_a[8]),

  .in0      (in0_p),
  .in1      (in1_p),
  .in2      (in2_p),
  .in3      (in3_p),

  .res      (res_p),

  .out0     (out0_p),
  .out1     (out1_p),
  .out2     (out2_p),
  .out3     (out3_p)
);




endmodule