Altera_Forum
Honored Contributor
16 years agoabout specifying the range of a counter
Hi,
Actually this is a question about VHDL. I need a counter which is loaded with two different initial values T1 or T2 in different cases and then counts down to 0. How do I specify the range of the counter in declaration? constant T1 : integer := AA; constant T2 : integer := BB; signal cnt : integer range 0 to ??; (here I need an expression to find the larger number of AA and BB) Is it possible to do it in VHDL?