Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

# - Time Delay

Altera_Forum
Honored Contributor II
958 Views

So i understand the# is used as a delay, however 

 

-What clock does it use as reference to delay? 

-Is this only for simulation? Does it have no effect on an actual FPGA?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
207 Views

It is only for simulation indeed. 

 

No effect on real design. 

 

Use it in a procedural block of a testbench. It will delay one instruction from the subsequent. As a consequence there's no 'reference' clock. The delay is from one instrction to the following.
0 Kudos
Altera_Forum
Honored Contributor II
207 Views

If you put 

 

`timescale 1 ns / 100 psat the start of your test bench file, the period defined by the# delay is then in nanoseconds. i.e.# 100 is 100ns.
0 Kudos
Altera_Forum
Honored Contributor II
207 Views
0 Kudos
Reply