Lab 4
Lab 4
LAB # 04
DIGITAL LOGIC CIRCUIT MODELING AND SIMULATION WITH
MULTISIM
Objective
To model and simulate digital logic circuits in Multisim.
Requirement
Multisim Software
Theory
Multisim is a schematic capture and simulation program for analog, digital and mixed analog/digital
circuits, and is one application program of the National Instruments “Circuit Design Suite”, which
also includes printed circuit board design tools and an interface to the ELVIS breadboarding
platform.
The basic steps in modeling and analysis of a digital logic circuit are:
1. Open Multisim and create a “design”.
2. Draw a schematic diagram of the circuit (components and interconnections).
3. Define digital test patterns to be applied to the circuit inputs to stimulate the circuit and
connect signal sources to the inputs to produce these patterns.
4. Connect the circuit outputs to one or more indicators to display the response of the circuit
to the test patterns.
5. Run the simulation and examine the results, copying and pasting Multisim windows into
lab reports and other documents as needed.
6. Save the design.
This creates a blank design called “Design1”, as illustrated in Figure 1. Save the file with the desired
design name via menu bar File>Save As to use the standard Windows Save dialog. Navigate to the
directory in which you want to save your design, enter the desired file name, and click the Save
button. The default file extension for Multisim 11.0 design files is .ms11.
Placing Components
Wires are drawn between component pins to interconnect them. Moving the cursor over a component
pin changes the pointer to a crosshair, at which time you may click to initiate a wire from that pin.
This causes a wire to appear, connected to the pin and the cursor. Move the cursor to the
corresponding pin of the second component (the wire follows the cursor) and click to terminate the
wire on that pin. If you do not like the path selected for the wire, you may click at a point on the
drawing sheet to fix the wire to that point and then you can move the cursor to continue the wire
from that point. You may also initiate or terminate a wire by clicking in the middle of a wire segment,
creating a “junction” at that point. This is necessary when a wire is to be fanned out to more than
one component input.
Step 3. Generating test input patterns.
To drive circuit simulations, Multisim provides several types of “sources” to generate and apply
patterns of logic values to digital circuit inputs. Sources are placed on the schematic sheet and
connected to circuit inputs in the same way as circuit components, selecting them from the
“Digital_Sources” family of the “Sources” group in the component browser. Note that there is a
Place Source shortcut icon in the tool bar.
There are three basic digital sources:
1. DIGITAL_CONSTANT – this is a box with a constant logic 1 or 0 output, and would be
used where the logic values is not to be changed during simulation. To change the output
value, right click on the box, select Properties, select the desired value on the Value tab,
and click the OK button.
2. INTERACTIVE_DIGITAL_CONSTANT – this is a clickable box that can be connected
to a circuit input. Clicking on the box toggles its output between 0 and 1. This can be used
to interactively change a circuit input during simulation.
3. DIGITAL_CLOCK – this is a box that produces a repeating pulse train (square
waveform), oscillating between 0 and 1 at a specified frequency. To set the frequency and
duty cycle, right click on the box, select Properties, select the desired frequency and duty
cycle value on the Value tab, and click the OK button.
To facilitate studying the digital circuit output(s), Multisim provides a variety of “indicators”. For
digital simulation, the most useful are digital “probes”, hex displays, and the Logic Analyzer
instrument. The family of the Indicators group includes a generic PROBE_DIG and several
PROBE_DIG_color indicators (color = BLUE, GREEN, ORANGE, RED, YELLOW).
A simulation is initiated by pressing the Run (green arrow) button in the toolbar or via the menu
bar via Simulate>Run. Alternatively, simulation can be initiated from a Word Generator by
pressing the Cycle, Burst, or Step buttons.
The simplest way to save a design is to click the Save icon in the Design Toolbar on the left side of
the window, directly above the design name. Alternatively, you may use the standard menu bar
File>Save. You should save all designs in a special course directory.
Procedure
Open Multisim and get familiar with the environment so that you can model and simulate a
digital logic circuit using it. Please keep in mind the given tasks are just for your learning
so try to perform them on your own and avoid copying labs.
Task #1: Using NOR gate implement NOT, OR, AND, XOR and XNOR gates in Multisim.
Verify the truth tables for each gate. Attach the circuit diagrams for each gate. Make sure to
connect the input and the indicator to complete the simulation.