data/full_repos/permissive/113582216/Homework/decoder38.v
data/verilator_xmls/a9836816-00a2-4e7b-b746-5efcfb1f77fb.xml
module decoder38(
    input [2:0] in,
    output [7:0] out,
    input en
    );

    assign out = (en == 0) ? 8'b0:
        (in == 3'b000) ? 8'b0000_0001 :
        (in == 3'b001) ? 8'b0000_0010 :
        (in == 3'b010) ? 8'b0000_0100 :
        (in == 3'b011) ? 8'b0000_1000 :
        (in == 3'b100) ? 8'b0001_0000 :
        (in == 3'b101) ? 8'b0010_0000 :
        (in == 3'b110) ? 8'b0100_0000 :
        (in == 3'b111) ? 8'b1000_0000 :
        8'bx;

endmodule
module decoder38(
    input [2:0] in,
    output [7:0] out,
    input en
    );


    assign out = (en == 0) ? 8'b0:
        (in == 3'b000) ? 8'b0000_0001 :
        (in == 3'b001) ? 8'b0000_0010 :
        (in == 3'b010) ? 8'b0000_0100 :
        (in == 3'b011) ? 8'b0000_1000 :
        (in == 3'b100) ? 8'b0001_0000 :
        (in == 3'b101) ? 8'b0010_0000 :
        (in == 3'b110) ? 8'b0100_0000 :
        (in == 3'b111) ? 8'b1000_0000 :
        8'bx;

endmodule