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.
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:
- What is an FPGA?
- Toolchain Setup
- Getting Started with Verilog
- Clocks and Procedural Assignments
- Finite State Machine (FSM)
- Verilog Modules and Parameters
- Verilog Testbenches and Simulation
- Memory and Block RAM
- Phase-Locked Loop (PLL) and Glitches
- Metastability and FIFO
- RISC-V Softcore Processor
- 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.