Docsity

Datapath Elements - Computer Engineering - Solved Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 1:00pm Computer Engineering Spring 2010
4 problems, 5 pages Exam Three 21 April 2010
Problem 1 (3 parts, 30 points) Memory Systems
Part A (12 points) Consider a 1 Gbit DRAM chip organized as 128 million addresses of 8-bit words.
Assume both the DRAM cell and the DRAM chip are square. The column number and offset concatenate
to form the memory address. Using the organization approach discussed in class, answer the following
questions about the chip. Express all answers in decimal (not powers of two).
total number of bits in address 27
number of columns
ī‚
230=215=32K
column decoder required (n to m)15 to 32K
number of words per column
215/23=212=4K
type of mux required (n to m)4K to 1
number of address lines in column offset 12
Part B (10 points) Consider a memory system with 128 million addresses of 64-bit words using a 4
million address by 16-bit word memory DRAM chip.
word address lines for memory system 27
chips needed in one bank 64/16 = 4
banks for memory system
227 /222=25=32
memory decoder required (n to m)5 to 32 decoder
DRAM chips required 4*32 = 128
Part C (8 points) Design a 128 million address by 4 bit memory system with 32M x 4 memory chips.
Label all busses and indicate bit width. Assume R/W is connected and not shown here. Use a bank
decoder if necessary. Be sure to include the address bus, data bus, and MSEL.
D0
D1
D2
D3
ADDR
CS
D0
D1
D2
D3
ADDR
CS
D0
D1
D2
D3
ADDR
CS
ADDR
27
MSEL
D0
D1
D2
D3
32M x 4
D0
D1
D2
D3
ADDR
CS
32M x 4
32M x 4
32M x 4
25
A24:A0
A26
2
A25
25
25
25
25
In0 Out0
En
2 to 4
Out2
In1
Out1
Out3
1
pf3
pf4

Partial preview of the text

Download Datapath Elements - Computer Engineering - Solved Exam and more Exams Computer Science in PDF only on Docsity!

4 problems, 5 pages Exam Three 21 April 2010

Problem 1 (3 parts, 30 points) Memory Systems

Part A Assume both the DRAM cell and the DRAM chip are square. The column number and offset concatenate (12 points) Consider a 1 Gbit DRAM chip organized as 128 million addresses of 8 -bit words.

to form the memory address. Using the organization approach discussed in class, answer the following questions about the chip. Express all answers in decimal (not powers of two).

total number of bits in address 27

number of columns ī‚ 230 = 215 =32K

column decoder required ( n to m ) 15 to 32K

number of words per column 215 / 23 = 212 =4K

type of mux required ( n to m ) 4K to 1

number of address lines in column offset 12

Part B million (10 points) Consider a memory system withaddress by 16-bit word memory DRAM chip. 128 million addresses of 64 -bit words using a 4

word address lines for memory system 27

chips needed in one bank 64/16 = 4

banks for memory system 227 / 222 = 25 = 32

memory decoder required ( n to m ) 5 to 32 decoder

DRAM chips required 4*32 = 128

Part C Label all busses and indicate bit width (8 points) Design a 128 million address by 4 bit. Assume R/W is connected and not shown here. Use a bank memory system with 32M x 4 memory chips.

decoder if necessary. Be sure to include the address bus, data bus, and MSEL.

D 0 D 1 D 2 D 3

ADDR

CS D 0 D 1 D 2 D 3

ADDR

CS D 0 D 1 D 2 D 3

ADDR

CS

ADDR

27

MSEL

D 0 D 1 D 2 D 3

32 M x 4

D 0 D 1 D 2 D 3

ADDR

CS

32 M x 4

32 M x 4

32 M x 4

A24:A0 25

A

2 A

25

25

25

25

In 0 Out^0 En

2 t o 4 In (^1) O^ O Ouuuttt (^213)

4 problems, 5 pages Exam Three 21 April 2010

Problem 2 (3 parts, 26 points) Datapath Elements Part A (6 points) Suppose the following inputs (in hexadecimal) are applied to the 32-bit barrel shifter used in the datapath. Determine the output (in hexadecimal). Assume the shift amount is drawn from the 16-bit immediate value. Shift Type Shift Amount Input Value Output Value logical 0x0008^ EB25ACE7^ 00EB25AC arithmetic 0x0010^ BAC19317^ FFFFBAC rotate 0xFFF4^ DE2FAB36^ FAB36DE Part B (in hexadecimal) to correctly program the logical unit. (8 points) For each bitwise logical function specification below, determine the LF code

X Y Out logical function LF 0 0 LF 0 Y ī‚ƒ X D 1 0 LF 1 X^5 0 1 LF 2 X āŠ• Y^6 1 1 LF 3 X ā‹… Y^7 Part C (12 points) Given the following finite state diagram, fill in the state table below.

S 1 S 0 0 0

S 1 S 0

S 1 S 0

H

H

H

M M

M/Out S 1 S 0 H/M NS 1 NS 0 Out S 1 S 0 H/M NS 1 NS 0 Out 0 0 0^0 1 0 1 0 0^0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0^1 0 0 1 1 0 x^ x^ x 0 1 1^0 0 0 1 1 1 x^ x^ x

Give the simplified Boolean expression for computing Out in terms of the current state and the input.

Out = S 1 M.

4 problems, 5 pages Exam Three 21 April 2010 Problem 4 (2 parts, 18 points) Counters Part A (8 points) Design a toggle cell using inverter. Your toggle cell should have an active high toggle enable input two transparent latches, two 2 to 1 muxes, and one TE , and an active low clear input CLR , clock inputs Φ 1 and Φ 2 , and an output Out. The CLR signal has precedence over TE. Label all signals. Also complete the behavior table for the toggle cell. TE CLR^ CLK Out 0 0 ↑↓ 0 1 0 ↑↓ 0 0 1 ↑↓ Q 0 1 1 ↑↓ Q 0 Part B (10 points) Now combine these toggle cells to build a counter should have an external clear, external count enable, and four count outputs O divide by eleven counter. Your O 0. Use any basic gates (AND, OR, NAND, NOR, XOR & NOT) you require. Assume clock^3 , O^2 , O^1 , inputs to the toggle cells are already connected. Your design must support multi-digit systems.

O 0

O 1

O 2

Ext Clr

Ext CE TE Out Clr

TE Out Clr

TE Out Clr

O 3

TE Out Clr

In Out LatchEn In Out LatchEn TE

Out

CLR^ Φ^1 Φ^2

In0Out In1S

In0Out In1S