data/full_repos/permissive/211316121/lab2_nexys4/bcd7seg.v
1: b'%Warning-WIDTH: data/full_repos/permissive/211316121/lab2_nexys4/bcd7seg.v:51: Operator ASSIGN expects 7 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\' generates 32 bits.\n                                                                             : ... In instance bcd7seg\n            default:seg=\'bxxxxxxx;\n                       ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module bcd7seg(
    input [3:0] sw,
    output reg [6:0] seg,
    output dp,
    output [7:0] an
    );
    
    assign dp='b1;
    assign an='b01111111;
    
    always@(*)
        case(sw)
            'h0:seg='b1000000;
                    'h1:seg='b1111001;
                    'h2:seg='b0100100;
                    'h3:seg='b0110000;
                    'h4:seg='b0011001;
                    'h5:seg='b0010010;
                    'h6:seg='b0000010;
                    'h7:seg='b1111000;
                    'h8:seg='b0000000;
                    'h9:seg='b0011000;
                        'hA:seg='b0001000;
                        'hB:seg='b0000011;
                        'hC:seg='b1000110;
                        'hD:seg='b0100001;
                        'hE:seg='b0000110;
                        'hF:seg='b0001110;
            default:seg='bxxxxxxx;
        endcase
endmodule
module bcd7seg(
    input [3:0] sw,
    output reg [6:0] seg,
    output dp,
    output [7:0] an
    );

    
    assign dp='b1;
    assign an='b01111111;
    
    always@(*)
        case(sw)
            'h0:seg='b1000000;
                    'h1:seg='b1111001;
                    'h2:seg='b0100100;
                    'h3:seg='b0110000;
                    'h4:seg='b0011001;
                    'h5:seg='b0010010;
                    'h6:seg='b0000010;
                    'h7:seg='b1111000;
                    'h8:seg='b0000000;
                    'h9:seg='b0011000;
                        'hA:seg='b0001000;
                        'hB:seg='b0000011;
                        'hC:seg='b1000110;
                        'hD:seg='b0100001;
                        'hE:seg='b0000110;
                        'hF:seg='b0001110;
            default:seg='bxxxxxxx;
        endcase
endmodule