際際滷

際際滷Share a Scribd company logo
Computer Architecture
Outline
 Introduction of a Microprocessor
 Microprocessor design objectives and constraints
 Structure
 Interface
 ISA
 Microprocessor Instructions
 Number Systems
What is a Microprocessor?
 A circuit of transistors and other
electrical components on a chip that can
process programs, remember
information, or perform calculations.
 The heart of every CPU
 Requires programmed input
 Advantages over a customised digital
circuit
 Cost
 Scalable
 Single design  multiple use
息 Intel Corp.
Design objectives
 Maximize Performance
 Speed of operation: How quickly an operation can be completed
 Throughput: No of operations completed in unit time, not necessarily
the same as speed, consider Servers.
 Maximize Productivity
 Interface provided must be easy
 Be one step ahead of market needs and two steps
ahead of competition
Dramatic progress over the years
息 Intel 4004 Processor
 Introduced in 1971
 2300 Transistors
 108 KHz Clock
息 Intel P4 Processor
 Introduced in 2000
 42,000,000 Transistors
 1.5 GHz Clock (Initial)
Design Constraints
 Power consumed
 Todays processors consume a peak power of 100 W, which means a
peak current of nearly 80A.
 Area
 Cost
 Backward compatibility
 Windows running on Intel P3 Processor should run on Intel P4 too.
 Time taken to design the processor should not be very
large or else the competitor may get ahead
 Other factors like security, scalability, reliability also need
to be considered in processor design
Microprocessor Markets
 Desktop
 Processor for desktop computers. Cost, backward compatibility are very
important. Eg: Intel Pentium, AMD Athlon
 Servers
 Processor for applications requiring huge amount of computation, data
handling like web servers, database servers, scientific computation
servers. In general, multiple processors are used. Throughput is a very
important metric for servers in general. Eg: Google servers, vsnlproxy
 Embedded
 For applications in electronic appliances, robots, cars, mobiles etc.
Power consumption, cost are very important metrics. Eg:
Microcontrollers like 8051, PIC, specifically designed processors for cars,
mobiles etc.
Structure
 The processor is a computing unit which needs to
interact with memory for getting instructions as well as
data
ProcessorInstruction
Memory
Data
Memory
Address
(PC)
Instruction
Address
(reg)
Data
(loads)
Data
(stores)
Internal Structure of the Processor
 Control Unit
 Fetches instructions from memory, Interprets them, Controls ALU
 ALU
 Does all computations
 Register File
 Stores variables
Data
Address
ALU
(Calculator)
Register File
Data
Control Unit
Instr
Control
Flags
PC
Data
Out
Data
In
Instr
In
Inst
Address
r1
r2
r3
r4
Instruction set architecture (ISA)
 The first step in any processor design would be to decide
on an ISA
 ISA is the interface provided by the architect to the
external world
 The instructions supported with their opcode (The binary representation
of instruction mnemonics)
 The width (number of bits) of data, instruction, data address, instruction
address
 Other information necessary to the compiler like number of registers in
the register file etc.
Assembly Code
 High Level Language
(Like C, C++, Java)
void main ()
{
int a = 22;
int b = 42;
int c = a + b;
}
This conversion is done by compiler
 Assembly language
mov r1, 22 // Put the value 22 in R1
mov r2, 42 // Put the value 42 in R2
add r3, r1, r2 // Add the values in R1
& R2 and put result in R3
Destination
Source1
Source2
Types of Instructions
 ALU
 add, sub, mult, or, and, xor
 Operands may be Register-register, Register-memory, memory-memory
 Immediate operands (will be discussed later)
 MEM
 load, store
 Direct addressed: load r1, 1234H
 Register Addressed: load r1, (r2)
 Control
 jmp, branch
 Change value of PC to required location
Converting Instructions to binary codes
 Each instruction is encoded into a binary format and
stored in the instruction memory.
 The control unit decodes it and gives appropriate signals
