From the course: Learning Verilog for FPGA Development
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Simulation basics - FPGA Tutorial
From the course: Learning Verilog for FPGA Development
Simulation basics
- [Instructor] Now, it's time to learn how to create your own simulations. So first, here are some quick details about digital circuit simulation in Verilog. The purpose of a simulation is to verify the behavior of your circuit or modules, and it's one of the first automated means of debugging in the development process. A simulation requires a so-called test bench module, which is a regular Verilog module where you get to run the show. Inside a test bench module, the module or device under test, DUT for short, must be instantiated at least once. You must provide a sequence of input signals, and the simulator takes care of the rest, showing you the results in several ways, including a waveform viewer, step-by-step simulation, and a console interface.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Simulation basics53s
-
(Locked)
Test bench modules2m 30s
-
(Locked)
Stimulus variables1m 1s
-
(Locked)
Clock generation58s
-
(Locked)
Initial and always blocks3m 25s
-
(Locked)
A simple simulation4m 6s
-
(Locked)
Timing directives2m 48s
-
(Locked)
Display tasks2m 54s
-
(Locked)
Challenge: You run the show1m 56s
-
(Locked)
Solution: You run the show1m 38s
-
(Locked)
-
-
-