Help with Verilog Code

OP #7494383
Rate this post
• ▲ useful
▼ not useful

I am working on a DE10_LITE Terasic on Intel Quartus Prime. I need some help regarding my code. What should it do specifically is it should add from switches when I press a button. Switches are like 2^switchnumber For example, I have switch[0] - it adds me to the number shown on board 1 (2^0) I have multiple switches on, switch[2], switch[3] - it shows on board now 4+8=12, but with the previous one, 13. Okay I have made my code, but it does not seem to work. I have added the full zip in Quartus. The files .v are also in there so you can check them without having to install quartus.

Thank you for your help.

Attached files:

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.