Forum Discussion
sgulh
New Contributor
7 years agopls provide me verilog code for led rotate on fpga
i have de 2 115 fpga i need led rotate verilog code
AnandRaj_S_Intel
Regular Contributor
7 years agoHi,
You can achieve it with simple ring counter and delay logic.
For more information refer below logic or you can google it.
//To create the frequencies needed:
// Input clock is 25 kHz, chosen arbitrarily.
// Formula is: (25 kHz / 100 Hz * 50% duty cycle)
// So for 100 Hz: 25,000 / 100 * 0.5 = 125
//operate the below logic from requried clock
if(clr==1)
q<=4′b1000;
else begin
q[3]<=q[0];
q[2]<=q[3];
q[1]<=q[2];
q[0]<=q[1];
endLet me know if this has helped resolve the issue you are facing or if you need any further assistance.
Best Regards,
Anand Raj Shankar
(This message was posted on behalf of Intel Corporation)