


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to exam one for the computer engineering course ece 2030 h, offered in spring 2004. The exam covers topics such as switch-level design, mixed logic reengineering, karnaugh maps, and building blocks. Students are required to create switch-level implementations, transform boolean expressions, simplify expressions using karnaugh maps, and implement decoders and encoders.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



4 problems, 5 pages Exam One Solutions 5 February 2004
Problem 1 (2 parts, 24 points) Switch-level Design
Part A (16 points) For each expression below, create a switch level implementation using N and P type switches. Assume both inputs and their complements are available. Your design should contain no shorts or floats. Use as few transistors as possible.
Outy
B
C D
Outx
D A
F
B
C
B C
E
F
D E
A
C
E
A B
E
A
D
F
F
OUTx = ( A + B โ C + D + E )โ F OUTy = ( A + B )( C + D โ E + F )
Part B (8 points) Transform the following Boolean expression to a form where it can be implemented using switches (i.e., there should be no bars in the expression except for complements of the inputs A, B, C, etc.). The behavior of the expression should remain unchanged.
Out (^) X = ( A โ B โ C + E โ FD )โ G โ H Out (^) X = ( A โ B โ C + E โ FD )+ G โ H Out (^) X = ( A โ B โ C โ E โ FD )+ G โ H Out (^) X = (( AB + C )โ ( E + FD ))+ G โ H
4 problems, 5 pages Exam One Solutions 5 February 2004
Problem 2 (3 parts, 30 points) Mixed Logic Reengineering
OUTy
OUTx
Part A (10 points) Write the output expressions for the gate design shown above. Also determine the number of switches used in its implementation.
OUTx = (^) A + B +( B โ C +( C + D + E ))
OUTy = (^) ( B โ C +( C + D + E ))โ ( C + D + E )
Part B (10 points) Reimplement the behavior with a mixed logic design style using only NAND gates and inverters. Determine the number of switches used in this implementation.
OUTy
OUTx
Part C (10 points) Implement the following expression using only NOR gates and inverters. Then determine the number of switches required. Use proper mixed logic notation. Do not modify the expression. Optimize common subexpressions. Do not assume complements of inputs are available.
Out (^) z = ( D โ E )โ ( F + G )โ ( F + G )
OUTz
4 problems, 5 pages Exam One Solutions 5 February 2004
Problem 4 (2 parts, 16 points) Building Blocks
Part A (8 points) Implement a 2 to 4 decoder using only AND gates. Assume inputs signals IN 0 , IN 1 , and En and their complements are available. Label all inputs and outputs.
In 1 In 0 En In 1 In 0 En In (^1) In 0 En In 1 In 0 En
Part B (8 points) Consider a priority encoder with the following behavior:
In 3 In 2 In 1 In 0 O 1 O 0 Valid 0 0 0 0 X X 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 0 0 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 1 1 1 0 1 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 1 1 1 1 1 0 1
List the inputs (In 0 , In 1 , In 2 , and In 3 ) in increasing priority.
In (^1) < In (^3) < In (^0) < In 2 lowest priority 2 nd^ lowest priority 2 nd^ highest priority highest priority