X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/d0e6b3ca86dc90cd78057c0df333d880985d6684..04281f327495d65a89aaae133be469dbef7c5638:/Writeback.v?ds=inline diff --git a/Writeback.v b/Writeback.v index b0e69cf..d0d4304 100644 --- a/Writeback.v +++ b/Writeback.v @@ -9,6 +9,7 @@ module Writeback( input [31:0] cpsr, input [31:0] spsr, + input cpsrup, output reg regfile_write, output reg [3:0] regfile_write_reg, @@ -23,13 +24,13 @@ module Writeback( reg [31:0] last_outcpsr = 0, last_outspsr = 0; always @(*) - if (inbubble) + if (inbubble || !cpsrup) outcpsr = last_outcpsr; else outcpsr = cpsr; always @(*) - if (inbubble) + if (inbubble || !cpsrup) outspsr = last_outspsr; else outspsr = spsr;