Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
702 Views

Wait 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......
0 Kudos
6 Replies
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

One question: are trying to synthetize this code?

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

nope for test bench...

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

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!!
0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

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.
0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

Thanks for the tip.

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Wait statement error!!!

Thaks for the tip!!

0 Kudos