GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 6(b)

EERAM wait-state interface

Computer Organization & Architecture · Memory Organization & Address Translation · Full GATE CSE 1992 paper

GATE 1992, Q6(b) Descriptive
Report issue

Memory Organization & Address Translation

Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Tap to enlarge
Answer & solution

Answer: Literal 12.5 mHz needs no speed wait states. If intended 12.5 MHz, add 5 read wait clocks or 36 write wait clocks in the stated two-clock timing model. (no official key was published)

The printed unit matters: lowercase mHz means millihertz. At literal 12.5 mHz, f=0.0125 Hz, T=80 seconds and two clocks provide 160 seconds. Neither a 500 ns read nor a 3 μs write needs any speed-extension wait states. The extraordinary slowness strongly suggests a unit error, but the paper prints mHz and an official correction is unavailable.

For the conventional intended interpretation 12.5 MHz, T=80 ns and the specified ordinary memory interval is 2T=160 ns. RAM 140 ns and EPROM 150 ns fit this idealized interval; EERAM does not. With W additional whole clocks:
Read: (2+W)80≥500 ⇒ W≥4.25 ⇒ W_read=5.
Write: (2+W)80≥3000 ⇒ W≥35.5 ⇒ W_write=36.
Total durations are 7 clocks=560 ns and 38 clocks=3040 ns. Rounding down would violate the specified device timing.

Interface block diagram

latched address→EERAM decoder→SEL_E
SEL_E + memory RD/WR + cycle-start→operation latch / wait controller
clock→6-bit elapsed-clock counter→threshold comparators→READY
latched address + data bus + held RD/WR→four EERAM chips.
READY is high for ordinary accesses. At the beginning of a selected EERAM transfer, latch read versus write, clear the counter and assert READY low before its processor sampling point. Hold address, chip select and the applicable read/write strobe stable as the bus is stretched. At the release sampling point choose READY high only when completion will occur no earlier than 7 clocks after transfer start for a read or 38 for a write. End-of-cycle resets the controller. Equivalently, count five or 36 inserted wait clocks after the nominal two-clock interval. Gate initialization with a single cycle-start pulse so held strobes do not repeatedly reset the counter. A six-bit counter accommodates the longest interval.

These counts follow the problem’s simplified timing model. Actual 8085 READY sampling, decoder delay, setup/hold margins, write-pulse width and whether 3 μs denotes strobe time or internal programming time require the particular EERAM/processor data sheets. If writes are internally timed, latch the write data/address and wait on a busy signal rather than blindly holding a programming pulse. No exact pin waveform or additional nanosecond margin can be inferred from the supplied numbers.

Original paper, page 5