Processing Unit & I/O Organization: Chapter One
Processing Unit & I/O Organization: Chapter One
Terminology
Term
Description
ALU
MAR
MDR
Treat Input/Output device as a memory location and uses the equivalent command
to execute data movement.
PC
Programme Counter used to keep track the location of programme
PDP11
[R1]
Content of Register 1
R2 <- [R1]
Transfer of data in R1 to R2
Virtual Memory
Output Register
Fetch data of specific memory location and load them into a CPU register
Store the data from a CPU register into a specific memory location
Transfer data from one CPU register to another register
Perform an arithmetic or logic operation and store the result in a CPU register
Register transfer
Data transfer between 2 CPU registers is via the input and output gating control as
shown in Figure .
The register transfer R2 <- [R1] can be denoted by the control sequence R1out,
R2in
ADD R1, R2, R3 # to add R1 and R2 together and put the result to R3
It takes 2 steps as shown in the following table. This demonstrates that dual-bus
CPU takes less internal steps to complete an instruction.
The organization of data paths inside the CPU can affect its cost and speed (i.e.
instruction execution time)
ADD @#A, R1
Hardwired control
Microprogrammed Control
Figure is the diagram showing the components required to form a control unit. The
function of each component is as follows:
Component Function
R1in R1out R2in R2out..... Yin Yout Zin Zout MDRin MDRout
T he major hardware of microinstruction is usually implemented by means of bit-
sliced microprocessor. This microprocessor is a self-contained single chip
microprocessor with the capability of cascading several chips together to form
larger bit size such as 64 bits or 128 bits. The instruction speed is faster than any
single chip processor, like 80386.
The function is similar to hardwired control unit except that it is configurable only.
I/O Organization
The I/O architecture defines the interface a program uses to move data between a
processor or memory and the I/O devices of the computer system. There are a few
considerations for designing such a device such as
There are many kinds I/O devices with different properties as shown below:
Type Description
Disk Use special commands to move the disk arm to read/write data
Magnetic Tape Use special commands to back space the tape
Printers Special form feed or graphics commands that prints Text
Terminals Special commands for drawing lines, figures, pictures etc.
Optical
Read documents created by humans into a computer system.
Scanner
There are a few I/O operations common to all devices listed above:
Read (Transfer data from I/O device to RAM)
Write (Transfer data from RAM to I/O device)
The location in the processor-memory complex data are to be taken from write
or placed into read. Also indicates how much data is to be transferred between
the processor-memory and the I/O device
Synchronization method to indicate whether or not an interrupt is desired and
when the interrupt should occur
The recording format to be used from the device.
The issues of
There are four I/O schemes being used to deal with these issues
Other reserved memory locations are for device control such as backspace for
magnetic tape, form feed for printer.
MOVE R1, P
As shown in Figure , it will move the data from the register to the reserved
memory address, P, for the printer. When the address P is put on the address lines
of the bus, the memory ignores it and the printer reserves the data. (From R1 in
this case.) Other special memory locations are used for advancing to next print
line, etc.
F or the printer device, we can only write to it, as read causes an error.
The I/O read and I/O write are used to move the data on the data bus.
READY is used to signify the completion of operation
PORT SELECT is used to select the appropriate device. This is equivalent to an
address bus for I/O devices
The INTERRUPT REQUEST signals are used by the microprocessor that an
I/O device is ready for service
The INTERRUPT ACKNOWLEDGE is used for acknowledgment purpose
Using this configuration, the typical requirements for pins on the microprocessor
are :-
Type Number
Memory address 16
Memory Data 8 or 16
I/O Port select 6 to 8
I/O data 8
Memory Control 3
I/O control 5
Total pins 40 - 50
The total number of pins is between 40 to 50 without taking into account the
power, clock etc. As, the cost for the circuit board is related to pin count and also
the Integrated Circuit packages is in standard size of 16, 24, 40 and pins, it is
therefore beneficial to reduce pin count to one of the critical number.
One of the advantages is to reduce the number of pins. This will reduce the CPU’s
size and as a result will reduce the heat dissipation (heat generated due to the
movement of electronics at high speed).
Summary
This chapter discussed the CPU internal structure. Dual-bus structure has the
advantage of moving data from one bus while processing another data. This
operation outperforms the single-bus CPU. Students also understand the
development of CPU chip starting from 8088 to Pentium Pro (600MHz). The
CPU’s pin layout was designed from one-dimensional to three dimensional. The
signals of controlling the gates to on or off state are from the control unit, which
can be implemented by hardwired control or microprogrammed control units.
Microporgammed control unit has the advantage of being configurable by ordinary
users. To reduce the number of pins, multiplexed address and data buses are widely
adopted. This can, of course, be achieved as a result of high speed CPU.
Self-test Question