Starting from:

$29.99

PROJECT 1: INTRODUCTION TO LOGIC DESIGN

DIGITAL LOGIC SYSTEMS 
PROJECT 1: INTRODUCTION TO LOGIC DESIGN

This project consists of four assignments in which you must implement
several simple logical circuits.
Submission Instructions
(1) Submit exactly 1 Logisim (“.circ”) file. The file must be named
ID1 ID2 introduction.circ, with ID1 and ID2 replaced by each
partner’s 9 digit ID number.
(2) Use the provided template introduction.circ file as a template,
and implement your designs in the respective circuits. Do not move
or modify the input/output ports, the “blackbox” layout, and the
names of the circuits!
(3) Only one of the students in a pair needs to upload the submission.
Do not upload the same work twice!
(4) You may not use gates with fan-in larger than 2.
Assignment 1 - Propositional Logic
(1) Complete the circuit implication from the template. Use only and,
or, inv gates to implement it.
Input: x, y ∈ {0, 1}
Output: z ∈ {0, 1}
Functionality: z = 1 iff x → y
Check the truth-table (in the “Analyze Circuit” option) for correctness.
(2) Complete the circuit parity from the template. Use only and, or,
inv gates to implement it.
Input: x, y ∈ {0, 1}
Output: z ∈ {0, 1}
Functionality: z = x ⊕ y
Where ⊕ is the XOR operator. You may not use the XOR-gate. Check
the truth-table (in the “Analyze Circuit” option) for correctness.
(3) Complete the circuit equivalence from the template. Use only and,
or, inv gates, or circuits from the previous sections to implement it.
Input: x, y ∈ {0, 1}
Output: z ∈ {0, 1}
Functionality: z = 1 iff x = y
Check the truth-table (in the “Analyze Circuit” option) for correctness.
(4) In the circuit tautology from the template, place a circuit instance
of your parity function, and a circuit instance of Logisim’s xor
1
DLS: PROJECT 1 2
gate. Feed both the xor gate and your parity circuit with the same
inputs (x,y) and plug the outputs of both circuits into an instance of
your equivalence. Connect the output of the equivalence circuit
to the output port z. Can you observe a tautology in the truth table?
Assignment 2 - Trees
A zero-tester of an n-bit binary sting is denoted ZT(n) is defined as follows.
Input: x[n − 1 : 0] ∈ {0, 1}
n
Output: y ∈ {0, 1}
Functionality: y = 1 iff x[n − 1 : 0] = 0n
(1) Design ZT(8) based on an or-tree. You may also use inverters if
needed. Complete the circuit ztor using your design.
(2) Design ZT(8) based on an and-tree. You may also use inverters if
needed. Complete the circuit ztand using your design.
Assignment 3 - Masks
Consider the definition of Parity-Filter circuit, hereinafter denoted as
PF(n):
Input: x[n − 1 : 0] ∈ {0, 1}
n
Output: y[n − 1 : 0] ∈ {0, 1}
n
Functionality:
y[n − 1 : 0] =



x[n − 1 : 0] ; if
nP−1
i=0
x[i]
!
mod 2 = 1
0
n
; otherwise
(1) Preliminary design (not to be submitted): Design by hand, the PF(n)
design suitable for every n, analyze its asymptotic cost and delay.
(2) Complete the circuit pf4 with your implementation of PF(4).
Assignment 4 - NAND Gates
Complete the circuit CMOS NAND from the template. Use only P-type and
N-type transistors provided by Logisim.
Input: x, y ∈ {0, 1}
Output: z ∈ {0, 1}
Functionality: z = nand(x, y)
Check the truth-table (in the “Analyze Circuit” option) for correctness.
Reminder:
(1) From Logisim’s “Wiring” library, use the components “Power”,
“Ground”, and “Transistor”.
(2) P-type transistors must be connected to “Power” and N-type transistors must be connected to “Ground”.
(3) When low voltage is applied to the gate of a P-type transistor’s gate,
it is activated.
(4) When high voltage is applied to the gate of an N-type transistor’s
gate, it is activated.
DLS: PROJECT 1 3
(5) Your aim is to arrange the transistors in a way that will cause the
output to be connected to “Power” whenever logical 1 output is
required, and to be connected to “Ground” whenever logical 0 output
is required.
(6) A CMOS inverter is implemented as in fig. 1.
x x
Figure 1. Structure of CMOS Inverter. The upward pointing
arrow stands for the supply voltage (referred to as “Power”
in Logisim).

More products