Forum Discussion
mHaire
New Contributor
1 year agoQuestion with creating LED Toggle
Hello, I am learning Verilog for the first time, and following some examples in a book. I am using the Intel Cyclone 10LP Evaluation Kit. The current example is to create a design which will toggle ...
sstrell
Super Contributor
1 year agoWhat clock signal/pin are you using? Have you made the pin assignments for the switch and LED correctly in the Quartus Pin Planner?
Also note that the clock enable on the output register is only going to be active for a single clock cycle and you're using an asynchronous switch input (the switch going low) to control when that enable signal is true, so there's no guarantee that the output register will be enabled to switch the LED output at the exact moment you flip the switch. You may want to register the switch going low as well.