data/full_repos/permissive/474582223/MUX/eightByOne/uut.v
1: b'%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h0\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h1\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h2\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h3\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h4\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h5\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h6\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/474582223/MUX/eightByOne/uut.v:20: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h7\' generates 3 bits.\n                                                                            : ... In instance eightbyonemux\n    case(sel)\n    ^~~~\n%Error: Exiting due to 8 warning(s)\n'
module eightbyonemux (
  input [3:0] a,
  input [3:0] b,
  input [3:0] c,
  input [3:0] d,
  input [3:0] e,
  input [3:0] f,
  input [3:0] g,
  input [3:0] h,
  input [3:0] sel,
  output reg [3:0] yout
);
  
  always @ (a or b or c or d or e or f or g or h or sel) begin
    
    
    case(sel)
      3'b000 : yout <= a;
      3'b001 : yout <= b;
      3'b010 : yout <= c;
      3'b011 : yout <= d;
      3'b100 : yout <= e;
      3'b101 : yout <= f;
      3'b110 : yout <= g;
      3'b111 : yout <= h;
    endcase
  end
endmodule
module eightbyonemux (
  input [3:0] a,
  input [3:0] b,
  input [3:0] c,
  input [3:0] d,
  input [3:0] e,
  input [3:0] f,
  input [3:0] g,
  input [3:0] h,
  input [3:0] sel,
  output reg [3:0] yout
);

  
  always @ (a or b or c or d or e or f or g or h or sel) begin
    
    
    case(sel)
      3'b000 : yout <= a;
      3'b001 : yout <= b;
      3'b010 : yout <= c;
      3'b011 : yout <= d;
      3'b100 : yout <= e;
      3'b101 : yout <= f;
      3'b110 : yout <= g;
      3'b111 : yout <= h;
    endcase
  end
endmodule