Fix stupid pc request in Fetch
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 28 Dec 2008 11:00:52 +0000 (06:00 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 28 Dec 2008 11:00:52 +0000 (06:00 -0500)
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.019837 seconds and 4 git commands to generate.