]> Joshua Wise's Git repositories - firearm.git/blobdiff - Issue.v
Add wires for ALU.
[firearm.git] / Issue.v
diff --git a/Issue.v b/Issue.v
index 03707d9fa8bb8694cf0f261137bfdcce66a046c2..fcc2c0c8d6d64b60a758bd3bace800611b54cf61 100644 (file)
--- a/Issue.v
+++ b/Issue.v
@@ -5,7 +5,7 @@ module Issue(
        input Nrst,     /* XXX not used yet */
        
        input stall,    /* pipeline control */
-       input flush,
+       input flush,    /* XXX not used yet */
        
        input inbubble, /* stage inputs */
        input [31:0] insn,
@@ -287,6 +287,11 @@ module Issue(
                cpsr_inflight[1] <= (waiting || inbubble || !condition_met) ? 0 : def_cpsr;
                regs_inflight[0] <= regs_inflight[1];
                regs_inflight[1] <= (waiting || inbubble || !condition_met) ? 0 : def_regs;
+               
+               if (waiting)
+               begin
+                       $display("ISSUE: Stalling instruction %08x because %d/%d", insn, waiting_cpsr, waiting_regs);
+               end
 
                outbubble <= inbubble | waiting | !condition_met;
                outpc <= inpc;
This page took 0.024781 seconds and 4 git commands to generate.