]> Joshua Wise's Git repositories - firearm.git/commitdiff
Fetch: qjmp is for queueing up jumps while rd_waiting, not while stalled.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 09:04:58 +0000 (04:04 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 10 Jan 2009 09:04:58 +0000 (04:04 -0500)
Fetch.v

diff --git a/Fetch.v b/Fetch.v
index 5255647c529bc926692175c7ad93f75744d76e01..834a0da5c931a78923312c7691e0c74799f662e3 100644 (file)
--- a/Fetch.v
+++ b/Fetch.v
@@ -14,12 +14,12 @@ module Fetch(
        output reg [31:0] insn = 0,
        output reg [31:0] pc = 32'hFFFFFFFC);
        
        output reg [31:0] insn = 0,
        output reg [31:0] pc = 32'hFFFFFFFC);
        
-       reg qjmp = 0;   /* A jump has been queued up while we were stalled. */
+       reg qjmp = 0;   /* A jump has been queued up while we were waiting. */
        reg [31:0] qjmppc;
        always @(posedge clk)
        reg [31:0] qjmppc;
        always @(posedge clk)
-               if (stall && jmp && !qjmp)
+               if (rd_wait && jmp && !qjmp)
                        {qjmp,qjmppc} <= {jmp, jmppc};
                        {qjmp,qjmppc} <= {jmp, jmppc};
-               else if (!stall && qjmp)        /* It has already been handled. */
+               else if (!rd_wait && qjmp)      /* It has already been intoed. */
                        {qjmp,qjmppc} <= {1'b0, 32'hxxxxxxxx};
        
        reg [31:0] reqpc;
                        {qjmp,qjmppc} <= {1'b0, 32'hxxxxxxxx};
        
        reg [31:0] reqpc;
This page took 0.024567 seconds and 4 git commands to generate.