From 858b1e7930a4f0f211310684481dfab8c86c8261 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 16 Oct 2019 12:05:36 +1100 Subject: [PATCH] writeback: Remove a mux leg on data_in Initialize to 0 forces the mux to have an extra leg fed with zeros. Instead initialize data_in to one of the mux inputs Signed-off-by: Benjamin Herrenschmidt --- writeback.vhdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writeback.vhdl b/writeback.vhdl index 042ad59..ab7b6c7 100644 --- a/writeback.vhdl +++ b/writeback.vhdl @@ -95,7 +95,7 @@ begin partial_write <= '0'; sign_extend <= '0'; second_word <= '0'; - data_in <= (others => '0'); + data_in <= e_in.write_data; if e_in.write_enable = '1' then w_out.write_reg <= e_in.write_reg; -- 2.30.2