Computer Architecture ITC2202: Instruction Set Architecture (ISA)
Computer Architecture ITC2202: Instruction Set Architecture (ISA)
ARCHITECTURE
ITC2202
Chapter III
Instruction Set Architecture (ISA)
Dr. Chamara Liyanage
Senior Lecturer
Department of Information and Communication Technology ( ICT)
Faculty of Technology , University of Sri Jayewardenepura
2020/04
How to protect yourself from the coronavirus
▪ Responsibility
▪ Everyone has a responsibility to avoid getting infected and the spread to other people
▪ Computer Architecture
A quantitative Approach
John L. Hennessy and David A. Patterson
Topics
Source: https://www.youtube.com/watch?v=DJgZi0Bdp_g
Different Architectures
There are two types of concepts to implement the processor hardware architecture.
▪ Complex Instruction Set computer (CISC)
A complex instruction set computer is a computer where single instructions can
perform numerous low-level operations.
Computers based on the CISC architecture are designed to decrease the memory
cost.
Nintendo Switch
▪ Reduced Instruction Set Computer (RISC) DS
RISC is used in portable devices due to its power efficiency. For Example, Apple iPod
and Nintendo DS (handheld game console ).
RISC is a type of microprocessor architecture that uses highly-optimized set of
instructions.
Difference between RISC and CISC
CISC RISC
▪ CSIC processor has complex instructions ▪ RISC processors have simple instructions
that take up multiple clocks for execution. taking about one clock cycle. The average
The average clock cycle per instruction clock cycle per instruction (CPI) is 1.5
(CPI) is in the range of 2 and 15. ▪ Performance is optimized with more focus
on software
▪ Performance is optimized with more focus
on hardware. ▪ The instruction set is reduced i.e. it has
only a few instructions in the instruction set.
▪ The instruction set has a variety of different Many of these instructions are very
instructions that can be used for complex primitive.
operations.
▪ It does not require external memory for
▪ It requires external memory for calculations calculations
▪ Eg. Motorola 68000 family, AMD, and ▪ E.g. The most common RISC
microprocessors are ARM, MIPS,
Intel x86 CPUs.
Elements of an Instruction
▪ Arithmetic ▪ Logical
▪ Add, Subtract, Multiply, Divide for ▪ Bitwise operations: AND, OR, NOT,
signed integer (+ floating point and XOR, TEST, CMP, SET
packed decimal) – may involve
▪ Shifting and rotating functions, e.g.
data movement
▪ logical right shift for unpacking: send
▪ May include 8-bit character from 16-bit word
▪ Absolute (|a|) ▪ arithmetic right shift: division and
▪ Increment (a++) truncation for odd numbers
▪ Decrement (a--) ▪ arithmetic left shift: multiplication
▪ Negate (-a) without overflow
Instruction types ; Data Transfer
Source :
Interactive lecture at http://test.scalable-learning.com,
Number of Addresses
▪ More addresses
▪ More complex (powerful?) instructions
▪ More registers - inter-register operations are quicker
▪ Less instructions per program
▪ Fewer addresses
▪ Less complex (powerful?) instructions
▪ More instructions per program, e.g. data movement
▪ Faster fetch/execution of instructions
Types of Operands
▪ Numbers
Three types of numerical data are common in computers
Binary integer or binary fixed point
Binary floating point
Decimal
▪ Characters
Text or character string and represented by a sequence of bits. E.g. ASCII (American Standard Code for
Information Interchange), IRA (International Reference Alphabet
▪ Logical data
Boolean or binary data
NEXT PART 2