Unit 5: Input-Output and Memory Organization

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/53

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering Input-Output interfaces, data transfer modes, priority interrupts, DMA, and memory hierarchies including RAM, ROM, associative memory, and cache mapping schemes.

54 Terms

1
New cards

Input-Output (I/O) Interface

Special hardware placed between the CPU/internal storage and external I/O devices to supervise, synchronize, and translate data transfers between electronic CPU/memory circuits and slower electromechanical/electromagnetic peripherals.

2
New cards

Functions of an I/O Interface

Performs data conversion (such as digital to analog and serial to parallel), synchronization (matching the operating speeds of the CPU and peripherals), and device selection (allowing the CPU to select the required device).

3
New cards

I/O Bus Lines

The three sets of lines within an I/O bus: Data lines that carry data, Address lines that identify the required device, and Control lines that carry commands and control information.

4
New cards

I/O Command Types

Four function codes sent through control lines: Control command (directs peripheral operations), Status command (tests device condition/errors), Data output command (transfers data from processor to peripheral), and Data input command (transfers data from peripheral to processor).

5
New cards

I/O Processor (IOP)

An independent processor, also called a data channel, that provides an autonomous communication pathway between external I/O devices and internal memory via dedicated buses.

6
New cards

Isolated I/O

An I/O configuration where memory and I/O devices have separate address spaces, use distinct control lines (Memory Read/Write vs. I/O Read/Write), and require specialized input/output instructions, preventing the reduction of memory address space.

7
New cards

Memory-Mapped I/O

An I/O configuration where I/O interface registers share the same address space as memory, share a single set of Read/Write control signals, and are accessed using standard memory instructions (e.g., load and store), which reduces available memory addresses.

8
New cards

Interface Registers (Port A, Port B, Control, Status)

Registers within an interface unit where Port A and Port B transfer I/O data, the Control register receives configuration commands from the CPU, and the Status register records device condition flags and error states.

9
New cards

Chip Select (CS\text{CS}) and Register Select (RS1,RS0\text{RS1}, \text{RS0})

Interface control inputs where CS=1\text{CS} = 1 enables the interface unit, and RS1\text{RS1} and RS0\text{RS0} select one of the four internal registers: 0000 for Port A, 0101 for Port B, 1010 for Control register, and 1111 for Status register (CS=0\text{CS} = 0 puts the data bus in high-impedance).

10
New cards

Asynchronous Data Transfer

Data transfer between two independent units that use separate internal clocks with no common timing reference, requiring control signals such as strobes or handshaking to coordinate transfers.

11
New cards

Strobe Method

An asynchronous transfer method where a single control pulse is transmitted by one unit (either source or destination) to indicate to the other unit when data is available or requested on the bus, without an acknowledgment signal.

12
New cards

Handshaking Method

An asynchronous data-transfer technique that uses two control signals—a request/validation signal from the initiator and a reply/acknowledgement signal from the receiver—to guarantee data is accepted before concluding the transfer.

13
New cards

Source-Initiated Handshaking

A handshaking sequence where the source places data on the bus and asserts Data Valid; the destination accepts the data and asserts Data Accepted; the source disables Data Valid, and the destination disables Data Accepted.

14
New cards

Destination-Initiated Handshaking

A handshaking sequence where the destination enables Ready for Data; the source places data on the bus and enables Data Valid; the destination accepts data and disables Ready for Data; and the source disables Data Valid.

15
New cards

Asynchronous Serial Transfer

A transfer mode that transmits data one bit at a time over a single line kept at an idle state of 11, formatting each character with a start bit (00), data bits, and one or more stop bits (11) to maintain synchronization.

16
New cards

Baud Rate

The rate of serial data transmission expressed in bits per second (bits/s\text{bits/s}); for example, transmitting 1010 characters per second at 1111 bits per character equals 110 bits/s110\,\text{bits/s}.

17
New cards

UART (Universal Asynchronous Receiver-Transmitter)

A communication circuit that converts parallel data from the computer into serial data for transmission, and converts incoming serial data back into parallel data for the computer.

18
New cards

FIFO (First-In, First-Out) Buffer

A temporary storage unit consisting of registers and control flip-flops that stores incoming data and outputs it in the exact order of arrival, enabling smooth communication between devices operating at different speeds.

