Exercise 3

Back Up Next

Home
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5

Spice Simulation for Combinational Circuits

In this exercise, digital clock signals will be setup as digital inputs for simulating a
combinational logic circuits that consist of logic gate circuitries.

Start with <Ctrl G> to get a part.
Knowing the logic Symbols of the different logic gates, use the mouse to
scroll down the different parts at different libraries until you get to the logic
gates: NAND, NOR, AND, OR, and NOT. Designate the part the 74xxx
part numbers. Place and close the part numbers needed to complete the
logic circuit shown at the end of the following demo. Designate the inputs
and outputs by using bubble parts as described in Exercise # 2.

seq7.gif (247266 bytes)

 

In order to simulate digital circuits, digital clock signals are required at the
inputs. At PSpice software, this can be obtained as follows:
Type <Ctrl G> to get a part. Enter the part name: digclock
Connect the digiclock part at every input of the circuit.
For the four digital input signals shown in the animation given above (and
also given later in this Exercise), consider the digital waveforms:

graph.gif (3019 bytes)

These digital inputs were chosen to provide different digital inputs at different
times. For example, in this sequence, you start with 1111, followed by 1110,
1101, etc.

Set the delay, on, and off times for the different input waveforms at the
attribute window of every digiclock part. The delay time is the time when
the digital clock starts, the ON time is the time of logic high, and the OFF
time is the time of the logic low for the signal. Again, to get to the attribute
window of a digital clock signal, select the digiclock part by clicking on it
with the right button mouse (RBM) and then double click on it by the RBM.
Enter the delay, on, and off times for every waveform. The following is a
demo that shows this sequence.

seq8.gif (151800 bytes)

seq9.gif (222110 bytes)

Set up the transient parameters similar to that of Exercise #2. Choose the
stop time to be five times the period of the lowest frequency among the
different inputs. This will allow you to display five cycles for the lowest
frequency waveform and more than five cycles for the others. This is
illustrated as:

seq10.gif (146923 bytes)

Run the simulation by hitting <F11>. This will run the Probe to get the input
and output waveforms. Use trace, add, plot, add, trace, add, etc to display
the four inputs and one output of the circuit. This is shown below:

seq11.gif (238735 bytes)

 

 

Back to EE196 Homepage
This page was last modified August 12, 1998
Please contact John Schild (jhs@engr.iupui.edu) concerning this site.