Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- can someone help me how to design coding that catch number 8 and it will increment the counter..i've done the coding but cannot catch number 8..it will catch random number.... --- Quote End --- Why don't you post what you've tried so far. In VHDL the code would look something like;
constant WIDTH : integer := 4;
signal match : std_logic;
signal match_value : std_logic_vector(WIDTH-1 downto 0) := X"8";
...
match <= '1' when (count = match_value) else '0';
Cheers, Dave