data/full_repos/permissive/189992891/coder.v
1: b'%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h0\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h1\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h2\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h3\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h4\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h5\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h6\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Warning-WIDTH: data/full_repos/permissive/189992891/coder.v:23: Operator CASE expects 4 bits on the Case Item, but Case Item\'s CONST \'3\'h7\' generates 3 bits.\n                                                               : ... In instance coder\n        case (in)\n        ^~~~\n%Error: Exiting due to 8 warning(s)\n'
module coder(in, out);


    input [3:0] in;


    output [6:0] out;


    reg [6:0] code;


    assign out = code;



    always@* begin
        case (in)
            3'b000: code = 7'b1111111;
            3'b001: code = 7'b1000001;
            3'b010: code = 7'b0001100;
            3'b011: code = 7'b1000110;
            3'b100: code = 7'b0001001;
            3'b101: code = 7'b0001110;
            3'b110: code = 7'b0001000;
            3'b111: code = 7'b1110111;
        endcase
    end

endmodule
module coder(in, out);



    input [3:0] in;


    output [6:0] out;


    reg [6:0] code;


    assign out = code;



    always@* begin
        case (in)
            3'b000: code = 7'b1111111;
            3'b001: code = 7'b1000001;
            3'b010: code = 7'b0001100;
            3'b011: code = 7'b1000110;
            3'b100: code = 7'b0001001;
            3'b101: code = 7'b0001110;
            3'b110: code = 7'b0001000;
            3'b111: code = 7'b1110111;
        endcase
    end

endmodule