1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-12 06:45:26 +00:00

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 <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt
2019-10-16 12:05:36 +11:00
parent 4433118c91
commit 858b1e7930

View File

@@ -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;