IckyT2012
Newbie level 6
I'm attempting to write a piece of code whose essential function is to count down toward zero upon receipt of an external pseudo "clock" signal. I'm receiving the error:
Error (10398 ) : VHDL Process Statement error: Process Statement must contain only one Wait Statement
I cannot figure out what Quartus is interpreting as the second wait statement. I've simplified the code down to just the section giving me trouble. How can I modify this code to remove the error but retain identical function?
PROCESS
BEGIN
WHILE Xcount > "0000000000" LOOP
WAIT UNTIL XHallA = '1';
Xcount <= Xcount - 1;
END LOOP;
END PROCESS;
--Thanks in advance
Error (10398 ) : VHDL Process Statement error: Process Statement must contain only one Wait Statement
I cannot figure out what Quartus is interpreting as the second wait statement. I've simplified the code down to just the section giving me trouble. How can I modify this code to remove the error but retain identical function?
PROCESS
BEGIN
WHILE Xcount > "0000000000" LOOP
WAIT UNTIL XHallA = '1';
Xcount <= Xcount - 1;
END LOOP;
END PROCESS;
--Thanks in advance