data/full_repos/permissive/428954396/sources_1/imports/new/seven_segment.v
data/verilator_xmls/fdca6fef-0a89-48df-b362-113e44993f11.xml
module seven_segment(
    input [3:0] sayac,
    output reg [6:0] segment
    );
    
    always@ (sayac) begin
    
        case (sayac)        
            4'd0: segment <= ~7'b0111111;
            4'd1: segment <= ~7'b0000110;
            4'd2: segment <= ~7'b1011011;
            4'd3: segment <= ~7'b1001111;
            4'd4: segment <= ~7'b1100110;
            4'd5: segment <= ~7'b1101101;
            4'd6: segment <= ~7'b1111101;
            4'd7: segment <= ~7'b0000111;
            4'd8: segment <= ~7'b1111111;
            4'd9: segment <= ~7'b1101111;               
            default segment <= ~7'b0000000;
        endcase
    
    end
    
endmodule
module seven_segment(
    input [3:0] sayac,
    output reg [6:0] segment
    );

    
    always@ (sayac) begin
    
        case (sayac)        
            4'd0: segment <= ~7'b0111111;
            4'd1: segment <= ~7'b0000110;
            4'd2: segment <= ~7'b1011011;
            4'd3: segment <= ~7'b1001111;
            4'd4: segment <= ~7'b1100110;
            4'd5: segment <= ~7'b1101101;
            4'd6: segment <= ~7'b1111101;
            4'd7: segment <= ~7'b0000111;
            4'd8: segment <= ~7'b1111111;
            4'd9: segment <= ~7'b1101111;               
            default segment <= ~7'b0000000;
        endcase
    
    end
    
endmodule