data/full_repos/permissive/211316121/lab2_basys3/sources_1/new/bcd7seg.v
data/verilator_xmls/668f6761-db0b-4978-b013-82007d6da00f.xml
module bcd7seg(
    input [3:0] sw,
    output reg [6:0] seg,
    output dp,
    output [3:0] an
    );
    
    assign dp='b1;
    assign an='b1110;
    
    always@(*)
        case(sw)
            'b0000:seg='b1000000;
            'b0001:seg='b1111001;
            'b0010:seg='b0100100;
            'b0011:seg='b0110000;
            'b0100:seg='b0011001;
            'b0101:seg='b0010010;
            'b0110:seg='b0000010;
            'b0111:seg='b1111000;
            'b1000:seg='b0000000;
            'b1001:seg='b0011000;
            default:seg='b1000000;
        endcase
endmodule
module bcd7seg(
    input [3:0] sw,
    output reg [6:0] seg,
    output dp,
    output [3:0] an
    );

    
    assign dp='b1;
    assign an='b1110;
    
    always@(*)
        case(sw)
            'b0000:seg='b1000000;
            'b0001:seg='b1111001;
            'b0010:seg='b0100100;
            'b0011:seg='b0110000;
            'b0100:seg='b0011001;
            'b0101:seg='b0010010;
            'b0110:seg='b0000010;
            'b0111:seg='b1111000;
            'b1000:seg='b0000000;
            'b1001:seg='b0011000;
            default:seg='b1000000;
        endcase
endmodule