- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Asslam o ALukum
Hey can any one help me, i added an delay but its not running on FPGA... please anyone help me out how to add delay that is executble on FPGA board ThanksLink Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
To insert a delay in verilog you have to put # number at the beginnin of the line you want to delay by "number". the delay is "number" multiplied by time units you have declared at the beginnin of the module. best regards phate.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding the# <delay> will give you a delay in simulation, not in hardware.
Depending on which FPGA you're using, you'll have IO Delay Buffers in the I/O Buffer. You should be able to find details by searching the relevant Device Handbook for "delay". The delay values should be defined in the Device Handbook's Datasheet section. Regards, Mike- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@phate
Thanks Alot for replying but i add this for simulation but i want to add the delay in Hardware....so should i break the Clock or what i am just confuse in this :(- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Mike:
Thanks For replying I am using Altera de2 board cyclone II ... hmm yes i did that for simulation but want to add in hardware, hmm relevant stuff i`ll check the datasheet- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK. Just search the Cyclone II Device Handbook for "IOE Programmable Delay"
-m- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@m
hmmm ok i`ll try then will let you know thanks alot- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Uzairsaeed702
I think that what is being asked for here is how to add delay in actual hardware in the FPGA. While one could certainly look at the IO Elements and send signals into and out of the FPGA and get a certain small amount of incremental delay - I do not think that is what is really being looked for. If I understand what you are looking for correctly - here is what you will need to do in order to get a "certain amount ofdelay" on a signal that will "move" through the FPGA. You will need a clocked signal that will get registered into a Flip Flop in the FPGA - the "delay" will be based on the clock rate - let's say that the clock rate is once every 100 ns, then if you want to delay the signal 500 ns, you would simply stack up the signal through 5 Flip Flops (registers) in order to delay the incoming signal by 500 ns. This a very crude way to do it and I will leave it to others to teach you a better method for latching a signal and then 'counting' a certain number of clocks before allowing the signal to propagate to the next register (Flip flop) or output. Is this what you are asking how to do? After you reply - I am certain others will be able to advance your desing effort further. Avatar- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I misunderstood your question.
So, what about using dsp builder and Matlab to generate your required hardware delay block ? Additional question to guru(s): could I use an upcounter to delay a signal?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page