Micro- Lecture 2
Micro- Lecture 2
AND ARCHITECTURE
Just as buildings, each computer has a visible
structure, referred to as its architecture.
In computer science and engineering computer
architecture is the practical art of selecting and
interconnecting hardware components to create
computers that meet functional, performance and
cost goals and the formal modeling of those
systems.
The functional blocks in a computer are of four
types:
1. Central Processing Unit
2. Memory
3. Input Unit
4. Output Unit
DATA FLOW BETWEEN CPU, MEMORY AND
I/O DEVICES
Data Path
Control Signals
Auxiliary Storage
(Backing Storage)
To Supplement main storage
Memory
Output
Input
Unit
Unit
Registers
Processor
CENTRAL PROCESSING UNIT (CPU)
The CPU or the microprocessor (or simply
processor) is referred as the brain of a computer
system.
CPU consists of three main subsystems, the
Control Unit (CU), the Arithmetic Logic Unit
(ALU), and the Registers.
Speed of the computer system is defined by the
architecture of the processor being used.
CENTRAL PROCESSING UNIT (CPU)
(CONDT…)
ARITHMETIC LOGIC UNIT
The ALU contains electronic circuits necessary to
perform arithmetic and logical operations.
The arithmetic operations are ADD, SUBTRACT,
MULTIPLY, DIVIDE, etc.
The logical operations include COMPARE,
SHIFT, ROTATE, AND, OR, etc
The control unit analyses each instruction in the
program and sends the relevant signals to all
other units – ALU, Memory, Input unit and
Output unit
COMMUNICATION INSIDE A COMPUTER..
A computer program consists of both instructions
and data. The program is fed into the computer
through the input unit and stored in the memory.
In order to execute the program, the instructions
have to be fetched from memory one by one.
This fetching of instructions is done by the
control unit.
After an instruction is fetched, the control unit
decodes the instruction.
According to the instruction, the control unit
issues control signals to other units.
COMMUNICATION INSIDE A COMPUTER..
o After an instruction is executed, the result of the
instruction is stored in memory or stored
temporarily in the control unit or ALU, so that
this can be used by the next instruction.
o The results of a program are taken out of the
computer through the output unit.
o The control unit, ALU and registers are
collectively known as Central Processing Unit
(CPU)
COMMUNICATION INSIDE A COMPUTER
INTERCONNECTION OF UNITS
A computer program consists of both instructions
and data.
The program is fed into the computer through the
input unit and stored in the memory.
In order to execute the program, the instructions
have to be fetched from memory one by one and
store it into registers (working memory) for
processing.
This fetching of instructions is done by the
control unit.
INSTRUCTION CYCLE
Instruction are fetched and executed by the
control unit one by one. The sequences involved
for the fetch of one instruction and its execution
are known as instruction cycle.
INSTRUCTION CYCLE
IAC
Infrastructure as Code
the process of managing and provisioning
computer data centers through machine-readable
definition files, rather than physical hardware
configuration or interactive configuration tools.
MAR
memory address register (MAR )
the CPU register that either stores the memory
address from which data will be fetched to the
CPU registers, or the address to which data will
be sent and stored via system bus.
OPCODE
Operational Code
also known as
instruction machine code
instruction code
instruction syllable
instruction parcel or
Opstring
the first byte of an instruction in machine language which tells the
hardware what operation needs to be performed with this instruction.
Every processor/controller has its own set of opcodes defined in its
architecture.
is the portion of a machine language instruction that specifies the
operation to be performed.
most instructions also specify the data they will process, in the
form of operands. In addition to opcodes used in the instruction
set architectures of various CPUs, which are hardware devices,
they can also be used in abstract computing machines as part of
their byte code specifications.
INSTRUCTION CYCLE STEPS
INTERCONNECTIONS OF UNITS..
Set of wires used for interconnection is known as
system bus which carry group of bits
(information) in a controlled manner.
It is further divided into three logical units,
namely the address bus, the data bus, and the
control bus.
SYSTEM BUSES TYPES
Data Bus: The data bus is used when any unit is
sending data, instruction or command code to
some other units.
Address Bus: The address bus is used when one
unit is sending an address information i.e.
location of the data residing in the memory to
another unit.
CONTROL BUS
Control Bus: The control bus is responsible for
making CPU, memory and I/O devices work
together as a functional system, carrying signals
that report the status (ready, not ready) of
various units.
The function of a control bus is to determine and
instruct according to the operation type (Read or
Write). For example, if the processor or an I/O
device wants to read or write a value from
memory, the control bus will specify it.
PROCESSING OF INFORMATION
The bus is common to all the units in the
computer. Before sending some information on
the bus, an unit should verify whether the bus is
free or occupied with some communication
started by some other unit.
CPU is the bus master in a computer which
decides who should control the bus when more
than one unit wants the bus at the same time.
A unit who needs the bus makes a request to the
CPU and waits sanction. Till the CPU issues
sanction, the requesting unit does not attempt to
use the bus.
INTERCONNECTION OF COMPUTERS UNITS
VIA SYSTEM BUS
Input and
Memory
CPU Output(I/O)
Unit
Units
Data Bus
Address Bus
Control Bus
System
Bus
INTERCONNECTION OF COMPUTERS UNITS
VIA BUS
Memory is Volatile.
Power consumption is high
relative to other options.
Manufacturing is complex.
Data in storage cells needs to be
refreshed.
It is slower than SRAM.
DRAM VS. SRAM
DRAM is a successor to SRAM. Memory designers
reduced the number of elements per bit and eliminated
differential bit lines to save chip area in order to create
DRAM. As a result, DRAM is less expensive to produce
than SRAM.
But SRAM retains some advantages over DRAM.
SRAM does not need to be refreshed because it
operates on the principle of switching the current flow
in one of two directions rather than holding a charge in
place within a storage cell. SRAM is generally used
for cache memory, which can be accessed more quickly
than DRAM.
DRAM VS. SRAM
SRAM is capable of byte-level
reads/writes, and is faster at
reads/writes than DRAM. DRAM writes
data at the byte-level and reads at the
multiple-byte page level.
Power differences vary based on whether
the system is in active or sleep mode.
DRAM requires less power than SRAM
in an active state, but SRAM consumes
considerably less power than DRAM does
while in sleep mode.
READ ONLY MEMORY (ROM)
Data stored in ROM cannot be
modified, or can be modified only
slowly or with difficulty, so it is
mainly used to distribute.
The instructions in ROM are built
into the electronic circuits of the chip
which is called firmware.
Random access in nature and non-
volatile.
TYPES OF ROM
Programmable read-only memory (PROM), or one-
time programmable ROM can be written to or
programmed via a special device called a PROM
programmer.
Erasable programmable read-only memory (EPROM)
can be erased by exposure to strong ultraviolet light
then rewritten with a process that again needs higher
than usual voltage applied.
Electrically erasable programmable read-only
memory (EEPROM) is based on a similar
semiconductor structure to EPROM, but allows its
entire contents (or selected banks) to be electrically
erased, then rewritten electrically, so that they need
not be removed from the computer
FLASH MEMORY
Modern type of EEPROM invented in 1984.
Random access memories and are non-volatile.
Read/Write
memory Factory User Erasable PROM
Programmed Programmable
PROM
SRAM DRAM
Permanent
non-erasable (Non-erasable)
UVEPROM EEPROM
CACHE MEMORY
High speed memory kept in between processor
and RAM to increase the data execution speed.
Kept near to the processor.