Forum Discussion
Altera_Forum
Honored Contributor
13 years agoWait statement error!!!
when i am using the following code
clk_process: process begin clk<='0' wait for 10 ns;---ERROR COMING HERE clk<='1' wait for 10ns; end process ERROR IS : WAIT SHOULD COME WITH UNTIL CLAUSE......6 Replies
- Altera_Forum
Honored Contributor
One question: are trying to synthetize this code?
- Altera_Forum
Honored Contributor
nope for test bench...
- Altera_Forum
Honored Contributor
So, try to do this,
clk_process: process begin clk<=NOT clk; wait for 10ns; end process; I think this is the better way to generate a clock signal for test bench. Good luck!! - Altera_Forum
Honored Contributor
You forgot semi colons in your code.
How about posting the real code, and the real errors next time. And Shikata: your code would not work if you forgot to initialise clk - the OP's code will. - Altera_Forum
Honored Contributor
Thanks for the tip.
- Altera_Forum
Honored Contributor
Thaks for the tip!!