Reformat register_file
authorAnton Blanchard <anton@linux.ibm.com>
Sun, 21 Mar 2021 23:06:03 +0000 (10:06 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sun, 21 Mar 2021 23:14:59 +0000 (10:14 +1100)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
register_file.vhdl

index 32c84901e09a1bad8023a37859011342b113a3a1..b5e7246ac0bcc75f95c09c3f5a5cca2798c39668 100644 (file)
@@ -134,21 +134,21 @@ begin
 
     -- Dump registers if core terminates
     sim_dump_test: if SIM generate
-       dump_registers: process(all)
-       begin
-           if sim_dump = '1' then
-               loop_0: for i in 0 to 31 loop
-                   report "GPR" & integer'image(i) & " " & to_hstring(registers(i));
-               end loop loop_0;
-
-               report "LR " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_LR)))));
-               report "CTR " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_CTR)))));
-               report "XER " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_XER)))));
-               sim_dump_done <= '1';
-           else
-               sim_dump_done <= '0';
-           end if;
-       end process;
+        dump_registers: process(all)
+        begin
+            if sim_dump = '1' then
+                loop_0: for i in 0 to 31 loop
+                    report "GPR" & integer'image(i) & " " & to_hstring(registers(i));
+                end loop loop_0;
+
+                report "LR " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_LR)))));
+                report "CTR " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_CTR)))));
+                report "XER " & to_hstring(registers(to_integer(unsigned(fast_spr_num(SPR_XER)))));
+                sim_dump_done <= '1';
+            else
+                sim_dump_done <= '0';
+            end if;
+        end process;
     end generate;
 
     -- Keep GHDL synthesis happy