CAO CO1
CAO CO1
1
2
Syllabus
3
References:
1. Carl Hamacher, Zvonko Vranesic and Safwat Zaky, Computer Organization and
Embedded Systems, (6e), McGraw Hill Publication, 2012.
2. William Stallings, Computer Organization and Architecture – Designing for
Performance, (9e), PHI, 2015.
3. Mohammed Rafiquzzaman and Rajan Chandra, Modern Computer Architecture,
Galgotia Publications Pvt. Ltd., 2010
4
5
Computer Architecture and Organization
6
What is
EMBEDDED COMPUTER/ EMBEDDED SYSTEM?
7
Embedded Computer
It designs for particular task.
Embedded Component
Performs single function on a
microprocessor
Hardware
• Processing • Generates
• Inputs from
very fast (no output in
the sensors
delay units) real time
• Instructions
• Display
• Signals in
• Generate
electrical form
desired o/p
• Data sets
signals
9
Actuator and sensor
• Actuators are devices that work opposite to sensors. A sensor converts a physical
event into an electrical signal, whereas an actuator converts electrical signal into a
physical event. When sensors are used at input of a system, actuators are used to
perform output function in a system as they control an external device.
10
What is Sensors? Define the types of Sensors?
• Consumer electronics
• Washing Machine
• Microwave Oven
• Dishwasher
• Refrigerator
• Smart phone
• Television
• Home appliances
12
What are the application of embedded system?
Smart Home
• Light management
• Heating system
• Air conditioning
• Door control
• Window Control
• Alarm system
• Automatic Camera system
• Security system
14
Define the Classification of embedded system?
Sophisticated Embedded
system: Super Computer
15
Super computer
Massive computing resources and memory.
17
COMPONENTS OF A COMPUTER SYSTEM
I/P O/P
Device Device
Input: keyboard, mouse, network, disk Output: printer, video screen, network, disk
18
Central Processing Unit (CPU)
It is the hardware within a computer that carries out the instructions of a computer
program by performing the basic arithmetical, logical, control and input/output
operations of the system.
Two typical components of a CPU are the arithmetic logic unit (ALU), and control
unit (CU) .
The arithmetic logic unit (ALU)which performs arithmetic and logical operations,
The control unit (CU), which extracts instructions from memory and decodes and
executes them, calling on the ALU when necessary.
19
ALU or DATA PATH UNIT
21
MEMORY UNIT/MEMORY OPERATION
It is divided into ‘n’ number of cells. Each cell can store one bit information at a time.
22
Primary Memory
23
RAM & ROM
RAM ROM
The CPU can access the data CPU Interaction The CPU cannot access the
stored on it. data stored unless the data is
stored in RAM.
Expensive Cost Cheap
The Stored information is Accessibility Stored data is not as readily
easily accessible. available as in RAM
Large size with high power. Size and Capacity Small size with low power.
RAM is a flexible memory that can Data retention ROM is a stable memory that can
store data as long as power is store data even when power is
provided. turned off.
24
RAM & ROM
RAM ROM
Data stored in RAM can be restored Working type Data stored on ROMs can only be
and modified. read in easy way.
Has High Speed memory Speed Much slower than the RAM.
25
Random Access Memory (RAM)
Static RAM Dynamic RAM
Information is stored in 1 bit cell called Flip Flop. Information is represented as charge across a
capacitor.
Information will be available as long as power It retains data for few ms based on the charge of
capacitor even in the absence of a power
is available
No refreshing is needed Refreshing is needed
26
PROM & EPROM
27
Secondary memory
Secondary memory (Non-volatile storage) is a form of storage that retains data even in the
absence of a power source and that is used to store the programs between runs.
28
Magnetic Disk
Advantages:-
29
Optical Disk
Optical Disk: Include both Compact Disk (CD) and Digital Video Disk(DVD).
Read-Only CD/DVD:
Data is recorded in a spiral fashion, with individual bits being recorded by burning small pit. The disk
is read by shining a laser at the CD surface and determining by examining the reflected light whether
there is a pit or flat surface.
Rewritable CD/DVD
Use different recording surface that as a crystal line, reflective materials, pits are formed that are not
reflective.
Erase CD/DVD
The surface is heated and cooled slowly, allowing an annealing process to restore the surface
recording layer to its crystalline structure.
30
Cache Memory
Cache memory is a chip-based computer component that
makes retrieving data from the computer's memory more
efficient.
31
Registers
Register is a group of flip-flops which can be used to store a word.
It is a high-speed temporary storage space for holding data, addresses and instructions during processing the
instruction.
32
General Register organization
33
Multiplexer
34
35
36
37
38
Problem-
39
8 X 1 MUX using 2X1 MUX
40
Problem-
41
8 X 1 MUX using 4X 1 MUX and2X1 MUX
42
Problem-
43
Problem-
44
Problem-
45
Problem-
46
General Register organization
47
General Register organization
Binary code SELA SELB SELD
000 Input Input ---
EXAMPLE:
• To perform the operation R3 = R1+R2
001 R1 R1 R1
010 R2 R2 R2
1. SEL A: 001 -To place the contents of R1
into bus A.
011 R3 R3 R3
2. SEL B: 010 - to place the contents of R2 into
bus B 010 R4 R4 R4
48
Operation with symbol
Operation selection code Operation symbol
0000 Transfer A TSFA
0001 Increment A INC A
0010 A+B ADD
0011 A-B SUB
0100 Decrement A DEC
0101 A AND B AND
0110 A OR B OR
0111 A XOR B XOR
1000 Complement A COMA
1001 Shift right A SHR
1010 Shift left A SHL
49
Special Purpose Register
They are used for the specific purpose by the control hardware
Special
Purpose
Register
PC is used to
store the address
of next PC AC
instruction to be AC holds the result
executed generated by ALU
51
Binary Number Representation
52
Signed and Unsigned Binary
53
Finding 1’s complement
54
Inverters used to obtain 1’s complement of a binary
numbers
55
Finding 2’s complement
56
Finding 2’s complement
57
Representation of the signed integers in Binary Three forms
Signed
1’s 2’s
Magnitude
Complement Complement
form
58
Representation of the signed integers in Binary Three forms
59
Representation of the signed integers in Binary Three forms
60
Representation of the signed integers in Binary Three forms
61
Representation of the signed integers
62
Range on 2’s complement representation
63
• Arithmetic operation with
numbers Addition
Subtraction
Multiplication
Division
64
Addition with Unsigned number
65
Subtraction with Unsigned number
66
Rules for Addition and Subtraction using Signed –
Magnitude Data
67
68
69
Overflow?
70
Examples of Overflow
71
Multiplication with Unsigned number
72
Division
73
Thank You
74