If you are interested in learning Verilog, there are already many tutorials online. Asic-world’s tutorial is perhaps the most complete on-line Verilog tutorial I know of. Nandland has an exceptional beginner’s tutorial as well. FPGA 4 Fun’s web site doesn’t really start at the bare basics, although it discusses how to build several basic peripherals. None of these tutorials, however, couple together all the tools needed to do design in one place.
The digital design student should be introduced immediately not only to the HDL language, but also to the tools necessary to debug his code. This includes not only Verilog (or SystemVerilog), but also a simulator (we’ll use Verilator), waveform discumentation (wavedrom or even tikztiming), waveform display (gtkwave), and (my favorite) Formal Verification using SymbiYosys.
This beginners Verilog tutorial attempts therefore to fill some of the missing piecees in this void. My goal is to take a beginner from knowing C and a little C++, all the way to a serial port example, such as the ones in this repository. On second thought, I may go further and discuss getting a first debugging bus up and running, perhaps even to motivating AutoFPGA. Once you get that far, though, the rest of the ZipCPU blog should start to make sense.
I’m also hoping to keep this tutorial fairly hardware generic. Hardware specific topics will be placed as bonus chapters between the lesson chapters.
- Wires, and combinatorial logic
- Registers and blinky
- Finite state machines
- Building a Wishbone Slave
- Building hello world, using a serial port transmitter
- (Not yet written:) Transmitting 32-bit data over the serial port
- (Not yet written:) Buttons: 2FF synchronizers, and debouncing
- (Not yet written:) Building the serial port receiver. Potential examples to be discussed include:
- (Not yet written:) Using a FIFO with this serial port. Potential examples to be discussed include:
- (Not yet written:) Network enabling your serial port
Watch this page! If the Lord wills, there will be more to come!
Likewise, if you would like to help fund this effort, please consider becoming a Patron of the blog, and then telling me your thoughts on how this project should move forward.