writeback: Eliminate unintentional inferred latch
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 9 Aug 2022 09:48:30 +0000 (19:48 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 9 Aug 2022 09:48:30 +0000 (19:48 +1000)
commitfc58559ee82178ba3fa1a82530bd381fa9eb55ba
tree30338110b3d2147bb6c68d1401f985fd516b1817
parent2562053af3d32e3ccabcac07980127c7c66fa7fb
writeback: Eliminate unintentional inferred latch

By not assigning to interrupt_out.srr1 in some circumstances, the
writeback_1 process creates an inferred latch, which is not
desirable.  Eliminate it by restructuring the code so
interrupt_out.srr1 is always set, to zeroes if nothing else.

Fixes: bc4d02cb0dcc ("Start removing SPRs from register file", 2022-07-12)
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
writeback.vhdl