19
New cards

Ripple-Through Operation

The automatic movement of data in a FIFO buffer from one register to the next empty adjacent register when its associated control flip-flop indicates that the succeeding stage is empty (F=0F = 0).

20
New cards

Program-Controlled I/O

A data transfer mode in which the CPU continuously executes a program polling loop to monitor an interface flag bit until the device is ready, keeping the processor needlessly busy during slow transfers.

21
New cards

Interrupt-Initiated I/O

A transfer mode where the CPU executes normal programs while the interface monitors the peripheral; when ready, the interface issues an interrupt request, prompting the CPU to save its context and branch to an I/O service routine.

22
New cards

Vectored vs Nonvectored Interrupt

In a nonvectored interrupt, the CPU branches to a fixed, predefined memory address; in a vectored interrupt, the interrupting source supplies the branch information (interrupt vector) directly to the CPU.

23
New cards

Priority Interrupt

A system that arbitrates between multiple simultaneous interrupt requests to determine which device is serviced first, giving high-speed devices (like magnetic disks) precedence over slower ones (like keyboards).

24
New cards

Polling (Software Priority Interrupt)

A software-based priority method where the CPU polls interrupt sources in a sequential order defined by code; it requires minimal hardware and is flexible, but operates very slowly.

25
New cards

Daisy-Chain Priority Interrupt

A serial hardware priority mechanism where all devices share a common interrupt request line and an acknowledge line (INTACK\text{INTACK}) is passed through devices in series; the requesting device physically closest to the CPU intercepts the signal and places its vector address on the bus.

26
New cards

Priority In (PI\text{PI}) and Priority Out (PO\text{PO})

Signals in a daisy-chain module where PI=1\text{PI} = 1 indicates the acknowledge signal has arrived; if the device has a pending request (RF=1\text{RF} = 1), it enables its vector address and sets PO=0\text{PO} = 0; if RF=0\text{RF} = 0, it passes the signal downstream by setting PO=1\text{PO} = 1.

27
New cards

Parallel Priority Interrupt

A hardware scheme that uses an Interrupt Register, a Mask Register, and a Priority Encoder to simultaneously evaluate multiple interrupt request lines and immediately output the corresponding vector address.

28
New cards

Interrupt Enable (IEN\text{IEN}) and Interrupt Status (IST\text{IST})

Flip-flops in an interrupt system where IEN\text{IEN} is set or cleared by program instructions (ION\text{ION} or IOF\text{IOF}), and IST\text{IST} is set to 11 when an unmasked interrupt request occurs; both must be 11 to enter an interrupt cycle.

29
New cards

Interrupt Cycle Microoperations

The hardware sequence executed when an interrupt is acknowledged: SP←SP−1SP \leftarrow SP - 1, M[SP]←PCM[SP] \leftarrow PC, INTACK←1INTACK \leftarrow 1, PC←VADPC \leftarrow VAD, and IEN←0IEN \leftarrow 0.

30
New cards

Direct Memory Access (DMA)

A data transfer technique where an external interface controller transfers entire blocks of data directly between memory and high-speed peripherals via the system buses without continuous CPU intervention.

31
New cards

DMA Burst Transfer

A DMA transfer mode where the DMA controller maintains mastery of the memory buses and continuously transfers an entire block of memory words in one uninterrupted operation.

32
New cards

Cycle Stealing

A DMA transfer mode where the DMA controller takes control of the memory buses to transfer exactly one word at a time, momentarily delaying the CPU for one memory cycle before releasing the buses.

33
New cards

DMA Bus Signals (BR\text{BR} and BG\text{BG})

Control lines between the CPU and DMA controller where Bus Request (BR\text{BR}) is asserted by DMA to request bus control, and Bus Grant (BG\text{BG}) is asserted by the CPU to relinquish the buses.

34
New cards

DMA Controller Registers

Three internal registers: the Address Register (stores and increments the memory location), the Word Count Register (holds and decrements the number of words to transfer until zero), and the Control Register (specifies read/write transfer mode).

35
New cards

Memory Word

The fixed number of bits that can be stored or accessed as a single unit at a specific memory location; for example, in a 4K×84\text{K} \times 8 memory, each memory word is 88 bits (11 byte).

