Forum Discussion
Altera_Forum
Honored Contributor
10 years agoVariable does not increment
I don't know why the variable clk_count does not increments, it's steel il the value 1. There is the code
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.all;
Entity TestVar Is
Port (
CLK ...
Altera_Forum
Honored Contributor
10 years agoBecause pr_stat signal only has 1 state. It increments clk_count to 1 at time 0 and then because there are no more events on pr_stat, it can never increment again.
Counters should not be in unclocked processes.