display: ein paar fixes... aber es passt trotzdem noch nicht
[hwmod.git] / src / history.vhd
index 2f3c2dd0334bd8986e53fa2464c846b673d77859..cd6dbcda6e6f2fc7e3a7a79b26256c56ed999e2f 100644 (file)
@@ -166,7 +166,9 @@ begin
                                wr_next <= '1';
                                address_next <= '0' & std_logic_vector(unsigned(s_cnt_int) - 1);
                                data_in_next <= (others => '0');
-                               s_cnt_next <= std_logic_vector(unsigned(s_cnt_int) - 1);
+                               if unsigned(s_cnt_int) /= 0 then
+                                       s_cnt_next <= std_logic_vector(unsigned(s_cnt_int) - 1);
+                               end if;
                        when S_S_FIN =>
                                finished_next <= '1';
                                s_cnt_next <= (0 => '1', others => '0');