writeback: Eliminate inferred latch
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 15 Oct 2019 20:56:15 +0000 (07:56 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 15 Oct 2019 20:56:15 +0000 (07:56 +1100)
This initializes data_in to all zeroes so that it doesn't become a
set of 64 inferred latches.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
writeback.vhdl

index 1879a5e44f0c2304211346e7557eaf728b154bb1..042ad599eacd755c34dff44af53722cc4df63f6a 100644 (file)
@@ -95,6 +95,7 @@ begin
         partial_write <= '0';
         sign_extend <= '0';
         second_word <= '0';
+        data_in <= (others => '0');
 
         if e_in.write_enable = '1' then
             w_out.write_reg <= e_in.write_reg;