Completed the 2nd tutorial from the same YouTube channel in Verilog. There is a link to the video below. I am starting to like translating from VHDL to Verilog; it’s a nice little puzzle sometimes. I think that I’m just going to post all of my code because I know how frustrating it can be when people describe the things they’ve done but don’t show you how to do it.
There are three modules here: the first decodes an integer value to display on a seven-segment display, the second splits a large number into its individual digits, and the third is the main module that creates the counter and uses instances of the other modules. Add all of these files to the project and use the main module as the top-level entity.
I’ve worked with the DE2 before, but it has been a while. I just realized that I don’t know what voice I should be using to write these posts; are other people going to read this? I don’t know.
I want to build a hardware project on the DE2, but not one that just drops a prebuilt NIOS II system on the board and I connect the parts in QSYS. That was fun and I did enjoy programming in both C and Verilog, combining the two and interfacing with my custom hardware. This time I want to go deeper; I’ll learn the basics again and then probably choose a cpu to describe in Verilog and see if I can get a basic computer up and running.
How to get Quartus II to see the DE2 board in VirtualBox.
- Connect the DE2 USB Blaster.
- Close VirtualBox.
- Settings -> USB, Enable USB Controller
- Choose USB 2.0
- Click the plus icon to add the USB Blaster.
- Save changes.
- Start VirtualBox.