Computer Architecture Flashcards
Table of Contents
- Computer Architecture Flashcards
- What is the von Neumann architecture? drill computer_architecture
- What is the difference between RISC and CISC? drill computer_architecture
- What is pipelining in computer architecture? drill computer_architecture
- What is cache memory? drill computer_architecture
- What is virtual memory? drill computer_architecture
Computer Architecture Flashcards
What is the von Neumann architecture? drill computer_architecture
Front
Describe the key components and principles of the von Neumann architecture.
Back
The von Neumann architecture is a computer architecture model that consists of:
- A central processing unit (CPU)
- Memory for storing both data and instructions
- Input/output mechanisms
- A bus system for data transfer
Key principles:
- Stored program concept: Instructions are stored in memory alongside data
- Sequential execution: Instructions are fetched and executed one at a time
- Use of a common bus for data transfer between components
What is the difference between RISC and CISC? drill computer_architecture
Front
Compare and contrast RISC (Reduced Instruction Set Computing) and CISC (Complex Instruction Set Computing) architectures.
Back
RISC:
- Simple, fixed-length instructions
- Fewer addressing modes
- Load-store architecture
- Emphasis on software optimization
- More general-purpose registers
CISC:
- Complex, variable-length instructions
- Many addressing modes
- Memory-to-memory operations
- Emphasis on hardware optimization
- Fewer, more specialized registers
What is pipelining in computer architecture? drill computer_architecture
Front
Explain the concept of pipelining and its benefits in computer architecture.
Back
Pipelining is a technique where multiple instructions are overlapped in execution. The processor is divided into stages, each performing a specific part of instruction execution.
Benefits:
- Increased throughput
- Improved CPU performance
- Better utilization of hardware resources
Common pipeline stages:
- Instruction Fetch (IF)
- Instruction Decode (ID)
- Execute (EX)
- Memory Access (MEM)
- Write Back (WB)
Challenges: Data hazards, control hazards, structural hazards
What is cache memory? drill computer_architecture
Front
Describe cache memory, its purpose, and levels in modern computer systems.
Back
Cache memory is a small, fast memory located close to the CPU that stores frequently accessed data and instructions.
Purpose:
- Reduce average memory access time
- Bridge the speed gap between CPU and main memory
Levels:
- L1 cache: Smallest, fastest, closest to the CPU
- L2 cache: Larger, slightly slower than L1
- L3 cache: Largest, shared among multiple cores in multi-core processors
Cache operates on the principle of locality:
- Temporal locality: Recently accessed items are likely to be accessed again soon
- Spatial locality: Items near recently accessed items are likely to be accessed soon
What is virtual memory? drill computer_architecture
Front
Explain the concept of virtual memory and its advantages in modern computer systems.
Back
Virtual memory is a memory management technique that provides an idealized abstraction of the storage resources available to a program.
Key features:
- Uses both hardware and software
- Translates virtual addresses to physical addresses
- Utilizes secondary storage (e.g., hard drive) as an extension of RAM
Advantages:
- Allows running programs larger than physical memory
- Simplifies memory allocation for programmers
- Provides memory protection between processes
- Enables efficient use of physical memory
Components:
- Page table: Maps virtual pages to physical pages
- Translation Lookaside Buffer (TLB): Cache for page table entries