projects
/
hwmod.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
display: ein paar fixes... aber es passt trotzdem noch nicht
[hwmod.git]
/
src
/
history.vhd
diff --git
a/src/history.vhd
b/src/history.vhd
index 2f3c2dd0334bd8986e53fa2464c846b673d77859..cd6dbcda6e6f2fc7e3a7a79b26256c56ed999e2f 100644
(file)
--- a/
src/history.vhd
+++ b/
src/history.vhd
@@
-166,7
+166,9
@@
begin
wr_next <= '1';
address_next <= '0' & std_logic_vector(unsigned(s_cnt_int) - 1);
data_in_next <= (others => '0');
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');
when S_S_FIN =>
finished_next <= '1';
s_cnt_next <= (0 => '1', others => '0');