From 59680e79c8283984a36efdc1f4a295bb6a7cf2c3 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 22 Jan 2009 02:58:24 -0500 Subject: [PATCH] Fetch: Allow new queued jumps to take precedence over old queued jumps (i.e., ldm followed by bl; the bl happens first, but the ldm is what we really want in the end) --- Fetch.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fetch.v b/Fetch.v index 2a9d69d..918e53c 100644 --- a/Fetch.v +++ b/Fetch.v @@ -17,7 +17,7 @@ module Fetch( reg qjmp = 0; /* A jump has been queued up while we were waiting. */ reg [31:0] qjmppc; always @(posedge clk) - if ((rd_wait || stall) && jmp && !qjmp) + if ((rd_wait || stall) && jmp) {qjmp,qjmppc} <= {jmp, jmppc}; else if (!rd_wait && !stall && qjmp) /* It has already been intoed. */ {qjmp,qjmppc} <= {1'b0, 32'hxxxxxxxx}; -- 2.39.2