Computer Architecture and Peripherals
Computer Architecture and Peripherals
Computer Architecture:-
● Computer Architecture is a functional description of requirements and design implementation
for the various parts of a computer.
● It deals with the functional behaviour of computer systems.
● It comes before the computer organisation while designing a computer.
● It refers to the design of the internal workings of a computer system, including the CPU,
memory, and other hardware components.
Computer Organisation:-
● It comes after the decision of Computer Architecture.
● Computer Organization deals with a structural relationship.
● It refers to the operational units and their interconnections that implement the architecture
specification.
Difference between Computer Architecture and Computer Organisation:-
Architecture describes what the computer does. The Organization describes how it does it.
It makes the computer’s hardware visible. It offers details on how well the computer
performs.
The software developer is aware of it. It escapes the software programmer’s detection.
Peripheral Device:-
● It is defined as the device which provides input/output functions for a computer and serves as
an auxiliary computer device without computing-intensive functionality.
2. Output Devices: An output device is generally the reverse of the input process and is used for
sending data from one computer system to another.
Example: Monitors, headphones, printers etc.
3. Storage Devices: Storage devices are used to store data in the system which is required for
performing any operation in the system.
Example: Hard disk, magnetic tape, Flash memory etc.
Function of Computer:-
● Data Processing
● Data Storage
● Data Movement
● Control
Structure of Computer:-
● Main Memory: This structure of the computer is mainly used for storing the data.
● I/O: These structural units of the computer are mainly used for moving data in or out of the
computer.
● System Interconnection: This structural component is held for moving the data and controlling
the signal inside the computer.
● Central Processing Unit: This structural component of the computer performs the controlling
and processing function. Thus, it is also referred to as the processor.
Processor or CPU: The processor can be classified into the components discussed below:
● Control Unit: This unit controls all the operations of the processor.
● Arithmetic & Logic Unit (ALU): This unit performs the computations while data processing.
● Registers: It is the internal storage unit of the processor.
● CPU Interconnections: This unit provides communication between the control unit, ALU and
registers.
1.Computer Components:
● CPU: The Control Unit (CU) and the Arithmetic and Logic Unit (ALU) constitute the Central
Processing Unit (CPU) .
● Input/output (I/O module): Data and instructions need to get into the system and results need
to get out.
● Main memory (RAM): Temporary storage of code and results is needed.
2.Computer Function:
● Fetch: The CPU retrieves an instruction from memory.
● Decode: The CPU interprets the instruction to determine the required action.
● Execute: The CPU carries out the instruction, which might involve arithmetic operations, data
movement, or control decisions.
● Store: The result of the operation is written back to memory if necessary.
3.Interconnection Structures:
● Memory- Receives and sends data. Receives control signals like Read, Write and Timing.
● I/O-
Input-> Receive data from peripheral and send data to computer.
Output-> Receive data from computerand send data to peripheral.
● CPU- Reads instruction and data Sends control signals to other units
4. Bus interconnection:
● Data Bus: Transfers actual data between components.
● Address Bus: Carries the addresses of the memory locations where data is to be read or
written.
● Control Bus: Carries control signals to manage operations (e.g., read/write operations).
1. Location:
● CPU : This is often in the form of CPU registers and small amount of cache.
● Internal or main: This is the main memory like RAM or ROM. The CPU can directly
access the main memory.
● External or secondary: It comprises of secondary storage devices like hard disks,
magnetic tapes. The CPU doesn’t access these devices directly.
2. Capacity:
● Word size: Words are expressed in bytes (8 bits).
● Number of words: This specifies the number of words available in the particular
memory device.
3. Unit of Transfer:
● It is the maximum number of bits that can be read or written into the memory at a
time.
● In case of main memory, it is mostly equal to word size.
● In case of external memory, unit of transfer is referred to as blocks.
6. Physical type: Memory devices can be either semiconductor memory like RAM) or magnetic
surface memory (like Hard disks).
7. Physical characteristics: If a memory device continues to hold data even if power is turned
off. The memory device is non-volatile else it is volatile.
8. Organisation: The memories in which data once programmed cannot be erased are called
Non-erasable memories. Memory devices in which data in the memory can be erased is
called erasable memory.
1. Registers: Registers are small, high-speed memory units located in the CPU. They are used to
store the most frequently used data and instructions.
2. Cache Memory:
Cache memory is a small, fast memory unit located close to the CPU. It stores frequently used data
and instructions that have been recently accessed from the main memory.
3. Main Memory:
Main memory, also known as RAM (Random Access Memory), is the primary memory of a computer
system.Types of Main Memory
● Static RAM: Static RAM stores the binary information in flip flops and information remains
valid until power is supplied.
● Dynamic RAM: It stores the binary information as a charge on the capacitor.
4. Secondary Storage: Secondary storage, such as hard disk drives (HDD) and solid-state drives
(SSD), is a non-volatile memory unit that has a larger storage capacity than main memory. It is used
to store data and instructions that are not currently in use by the CPU.
5. Magnetic Disk: Magnetic Disks are simply circular plates that are fabricated with either a metal or
a plastic or a magnetized material. The Magnetic disks work at a high speed inside the computer and
these are frequently used.
6. Magnetic Tape:Magnetic Tape is simply a magnetic recording device that is covered with a plastic
film. It is generally used for the backup of data. In the case of a magnetic tape, the access time for a
computer is a little slower and therefore, it requires some amount of time for accessing the strip.
Cache Memory:-
● Block Line: Minimum amount of information that can be either present or not present in a
cache level.
● Hit: An access where the data requested by the processor is present in the cache.
● Miss: An access where the data requested by the processor is not present in the cache.
● Hit Time: Time to access the cache memory block and return the data to the processor.
● Hit rate/Miss Rate: Fraction of memory access found (not found) in the cache.
● Miss penalty: Time to replace a block in cache with corresponding block from the next level.