data/full_repos/permissive/205673649/MIPS/Source/tl_write_back.v
1: b"%Error: data/full_repos/permissive/205673649/MIPS/Source/tl_write_back.v:47: Cannot find file containing module: 'mux'\nmux\n^~~\n        ... Looked in:\n             data/full_repos/permissive/205673649/MIPS/Source,data/full_repos/permissive/205673649/mux\n             data/full_repos/permissive/205673649/MIPS/Source,data/full_repos/permissive/205673649/mux.v\n             data/full_repos/permissive/205673649/MIPS/Source,data/full_repos/permissive/205673649/mux.sv\n             mux\n             mux.v\n             mux.sv\n             obj_dir/mux\n             obj_dir/mux.v\n             obj_dir/mux.sv\n%Error: Exiting due to 1 error(s)\n"
module tl_write_back
    #(
        parameter LEN = 32,
        parameter NB_CTRL_WB = 2,
        parameter NB_ADDRESS_REGISTROS = 5
    )
    (
        input [LEN-1:0] i_read_data,
        input [LEN-1:0] i_result_alu,
        input [NB_CTRL_WB-1:0] i_ctrl_wb,
        input [NB_ADDRESS_REGISTROS-1:0] i_write_reg,
        output [LEN-1:0] o_write_data,
        output [NB_ADDRESS_REGISTROS-1:0] o_write_reg,
        output o_RegWrite
    );


wire memtoReg;

assign memtoReg = i_ctrl_wb[0];

assign o_write_reg = i_write_reg;
assign o_RegWrite = i_ctrl_wb[1];


mux
#(
    .LEN(LEN)
)
u_mux
(
    .i_a(i_result_alu),
    .i_b(i_read_data),
    .i_selector(memtoReg),
    .o_mux(o_write_data)
);
endmodule
module tl_write_back
    #(
        parameter LEN = 32,
        parameter NB_CTRL_WB = 2,
        parameter NB_ADDRESS_REGISTROS = 5
    )
    (
        input [LEN-1:0] i_read_data,
        input [LEN-1:0] i_result_alu,
        input [NB_CTRL_WB-1:0] i_ctrl_wb,
        input [NB_ADDRESS_REGISTROS-1:0] i_write_reg,
        output [LEN-1:0] o_write_data,
        output [NB_ADDRESS_REGISTROS-1:0] o_write_reg,
        output o_RegWrite
    );



wire memtoReg;

assign memtoReg = i_ctrl_wb[0];

assign o_write_reg = i_write_reg;
assign o_RegWrite = i_ctrl_wb[1];


mux
#(
    .LEN(LEN)
)
u_mux
(
    .i_a(i_result_alu),
    .i_b(i_read_data),
    .i_selector(memtoReg),
    .o_mux(o_write_data)
);
endmodule