36
New cards

Memory Hierarchy

An architectural structure organizing memory from fast, small, expensive types (registers, cache) to slower, larger, cheaper storage (main memory, magnetic disk, magnetic tape) to maximize access speed while minimizing overall system cost.

<p>An architectural structure organizing memory from fast, small, expensive types (registers, cache) to slower, larger, cheaper storage (main memory, magnetic disk, magnetic tape) to maximize access speed while minimizing overall system cost.</p>
37
New cards

Static RAM (SRAM)

A form of random-access memory constructed of internal flip-flop circuits that retains stored bits without periodic refreshing as long as power is supplied, commonly used in cache memory.

38
New cards

Dynamic RAM (DRAM)

A form of random-access memory that stores data bits as electrical charges on capacitors inside MOS transistors, requiring periodic refreshing because the charge gradually leaks away; commonly used for main memory.

39
New cards

Bootstrap Loader

A startup program permanently stored in ROM that executes when the computer is powered on, setting the Program Counter to load the operating system from disk into main RAM and transferring control to it.

40
New cards

Memory Address Map

A tabular or pictorial representation assigning specific ranges of hexadecimal and binary address bus lines to individual RAM and ROM chips within a microcomputer system.

41
New cards

Seek Time and Transfer Time

Components of auxiliary memory access time: seek time is the duration required to position the read/write head over the desired track, and transfer time is the time required to read or write data once positioned.

42
New cards

Magnetic Disk Tracks and Sectors

The structural layout of a circular magnetic disk: concentric circular rings where bits are recorded are tracks, and angular slices of tracks are sectors, which represent the minimum unit of data transfer.

<p>The structural layout of a circular magnetic disk: concentric circular rings where bits are recorded are tracks, and angular slices of tracks are sectors, which represent the minimum unit of data transfer.</p>
43
New cards

Associative Memory (Content Addressable Memory / CAM)

A memory unit accessed simultaneously and in parallel based on data content rather than a specific address; it identifies matching words across all stored locations concurrently.

44
New cards

Argument Register (AA) and Key Register (KK)

Registers in an associative memory of nn bits per word where register AA holds the search bit pattern, and mask register KK specifies which bit positions are compared (bits with 11s in KK are compared; bits with 00s are masked).

45
New cards

Match Register (MM)

An mm-bit register in an associative memory containing one bit per memory word; a bit is set to 11 whenever its corresponding stored word matches the unmasked bits of the Argument Register.

46
New cards

Cache Memory

A very fast, small semiconductor memory situated between the CPU and main memory to hold frequently used data and instructions, bridging the operational speed gap.

47
New cards

Locality of Reference

The computational principle that memory references over a period of time tend to cluster within small localized regions, consisting of Temporal Locality (recently referenced items being used again soon) and Spatial Locality (nearby locations being referenced soon).

48
New cards

Cache Hit and Cache Miss

A cache hit occurs when the CPU references memory and finds the requested word in cache; a cache miss occurs when the word is absent from cache, requiring an access to main memory.

49
New cards

Hit Ratio

A measure of cache memory performance defined by the formula Hit Ratio=Number of HitsNumber of Hits+Number of Misses\text{Hit Ratio} = \frac{\text{Number of Hits}}{\text{Number of Hits} + \text{Number of Misses}}.

50
New cards

Associative Mapping (Cache)

A cache mapping method in which any memory block can reside in any cache location; the cache mapping table is implemented in associative memory storing both the 15-bit address and 12-bit data.

51
New cards

Direct Mapping (Cache)

A cache organization where each main memory block maps to only one specific cache line determined by its index field; the CPU address is partitioned into an index field to address cache and a tag field to verify a match.

52
New cards

Set-Associative Mapping

A hybrid mapping technique dividing cache into sets of lines; the index field identifies the set, and the block can be placed in any line within that set, comparing tag bits across all lines in parallel.

53
New cards

Write-Through Policy

A cache write strategy in which every CPU write operation updates main memory immediately; on a hit, both cache and main memory are updated, and on a miss, data is written directly to main memory.

54
New cards

Write-Back Policy (Copy-Back)

A cache write policy where data is updated exclusively in the cache on a write hit, and main memory is only updated later when the modified (dirty) cache block is evicted.