Memory: Fix bug in which swp_oldval does not get latched (oops!). Make align_rddata...
authorJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 26 Feb 2009 01:51:48 +0000 (20:51 -0500)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 26 Feb 2009 01:51:48 +0000 (20:51 -0500)
Memory.v

index 6b52989..63dfb9b 100644 (file)
--- a/Memory.v
+++ b/Memory.v
@@ -121,6 +121,7 @@ module Memory(
                lsrh_state <= next_lsrh_state;
                if (do_rd_data_latch)
                        rd_data_latch <= rd_data;
+               swp_oldval <= next_swp_oldval;
                prevaddr <= addr;
        end
        
@@ -692,6 +693,10 @@ module Memory(
                lsrh_rddata_s1 = 16'hxxxx;
                lsrh_rddata_s2 = 8'hxx;
                next_swp_oldval = swp_oldval;
+               
+               align_s1 = 32'hxxxxxxxx;
+               align_s2 = 32'hxxxxxxxx;
+               align_rddata = 32'hxxxxxxxx;
 
                /* XXX shit not given about endianness */
                casez(insn)
This page took 0.021574 seconds and 4 git commands to generate.