CA Lecture 10 1
CA Lecture 10 1
CA Lecture 10 1
أ
sem7 lecture No (10) ﻋﻠﻮم ﺣﺎﺳﻮب
CPU Architecture:
CPU Architecture also known as Instruction Set Architecture (ISA).
ISA allows communication between software and hardware.
ISA is also a group of commands for CPU in machine Language.
Basically ISA tall you how processor is going to process your program and
instructions (commands). Instructions is also called opcode or operation code.
Example of opcode:
add
Jump
Load
store
CISC:
CISC is stand for Complex Instruction Set Computing. It is architecture for large
number of instructions.
Example of CISC:
The microprocessor of CISC is Intel 80286 which is the 64bit version of 8086
instructions set.
Its used on desktop (PC) and laptop.
RISC:
RISC is stand for Reduced Instruction Set Computing. It is has lesser number of
instructions.
Example of RISC:
ARM processor
Its used on taplet, smart phone and even in game consle.
Page 1 of 5
Computer Architecture إﺑﺘﺴﺎم أﺑﻜﺮ.أ
sem7 lecture No (10) ﻋﻠﻮم ﺣﺎﺳﻮب
Example of CISC and RISC:
Writing A * B
For CISC Instruction Set there is special command called mull (to complex)
Mull A, B
For RISC Instruction Set its divided into numbers of small instructions (small instructions)
LOAD R1, A
LOAD R2, B
PROD A, B
STORE R3, A
Both RISC and CISC architectures have been developed as an attempt to cover the semantic
gap, and consequently to reduce the ever growing software costs.
This evolution has increased the semantic gap between programming languages and machine
languages.
Page 2 of 5
Computer Architecture إﺑﺘﺴﺎم أﺑﻜﺮ.أ
sem7 lecture No (10) ﻋﻠﻮم ﺣﺎﺳﻮب
Microprogrammed Control:
Microprogramming is a technique used to implement the control unit.
The basic idea is to implement the control unit as a micro-program execution machine (a
computer inside a computer).
The set of micro-operations occurring at one time defines a microinstruction.
A sequence of microinstructions is called a microprogram.
Complex machine instructions may not match high-level language statements exactly, in
which case they may be of little use.
This will be a major problem if the number of languages is getting bigger.
Instruction sets designed with specialized instructions for several high-level languages will
not be efficient when executing program of a given language.
Complex design tasks.
Page 3 of 5
Computer Architecture إﺑﺘﺴﺎم أﺑﻜﺮ.أ
sem7 lecture No (10) ﻋﻠﻮم ﺣﺎﺳﻮب
Main Characteristics of RISC:
A small number of simple instructions (desirably < 100).
Simple and small decode and execution hardware are required.
A hard-wired controller is needed, rather than using microprogramming.
The CPU takes less silicon area to implement, and runs also faster.
Load-and-store architecture
Only LOAD and STORE instructions reference data in memory.
All other instructions operate only with registers (are register-to-register instructions).
Page 4 of 5
Computer Architecture إﺑﺘﺴﺎم أﺑﻜﺮ.أ
sem7 lecture No (10) ﻋﻠﻮم ﺣﺎﺳﻮب
The large number of registers is due to that the reduced complexity of the processor leaves
silicon space on the chip to implement them.
This is usually not the case with CISC machines.
Register Windows:
A large number of registers is usually very useful.
However, if contents of all registers must be saved at every procedure call, more registers
mean longer delay.
A solution to this problem is to divide the register file into a set of fixed-size windows.
Each window is assigned to a procedure.
Windows for adjacent procedures are overlapped to allow parameter passing.
Page 5 of 5