From the course: Learning Verilog for FPGA Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

A simple simulation

A simple simulation - FPGA Tutorial

From the course: Learning Verilog for FPGA Development

Start my 1-month free trial

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…

Contents