Decode: Fix conditional for immediate mode.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 09:53:40 +0000 (04:53 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 09:53:40 +0000 (04:53 -0500)
Decode.v

index c63fd9d..2c22746 100644 (file)
--- a/Decode.v
+++ b/Decode.v
@@ -181,7 +181,7 @@ module Decode(
                        read_2 = insn[15:12];
                        
                        op0_out = regs0;
-                       if(insn[25]) begin
+                       if(!insn[25] /* immediate */) begin
                                op1_out = {20'b0, insn[11:0]};
                                carry_out = incpsr[`CPSR_C];
                        end else begin
This page took 0.020555 seconds and 4 git commands to generate.