Forum Discussion
Some help with code
- 2 years ago
Hi,
in principle, there's nothing against designing a pure combinational FPGA, e.g. a binary to seven-segment decoder as shown above.
By design, unregistered combinational logic has output glitches, but that's not necessarily a problem for a seven-segment decoder.
The worst point of the present design is the ineffective way to implement binary to BCD conversion. In an FPGA implementation, look-up table would be the best resource saving solution. Without block RAM, double dabble algorithm can reduce logic cell count.
Apart from ineffective implementation, I don't see a problem with code. It's producing correct output.
If it's intended as HDL learning project, I agree that synchronous design is preferred.
Glad to hear that, please let us know if any updates.
- antonto2 years ago
Occasional Contributor
Well after some research i have found out that the board that i have sometimes messes up the pins just like i said instead of 2 it gave me 4 on the bit outputs. Just wanted to share it.