Forum Discussion
Altera_Forum
Honored Contributor
14 years agoFitter problem
Hi All, I have embarked on a project to develop a stopwatch which outputs seconds and minutes as a binary value. I am using two separate 8-bit LED boards connected to the MAX7000S ...
Altera_Forum
Honored Contributor
14 years agoI am incredibly sorry to keep asking but I have again managed to hit a brick wall again. I am trying to develop a simple binary stopwatch using vhdl on quartus 2. I hope to download it into a CPLD.
I would like to use 2 inputs, 1 input resets the count and the other pauses the program. I think I can do the first by using an if conditional statement in my process: button: in std_logic vector(1 downto 0); This line will be in my entity – In my process if (button1= “01”) time<=”00000000” end if; I am stuck on how to make the program pause ( button = “10”) and retain all values so that it can resume after an event (button “00”) . I can always prioritise for button”11”later. I have been looking on the web and apparently I can not use a wait statement inside a process with a sensitivity list which is what I have. Could someone please offer me some advice. PS: CPLD,s are annoying I have had so much grief trying to route (fitter problems).