to ALU
add r1, r2, r3
000111 00001 00010 00011
6 bit opcode for
the add operation
is 000111
Assuming that the register file
has 32 registers, each
register has a 5 bit code, from
r1 to r31,
r1 = 00001, r31 = 11111
Thus total length of
instruction = 6 + 5*3 = 21 bits
This is an example of fixed
length encoding scheme.
Number Systems
Decimal
(D)
Binary (B) Hexadecimal
(H or X)
Zero 0 0 0
Nine 9 1001 9
Ten 10 1010 A
Eleven 11 1011 B
Twelve 12 1100 C
Thirteen 13 1101 D
Fourteen 14 1110 E
Fifteen (Largest 4 bit no.) 15 1111 F
Forty Two 42 0010 1010 2A
Largest 8 bit no. 255 1111 1111 FF
Largest 16 bit no. 65535 1111 1111 1111 1111 FF FF
References
 How Microprocessors work
http://www.intel.com/education/mpworks/index.htm

http://www-inst.eecs.berkeley.edu/~cs152/fa05/ppt/
 lec1-1.ppt 際際滷s 24-28
 lec1-2.ppt
 lec2-1.ppt

More Related Content

What's hot (20)

04 cache memory.ppt 1
04 cache memory.ppt 104 cache memory.ppt 1
04 cache memory.ppt 1
Anwal Mirza
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
Intro to assembly language
Intro to assembly languageIntro to assembly language
Intro to assembly language
United International University
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
Mr. Vikram Singh Slathia
Chapter 1
Chapter 1Chapter 1
Chapter 1
Ashhad Kamal
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
Shashank Singh
Computer architecture the pentium architecture
Computer architecture the pentium architectureComputer architecture the pentium architecture
Computer architecture the pentium architecture
Mazin Alwaaly
RISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set ComputingRISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set Computing
Tushar Swami
PCI express
PCI expressPCI express
PCI express
sarangaprabod
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
X86 Architecture
X86 Architecture X86 Architecture
X86 Architecture
IGZ Software house
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
Muhammad Ishaq
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
Syed Ahmed Zaki
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Kamal Acharya
Computer memory
Computer memoryComputer memory
Computer memory
X畉u i棚n
Evolution Of Microprocessors
Evolution Of MicroprocessorsEvolution Of Microprocessors
Evolution Of Microprocessors
harinder
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
Arijit Chakraborty
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organization
Badrinath Kadam
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
Kashyap Shah
04 cache memory.ppt 1
04 cache memory.ppt 104 cache memory.ppt 1
04 cache memory.ppt 1
Anwal Mirza
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
Shashank Singh
Computer architecture the pentium architecture
Computer architecture the pentium architectureComputer architecture the pentium architecture
Computer architecture the pentium architecture
Mazin Alwaaly
RISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set ComputingRISC - Reduced Instruction Set Computing
RISC - Reduced Instruction Set Computing
Tushar Swami
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Vinit Raut
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
Muhammad Ishaq
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
Syed Ahmed Zaki
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Kamal Acharya
Computer memory
Computer memoryComputer memory
Computer memory
X畉u i棚n
Evolution Of Microprocessors
Evolution Of MicroprocessorsEvolution Of Microprocessors
Evolution Of Microprocessors
harinder
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
Arijit Chakraborty
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organization
Badrinath Kadam
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
Kashyap Shah

Similar to Lecture1 - Computer Architecture (20)

