More second write port removal
authorAnton Blanchard <anton@linux.ibm.com>
Mon, 9 Sep 2019 06:00:49 +0000 (16:00 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Mon, 9 Sep 2019 06:00:49 +0000 (16:00 +1000)
I missed the register file updates for the second write port
removal.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
common.vhdl
register_file.vhdl

index 29c37bef18150c0e408cf5025063a86b995048b5..c12f8b1c9465b5da96524160e84fe41dfd096f1d 100644 (file)
@@ -170,11 +170,8 @@ package common is
                write_reg : std_ulogic_vector(4 downto 0);
                write_data : std_ulogic_vector(63 downto 0);
                write_enable : std_ulogic;
-               write_reg2 : std_ulogic_vector(4 downto 0);
-               write_data2 : std_ulogic_vector(63 downto 0);
-               write_enable2 : std_ulogic;
        end record;
-       constant WritebackToRegisterFileInit : WritebackToRegisterFileType := (write_enable => '0', write_enable2 => '0', others => (others => '0'));
+       constant WritebackToRegisterFileInit : WritebackToRegisterFileType := (write_enable => '0', others => (others => '0'));
 
        type WritebackToCrFileType is record
                write_cr_enable : std_ulogic;
index 7a6b513d4dd63bde48245ac162fb4a41b18cdae1..9995374251bf7a5d16f424b73ab5ba282852dd3f 100644 (file)
@@ -31,11 +31,6 @@ begin
                                report "Writing GPR " & to_hstring(w_in.write_reg) & " " & to_hstring(w_in.write_data);
                                registers(to_integer(unsigned(w_in.write_reg))) <= w_in.write_data;
                        end if;
-                       if w_in.write_enable2 = '1' then
-                               assert not(is_x(w_in.write_data2)) and not(is_x(w_in.write_reg2)) severity failure;
-                               report "Writing GPR " & to_hstring(w_in.write_reg2) & " " & to_hstring(w_in.write_data2);
-                               registers(to_integer(unsigned(w_in.write_reg2))) <= w_in.write_data2;
-                       end if;
                end if;
        end process register_write_0;