Unit 1
Unit 1
It acts as the interface between hardware and It deals with the components of a connection
software. in a system.
Computer Architecture helps us to Computer Organization tells us how exactly all
understand the functionalities of a system. the units in the system are arranged and
interconnected.
Computer Architecture deals with high- Computer Organization deals with low-
level design issues. level design issues.
•What it does: It’s the part of the computer that gets data from
outside sources (like you, the user) and sends it to the computer.
•Examples: Keyboard, mouse, microphone, or scanner.
•How it works: You give input (like typing on a keyboard), and the
input unit sends that data to the rest of the computer to process.
• Central Processing Unit (CPU):
• What it does: The CPU is like the brain of the computer. It does all the
thinking and decision-making.
• Parts of the CPU:
• Arithmetic & Logic Unit (ALU): Does math calculations and logic decisions
(like checking if something is true or false).
• Control Unit (CU): Controls and directs the flow of data within the CPU and
other parts of the computer.
• How it works: The CPU takes input, processes it, and sends out results
(or stores them).
• Memory Unit (RAM):
• What it does: The memory stores data and instructions that the CPU
needs to use right away.
• Types of memory:
• RAM (Random Access Memory): Temporarily stores data that the CPU is
actively using.
• Cache: A small, super-fast memory that helps the CPU access frequently used
data faster.
• How it works: The memory unit keeps data that’s being used right
now. Once the computer is turned off, the data in RAM is erased.
• Arithmetic & Logic Unit (ALU):
• What it does: It performs all the calculations and decision-making
that the CPU needs.
• Examples: It adds numbers, compares values (is this number greater
than that?), and performs other mathematical operations.
• How it works: When the CPU needs to do math or logic, the ALU gets
the job done and sends the result back to the CPU.
• Control Unit (CU):
• What it does: The control unit is the boss of the computer. It tells all
the other parts of the computer what to do and when to do it.
• How it works: It reads instructions from the memory, decodes them,
and makes sure they’re carried out in the right order. It keeps
everything working together smoothly.
• Output Unit:
• What it does: After the CPU processes the data, the output unit
shows the result to the user.
• Examples: Monitor (displays text and images), printer (prints
documents), speakers (play sound).
• How it works: The output unit takes the processed data from the CPU
and turns it into something we can understand, like showing a picture
on the screen or printing a document.
• Memory - Primary and Secondary
• Primary Memory: This is the immediate storage that the CPU uses to
store data that is currently being processed. Examples include:
• RAM (Random Access Memory): Volatile memory that stores data
temporarily during program execution.
• Cache: A small, fast memory that stores frequently accessed data.
• Secondary Memory: Used for permanent data storage and is slower
than primary memory. Examples include hard drives, SSDs, CDs, etc.
• Memory Organization
• Memory organization refers to how the data is arranged, stored, and
accessed in a computer's memory. It involves the management of
primary and secondary memory systems to optimize speed, efficiency,
and storage capacity. Here’s a simple breakdown:
• Memory Hierarchy:
• Think of this as a system where faster memory is on top and slower
memory is on the bottom.
• Top memory (like cache and RAM) is really fast but smaller in size.
• Bottom memory (like hard drives or SSDs) is slower but holds a lot
more data.
• The computer uses the fast memory when it needs quick access and
the slower memory for long-term storage.
• How It Works:
• CPU (Central Processing Unit) is the brain and needs memory to
work. It uses fast memory (RAM) for quick tasks.
• But the CPU also needs large amounts of storage for all your files,
programs, etc. That’s where secondary memory (hard drive or SSD)
comes in. It’s slower but holds everything.
• Cache memory is the fastest type, and it’s right next to the CPU, so it
can provide quick access to the most-used data.
• Types of Memory in the Organization:
• Registers: These are tiny, super-fast storage locations inside the CPU that
hold data temporarily while the CPU is working.
• Cache Memory: A small, fast memory that stores the most frequently used
data to speed things up.
• RAM (Random Access Memory): The main memory the CPU uses to store
data temporarily while it’s working on it. It's fast but forgets everything
when the computer is off.
• Secondary Memory (Hard Drives, SSDs): These hold your files and
programs long-term. They are slow to access compared to RAM but can
store huge amounts of data.
• Why It Matters:
• Memory organization is important because it makes sure the
computer can quickly access the data it needs without getting stuck
or slowing down.
• It organizes data so that the computer can find and use it in the most
efficient way.
Stored Program Concept-Von Neumann
Architecture
• Stored Program Concept:
• What it is: It’s the idea that a computer stores both instructions (the
tasks it needs to do) and data (the information it works with) in its
memory.
• How it works: In this system, a program (set of instructions) is loaded
into the computer’s memory, just like any other data. The computer can
then read the instructions and follow them one by one.
• Why it’s important: Before this concept, computers were programmed
with hardwired instructions that couldn’t be easily changed. The stored
program allows us to change programs easily by just changing the data
in memory.
• Von Neumann Architecture:
• What it is: This is a type of computer design where the CPU (brain) is
connected to a single memory that stores both data and program
instructions.
• Components of Von-Neumann Model:
o Central Processing Unit
o Buses
o Memory Unit
• Central Processing Unit
• The part of the Computer that performs the bulk
of data processing operations is called the
Central Processing Unit and is referred to as the
CPU.
• The Central Processing Unit can also be defined
as an electric circuit responsible for executing
the instructions of a computer program.
• The major components of CPU are Arithmetic
and Logic Unit (ALU), Control Unit (CU) and a
variety of registers.
• Arithmetic and Logic Unit (ALU)
• The Arithmetic and Logic Unit (ALU)
performs the required micro-operations for
executing the instructions. In simple words,
ALU allows arithmetic (add, subtract, etc.)
and logic (AND, OR, NOT, etc.) operations
to be carried out.
• Control Unit
• The Control Unit of a computer system controls
the operations of components like ALU, memory
and input/output devices.
• Registers
• Registers refer to high-speed storage
areas in the CPU. The data processed
by the CPU are fetched from the
registers.
Registers
MAR (Memory Address Register) This register holds the memory
location of the data that needs to be
accessed.
MDR (Memory Data Register) This register holds the data that is
being transferred to or from memory.
Bus Description