Forum Discussion
13 Replies
- Altera_Forum
Honored Contributor
How to delay what? Generally, you should consider a count-down timer.
- Altera_Forum
Honored Contributor
--- Quote Start --- How to delay what? Generally, you should consider a count-down timer. --- Quote End --- Indeed what delay? but intersting to discuss... delay type 1 : low level things like TCO, gate delays etc. delay type 2 : one or (n) clock latency of design delay type 3 : of a function output valid relevant to input delay type 4 : fractional sample delay(of a signal) others : of postings or payments ...etc. - Altera_Forum
Honored Contributor
When you are using MCU, you write code in C language. And delay function is frequently used. But when it comes to FPGA, delay time is hard to control.
By the way, are you 徐佳? A friend of mine, bornd in 1986? I'm just curious. - Altera_Forum
Honored Contributor
--- Quote Start --- Indeed what delay? but intersting to discuss... delay type 1 : low level things like TCO, gate delays etc. delay type 2 : one or (n) clock latency of design delay type 3 : of a function output valid relevant to input delay type 4 : fractional sample delay(of a signal) others : of postings or payments ...etc. --- Quote End --- Would using count down timer be the best in all these instances well in parrticular type 2? - Altera_Forum
Honored Contributor
用标志(使能)控制计数器。
标志为0,计数器开始计数xxx时间,标志置一; 标志为1,计数器清零。 Use the flag(enable flag) to control counter. When the flag is 0, the counter begin to count some long time, set the flag as the time is up. When the flag is 1, clear the counter. - Altera_Forum
Honored Contributor
Suppose this situation:
the device is MAX7000, and the inputs are trigger signal, the pulses on each trigger are random and continuous. How to implement delay 100 to 3000ns like this? - Altera_Forum
Honored Contributor
hello , i want to add delay to an output in verilog language ,
hazard is the "output signal" can i use this way ??? if ( result_ns < vt ) # 5000000 hazard = 1; else # 5000000 hazard = 0; thanks - Altera_Forum
Honored Contributor
yes, that will work in simulation.
But it does not work in hardware (FPGA). - Altera_Forum
Honored Contributor
thank you for your reply ,
But am using FPGA so do you know how can i add delay to the output ?? - Altera_Forum
Honored Contributor
It depends on your purpose.
Often, what you want to do can be achieved with a counter. Another common technique is to use shift registers to delay signals. You can also add (small, 1 to 20 ns maybe and not very accurate) propagation delays by setting min/max delays constraints in TimeQuest.