- removed timer reset dring RST_I

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@379 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-03-10 10:36:29 +00:00
parent bd19ea587b
commit f643864e54
+4 -12
View File
@@ -160,10 +160,7 @@ tick_usec_timer:
begin
if rising_edge(CLK_I) then
cnt_usec_en <= '0';
if RST_I = '1' then
tick_usec <= 0;
cnt_usec_en <= '0';
elsif tick_usec = tick_usec_t'high then
if tick_usec >= tick_usec_t'high then
tick_usec <= 0;
cnt_usec_en <= '1';
else
@@ -177,13 +174,10 @@ cnt_usec_timer:
begin
if rising_edge(CLK_I) then
cnt_sec_en <= '0';
if RST_I = '1' then
cnt_usec <= (others => '0');
cnt_sec_en <= '0';
elsif cnt_usec_we = '1' then
if cnt_usec_we = '1' then
cnt_usec <= cnt_usec_preset;
elsif cnt_usec_en = '1' then
if cnt_usec = to_unsigned(1E6 - 1, 32) then
if cnt_usec >= to_unsigned(1E6 - 1, 32) then
cnt_usec <= (others => '0');
cnt_sec_en <= '1';
else
@@ -197,9 +191,7 @@ cnt_sec_timer:
process(CLK_I)
begin
if rising_edge(CLK_I) then
if RST_I = '1' then
cnt_sec <= (others => '0');
elsif cnt_sec_we = '1' then
if cnt_sec_we = '1' then
cnt_sec <= cnt_sec_preset;
elsif cnt_sec_en = '1' then
cnt_sec <= cnt_sec + 1;