data/full_repos/permissive/196851857/datapath/mux.v
'utf-8' codec can't decode byte 0xb1 in position 168: invalid start byte
1: b'%Warning-MULTITOP: data/full_repos/permissive/196851857/datapath/mux.v:10: 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 \'mux\'\nmodule mux #(parameter WIDTH = 32) (i0, i1, sel,out);\n       ^~~\n                                                                         : ... Top module \'mux4\'\nmodule mux4 #(parameter WIDTH = 32) (\n       ^~~~\n                                                                         : ... Top module \'mux8\'\nmodule mux8 #(parameter WIDTH = 32) (\n       ^~~~\n%Error: Exiting due to 1 warning(s)\n'
module mux8 #(parameter WIDTH = 32) (
  i000, i001, i010, i011,
  i100, i101, i110, i111,
  sel,
  out
);
  input [WIDTH - 1:0] i000, i001, i010, i011, i100, i101, i110, i111;
  output [WIDTH - 1:0] out;
  input [2:0] sel;
  assign out = (sel[2]) ?
          ( (sel[1]) ?
          ( (sel[0]) ? i111 : i110 ) :
          ( ((sel[0]) ? i101 : i100 ) ) ) 
              :
            ( (sel[1]) ?
          ( (sel[0]) ? i011 : i010 ) :
          ( ((sel[0]) ? i001 : i000 ) ) );
endmodule
module mux8 #(parameter WIDTH = 32) (
  i000, i001, i010, i011,
  i100, i101, i110, i111,
  sel,
  out
);

  input [WIDTH - 1:0] i000, i001, i010, i011, i100, i101, i110, i111;
  output [WIDTH - 1:0] out;
  input [2:0] sel;
  assign out = (sel[2]) ?
          ( (sel[1]) ?
          ( (sel[0]) ? i111 : i110 ) :
          ( ((sel[0]) ? i101 : i100 ) ) ) 
              :
            ( (sel[1]) ?
          ( (sel[0]) ? i011 : i010 ) :
          ( ((sel[0]) ? i001 : i000 ) ) );
endmodule