Computer Architecture
Computer Architecture
1: Computer Architecture
Moazzam Page 1 of 8
Hardware 3.1: Computer Architecture
REGIST
ABBREVIATION DEFINITION
ER
Current
Stores the instruction the CPU is currently
CIR instruction
decoding or executing
register
Memory data Stores the Data from the address received from
MDR
register the MAR and sends data to CIR
Moazzam Page 2 of 8
Hardware 3.1: Computer Architecture
Memory
Computer memory unit is made up of number of partitions. Each
partition contains address and its content.
For example, in this figure: 8 bit address(location)
and 8 bit of its content(binary value of data)
Moazzam Page 3 of 8
Hardware 3.1: Computer Architecture
Moazzam Page 4 of 8
Hardware 3.1: Computer Architecture
Instruction Set:
Instructions: set of operations which are decoded in sequence.
Instruction sets are low-level language instructions that instruct the CPU how to
carry an operation.
Each operation will instruct the ALU &CU.
An operation is made up of opcode & operand.
Opcode: operation needs to be done.
Operand: the data needs to be acted on.
Since the computer needs to understand the operation to be carried out, There is
limited number of opcodes that can be used; this is called Instruction Set.
All software running on computer will contain a set of instructions.
One example of instruction set is x86, A common CPU standard used in many
computers.
For Example, Intel, Pentium & AMD Athlon CPUs use identical x86 Instruction sets
even though they adopt their own electronic designs.
Embedded Systems
Combination of hardware & software which is designed to carry out a specific set
of functions. The hardware is electronic, electrical or electro-mechanical.
Embedded systems can be based on:
Microcontrollers
Microprocessors
System on Chips (SoC)
Microcontrollers:
This has a CPU along with RAM & ROM and other peripherals all embedded onto a
single chip. (Together they carry out a specific task)
Microprocessor
Integrated circuit which only has a CPU on the chip. (There is no RAM, ROM or
Peripherals- need to be added)
SoC
This may contain a microcontroller as one of its components. (Include CPU, memory,
I/O ports, and secondary storage on single chip)
Moazzam Page 5 of 8
Hardware 3.1: Computer Architecture
the figure:
Input from any operator (e.g take manual i/p temperature using keypad) or from
sensor.
Output: carrying out functions of embedded system by sending the signals to
components that are being controlled.
Embedded systems are either programmable or non-programmable.
Non-programmable devices: Needs to be replaced if they require a software
upgrade
Programmable devices: Permit upgrading by 2 methods:
1. connecting the device to a computer and allowing the download of
updates to the software (for example, this is used to update the maps on
a GPS system used in a vehicle)
2. Automatic updates via a Wi-Fi, satellite or cellular (mobile phone network)
link (for example, many modern cars allow updates to engine
management systems and other components via satellite link).
With Internet Connectivity:
It is possible to control them using a smartphone or computer.
Example: Central Heating Systems: To switch ON or OFF while away from
home.
Motor Vehicles:
It has many parts that rely on embedded systems to function correctly,
For example,
GPS System, In-car entertainment system, Airbags, Fuel Injection System,
Traction Control, ABS Braking and many more.
Moazzam Page 6 of 8
Hardware 3.1: Computer Architecture
Setup Box:
For recording or playback of TV programs. This can be operated remotely by
user when not at home using internet-enabled device or by using the
interface panel when at home.
Inputs from:
o SSD (where TV programs are stored).
o Satellite (where it will be necessary to decode the incoming signal).
Security system:
Security code is set in RAM.
Alarm is activated or deactivated using keypad.
Data from sensors is sent to controller, that checks against values stored on
SSD.
Output can be a signal to flashlights, sound an alarm or send a message to
home owner via mobile phone.
Lighting System:
The system controls lighting by considering:
o The time of day/day of the week (in an office environment since energy
is saved if system switched to low lighting levels when unoccupied)
o Whether the room is occupied (Correct lighting level will be restored)
o The brightness of the natural light (If brightness is high, the system
coulkd automatically dims the light).
Controls the lighting using Inputs like light sensor and key data stored in
memory.
Moazzam Page 7 of 8
Hardware 3.1: Computer Architecture
These can also be used to trigger emergency lighting in. For example, Some
lighting systems use Bluetooth light bulbs that control each bulb
independently.
Vending System:
Use microcontrollers to control number of functions .
Input from keypad (item selection) and sensors (to count coins inserted by
customer, temp inside machine and a tilt sensor for security purpose)
Outputs are:
1. Actuators: To operate motors, that drive helixes to give customer
their selected item
2. Signals: To operate cooling system if temp is high
3. LCD Display panel: For item description and any change due
4. Data: Sent back to machine company, so that they can remotely
check sales activity
Moazzam Page 8 of 8