Professional Documents
Culture Documents
Lec2-3 Jan 19th 21st 2023
Lec2-3 Jan 19th 21st 2023
and Interfacing
Lecture 02 & 03
19/01/23 - 21/01/23
Today’s Lecture
• Block diagrams of a microprocessor and instruction cycles
• Different buses and the nature of data transmission in them.
• Size of a P.
• Processor Memory
• Instruction Set Architecture (ISA): RISC, CISC
• Basic Parallel Techniques
• Flynn’s Taxonomy
1/25/2023 2
1. Fetch Cycle
The fetch cycle takes the instruction required from memory, stores it in the
instruction register.
2. Execute Cycle
The actual actions which occur during the execution cycle of an instruction.
1/25/2023 3
-Fetches Instruction
Microprocessor Data
Bus
-Executes Instruction
Control
signals
1/25/2023 5
1/25/2023 6
1/25/2023 7
DATA BUS:
No of Data lines
• 16 lines –D15–D0
• 64K
CONTROL LINES:
-Active low signals
• MEMR
• MEMW
• IOR
1/25/2023
• IOW 8
• Bit Organized
• Nibble Organized
• Byte Organized
1/25/2023 9
Add Bus
Memory -
Registers to hold bits
Data Bus
Memory
Read
Write
1/25/2023 11
1/25/2023 12
Today’s Lecture
• Instruction Set Architecture (ISA): RISC, CISC
• Basic Parallel Techniques
• Flynn’s Taxonomy
1/25/2023 13
ISA
1/25/2023 15
CISC:
MUL A,B
RISC:
LDA R0,A
LDA R1,B
MUL R0,R1
STR A,R0
1/25/2023 16
CPU-SPEEDUP
1/25/2023 17
What is Operand?
An operand is a value that an instruction operates on.
By giving an instruction type and an addressing mode, we have somehow specified
some operands for the instruction.
1/25/2023 19
Endianness
Big Endian or Little Endian.
MSB at first or last.
Alignment
Some ISAs, for implementation reasons, require that memory accesses be
aligned.
Ex: Access to an 8-byte quadword must be through an address divisible by 8
in Alpha, otherwise the offending load or store instruction will generate an
exception resulting in an error.
Addressing Modes
The way in which a machine instruction accesses memory.
Instruction contains some data that is used to come up with the effective
address that will be used in some transactions with the memory system.
1/25/2023 20
Instructions Encoding
1/25/2023 22
J-Type: JMP BX
1/25/2023 23
Instruction pipelining.
New inputs are accepted at one end before previously accepted inputs
appear as outputs at the other end.
Improves speed dramatically
Susceptible to hazards like resource, data, and control.
Serial Execution
1/25/2023 24
• Pipelining
• Replication
INSTRUCTION PIPELINES
Instruction:
• Fetch
• Decode
• Execute
1/25/2023 25
Example:
1/25/2023 26
1/25/2023 27
Jobs are broken into discrete parts that can be executed concurrently.
Each part is further broken down into a series of instructions.
Instructions from each part are executed simultaneously on different
CPUs.
1/25/2023 29
SISD SIMD
1/25/2023 30
MISD
1/25/2023 31
MIMD
1/25/2023 32
1/25/2023 33
1/25/2023 36