Docsity

ECE2030 Test 2: Computer Engineering, Exams of Computer Science

Toggle sidebar
bg1
STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)
REMARKS: 1. All questions should be answered (in the space provided).
2. Books and notes may NOT be used, with the exception of one 8.5”x11” sheet of paper.
DATE: July 11, 2001 TIME: 12:00 p.m. - 1:10 p.m.
Marks:
Total:
Q1
Q2
Q3
Q4
v. 1.0 - 1 of 6 -
Georgia Institute of Technology
Department of Electrical and Computer Engineering
Test #2
ECE2030: Introduction to Computer Engineering Q5
Q6
1. NUMBER SYSTEMS AND ARITHMETIC (MAX MARK: 15)
a)Show how the following numbers would be represented using 5-bits for each signed representation.
b)Add the following 6-bit numbers. Indicate if the addition results in an unsigned range overflow and if it
results in a signed range overflow.
Decimal # Signed Magnitude
Representation 1’s Complement
Representation 2’s Complement
Representation
610
-610
-1210
101011
011011
+
011110
010011
+
110101
111001
+
Unsigned Overflow
yes or no?
Signed Overflow
yes or no?
/15
/15
/20
/20
/10
/20
/100
pf3
pf4
pf5

Partial preview of the text

Download ECE2030 Test 2: Computer Engineering and more Exams Computer Science in PDF only on Docsity!

STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)

REMARKS: 1. All questions should be answered (in the space provided).

  1. Books and notes may NOT be used, with the exception of one 8.5”x11” sheet of paper.

DATE: July 11, 2001 TIME: 12:00 p.m. - 1:10 p.m.

Marks:

Total:

Q

Q

Q

Q

Georgia Institute of Technology Department of Electrical and Computer Engineering

Test

ECE2030: Introduction to Computer Engineering (^) Q

Q

1. NUMBER SYSTEMS AND ARITHMETIC (MAX MARK: 15)

a) Show how the following numbers would be represented using 5-bits for each signed representation.

b)Add the following 6-bit numbers. Indicate if the addition results in an unsigned range overflow and if it results in a signed range overflow.

Decimal # Signed Magnitude Representation

1’s Complement Representation

2’s Complement Representation

(^6 )

+^011011

+^010011

+^111001

Unsigned Overflow yes or no?

Signed Overflow yes or no?

2. STATE MACHINES (MAX MARK: 20)

Consider the following Boolean functions that define a finite state machine where is for the present states bits,

for the next state, is an input, and is an output.

a) Draw the circuit that implements the finite state machine defined by the above Boolean functions.

b)Develop the state table for the finite state machine.

c) Draw the state diagram for this state machine. Assume that is the initial state.

P

N A

N 0 = A P( 0 +P 1 ) N 1 = P 1 ⊕A Y = AP 1

Present State Input Next State Outputs

0 1 0 1 0 1 0 1 S 0 or 0 0

P 1 P 0 A Y

S 0 or 0 0 S 1 or 0 1 S 1 or 0 1 S 2 or 1 0 S 2 or 1 0 S 3 or 1 1 S 3 or 1 1

N 1 N 0

S 0

4. LATCHES AND REGISTERS (MAX MARK: 10)

Complete the below timing diagram where Q 1 is the output of a transparent latch, Q 2 the output of a positive

edge-triggered flip-flop, and Q 3 the output of a negative edge-triggered flip-flop. These all have D as an input

and CLK as the enable signal. Assume the latch and flip-flops are initially cleared.

5. MEMORY SYSTEMS (MAX MARK: 20)

a) For the memory chip specifications shown in the table below, fill in the remaining table cells with the total bits in each of the memory chips, the number of addressable locations, the number of address lines required to address all of these locations, and the number of input/output data lines.

Memory chip Total # of bits # of addresses # address lines # data lines

4Mx

16Gx

CLK

D

Q 2

Q 3

Q 1 Transparent latch output

Positive edge-triggered flip-flop

Negative edge-triggered flip-flop

b)The module shown below is a 4Mx4 memory chip. Design an 8Mx4 bank of memory using multiple copies of the given memory chip and any external combinational building blocks or gates needed. The inputs and outputs of your circuit should be the appropriate number of ADDRESS and DATA lines, as well as the MSEL (an enable to select the entire memory) and R/W lines to specify a read (or write) oper- ation. Use “bus notation” to indicate multiline datapaths, such as address and data lines. Label all inputs and outputs to your circuit, and label all pins on chips and building blocks used.

4Mx

R/W

CS

A21..A

D3..D