data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v
1: b'%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:2: Cannot find include file: instr_head.v\n`include "instr_head.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new,data/full_repos/permissive/206017343/instr_head.v\n             data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new,data/full_repos/permissive/206017343/instr_head.v.v\n             data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new,data/full_repos/permissive/206017343/instr_head.v.sv\n             instr_head.v\n             instr_head.v.v\n             instr_head.v.sv\n             obj_dir/instr_head.v\n             obj_dir/instr_head.v.v\n             obj_dir/instr_head.v.sv\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:13: Define or directive not defined: \'`RF_WAD_RT\'\n    assign rf_w_address = (rf_wad_ctrl == `RF_WAD_RT) ? rt :\n                                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:13: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    assign rf_w_address = (rf_wad_ctrl == `RF_WAD_RT) ? rt :\n                                                    ^\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:14: Define or directive not defined: \'`RF_WAD_RD\'\n                          (rf_wad_ctrl == `RF_WAD_RD) ? rd : rd;\n                                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:28: Define or directive not defined: \'`RF_WDATA_LUIM\'\n    assign rf_w_data = (rf_wdata_ctrl == `RF_WDATA_LUIM) ? lui_value :\n                                         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:28: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    assign rf_w_data = (rf_wdata_ctrl == `RF_WDATA_LUIM) ? lui_value :\n                                                       ^\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:29: Define or directive not defined: \'`RF_WDATA_SLTIM\'\n                       (rf_wdata_ctrl == `RF_WDATA_SLTIM) ? slti_value :\n                                         ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:30: Define or directive not defined: \'`RF_WDATA_DM\'\n                       (rf_wdata_ctrl == `RF_WDATA_DM) ? dm_r_value :\n                                         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:31: Define or directive not defined: \'`RF_WDATA_ALU\'\n                       (rf_wdata_ctrl == `RF_WDATA_ALU) ? alu_result_value : alu_result_value;\n                                         ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:43: Define or directive not defined: \'`ALU_SRC_B_RT\'\n    assign alu_src_b = (alu_src_b_ctrl == `ALU_SRC_B_RT) ? rf_r2_data :\n                                          ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:43: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    assign alu_src_b = (alu_src_b_ctrl == `ALU_SRC_B_RT) ? rf_r2_data :\n                                                       ^\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:44: Define or directive not defined: \'`ALU_SRC_B_IMM16_SE\'\n                       (alu_src_b_ctrl == `ALU_SRC_B_IMM16_SE) ? imm16_sign_extend : imm16_sign_extend;\n                                          ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:54: Define or directive not defined: \'`SLTI_ZERO\'\n    assign slti_value = (slti_ctrl == `SLTI_ZERO) ? 32\'h0000_0000 :\n                                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:54: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    assign slti_value = (slti_ctrl == `SLTI_ZERO) ? 32\'h0000_0000 :\n                                                ^\n%Error: data/full_repos/permissive/206017343/single-cycle.srcs/sources_1/new/mux.v:55: Define or directive not defined: \'`SLTI_ONE\'\n                        (slti_ctrl == `SLTI_ONE) ? 32\'h0000_0001 : 32\'h0000_0001;\n                                      ^~~~~~~~~\n%Error: Exiting due to 15 error(s)\n'
module mux_src_b(
    input wire[1:0] alu_src_b_ctrl,
    input wire[31:0] rf_r2_data,
    input wire[31:0] imm16_sign_extend,

    output wire[31:0] alu_src_b
    );


    assign alu_src_b = (alu_src_b_ctrl == `ALU_SRC_B_RT) ? rf_r2_data :
                       (alu_src_b_ctrl == `ALU_SRC_B_IMM16_SE) ? imm16_sign_extend : imm16_sign_extend;
endmodule
module mux_src_b(
    input wire[1:0] alu_src_b_ctrl,
    input wire[31:0] rf_r2_data,
    input wire[31:0] imm16_sign_extend,

    output wire[31:0] alu_src_b
    );



    assign alu_src_b = (alu_src_b_ctrl == `ALU_SRC_B_RT) ? rf_r2_data :
                       (alu_src_b_ctrl == `ALU_SRC_B_IMM16_SE) ? imm16_sign_extend : imm16_sign_extend;
endmodule