Introduction to FPGA

Welcome to the demo code and solutions section of my Introduction to FPGA course! This repository houses all of the example code and solutions that you may use as references when working through the FPGA examples.

Introduction to FPGA YouTube Series

This course is hosted on YouTube that you may take for free. All you need to do is watch the videos and complete the challenge issued at the end of each video. I highly recommend you try each challenge before peeking at the solutions here.

The first video in the series is found here: Introduction to FPGA Part 1 - What is an FPGA? | Digi-Key Electronics

Written guides that explain the solutions can be found here:

  1. What is an FPGA?
  2. Toolchain Setup
  3. Getting Started with Verilog
  4. Clocks and Procedural Assignments
  5. Finite State Machine (FSM)
  6. Verilog Modules and Parameters
  7. Verilog Testbenches and Simulation
  8. Memory and Block RAM
  9. Phase-Locked Loop (PLL) and Glitches
  10. Metastability and FIFO
  11. RISC-V Softcore Processor
  12. RISC-V Peripheral

Directory Structure

Examples and solutions are housed in dirctories that correspond to each chapter or video number. For example, if you watch "Intro to FPGA Part 3 - Verilog Gate Logic," you should refer to the directory 03-verilog-gate-logic.

In each directory, you will find example projects. Demonstrations used in the video are listed as example-* and the solution to that part's challenge is listed as solution-*.

The only exception to this is the images directory, which is where I keep images for this repository.

License

All code in this repository, unless otherwise noted, is licensed under the Zero-Clause BSD / Free Public License 1.0.0 (0BSD).

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.