Docsity

Assignment 7 on Examines How Computers Run Programs | CS 240, Assignments of Computer Science

Toggle sidebar
bg1
Assignment 7
Computer Science 240
Fall 2008
Due: Monday, November 10
Reading. Patterson and Hennessy Chapter 4
7.1. The circuit below consists of four JK flip-flops, each triggered by the 1-to-0
transition on its clock input. None of the J or K inputs are connected. It turns out that in
such a case, these inputs behave as if they were all logical 1. The value stored in the
circuit can be seen as a 4-bit number, ABCD. The input line consists of rectangular
pulses 1 msec wide, space 100 msec apart. If ABCD is initially 0000, what will it be
after 13 input pulses?
Exercises 7.2 and 7.3 below use the following MEMORY block diagram.
7.2. Add a minimum of additional logic to a 16K × 32 RAM to convert it into a 64K × 8
RAM. Treat the 16K × 32 RAM as an indivisible element. To simplify your design, you
may assume that all registers inside the memory are edge-triggered and that , when
WRITE is not asserted, the memory is always reading.
7.3 Construct a 256 × 8 RAM using identical 256 × 4 RAM components. For extra
credit, add a CHIP SELECT to each RAM and build a 1024 x 8 RAM using identical 256
x 4 RAM components.
pf3
pf4

Partial preview of the text

Download Assignment 7 on Examines How Computers Run Programs | CS 240 and more Assignments Computer Science in PDF only on Docsity!

Assignment 7

Computer Science 240 Fall 2008 Due: Monday, November 10 Reading. Patterson and Hennessy Chapter 4 7.1. The circuit below consists of four JK flip-flops, each triggered by the 1-to- 0 transition on its clock input. None of the J or K inputs are connected. It turns out that in such a case, these inputs behave as if they were all logical 1. The value stored in the circuit can be seen as a 4-bit number, ABCD. The input line consists of rectangular pulses 1 msec wide, space 100 msec apart. If ABCD is initially 0000, what will it be after 13 input pulses? Exercises 7.2 and 7.3 below use the following MEMORY block diagram. 7 .2. Add a minimum of additional logic to a 16K × 32 RAM to convert it into a 64K × 8 RAM. Treat the 16K × 32 RAM as an indivisible element. To simplify your design, you may assume that all registers inside the memory are edge-triggered and that , when WRITE is not asserted, the memory is always reading. 7.3 Construct a 256 × 8 RAM using identical 256 × 4 RAM components. For extra credit, add a CHIP SELECT to each RAM and build a 1024 x 8 RAM using identical 256 x 4 RAM components.

Computer Science 240 7.4. Suppose that a CPU has a level 1 cache and a level 2 cache, with access times of 5 nsec and 10 nsec, respectively. The main memory access time is 50 nsec. If 20% of the accesses are level 1 cache hits and 60% are level 2 cache hits, what is the average access time? 7.5. The signal derived from a typical switch, for example, one of those in a keyboard array, is not as “clean” as you have been led to believe. It usually resembles the waveform x in the figure below. Each time the metallic contacts inside the switch make or break connection, the signal changes. Since the contacts are not perfect, they normally “bounce” on each single actuation. Wave form x shows the result: Several bounces on the switch’s depression and a few more on its subsequent release. The time taken before bounces die out, which varies with the quality of the switch is typically several milliseconds. Since a computer can respond to sub microsecond signals, the single key activation will be treated as a sequence of many. A switch “denouncer” is a circuit that filters out the bounces. The purpose of this exercise is design a sequential circuit that acts as a switch denouncer. The input x is the switch signal – sampled by a train of CLOCK pulses spaced t seconds apart, where 3t is greater tan the maximum time it takes for bounces to die out. While x is stable at either level, z = x. On any (bouncing) switch actuation in either direction, z does not change until the second successive inverted x sample is detected. This is illustrated in the figure above. The CLOCK pulses shown are much wider than they have to be. The time scale has been modified so that you may distinguish both edges of each pulse. The z waveform is drawn by assuming that the internal devices are positively edge-triggered. The circuit requires four internal states. Two of these are the quiescent rest states, each corresponding to a stable x signal. Two are the temporary states entered on detection of the first inverted x sample.

Computer Science 240 improve only multiplication? What will the speedup be if you improve only memory access? What will the speedup be if both improvements are made? 7 .10. If benchmark suits are designed to provide a real0world metric for a specific computing task, explain why benchmark suits need to be updated. 7 .11. Suppose that, on average, computer A is 10 times faster than computer B before optimization. A special optimizer improves the performance of one of the ten benchmarks, which originally required 1/5 of the execution time of the suite on A, by an extra factor of 50. How much faster will the entire benchmark suite run on computer A than on computer B, assuming the performance of computer B is left unchanged? 7 .1 2****. Consider the following hypothetical news release: “The company will unveil the industry’s first 5 GHz version of the chip, which offers a 25% performance boost over the company’s former speed champ, which runs at 4GHz. The new chip can be plugged into system boards for the older original chip (which ran at 1 GHz) to provide a 70% performance boost” Comment on the definition (or definitions) of performance that you believe the company used. Do you think the news release is misleading?