Lab1 MultisimCircuitSimulation
Lab1 MultisimCircuitSimulation
Digital Electronics
Using the Digilent Digital Electronics Board for NI ELVIS III
Lab 1: Multisim Circuit Simulation
© 2018 National Instruments
All rights reserved. Neither this resource, nor any portion of it, may be copied or reproduced in
any form or by any means without written permission of the publisher.
National Instruments respects the intellectual property of others, and we ask our readers to do
the same. This resource is protected by copyright and other intellectual property laws. Where
the software referred to in this resource may be used to reproduce software or other materials
belonging to others, you should use such software only to reproduce materials that you may
reproduce in accordance with the terms of any applicable license or other legal restriction.
All other trademarks or product names are the property of their respective owners.
Additional Disclaimers: The reader assumes all risk of use of this resource and of all information,
theories, and programs contained or described in it. This resource may contain technical
inaccuracies, typographical errors, other errors and omissions, and out-of-date information.
Neither the author nor the publisher assumes any responsibility or liability for any errors or
omissions of any kind, to update any information, or for any infringement of any patent or other
intellectual property right.
Neither the author nor the publisher makes any warranties of any kind, including without
limitation any warranty as to the sufficiency of the resource or of any information, theories, or
programs contained or described in it, and any warranty that use of any information, theories, or
programs contained or described in the resource will not infringe any patent or other intellectual
property right. THIS RESOURCE IS PROVIDED “AS IS.” ALL WARRANTIES, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY AND ALL
IMPLIEDWARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
AND NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS, ARE DISCLAIMED.
No right or license is granted by publisher or author under any patent or other intellectual
property right, expressly, or by implication or estoppel.
IN NO EVENT SHALL THE PUBLISHER OR THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, COVER, ECONOMIC, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THIS RESOURCE OR ANY INFORMATION, THEORIES, OR PROGRAMS
CONTAINED OR DESCRIBED IN IT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES, AND EVEN IF CAUSED OR CONTRIBUTED TO BY THE NEGLIGENCE OF THE
PUBLISHER, THE AUTHOR, OR OTHERS. Applicable law may not allow the exclusion or
limitation of incidental or consequential damages, so the above limitation or exclusion may not
apply to you.
2
Lab 1: Multisim Circuit Simulation
In this lab, you will learn to use simulation software to simulate the behavior of digital
circuits. Using the Multisim environment, you will be able to simulate basic and
advanced circuits to learn fundamental concepts of digital electronics without needing
physical components such as wires, probes, and chips. This offers many advantages to
the student, such as being able to experiment with circuits and components before
needing to build the circuit.
Additionally, you will learn to create digital circuits and deploy them to the NI Digital
Systems Development Board. In a later lesson, students will explore more about
Programmable Logic Devices (PLDs) and a specific type of PLD called a Filed-
Programmable Gate Array, or FPGA. FPGAs are an interesting technology that allow
circuit designers to build custom circuits on a reconfigurable piece of hardware. When a
circuit design needs to change, the designer can change the circuit in hardware and
then simply redeploy it to the FPGA instead of soldering a new circuit.
In this lab series, you will use the FPGA on the Digital Electronics Board to deploy the
circuits that you design in Multisim onto the board, allowing you to implement custom
circuits which use the peripherals on the board.
Learning Objectives
3
Required Tools and Technology
Platform: NI ELVIS III View User Manual:
http://www.ni.com/en-
us/support/model.ni-elvis-
iii.html
View Tutorials:
https://www.youtube.com/playl
ist?list=PLvcPIuVaUMIWm8zi
aSxv0gwtshBA2dh_M
Navigate to:
C:\NIFPGA\programs\Vivado2
014_4\data\xicom\cable_drive
rs\nt64\digilent
Install: install_digilent.exe
4
Expected Deliverables
Your instructor may expect you to complete a lab report. Refer to your instructor for
specific requirements or templates.
5
1.1 Theory and Background
Video Summary
6
1.2 Simulate: Circuits in Multisim
Circuit
7
Testing an AND Gate
Press the ‘A’ key on the keyboard to change the value of that input to 1.
8
Video tutorial on how to change input values:
Note: The following questions are meant to help you self-assess your understanding so
far. You can view the answer key for all “Check your Understanding” questions at the
end of the lab.
A. Yes
B. No
9
AND Gate Testing
Press the ‘A’ key again to change the top input back to 0.
Press the ‘B’ key to change the second input to 1.
A. Yes
B. No
A. Yes
B. No
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
When you’re done, stop the simulation by clicking the Stop button.
10
1.3 Exercise: Creating a New Multisim Circuit
Create a Circuit
Now create a similar circuit for yourself, following the instructions below.
Placing an OR Gate
Click the Place Misc Digital button along the top bar.
In the window that appears, select TIL from the Family and scroll down to find
OR2 in the Component box.
Click OK and place the component in the middle of the diagram.
11
Placing Circuit Components
The window will temporarily go away and then come back. When it comes back,
select Sources from the Group drop-down, then select the DIGITAL_SOURCES
family, and the INTERACTIVE_DIGITAL_CONSTANT component.
Place two INTERACTIVE_DIGITAL_CONSTANT to the left of the OR gate.
Select Indicators in the Group drop-down, then select the PROBE family, and the
PROBE_DIG_RED component.
Place this to the right of the OR gate.
Click the Close button when the window reappears.
12
Wiring a Circuit
Note: To wire the components together, click the end of the wire for one component
and then for another component. This will create a wire between them.
Wire the two Digital Constants into the OR gate and then wire the OR gate into
the Probe.
13
Configuring Digital Constants
Notice that the two constants both use the Space key to change their value. To
configure components in the diagram, double-click them to change their settings.
Testing an OR Gate
Figure 1-10 Run button
Press the ‘A’ key on the keyboard to change the value of that input to 1.
14
1-5 Does the probe turn on?
A. Yes
B. No
Press the ‘A’ key again to change the top input back to 0.
Press the ‘B’ key to change the second input to 1.
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
Press the ‘A’ key, so that both inputs are equal to 1.
Figure 1-11 Stop button
15
1.4 Exercise: Building Circuits on the Digital Electronics Board
DE Circuit
As we saw in the previous section, it’s quite easy to build and simulate digital circuits in
Multisim. In this section, we’re going to do something similar, but this time we’ll deploy a
PLD circuit to the FPGA on the Digital Electronics Board.
This circuit reads the values from Switch 0 and Switch 1 on the Digital Electronics
Board, inputs them to an OR gate, and sends the output to the LED 0 on the Digital
Electronics Board.
16
Deploying a Circuit to the Digital Electronics Board
17
Figure 1-13 Deploying a circuit to the Digital Electronics Board:
https://cf-ts.mythinkscape.com/video/009_Part_2_Deploying_a_Circuit_to_the_DSDB_Board_1.mp4
Note: A number of steps will run to compile and deploy the code. This can take a little
while.
When the code is finished deploying, change the value of Switch 0 on the Digital
Electronics Board.
A. Yes
B. No
18
1-10 Does the LED light up?
A. Yes
B. No
A. Yes
B. No
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
19
1.5 Exercise: Creating a New PLD Design
Create a new PLD design.
Select File>>New
In the window that appears, select the PLD design and click Create.
20
Figure 1-15 Creating a new PLD design:
https://cf-ts.mythinkscape.com/video/010_Part_2_Creating_a_New_PLD_Design_vs2.mp4
21
1.6 Building and Testing an OR Gate on the Digital Electronics Board
Using the switches, LEDs, and logic gates, create the following circuit.
When you’re done, deploy it to the FPGA, and observe its behavior.
Comment on the combination of inputs that turns the LED on and the general
behaviour of the gate here:
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
22
1.7 Conclusion
1-13 Was it faster to simulate a circuit in Multisim or run a circuit on the FPGA?
_____________________________________________________________________
_____________________________________________________________________
1-14 When you might you simulate a circuit in Multisim and when might you run it on the
FPGA?
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
1-16 What is the main advantage of creating a circuit in Programmable Logic Devices
(PLDs) ?
23
1-17 What is the role of the interactive digital constant in the circuit?
A. AND Gate
B. OR Gate
C. Interactive digital constant
D. Digital probe
24