data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/decoder_2x4.v
1: b'%Warning-LITENDIAN: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/decoder_2x4.v:25: Little bit endian vector: MSB < LSB of bit range: 0:3\n    output reg [0:3] y\n               ^\n                    ... Use "/* verilator lint_off LITENDIAN */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module decoder_2x4(
    input [1:0] w,
    output reg [0:3] y
    );
    
    always @(w)
    begin 
        y = 4'b0000;
        
        if (w == 2'b00)
            y[0] = 1'b1;
        else if (w == 2'b01)
            y[1] = 1'b1;
        else if (w == 2'b10)
            y[2] = 1'b1;
        else if (w == 2'b11)
            y[3] = 1'b1;
        else
            y = 4'b0000;
    end
    
endmodule
module decoder_2x4(
    input [1:0] w,
    output reg [0:3] y
    );

    
    always @(w)
    begin 
        y = 4'b0000;
        
        if (w == 2'b00)
            y[0] = 1'b1;
        else if (w == 2'b01)
            y[1] = 1'b1;
        else if (w == 2'b10)
            y[2] = 1'b1;
        else if (w == 2'b11)
            y[3] = 1'b1;
        else
            y = 4'b0000;
    end
    
endmodule