# How to configure the delay in FPGA

18 Jan 14

Sir,

I Had the pantech FPGA (xc3s200)kit.i have doubt in the delay program.how you calculate the delay as 5000000.so please explain the calculation method.

20 Jan 14

Hello Karthikeyan,
welcome to pantech Solutions forum. Your question arise from the How to Article section below.

The Spartan-6 FPGA Board fed with 50MHz crystal oscillator to provide clock input to FPGA.
50MHz clock generate a delay of 20 nano sec. To ON/OFF LED after every 1 sec, the following formula should be applied.

20 ns = FPGA Clock
1 sec = Output Delay

20 ns = 1 sec / 50MHz
20 x 10^-9 = 1 sec / 50 x 10^6

20 x 10^-9 x 50 x 10^6 = 1 sec

FPGA Clock x 50 x 10^6 = Output delay

From the above equation, To generate 1 sec delay we need to multiply the FPGA clock with 50000000 using counter. when counter reach 50000000 delay led value get toggeled.

Regards,
Shahul

27 Jan 14

I want spatran 3E FPGA materiel with images.please sent for my project
thank you.........

27 Jan 14