Delay in VHDL code for Xilinx ML 401

Status
Not open for further replies.

macpak

Newbie level 1
Joined
Mar 20, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Hello ,
I have a problem , I try to write vhdl code and i need a delay , it means that i have to
set the signal to '0' , wait some time and then change the state to '1' . And I dont know how to make that delay. I tried to use wait statement but it doesn't work(The compiler says that synthesis doesn't support this kind of statement). I need a delay about a few microseconds. Does anybody know how to resolve it ??
 

xilinx ml401

make a counter
and load it with any number u want (according to ur clock frequency and the delay u want)
and then make it decrement
and when it reaches zero, then it means times is up and u can proceed with anything after that
 

ml401

That's correct. Use a high-speed clock and a counter.

Synthesis tools generally don't support delay statements because an FPGA usually doesn't include any predictable delay elements.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…