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.
Challenge: You run the show - FPGA Tutorial
From the course: Learning Verilog for FPGA Development
Challenge: You run the show
(upbeat music) - Once again let's see how much you've learned with a challenge, this time you run the show, your task is to write a very Verilog Testbench module, that tests a module named 'triple.' This is the declaration line for that module. It calculates the triple of the number in its input a. The triple is found in its output named result. You must display the results for input values 0, 1, 3, 5, 10, and 15. Please show the results in both the Tcl Console, and the waveform viewer. For your implementation, keep in mind: You may use delays to keep the input values stable for some time. You must use at least one initial statement, with a begin end block. To display the value in the Tcl Console, you must use either the monitor task or the display task. Your simulation must end at some point. So, don't forget the stop task. And please use the provided Vivado simulation project to write and test your code.…
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)
-
-
-