M&i(lec#01)
M&i(lec#01)M&i(lec#01)
M&i(lec#01)
Majid Mehmood
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
karan bansal
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjdchapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
freefire2619rowdy
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMAn Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
journalBEEI
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptx
Fatma Sayed Ibrahim
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
MeghdeepSingh
07 processor basics
07 processor basics07 processor basics
07 processor basics
Murali M
Data path of Computer Architecture ALU and other components
Data path of Computer Architecture ALU and other componentsData path of Computer Architecture ALU and other components
Data path of Computer Architecture ALU and other components
FazalHameed14
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
Susam Pal
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
Iot Workshop NITT 2015
Iot Workshop NITT 2015Iot Workshop NITT 2015
Iot Workshop NITT 2015
Srivignessh Pss
Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 Sudhir tms 320 f 2812
Sudhir tms 320 f 2812
vijaydeepakg
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
DevaKumari Vijay
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
Mitesh Kumar
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
Pratik Gohel
Instruction codes
Instruction codesInstruction codes
Instruction codes
pradeepa velmurugan
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
Pantech ProLabs India Pvt Ltd
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
Lucky Sithole
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
SoulReaper21
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
ikinfad
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjdchapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
chapter1 -Basic co.pptjsjjsjdjxjdjdjdjjsjsjd
freefire2619rowdy
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIMAn Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
An Enhanced FPGA Based Asynchronous Microprocessor Design Using VIVADO and ISIM
journalBEEI
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptx
Fatma Sayed Ibrahim
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
MeghdeepSingh
07 processor basics
07 processor basics07 processor basics
07 processor basics
Murali M
Data path of Computer Architecture ALU and other components
Data path of Computer Architecture ALU and other componentsData path of Computer Architecture ALU and other components
Data path of Computer Architecture ALU and other components
FazalHameed14
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
Susam Pal
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
Iot Workshop NITT 2015
Iot Workshop NITT 2015Iot Workshop NITT 2015
Iot Workshop NITT 2015
Srivignessh Pss
Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 Sudhir tms 320 f 2812
Sudhir tms 320 f 2812
vijaydeepakg
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
DevaKumari Vijay
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
Mitesh Kumar
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
Pratik Gohel
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
Lucky Sithole
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
SoulReaper21
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
ikinfad

Recently uploaded (20)

POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptxPOWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
MarilenQuintoSimbula
Mate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptxMate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptx
Liny Jenifer
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Essentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok SonawalaEssentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok Sonawala
Association for Project Management
Fuel part 1.pptx........................
Fuel part 1.pptx........................Fuel part 1.pptx........................
Fuel part 1.pptx........................
ksbhattadcm
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18
Celine George
EDL 290F Week 3 - Mountaintop Views (2025).pdf
EDL 290F Week 3  - Mountaintop Views (2025).pdfEDL 290F Week 3  - Mountaintop Views (2025).pdf
EDL 290F Week 3 - Mountaintop Views (2025).pdf
Liz Walsh-Trevino
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Modeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptxModeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptx
maribethlacno2
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptxTRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
PoojaSen20
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptxPOWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
POWERPOINT-PRESENTATION_DM-NO.017-S.2025.pptx
MarilenQuintoSimbula
Mate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptxMate, a short story by Kate Grenvile.pptx
Mate, a short story by Kate Grenvile.pptx
Liny Jenifer
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Blind Spots in AI and Formulation Science Knowledge Pyramid (Updated Perspect...
Ajaz Hussain
Fuel part 1.pptx........................
Fuel part 1.pptx........................Fuel part 1.pptx........................
Fuel part 1.pptx........................
ksbhattadcm
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
N.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity BriefingN.C. DPI's 2023 Language Diversity Briefing
N.C. DPI's 2023 Language Diversity Briefing
Mebane Rash
TPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategyTPR Data strategy 2025 (1).pdf Data strategy
TPR Data strategy 2025 (1).pdf Data strategy
Henry Tapper
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷sHow to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
How to Setup WhatsApp in Odoo 17 - Odoo 際際滷s
Celine George
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18
Celine George
EDL 290F Week 3 - Mountaintop Views (2025).pdf
EDL 290F Week 3  - Mountaintop Views (2025).pdfEDL 290F Week 3  - Mountaintop Views (2025).pdf
EDL 290F Week 3 - Mountaintop Views (2025).pdf
Liz Walsh-Trevino
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptxFESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
FESTIVAL: SINULOG & THINGYAN-LESSON 4.pptx
DanmarieMuli1
How to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of SaleHow to Configure Restaurants in Odoo 17 Point of Sale
How to Configure Restaurants in Odoo 17 Point of Sale
Celine George
Modeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptxModeling-Simple-Equation-Using-Bar-Models.pptx
Modeling-Simple-Equation-Using-Bar-Models.pptx
maribethlacno2
How to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 EmployeeHow to Configure Flexible Working Schedule in Odoo 18 Employee
How to Configure Flexible Working Schedule in Odoo 18 Employee
Celine George
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptxTRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
TRANSFER OF PATIENTS IN HOSPITAL SETTING.pptx
PoojaSen20

Lecture1 - Computer Architecture

  • 2. Outline Introduction of a Microprocessor Microprocessor design objectives and constraints Structure Interface ISA Microprocessor Instructions Number Systems
  • 3. What is a Microprocessor? A circuit of transistors and other electrical components on a chip that can process programs, remember information, or perform calculations. The heart of every CPU Requires programmed input Advantages over a customised digital circuit Cost Scalable Single design multiple use 息 Intel Corp.
  • 4. Design objectives Maximize Performance Speed of operation: How quickly an operation can be completed Throughput: No of operations completed in unit time, not necessarily the same as speed, consider Servers. Maximize Productivity Interface provided must be easy Be one step ahead of market needs and two steps ahead of competition
  • 5. Dramatic progress over the years 息 Intel 4004 Processor Introduced in 1971 2300 Transistors 108 KHz Clock 息 Intel P4 Processor Introduced in 2000 42,000,000 Transistors 1.5 GHz Clock (Initial)
  • 6. Design Constraints Power consumed Todays processors consume a peak power of 100 W, which means a peak current of nearly 80A. Area Cost Backward compatibility Windows running on Intel P3 Processor should run on Intel P4 too. Time taken to design the processor should not be very large or else the competitor may get ahead Other factors like security, scalability, reliability also need to be considered in processor design
  • 7. Microprocessor Markets Desktop Processor for desktop computers. Cost, backward compatibility are very important. Eg: Intel Pentium, AMD Athlon Servers Processor for applications requiring huge amount of computation, data handling like web servers, database servers, scientific computation servers. In general, multiple processors are used. Throughput is a very important metric for servers in general. Eg: Google servers, vsnlproxy Embedded For applications in electronic appliances, robots, cars, mobiles etc. Power consumption, cost are very important metrics. Eg: Microcontrollers like 8051, PIC, specifically designed processors for cars, mobiles etc.
  • 8. Structure The processor is a computing unit which needs to interact with memory for getting instructions as well as data ProcessorInstruction Memory Data Memory Address (PC) Instruction Address (reg) Data (loads) Data (stores)
  • 9. Internal Structure of the Processor Control Unit Fetches instructions from memory, Interprets them, Controls ALU ALU Does all computations Register File Stores variables Data Address ALU (Calculator) Register File Data Control Unit Instr Control Flags PC Data Out Data In Instr In Inst Address r1 r2 r3 r4
  • 10. Instruction set architecture (ISA) The first step in any processor design would be to decide on an ISA ISA is the interface provided by the architect to the external world The instructions supported with their opcode (The binary representation of instruction mnemonics) The width (number of bits) of data, instruction, data address, instruction address Other information necessary to the compiler like number of registers in the register file etc.
  • 11. Assembly Code High Level Language (Like C, C++, Java) void main () { int a = 22; int b = 42; int c = a + b; } This conversion is done by compiler Assembly language mov r1, 22 // Put the value 22 in R1 mov r2, 42 // Put the value 42 in R2 add r3, r1, r2 // Add the values in R1 & R2 and put result in R3 Destination Source1 Source2
  • 12. Types of Instructions ALU add, sub, mult, or, and, xor Operands may be Register-register, Register-memory, memory-memory Immediate operands (will be discussed later) MEM load, store Direct addressed: load r1, 1234H Register Addressed: load r1, (r2) Control jmp, branch Change value of PC to required location
  • 13. Converting Instructions to binary codes Each instruction is encoded into a binary format and stored in the instruction memory. The control unit decodes it and gives appropriate signals to ALU add r1, r2, r3 000111 00001 00010 00011 6 bit opcode for the add operation is 000111 Assuming that the register file has 32 registers, each register has a 5 bit code, from r1 to r31, r1 = 00001, r31 = 11111 Thus total length of instruction = 6 + 5*3 = 21 bits This is an example of fixed length encoding scheme.
  • 14. Number Systems Decimal (D) Binary (B) Hexadecimal (H or X) Zero 0 0 0 Nine 9 1001 9 Ten 10 1010 A Eleven 11 1011 B Twelve 12 1100 C Thirteen 13 1101 D Fourteen 14 1110 E Fifteen (Largest 4 bit no.) 15 1111 F Forty Two 42 0010 1010 2A Largest 8 bit no. 255 1111 1111 FF Largest 16 bit no. 65535 1111 1111 1111 1111 FF FF
  • 15. References How Microprocessors work http://www.intel.com/education/mpworks/index.htm http://www-inst.eecs.berkeley.edu/~cs152/fa05/ppt/ lec1-1.ppt 際際滷s 24-28 lec1-2.ppt lec2-1.ppt