Docsity

Comp 411 - Fall 2007 Problem Set #5: CMOS Circuits and Multiplexers - Prof. Leona Mcmillan, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
Comp 411 - Fall 2007 - 1 - Problem Set #5
The U
NIVERSITY
of
N
ORTH
C
AROLINA
at
C
HAPEL
H
ILL
Comp 411 Computer Organization
Fall 2007
Problem Set #5
Issued Wednesday, 10/3/06; Due Wednesday, 10/10/06
Homework Information: Some of the problems are probably too time consuming to be done the
night before the due date, so plan accordingly. Late homework will not be accepted. Feel free to
get help from others, but the work you hand in should be your own.
Problem 1. “Fishing for Complements”
Show the complementary set of p-channel or n-channel transistors that complete the following
CMOS circuits, and give a truth table for the resulting circuit:
a)
b)
c)
Y
A
B C D
Y
A
B
C
D
V
dd
A
C
B D
Y
pf3
pf4

Partial preview of the text

Download Comp 411 - Fall 2007 Problem Set #5: CMOS Circuits and Multiplexers - Prof. Leona Mcmillan and more Assignments Computer Architecture and Organization in PDF only on Docsity!

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

Comp 411 Computer Organization Fall 2007

Problem Set # Issued Wednesday, 10/3/06; Due Wednesday, 10/10/

Homework Information: Some of the problems are probably too time consuming to be done the night before the due date, so plan accordingly. Late homework will not be accepted. Feel free to get help from others, but the work you hand in should be your own.

Problem 1. “Fishing for Complements”

Show the complementary set of p-channel or n-channel transistors that complete the following CMOS circuits, and give a truth table for the resulting circuit:

a)

b)

c)

Y

A

B C D

Y

A

B

C

D

Vdd

A

C

B D

Y

d)

Occasionally you will come across a CMOS circuit where the complementary nature of the n- channel pull-downs and p-channel pull-ups are not obvious, as in the circuit shown below:

d) Construct a table that gives the on-off status of each transistor in the circuit above for all combinations of inputs A and B. e) Compute the output, Y, for each input combination and describe the function of the above circuit.

Vdd

A

B

Y

T1 T

T

T

T2 T

T

T

T Note: When two wires cross they are connected if a dark circle is shown at the intersection. Otherwise, they are not connected.

A

B C

D

Y

Problem 3. Mux Madness

During a particularly boring Comp 411 lecture about the universality of NAND and NOR gates, Lee Hart suddenly realizes that multiplexers are also universal. At the close of lecture he awakes and jots the following diagram on the back of his lecture notes:

Help explain Lee’s insight. a) Give binary values for I 0 , I 1 , I 2 , and I 3 which implement the following functions on the two inputs A and B: AND(A,B), OR(A,B), XOR(A,B), NAND(A,B), and NOR(A,B). b) Can every 2-input Boolean function be implemented using Ben’s structure? Explain why or why not.

The next day, in an effort to impress his TA, Micah, Lee attends office hours and explains his discovery. He decides to make his point by constructing several standard gates using his structure. Not to be out done, Micah exclaims that he could build every 2-input gate using only 2 multiplexers.

c) Show how to implement an inverter, as well as every 2-input gate using no more than 2- multiplexers to construct each one. d) Explain how every 4-input Boolean function can be implemented with an 8-input mux and a single inverter. e) Micah then explains to Lee that no more than 40% of all 4-input Boolean functions can be implemented with only an 8-input mux (i.e. no inverter). He jots down an upper bound on the number of such functions: 3^8 /2^14. Can you explain his reasoning?

1 S

1 S

1 S

A B

Y

I

I

I

I