data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp
 line:37: before: "parameter"
1: b"%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:36: Define or directive not defined: '`mname'\nmodule `mname`  #(\n       ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:36: syntax error, unexpected $undefined, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER\nmodule `mname`  #(\n             ^\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:38: syntax error, unexpected ')', expecting ';'\n) (\n^\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:42: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][2:0]         cfg,\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:44: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in_right, \n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:45: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in_oppos, \n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:46: Unsupported or unknown PLI call: $N\n  input        [`$N-1`:0][Width - 1:0] in_left, \n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:47: Unsupported or unknown PLI call: $num_res\n  input        [ `$num_res-1`:0][Width - 1:0] res,\n                  ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:49: Unsupported or unknown PLI call: $N\n  output logic [`$N-1`:0][Width - 1:0] out\n                 ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:59: Unsupported or unknown PLI call: $i\nassign out[`$i`] = in_oppos[`$i`];\n            ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:59: Unsupported or unknown PLI call: $i\nassign out[`$i`] = in_oppos[`$i`];\n                             ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:75: Unsupported or unknown PLI call: $i_mux\n`$i_mux->mname()` #(.DataWidth(Width)) `$i_mux->iname()`\n ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:75: Unsupported or unknown PLI call: $i_mux\n`$i_mux->mname()` #(.DataWidth(Width)) `$i_mux->iname()`\n                                        ^~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:80: Unsupported or unknown PLI call: $index_0\n  .data_in_0      (in_right[`$index_0`]),\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:81: Unsupported or unknown PLI call: $index_1\n  .data_in_1      (in_oppos[`$index_1`]),\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:82: Unsupported or unknown PLI call: $index_2\n  .data_in_2      (in_left [`$index_2`]),\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:84: Unsupported or unknown PLI call: $i\n  .sel            (cfg[`$i`][1:0]),\n                        ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:85: Unsupported or unknown PLI call: $i\n  .reg_en         (cfg[`$i`][2]),\n                        ^~\n%Error: data/full_repos/permissive/209644662/hardware/unused/sb/rtl/test_sb_dir.svp:86: Unsupported or unknown PLI call: $i\n  .res            (out[`$i`])\n                        ^~\n%Error: Exiting due to 19 error(s)\n"
module `mname`  #(
  parameter Width   = 16
) (
  input                            clk,
  input                            rst_n,

  input        [`$N-1`:0][2:0]         cfg,

  input        [`$N-1`:0][Width - 1:0] in_right,
  input        [`$N-1`:0][Width - 1:0] in_oppos,
  input        [`$N-1`:0][Width - 1:0] in_left,
  input        [ `$num_res-1`:0][Width - 1:0] res,

  output logic [`$N-1`:0][Width - 1:0] out
);








assign out[`$i`] = in_oppos[`$i`];















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

  .data_in_0      (in_right[`$index_0`]),
  .data_in_1      (in_oppos[`$index_1`]),
  .data_in_2      (in_left [`$index_2`]),
  .data_in_3      (res),
  .sel            (cfg[`$i`][1:0]),
  .reg_en         (cfg[`$i`][2]),
  .res            (out[`$i`])
);



















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

  input        [`$N-1`:0][2:0]         cfg,

  input        [`$N-1`:0][Width - 1:0] in_right,
  input        [`$N-1`:0][Width - 1:0] in_oppos,
  input        [`$N-1`:0][Width - 1:0] in_left,
  input        [ `$num_res-1`:0][Width - 1:0] res,

  output logic [`$N-1`:0][Width - 1:0] out
);









assign out[`$i`] = in_oppos[`$i`];















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

  .data_in_0      (in_right[`$index_0`]),
  .data_in_1      (in_oppos[`$index_1`]),
  .data_in_2      (in_left [`$index_2`]),
  .data_in_3      (res),
  .sel            (cfg[`$i`][1:0]),
  .reg_en         (cfg[`$i`][2]),
  .res            (out[`$i`])
);



















endmodule