]> Joshua Wise's Git repositories - firearm.git/commitdiff
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 c63fd9d24422fa05bf0ebe4d7d6db6129f8a00c0..2c227460eba0b046d3a0689f9b75da6835c6558a 100644 (file)
--- a/Decode.v
+++ b/Decode.v
@@ -181,7 +181,7 @@ module Decode(
                        read_2 = insn[15:12];
                        
                        op0_out = regs0;
                        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
                                op1_out = {20'b0, insn[11:0]};
                                carry_out = incpsr[`CPSR_C];
                        end else begin
This page took 0.022626 seconds and 4 git commands to generate.