# Pastebin kyQYHpCt localparam SEL_REG_B_IR_B = 1'b0; localparam SEL_REG_B_IR_C = 1'b1; // Does Not Work logic [2:0]de_regs_bsel = (de_sel_reg_b == SEL_REG_B_IR_C) ? de_ir_sel_c : de_ir_sel_b; // Does Work wire [2:0]de_regs_bsel = (de_sel_reg_b == SEL_REG_B_IR_C) ? de_ir_sel_c : de_ir_sel_b; // Does Not Work reg [2:0]de_regs_bsel = (de_sel_reg_b == SEL_REG_B_IR_C) ? de_ir_sel_c : de_ir_sel_b; // Does Work logic [2:0]de_regs_bsel; assign de_regs_bsel = (de_sel_reg_b == SEL_REG_B_IR_C) ? de_ir_sel_c : de_ir_sel_b; // Does Work logic [2:0]de_regs_bsel; always_comb begin case (de_sel_reg_b) SEL_REG_B_IR_B: de_regs_bsel = de_ir_sel_b; SEL_REG_B_IR_C: de_regs_bsel = de_ir_sel_c; endcase end