Unit I
Unit I
• Fundamentals of computer
• Basic measures of computer performance
• Clock speed
• CPI
• MIPs
• Mflops
• Number representation methods
• integer
• floating-point
Fundamental Units of Computer
• Computer
• A programmable electronic device
• Stores, receives and processes data
• Accepts digitized input
• Process as per internal instructions
• Results processed information
• Computer types
• Personal/Desktop
• Laptop
• Notebook
• Servers
• Workstations
• Supercomputers etc.
Functional Units of computer
Five functional Units.ndependent units.
INPUT
ALU
MEMORY
OUTPUT CONTROL
I/O PROCESSOR
INPUT UNIT
• Accepts coded information from electromagnetic devices
• Reads the data
• e.g. keyboard
MEMORY
1001110001
PROCESSOR
• M/C Instructions:
• Explicit commands that govern transfer of information
• Within computer
• Between the computer
• Its I/O devices
• Specify arithmetic and logical operations to be performed
• Program:
• List of instructions that perform a task
• Stored in memory
• Computer is completely controlled by the stored program
• Data:
• Numbers and encoded characters used as operands by the instructions
• Any digital information
• An entire program can be considered as data if it is to be processed by another program
Memory Unit
• Used to store Program and Data
• Memory contains-
• Large number of semiconductor storage cells
• Each cell capable of storing one bit information
• Cells are processed in groups
• Fixed size cells-words (16 bit, 64bit)
• Accessing word from a memory:
• A distinct address is associated with each word location
• Address identifies the location in memory map
• 2 Memory classes:
• Primary:
• RAM: Quick access memory,
• Hierarchy of 3 to 4 levels of RAM
• Cache: Small, fast RAM units.
• ROM: largest, slowest unit
• Secondary:
• To store large amount of data and programs that are infrequently used
• Optical disks, magnetic tapes,hard disks etc.
ALU: Arithmetic and Logic Unit
• Inherent part of the processor
• Arithmetic and logical
operations
• Addition, multiplication, division,
comparison
• Operands from memory brought
to processor and operation is
performed by ALU
• Operands in processor are
stored in high-speed storage
elements i.e. registers
OUTPUT UNIT
Control Unit
• Directs the operations of the processor
• Manages and co-ordinates all the activities in CPU
• Functions of control unit:
• Instruction Fetching
• Instruction Decoding
• Instruction Execution
• Control Signals
• Program counter management
• Components of the Control Unit
• Control Memory: Stores microinstructions that define the operation of the control
unit.
• Control Logic Circuits: Generate control signals based on the microinstructions.
• Sequencing Logic: Determines the order in which operations are performed.
• Registers: Hold temporary data and instructions that are being processed.
Bus structure
• Bus
• Network of electrical pathways that connects various hardware components
• Ensures seamless exchange of data, addresses and control signals
• Memory read
• Memory write
• I/O write
Memory Data
Memory Address
Register
Register
Program
Counter
Instruction
Register
Operational details of the processor
• Instruction Register (IR):
• Holds the instruction currently being executed
• O/P of IR generate timing signals to control the processing elements
• Program Counter (PC) :
• Keeps track of instruction being executed
• Contains the memory address of the next instruction
• N-general purpose registers
• MAR and MDR facilitates the communication with the memory.
• MAR: Memory Address Register
• Holds the address of the location to be accessed
• MDR: Memory Data Register
• Contains the data to be written into or read out of the addressed location.
Program
PC points to
first instruction
Read control Signal
PC points to
first instruction
Read control Signal
Word
to MDR
PC points to
first instruction
Read control Signal
Word
to MDR
PC points to
first instruction
Read control Signal
Word
to MDR
PC points to
first instruction
Interrupts
• I/O devices may intervene normal execution of programs by demanding
urgent service.
• Clock Speed:
• The frequency at which CPU executes the instructions
• Measured in GHz
• Higher clock speed, Faster Processing performance
• Clock Rate: Let P-Length of one clock cycle