data/full_repos/permissive/160991228/src/hdl/common/Ascii2Nt.v
data/verilator_xmls/580df524-51a6-4ef1-bb0d-219460ee557b.xml
module Ascii2Nt (
    input [7:0] ascii,
    input complement,
    output reg [3:0] nt);

    localparam A=1, C=2, G=3, T=4, N=0;

    always @(*) begin
        case ({ascii})
            8'h61 : nt = (complement) ? T : A;
            8'h41 : nt = (complement) ? T : A;
            8'h63 : nt = (complement) ? G : C;
            8'h43 : nt = (complement) ? G : C;
            8'h67 : nt = (complement) ? C : G;
            8'h47 : nt = (complement) ? C : G;
            8'h74 : nt = (complement) ? A : T;
            8'h54 : nt = (complement) ? A : T;
            8'h6e : nt = N;
            8'h4e : nt = N;
            default : nt = N;
        endcase
    end
endmodule
module Ascii2Nt (
    input [7:0] ascii,
    input complement,
    output reg [3:0] nt);


    localparam A=1, C=2, G=3, T=4, N=0;

    always @(*) begin
        case ({ascii})
            8'h61 : nt = (complement) ? T : A;
            8'h41 : nt = (complement) ? T : A;
            8'h63 : nt = (complement) ? G : C;
            8'h43 : nt = (complement) ? G : C;
            8'h67 : nt = (complement) ? C : G;
            8'h47 : nt = (complement) ? C : G;
            8'h74 : nt = (complement) ? A : T;
            8'h54 : nt = (complement) ? A : T;
            8'h6e : nt = N;
            8'h4e : nt = N;
            default : nt = N;
        endcase
    end
endmodule