Lecture 1
Lecture 1
Lecture 1
Abhinav Agarwal
Veeramani V.
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 © Intel Corp.
Scalable
Single design – multiple use
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
Address Address
(PC) (reg)
Data Instr
Out Register File Instr In
r1
r2
r3
r4 ALU
Data Data (Calculator) Control Control Unit
Inst
In Flags Address
PC
Data
Address
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 Assembly language
(Like C, C++, Java)
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
Nine 9 1001 9
Ten 10 1010 A
Eleven 11 1011 B
Twelve 12 1100 C
Thirteen 13 1101 D
Fourteen 14 1110 E
http://www-inst.eecs.berkeley.edu/~cs152/fa05/ppt/
lec1-1.ppt Slides 24-28
lec1-2.ppt
lec2-1.ppt