Hardware and Computer Architectures Flashcards
What does a computer consist of at its most basic level?
A processor and memory storage.
What are the two categories of bits (0s and 1s) stored in memory?
Data and instructions.
How does a CPU-based system work?
- Checks the memory address for the next instruction.
- Reads the instruction.
- If data is needed, fetches the data from memory.
- Processes the data.
- Sends the result to the output memory address.
- Repeats millions or billions of times per second.
What is the function of the Arithmetic and Logic Unit (ALU)?
The ALU performs arithmetic operations (addition, subtraction) and logic operations (AND, OR) on data.
What does the Control Unit do in a CPU?
The Control Unit controls the ALU, manages communication with input/output devices, and interprets and executes processor instructions.
What are CPU registers, and what are they used for?
CPU registers are small memory storage units built into the processor, used for temporary data storage. They are measured in bits (e.g., 8-bit, 32-bit, 64-bit).
What are the five registers in the Von Neumann architecture?
- Program Counter (PC) – Holds the memory address of the next instruction.
- Memory Address Register (MAR) – Stores the address of the current instruction or next data transfer.
- Memory Data Register (MDR) – Holds the data from the memory address in MAR.
- Accumulator (AC) – Stores processed data or arithmetic/logic results.
- Current Instruction Register (CIR) – Contains the binary instruction being executed.
What is a bus in a CPU system?
A bus is a connection used for data transfer between components in a computer.
What are the three types of buses in the Von Neumann architecture?
- Address Bus – Sends memory addresses.
- Control Bus – Carries instructions and device status signals.
- Data Bus – Sends and receives data.
Why does the CPU need a control bus?
The control bus allows the CPU to send instructions and receive status updates from devices to ensure they are ready for new tasks.
How is memory addressed in Von Neumann architecture?
Each byte of memory has a unique binary address, like a mailbox storing a binary number.
How does the number of address bits affect memory size?
The number of bits used for addressing determines the total addressable memory. For example, 16-bit addressing can access 216 = 65, 536 216 = 65,536 bytes (64K).
What do registers do in memory addressing?
Some registers store memory addresses to track the last accessed byte and point to the next byte for sequential reading.
How is memory used in the Von Neumann architecture?
Memory is used for both data and instructions, allowing flexibility in how it is allocated.
What is an advantage of Von Neumann memory usage?
The programmer and program can dynamically allocate memory between data and instructions as needed.
What is a disadvantage of Von Neumann memory usage?
Since data and instructions share the same memory bus, high data loads can delay instruction execution (Von Neumann bottleneck).
Why was cache memory added to the CPU?
Cache memory was added to reduce delays in accessing RAM by storing frequently used data directly on the CPU for faster access.
How does data flow from storage to the CPU?
Data moves from the hard drive → RAM → L3 cache → L2 cache → L1 cache → CPU, with each step being faster but smaller in storage.
Why is cache memory faster than RAM?
Cache is built directly into the CPU, reducing the distance data travels and speeding up access time.
How does the CPU decide what data to store in cache?
The CPU uses algorithms to predict and store the most relevant data in its cache for quick access.
What is the main weakness of the Von Neumann architecture that cache memory helps solve?
The Von Neumann bottleneck—where data and instructions share a single memory bus—slows down processing, which cache helps mitigate.
What happens to the operating system when a computer starts up?
The operating system (e.g., Windows 10) is loaded into RAM to run the computer.
How much RAM does Windows 10 require?
Windows 10 requires at least 2GB of RAM, reducing the available memory for applications and data.
What is the purpose of RAM in a personal computer?
RAM temporarily holds active programs and data, allowing quick access while working.