Computer Architecture Flashcards

Table of Contents

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:

  1. A central processing unit (CPU)
  2. Memory for storing both data and instructions
  3. Input/output mechanisms
  4. 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:

  1. Increased throughput
  2. Improved CPU performance
  3. Better utilization of hardware resources

Common pipeline stages:

  1. Instruction Fetch (IF)
  2. Instruction Decode (ID)
  3. Execute (EX)
  4. Memory Access (MEM)
  5. 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:

  1. L1 cache: Smallest, fastest, closest to the CPU
  2. L2 cache: Larger, slightly slower than L1
  3. 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:

  1. Uses both hardware and software
  2. Translates virtual addresses to physical addresses
  3. Utilizes secondary storage (e.g., hard drive) as an extension of RAM

Advantages:

  1. Allows running programs larger than physical memory
  2. Simplifies memory allocation for programmers
  3. Provides memory protection between processes
  4. Enables efficient use of physical memory

Components:

  • Page table: Maps virtual pages to physical pages
  • Translation Lookaside Buffer (TLB): Cache for page table entries

Author: Jason Walsh

j@wal.sh

Last Updated: 2024-08-14 06:08:49