EGEE 281: VHDL & Digital System Design Fall 2020
EGEE 281: VHDL & Digital System Design Fall 2020
Student Name:
Lab Objectives: The main purpose of this lab project is to help students learn how to
construct and simulate various digital circuits in MULTISIM.
Evaluation: Grade for lab will be based on 1) In-lab activities, and 2) Lab report.
Lab Report: Lab report based on this instruction sheet will be collected on Wednesday,
Sept. 9th. The completed lab report shall be emailed to [email protected]. Name
your lab report as EE281_Lab1_YourName.doc, e.g., EE281_Lab1_DoeJohn.doc.
MultiSIM is an electronic schematic capture and simulation program. Multisim is widely used
in academia and industry for circuit education, electronic schematic design and SPICE simulation. To
start a Multisim project, launch the Multisim program from Windows; then click on the File
menu, and select New Design submenu (Or press Ctrl-N). After this, an empty schematic
sheet will pop up as shown below,
To place a component on the work sheet, you can click on Place menu, then select
Component submenu. (Or press Ctrl-W). When this is done, the component selection
window will pop up as shown below,
a) For example, to add a resistor, select “Master Database” from the Database dropdown
list; then “Basic” from the Group dropdown list; after that “RESISTOR” from the family;
and lastly select the resistor value, e.g. 1K from the Component box. The following
You can also flip the resistors by right clicking the resistor and either “Flip Vertical”, or
“90 Clockwise”, or “90 CounterCW”.
b) For another example, to add power sources, select “Master Database” from the Database
dropdown list; then “Sources” from the Group dropdown list; after that
“POWER_SOURCES” from the family; and lastly select the corresponding power
source, for example
The value as well as the name of the power source can be modified through double
clicking the power source, and change the values in the “Value”, and name in the “Label”
Tab.
c) The right bar of the Multisim main window contains various testing instruments. For
example, to add the oscilloscope for testing the AC circuit, click on the “oscilloscope”
icon from the right bar of the Multisim main window that contains various
testing instruments. The completed oscilloscope will look like this . You
can double click the Oscilloscope icon and change the parameters of the oscilloscope
simulation.
Q1) Decoder
A decoder is a combinational circuit that decodes binary input to decimal information. For
example, the following shows an example circuit for a 2-4 decoder implemented based on the
use of 2-input NAND Gates (74LS00).
Note: Use Single Pole Double Thro (SPDT) switch and flip horizontally.
Implement this circuit in Multisim and then test the circuit with different switch values.
Please show below the simulation result for switch values/inputs at (BA = 10). In order
to do this, you may simply use the Print-Screen key on the keyboard to copy the
simulation result into clipboard and then paste it down below.
Simulated Output
Q2) Encoder
An encoder is a combinational circuit that encodes decimal information to binary outputs. For
example, the following shows the circuit design for an active-low 8-3 encoder based on the
use of 4-input NAND Gates (74LS20).
Figure 2: An 8-3 Encoder
Implement this circuit in Multisim and then test the circuit by enabling each decimal input
respectively.
Please show below the simulation result when decimal input #5 is enabled (i.e. input #5
is low; and all other inputs are high).
Simulation
Q3) Full-Adder
A full-adder has three inputs and two outputs. A and B are the two binary bits to be added
and C-in is the carry from the previous lower bit. S is the sum bit and C-out is the carry bit to
the next higher bit. The Boolean expressions for S and Cout can be expressed as:
S= A B Cin + A B C in + A B C in + ABC in
¿ A B C in∗A B C in∗A B Cin∗ABC in
Based on the logic given above, design and implement a full-adder in Multisim using
Inverters (74LS04), 3-input NAND gates (74LS10), and 4-input NAND gates (74LS20).
Then, test the circuit using different combination of inputs.
Please show below the simulation result when inputs are A = 0; B = 1; and C_in = 1.
Simulation
PART C) Sequential Circuit
A 4-bit decade counter is one type of sequential circuit that will count through each of the
ten states as driven by a clock. The following shows the state transition diagram for a 4-
bit decade counter using Excess-3 code.
Based on this state transition diagram, 4 T Flip Flops can be used to implement the circuit
as their inputs given by,
An example circuit based on this was created as shown below. Please notice here J-K flip
flops (74LS73) are used here since T flip flops can be constructed by shorting the J and K
inputs on a J-K flip flop.
Figure 3: A 4-bit Decade Counter using Excess-3 Code
Simulation
Logic Analyzer