merge a few wire and assigns... can't do it on port declarations though

This commit is contained in:
Raphael Jacquot 2019-03-03 09:47:28 +01:00
parent 61957fab3e
commit 7e4ab90369

View file

@ -144,19 +144,12 @@ wire [0:0] dec_instr_execute;
* wires for decode shortcuts * wires for decode shortcuts
*/ */
wire [0:0] reg_dest_p; wire [0:0] reg_dest_p = (dec_alu_reg_dest == `ALU_REG_P);
wire [0:0] reg_src_1_imm; wire [0:0] reg_src_1_imm = (dec_alu_reg_src_1 == `ALU_REG_IMM);
wire [0:0] aluop_copy; wire [0:0] aluop_copy = (dec_alu_opcode == `ALU_OP_COPY);
assign reg_dest_p = (dec_alu_reg_dest == `ALU_REG_P); wire [0:0] inst_alu_p_eq_n = aluop_copy && reg_dest_p && reg_src_1_imm;
assign reg_src_1_imm = (dec_alu_reg_src_1 == `ALU_REG_IMM); wire [0:0] inst_alu_other = !(inst_alu_p_eq_n);
assign aluop_copy = (dec_alu_opcode == `ALU_OP_COPY);
wire [0:0] inst_alu_p_eq_n;
wire [0:0] inst_alu_other;
assign inst_alu_p_eq_n = aluop_copy && reg_dest_p && reg_src_1_imm;
assign inst_alu_other = !(inst_alu_p_eq_n);
/************************************************************************************************** /**************************************************************************************************
* *