Simulating the circuit
Now we need to simulate the MUX circuit and observe how the selection input determines the output.
-
Go to the Simulate tab and select Dynamic Simulation.
-
The Verilog code will load automatically.
-
Click Run to execute the simulation:
-
Use the interactive menu to change the input values (D0, D1, and S).
-
Observe the output (Y) to verify the behavior of the MUX
You can experiment with different combinations of inputs to fully understand the MUX functionality.