Internal Components
Internal Components
✔Processor
✔Main memory (RAM)
✔Read Only Memory (ROM)
✔Address bus
✔Data bus
✔Control bus
✔I/O Controllers
P ro ceso r
✔Paging divides the memory into equally sized sections, whereas for
segmentation the sizes are uneven.
✔On the primary storage these are called frames, but on the secondary
storage these sections are called pages.
R O M –R ead o n lym em o ry
✔The input and output controller manages hardware devices such as hard
disk, monitor and keyboard.
✔This is helpful for the processor because the processor does no need to
control each device.
✔Each device will have different control signals, so the processor can
delegate the task of managing the input and output devices to the input /
output controller.
✔Input controller manages mouse, keyboard
✔Output controller manages monitor, printer
✔Input / Output disk controller manages the secondary storage devices.
B u sco m m u n icati o n
Data Bus
✔The data bus is a set of wires that allows the transfer of data between different
computer components including the main memory, processor and input/output
controllers.
✔The data bus sends data in both directions for the processor, and memory, but input
controllers send data only and output controllers receive data only.
B u se
Address Bus
✔The address bus specifies the physical memory address that we wish to write data to
or read from.
✔The processor sends address requests,
✔All the other components receive requests.
Control Bus
✔The control bus is used to send commands from the processor to other components
and to receive status signals from the components.
✔The control bus sends signals in both directions for all components.
W riti n gfro m m em o ryto p ro ceso r
✔With Harvard architecture there are separate memory storage for the
instructions and the data.
✔This allows simultaneous retrieval both data and instructions on each
processor cycle therefore speeding up the throughput of instructions
and data and reducing latency.
✔ Harvard Architecture is typically used in embedded systems and used
for signal processing. The programs are stored onboard the processor
in ROM.
A d d resab lem em o ry
✔The instruction set is a set of machine language commands for the processor.
✔Each processor architecture will have its own unique instruction set. Thus any code
written in machine code or assembly language will be processor specific.
✔Nevertheless all processor architectures will have a common set of operations that
include:
✔ Data transfer between internal components
✔ arithmetic operations
✔ Logical operations
✔ Shift operations
✔ Branching
✔ Comparison
In stru cti o n s
✔Instructions are made up of two parts: the opcode and the operand.
✔The opcode determines the operation that is to be carried out (eg.
Add, load).
✔The operand is the value or memory address that that instruction is
to be operated on.
✔The opcode in turn is split into two parts: The basic machine
operation and the addressing mode.
A d d resin gm o d e
Opcode Operand
Basic Machine Addressin
operation g mode
0 1 0 0 0 0 1 1
M ach in eco d ean d asem b lyan gu age
Memory 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
location
value - - - - 3 - - - - - - - - - - -
What value is stored in memory location 15 once all three instructions have been completed?
astp ers–In stru cti o n set
P