Decode: Fix stupid bug in which stalls did not stall the decoder.
[firearm.git] / Fetch.v
diff --git a/Fetch.v b/Fetch.v
index 3b6d9c5..7dd4bb0 100644 (file)
--- a/Fetch.v
+++ b/Fetch.v
@@ -31,7 +31,7 @@ module Fetch(
                else
                        nextpc = prevpc + 32'h4;
        
-       assign rd_addr = pc;
+       assign rd_addr = nextpc;
        assign rd_req = !stall;
                        
        always @(posedge clk)
This page took 0.017251 seconds and 4 git commands to generate.