data/full_repos/permissive/462323524/designs/prv32_cpu/arith.v
1: b"%Error: data/full_repos/permissive/462323524/designs/prv32_cpu/arith.v:85: syntax error, unexpected type, expecting IDENTIFIER or '[' or do or final\n input  wire [1:0]           type,     \n                             ^~~~\n%Error: data/full_repos/permissive/462323524/designs/prv32_cpu/arith.v:87: syntax error, unexpected ')', expecting ',' or ';'\n);\n^\n%Error: data/full_repos/permissive/462323524/designs/prv32_cpu/arith.v:90: syntax error, unexpected IDENTIFIER\n    mirror m1(.in(a), .out(ma));\n    ^~~~~~\n%Error: data/full_repos/permissive/462323524/designs/prv32_cpu/arith.v:379: syntax error, unexpected type\n        .type(alufn[1:0]),\n         ^~~~\n%Error: Exiting due to 4 error(s)\n"
module adder_32 #(parameter ADDER_TYPE = 2) ( 
	input [31:0] 	a, b,
	input 			ci,
	output [31:0]	s,
	output			co
);

    generate
        if(ADDER_TYPE == 0) 
            assign {co, s} = a + b + ci;
        else if(ADDER_TYPE == 1)
            csa32_8 adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else if(ADDER_TYPE == 2)
            csa32_8_cla adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else if(ADDER_TYPE == 3)
            csa32_16 adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else
            rca adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
    endgenerate    



endmodule
module adder_32 #(parameter ADDER_TYPE = 2) ( 
	input [31:0] 	a, b,
	input 			ci,
	output [31:0]	s,
	output			co
);


    generate
        if(ADDER_TYPE == 0) 
            assign {co, s} = a + b + ci;
        else if(ADDER_TYPE == 1)
            csa32_8 adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else if(ADDER_TYPE == 2)
            csa32_8_cla adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else if(ADDER_TYPE == 3)
            csa32_16 adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
        else
            rca adder ( 
                .a(a), .b(b),
                .ci(ci),
                .s(s),
                .co(co)
            );
    endgenerate    



endmodule