data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:48: Multiple top level modules\n                                                                                        : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                        : ... Top module \'chiplib_mux2\'\nmodule chiplib_mux2 ( \n       ^~~~~~~~~~~~\n                                                                                        : ... Top module \'chiplib_mux3\'\nmodule chiplib_mux3 ( \n       ^~~~~~~~~~~~\n                                                                                        : ... Top module \'chiplib_mux4\'\nmodule chiplib_mux4 ( \n       ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:89: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst0 (\n  ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/169225814/modules/chiplib/rtl,data/full_repos/permissive/169225814/MX2_X4M_A9TH\n             data/full_repos/permissive/169225814/modules/chiplib/rtl,data/full_repos/permissive/169225814/MX2_X4M_A9TH.v\n             data/full_repos/permissive/169225814/modules/chiplib/rtl,data/full_repos/permissive/169225814/MX2_X4M_A9TH.sv\n             MX2_X4M_A9TH\n             MX2_X4M_A9TH.v\n             MX2_X4M_A9TH.sv\n             obj_dir/MX2_X4M_A9TH\n             obj_dir/MX2_X4M_A9TH.v\n             obj_dir/MX2_X4M_A9TH.sv\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:96: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst1 (\n  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:103: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst2 (\n  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:59: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst0 (\n  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:66: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst1 (\n  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/169225814/modules/chiplib/rtl/chiplib.v:37: Cannot find file containing module: \'MX2_X4M_A9TH\'\n  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst (\n  ^~~~~~~~~~~~\n%Error: Exiting due to 6 error(s), 1 warning(s)\n'
module chiplib_mux4 ( 
  input        a,
  input        b,
  input        c,
  input        d,
  input  [1:0] s,
  output       y
  );

`ifdef FPGA_SYNTH
assign y = (s == 2'b11) ? d : ((s == 2'b10) ? c : ((s == 2'b01) ? b : a));
`else
  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst0 (
     .A   (a),
     .B   (b),
     .Y   (y_int1),
     .S0  (s[0])
  );

  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst1 (
     .A   (c),
     .B   (d),
     .Y   (y_int2),
     .S0  (s[0])
  );

  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst2 (
     .A   (y_int1),
     .B   (y_int2),
     .Y   (y),
     .S0  (s[1])
  );

`endif


endmodule
module chiplib_mux4 ( 
  input        a,
  input        b,
  input        c,
  input        d,
  input  [1:0] s,
  output       y
  );


`ifdef FPGA_SYNTH
assign y = (s == 2'b11) ? d : ((s == 2'b10) ? c : ((s == 2'b01) ? b : a));
`else
  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst0 (
     .A   (a),
     .B   (b),
     .Y   (y_int1),
     .S0  (s[0])
  );

  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst1 (
     .A   (c),
     .B   (d),
     .Y   (y_int2),
     .S0  (s[0])
  );

  MX2_X4M_A9TH u_DONT_TOUCH_mux2_inst2 (
     .A   (y_int1),
     .B   (y_int2),
     .Y   (y),
     .S0  (s[1])
  );

`endif


endmodule