GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 7(a)

Interface a one-bit 8085 port

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 1997 paper

GATE 1997, Q7(a) 3 marks · Descriptive
Report issue

Input/Output, DMA & Interrupts

Question 7(a), GATE 1997: An 8085 must drive a one-bit output port at I/O address FF hexadecimal through a D flip-flop. The transferred bit is D3, and the output must clear at power-on. Using exactly one ten-input NAND gate, one inverter and one D flip-flop, give the interface circuit. State clock/reset polarities explicitly.
Question 7(a), GATE 1997: An 8085 must drive a one-bit output port at I/O address FF hexadecimal through a D flip-flop. The transferred bit is D3, and the output must clear at power-on. Using exactly one ten-input NAND gate, one inverter and one D flip-flop, give the interface circuit. State clock/reset polarities explicitly.
Tap to enlarge
Answer & solution

Answer: D←D3; CLK←NAND(A15,…,A8,IO/M,NOT(/WR)); asynchronous clear from reset; Q is the port output. (no official key was published)

The eight-bit I/O address FFH is all ones. In an 8085 I/O cycle, that address is duplicated on the high address bus A15…A8, so these eight nonmultiplexed lines can be decoded without adding an address latch. Do not use AD7…AD0 directly throughout the write: those pins carry the data during the data phase.

Let /WR denote the active-low write strobe and IO/M=1 denote an I/O cycle. Use the one inverter to form W=NOT(/WR). The ten-input NAND receives A15,A14,…,A8,IO/M,W. Its output is
CLK = NOT(A15·A14·…·A8·IO/M·W).

A complete connection list is:
8085 D3 → D input of the flip-flop.
A15…A8, IO/M, NOT(/WR) → the ten NAND inputs.
NAND output → positive-edge-triggered CLK.
RESET OUT → active-high asynchronous CLEAR.
Q → the one-bit output.
Any asynchronous preset input is tied inactive.

For FFH on an I/O write, CLK goes low while /WR is asserted and rises when that write ends. The positive edge captures D3 while the data is valid. For another port, a memory cycle, or a nonwrite cycle, at least one NAND input is zero and the clock remains high. Asynchronous clearing makes Q=0 during the power-on reset independently of clock activity.

The flip-flop's clear polarity matters. The above netlist chooses an active-high CLEAR so the 8085's active-high RESET OUT connects directly. With an active-low /CLR device instead, connect the same active-low power-on /RESET IN net that resets the CPU to /CLR. Do not connect RESET OUT directly to /CLR and do not silently use a second inverter. The edge and reset assumptions are explicit because the question does not specify a particular flip-flop part. This is an ideal bus-timing design, assuming normal setup/hold timing and no wait-state or reset anomaly.

Original paper, page 6