0% found this document useful (0 votes)
22 views

Lab 4

This document provides instructions for modeling and simulating digital logic circuits using Multisim software. It describes the basic steps as opening Multisim, drawing a schematic diagram of the circuit using components from the library, generating test input patterns using sources, connecting outputs to indicators, running the simulation, and saving the design. The first task is to implement NOT, OR, AND, XOR and XNOR gates using only NOR gates in Multisim, and verify their truth tables by running the simulation.

Uploaded by

Arif Kamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Lab 4

This document provides instructions for modeling and simulating digital logic circuits using Multisim software. It describes the basic steps as opening Multisim, drawing a schematic diagram of the circuit using components from the library, generating test input patterns using sources, connecting outputs to indicators, running the simulation, and saving the design. The first task is to implement NOT, OR, AND, XOR and XNOR gates using only NOR gates in Multisim, and verify their truth tables by running the simulation.

Uploaded by

Arif Kamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DIGITAL LOGIC DESIGN- CS 1101L

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.

Step 1. Open Multisim and create a design

Multisim is opened from the Start Menu:


Start Menu > All Programs > National Instruments > Circuit Design Suite 11.0 > Multisim
11.0 (Version numbers may differ)

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.

Department of Computer Science


DIGITAL LOGIC DESIGN- CS 1101L
A previously created design can be opened via File>Open. In the dialog window, navigate to the
directory in which the design is stored, select the file, and click the Open button.

Figure 1. Blank design with default name “Design 1”

Step 2. Draw a schematic diagram of the circuit

Placing Components

A schematic diagram comprises one or more circuit components, interconnected by wires.


Optionally, signal “sources” may be connected to the circuit inputs, and “indicators” to the circuit
outputs. Each component is selected from the Multisim library and placed on the drawing sheet in
the Circuit Window (also called the Workspace). The Multisim library is organized into “groups” of
related components (Transistors, Diodes, Misc Digital, TTL, etc.). Each group comprises one or
more “families”, in which the components are implemented with a common technology.
To place a component on the drawing sheet, select it via the Component Browser, which is opened
via the component toolbar or the menu bar. From the menu bar, select Place>Component to open
the Component Browser window. You can also open this window by clicking on the TTL icon in
the component toolbar. The component panel in the center lists all components in the selected family.
Scroll down to and click on the desired gate, its symbol and description are displayed on the right
side of the window. Then click the OK button. The selected gate will be shown on the drawing sheet
next to the cursor; move the cursor to position the gate at the desired location, and then click to fix
the position of the component. The component can later be moved to a different location, deleted,
rotated, etc. by right clicking on the component and select the desired action. You may also select
these operations via the menu bar Edit menu.
After a component has been positioned, the component browser is redisplayed and additional
components can be placed by repeating the above actions. When the last component has been placed,

Department of Computer Science


DIGITAL LOGIC DESIGN- CS 1101L
click the Close button to close the component selection window. You may return to the component
browser at any time to add additional components.
Drawing Wires

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.

Step 4. Connect circuit outputs to indicators

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).

Step 5. Run the simulation

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.

Department of Computer Science


DIGITAL LOGIC DESIGN- CS 1101L
You may capture any window and paste it into a Word or other document for generating reports. An
individual window is captured by pressing the ALT and Print Screen keys concurrently. You may
then “paste” the captured window into a document via the editing features of that document. To
capture a circuit diagram in the main window, the simplest method is via the menu bar
Tools>Capture Screen Area. This produces a rectangle whose corners can be stretched to include
the screen area to be captured; the “copy” icon on the top left corner is pressed to copy the area,
which may then be pasted into a document.

Step 6. Save the design and close Multisim

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.

Department of Computer Science

You might also like