tutorial 2 (modules and decoders)

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.

https://github.com/christopherhays/my-modules

Continue reading

Advertisements

tutorial 1 (flashing LEDs)

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.

https://github.com/christopherhays/my-modules

Continue reading