data/full_repos/permissive/169574047/bahavior/bahavior.srcs/sources_1/new/if_statement.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/169574047/bahavior/bahavior.srcs/sources_1/new/if_statement.v:40: Operator LT expects 32 or 5 bits on the LHS, but LHS\'s VARREF \'number_quened\' generates 1 bits.\n                                                                                                           : ... In instance if_statement\n    if(number_quened < MAX_Q_DEPTH)\n                     ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/169574047/bahavior/bahavior.srcs/sources_1/new/if_statement.v:54: Operator EQ expects 32 or 2 bits on the LHS, but LHS\'s VARREF \'alu_control\' generates 1 bits.\n                                                                                                           : ... In instance if_statement\n    else if(alu_control == 2)\n                        ^~\n%Error: Exiting due to 2 warning(s)\n'
module if_statement;

parameter MAX_Q_DEPTH = 16;
reg lock,enable;
reg buffer,data,out,in;
reg data_quene,number_quened;
reg alu_control,x,y,z;

initial
begin

    if(!lock)
        buffer = data;
    if(enable)
        out = in;
        

    if(number_quened < MAX_Q_DEPTH)
    begin
        data_quene = data;
        number_quened = number_quened + 1;
    end
    else
        $display("Quene Full.Try again");



    if(alu_control == 0)
        y = x + z;
    else if(alu_control == 1)
        y = x - z;
    else if(alu_control == 2)
        y = x * z;
    else
        $display("Invalid ALU control signal");
end

endmodule
module if_statement;


parameter MAX_Q_DEPTH = 16;
reg lock,enable;
reg buffer,data,out,in;
reg data_quene,number_quened;
reg alu_control,x,y,z;

initial
begin

    if(!lock)
        buffer = data;
    if(enable)
        out = in;
        

    if(number_quened < MAX_Q_DEPTH)
    begin
        data_quene = data;
        number_quened = number_quened + 1;
    end
    else
        $display("Quene Full.Try again");



    if(alu_control == 0)
        y = x + z;
    else if(alu_control == 1)
        y = x - z;
    else if(alu_control == 2)
        y = x * z;
    else
        $display("Invalid ALU control signal");
end

endmodule