Docsity

ECE 2030 Spring 1999 Exam Two Solutions: Computer Engineering Problems and Solutions, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 Computer Engineering Spring 1999
4 problems, 4 pages Exam Two Solutions 7 May 1999
1
Problem 1 (3 parts, 28 points) Art of the State
Part A (8 points) Implement a transparent latch using only five two-input NAND gates. Label the
inputs In and En, and the output Out.
Part B (10 points) Implement register with write enable and read enable using transparent latches,
pass gates, and inverters. Use an icon for the transparent latches. Label the inputs In, WE, RE,
ΦΦ1, ΦΦ2 and the output Out.
Part C (10 points) Assume the following signals are applied to your register. Draw the output
signal Out. Draw a vertical line where In is sampled. Assume Out starts at zero.
Φ
1
Φ
2
WE
In
Out
pf3
pf4

Partial preview of the text

Download ECE 2030 Spring 1999 Exam Two Solutions: Computer Engineering Problems and Solutions and more Exams Computer Science in PDF only on Docsity!

4 problems, 4 pages Exam Two Solutions 7 May 1999

Problem 1 (3 parts, 28 points) Art of the State

Part A (8 points) Implement a transparent latch using only five two-input NAND gates. Label the inputs In and En , and the output Out.

Part B (10 points) Implement register with write enable and read enable using transparent latches, pass gates, and inverters. Use an icon for the transparent latches. Label the inputs In , WE, RE, ΦΦ 1 , ΦΦ 2 and the output Out.

Part C (10 points) Assume the following signals are applied to your register. Draw the output signal Out. Draw a vertical line where In is sampled. Assume Out starts at zero.

Φ 1

Φ 2

WE

In

Out

4 problems, 4 pages Exam Two Solutions 7 May 1999

Problem 2 (2 parts, 20 points) Two by Two

Part A (10 points) Design a toggle cell using only two transparent latches, two 2-to-1 muxes, and an inverter. Use icons for the latch and mux. Your toggle cell should have an active high toggle enable input TE , and an active low clear input -Clear , clock inputs Φ 1 and Φ 2 , and an output Out. The - Clear signal has precedence over TE. Label all signals.

Part B (10 points) Now combine three of these toggle cells to build a divide by seven counter. Your counter should have an external clear, external count enable, and three count outputs O 2 , O 1 , O 0. Use any basic gates (AND, OR, NAND, NOR, & NOT) you require. Assume clock inputs to the toggle cells are already connected.

4 problems, 4 pages Exam Two Solutions 7 May 1999

Problem 4 (3 parts, 26 points) The Big Unit

Part A (8 points) Complete the truth table below for a full subtractor.

A B Borrowin Difference Borrowout 0 0 0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1

Part B (10 points) Implement the full subtractor using only NAND, XOR, and inverter gates. Label inputs A , B , and Borrowin. Label outputs Difference and Borrowout.

Part C (8 points) Implement a four bit rotate shifter that can shift one bit left or right using 2 to 1 multiplexers (do not implement the MUX). The inputs are I 0 , I 1 , I 2 , I 3 , and right/-left. The outputs are O 0 , O 1 , O 2 , and O 3. Be sure to label all inputs on the mux including S , I 0 , and I 1.