Lecture1 All
Lecture1 All
•Foundation for Advanced Studies: It lays the groundwork for advanced areas
of computer science, such as operating systems, networks, embedded systems,
and computer architecture, which require a deep understanding of how
computers are built and operate.
TOPICS COVERED
• 1.1 What is computer architecture
and computer organization?
•
• 1.2 What is computer structure and
computer function?
Computer Architecture versus Computer organization
• Architecture:
• Memory addressing techniques: define how the system locates, and accesses
data stored in memory.
Architecture
defines:
•Main Memory (RAM): the system's short-term memory, where data and
programs currently in use are stored for quick access.
•Secondary Storage: Devices like hard drives (HDDs) and solid-state drives
(SSDs) are used for long-term data storage.
Registers, ALU,…
Main
System RAM
interconnection
- Controls the operation of the computer (directs and manages all the tasks
and activities inside a computer) and
- performs the core data processing tasks, making it essential for executing
instructions and computations
2. Main memory: is the storage area where data and instructions are kept
temporarily while the CPU needs them for processing.
3. I/O: Moves data between the computer and its external environment.
2. Arithmetic and logic unit (ALU): Performs the computer’s data processing
functions.
– They are small, very fast storage areas inside the CPU that temporarily hold
data and instructions that the CPU is currently using or processing.
– They enable data and control signals to flow between the Control Unit, ALU,
and registers, allowing these components to work together seamlessly.
Key concepts of design that most modern
computer follows
• Such a design is referred to as the: von Neumann architecture.
• Three key concepts:
1. Data and instructions are stored in a single read–write memory.
o Both the data the computer uses and the instructions for processing
that data are kept in the same type of memory that can be read
from and written to.
o Each piece of data and instruction in memory has a specific address, and
o you can access them based on these addresses, regardless of whether
they are numbers, text, or other types of information.
Key concepts of design that most modern
computer follows
3. Execution occurs in a sequential fashion (unless explicitly modified)
from one instruction to the next.
This Figure
expands
Figure 1.3
- Ex: if the CPU needs to get data from memory address 0x10, it
will store that address in the MAR before accessing the data.
ii. memory buffer register (MBR): temporarily holds the data that
is either being written to memory by the CPU or data that has been
read from memory.
2. CPU exchanges data with I/O:
ii. I/O buffer register (I/O BR): is used for exchanging data
between an I/O module and the CPU.
• Instruction Register (IR): stores the instruction that has been fetched
from memory and is currently being executed.
• Execution unit:
1. Data lines: (also called data bus) provide a path for moving data among
system modules.
• Data bus may consist of 32, 64, 128, or more separate lines.
o Ex, if the data bus is 32 bits wide and each instruction is 64 bits
long, then the processor must access the memory module twice
during each instruction cycle.
2. Address lines: (also called address bus) are used to specify:
Ex, if the processor wishes to read a word (8, 16, or 32 bits) of data
from memory,
• This address specifies the exact location in memory where the data
is stored.
• Then, the data at that specified location is transferred over the data
bus to the processor.
• Address bus width determines how many unique memory
locations the CPU can point to.
a. The access to the data (being transferred over the data bus).
• Importance of control:
- since all components share the same data and address lines,
there must be a system in place to manage which component
is allowed to use them at any given time.