



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




4 problems, 6 pages Exam Two 22 March 2001
Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck!
Your Name ( please print ) ________________________________________________
1 2 3 4 total
4 problems, 6 pages Exam Two 22 March 2001
Problem 1 (6 parts, 35 points) Numbers and Arithmetic
Part A (6 points) Convert these binary values (and powers of two) into decimal notation:
binary notation decimal notation
11100111
215
Part B (6 points) Convert the following octal values into hexadecimal notation:
octal notation hexadecimal notation 236
771177
Part C (9 points) For each problem below, (a) compute the operations using the rules of addition, (b) indicate whether an error occurs assuming all numbers are expressed using a four bit two’s complement representation, and (c) indicate whether an error occurs assuming all numbers are expressed using a four bit unsigned representation.
addition result signed error? unsigned error?
4 problems, 6 pages Exam Two 22 March 2001
Problem 2 (3 parts, 30 points) Counter Design
Part A (10 points) Design a toggle cell using transparent latches, 2-input XOR gates, and 2-input basic gates (AND, OR, NAND, NOR, and NOT). Use icons for the latches. Your toggle cell should have an active high toggle enable input TE , and an active low clear input -Clear , two-phase non-overlapping clock inputs Φ 1 and Φ 2 , and an output Out. The - Clear signal has precedence over TE. Label all signals. You should have a single output OUT.
Part B (10 points) Now use several of your toggle cells (in icon form) to build a divide by four counter. This design should include a count enable CE and an active high clear CLR. You do not need to draw in the clock signals. Assume all toggle cells are connected to the two-phase clock. Use any basic gates (AND, OR, NAND, NOR, and NOT) you require. Label all of your outputs signals.
Part C (10 points) Now use copies of your toggle cells (in icon form) to build a divide by six counter. This design should include an active high external count enable CE and an active high external clear CLR. Your design should clear if (A) the external clear CLR is high, or (B) the maximum output count is reached and the count enable is high. You do not need to draw in the clock signals.
4 problems, 6 pages Exam Two 22 March 2001
Problem 3 (3 parts, 20 points) Building Blocks
Consider a priority encoder with the following behavior:
In 2 In 1 In 0 O 1 O 0 Valid 0 0 0 X X 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 0 1 0 0 1 1 1 0 0 1 1 1 1 1 0 1 1
Part A (6 points) List the inputs (In 0 , In 1 , In 2 , and In 3 ) in increasing priority.
lowest priority 2 nd^ highest priority highest priority
Part B (10 points) Design a 4-to-1 multiplexor using only pass gates and inverters. Clearly label all inputs and outputs. How many transistors are in your implementation?
Number of transistors:.
Part C (4 points) Design a 1-to-4 demultiplexor using the 4-to-1 mux you designed in part B (in icon form). Clearly label the inputs and outputs.