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.
A simple simulation - FPGA Tutorial
From the course: Learning Verilog for FPGA Development
A simple simulation
- [Instructor] Let me show you two simulations with the multiplexer and demultiplexer modules we saw earlier. Here's what we'll do in the Multiplexer Test Bench. I'll enter two signals with different frequencies in its inputs. Input zero will have a lower frequency and input one will have a higher frequency. When a zero enters the selection line, the lower frequency signal will appear in the output. And when a one enters the selection line, the higher frequency signal will be at the output. Now, for the Demultiplexer Test Bench, I'll feed an oscillating signal to its input and that signal will go to the output in its selection lines with the rest in a constant zero. So this is how it will behave for the selection input at zero, one, two and three. So here's the project for this simulation. The source files for the multiplexer and the demultiplexer are already included in this project but we'll concentrate on the test…
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)
-
-
-