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.
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.
What kind of material you are looking for? If you already purchased Spartan-3e FPGA Board you can download related documents in the Tutorial and How to articles page of FPGA board.