data/full_repos/permissive/169496369/alu_mips.v
 line:45 column:11: Illegal character '`'
data/verilator_xmls/9c7acf62-0697-4521-9dfa-23cc2981f123.xml
module alu_mips(a, b, aluop, zero, result);
    input [31:0] a, b;
    input [2:0] aluop;
    
    output logic [31:0]result;
    output logic zero;
    
    always_comb
    begin
        case(aluop)
            3'b000: result = a + b;
            3'b001: result = a & b; 
            3'b010: result = a | b;
            3'b011: result = a - b;
            3'b100: result = a ^ b;
            default: result = 32'd0;
        endcase
        
        if(result == 32'd0)
            zero = 1;
        else
            zero = 0;
    end
endmodule
module alu_mips(a, b, aluop, zero, result);

    input [31:0] a, b;
    input [2:0] aluop;
    
    output logic [31:0]result;
    output logic zero;
    
    always_comb
    begin
        case(aluop)
            3'b000: result = a + b;
            3'b001: result = a & b; 
            3'b010: result = a | b;
            3'b011: result = a - b;
            3'b100: result = a ^ b;
            default: result = 32'd0;
        endcase
        
        if(result == 32'd0)
            zero = 1;
        else
            zero = 0;
    end
endmodule