SlideShare a Scribd company logo
1 of 15
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
 Today’s 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 Slides 24-28
 lec1-2.ppt
 lec2-1.ppt

More Related Content

What's hot

CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - BasicYong Heui Cho
 
Processor Organization
Processor OrganizationProcessor Organization
Processor OrganizationDominik Salvet
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
RISC and CISC Processors
RISC and CISC ProcessorsRISC and CISC Processors
RISC and CISC ProcessorsAdeel Rasheed
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Assembly level language
Assembly level languageAssembly level language
Assembly level languagePDFSHARE
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptmali yogesh kumar
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE Himanshu Sharma
 
Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionCésar de Souza
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycleutsav_shah
 
Computer organization
Computer organizationComputer organization
Computer organizationishapadhy
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process ConceptsMukesh Chinta
 

What's hot (20)

memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
CPU Architecture - Basic
CPU Architecture - BasicCPU Architecture - Basic
CPU Architecture - Basic
 
Processor Organization
Processor OrganizationProcessor Organization
Processor Organization
 
Computer registers
Computer registersComputer registers
Computer registers
 
RISC and CISC Processors
RISC and CISC ProcessorsRISC and CISC Processors
RISC and CISC Processors
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Interrupt presentaion
Interrupt presentaionInterrupt presentaion
Interrupt presentaion
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Assembly level language
Assembly level languageAssembly level language
Assembly level language
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture ppt
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Interrupts
InterruptsInterrupts
Interrupts
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 
Chapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and InterconectionChapter 3 - Top Level View of Computer / Function and Interconection
Chapter 3 - Top Level View of Computer / Function and Interconection
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
 
Computer organization
Computer organizationComputer organization
Computer organization
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 

Similar to Lecture1 - Computer Architecture

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 ISIMjournalBEEI
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptxFatma Sayed Ibrahim
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
07 processor basics
07 processor basics07 processor basics
07 processor basicsMurali M
 
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
 
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 KumarMitesh Kumar
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptxPratik Gohel
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basicsLucky Sithole
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.pptSoulReaper21
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro Pikinfad
 

Similar to Lecture1 - Computer Architecture (20)

M&i(lec#01)
M&i(lec#01)M&i(lec#01)
M&i(lec#01)
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 
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
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptx
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
07 processor basics
07 processor basics07 processor basics
07 processor basics
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
Iot Workshop NITT 2015
Iot Workshop NITT 2015Iot Workshop NITT 2015
Iot Workshop NITT 2015
 
Sudhir tms 320 f 2812
Sudhir tms 320 f 2812 Sudhir tms 320 f 2812
Sudhir tms 320 f 2812
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
 
1 Intro To Micro P
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
 
Information technology
Information technologyInformation technology
Information technology
 
Processors selection
Processors selectionProcessors selection
Processors selection
 

Recently uploaded

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Recently uploaded (20)

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

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  Today’s 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 Slides 24-28  lec1-2.ppt  lec2-1.ppt