Skip to content

Computing Systems | AP - Wyatt's Notes

------------- | ---------------------------------------------- | | CPU | Executes instructions, performs calculations | | RAM” date: 2026-04-14 tags:

  • ap
  • ap-computer-science categories:
  • ap-computer-science

The Internet and Computing Systems (CED Unit 4)

Section titled “The Internet and Computing Systems (CED Unit 4)”
ComponentFunction
CPUExecutes instructions, performs calculations
RAMVolatile memory for currently running programs
Hard drive / SSDNon-volatile storage for persistent data
GPUProcesses graphics and parallel computations
MotherboardConnects all components
Power supplyProvides electrical power
Input devicesKeyboard, mouse, microphone, camera
Output devicesMonitor, speakers, printer

The CPU continuously:

  1. Fetch: Read the next instruction from memory (address in the program counter).
  2. Decode: Interpret the instruction.
  3. Execute: Perform the operation.
  4. Store: Write the result back to memory or a register.

Detailed step-by-step:

  1. The address in the Program Counter (PC) is copied to the Memory Address Register (MAR).
  2. The instruction at that address is fetched from memory into the Memory Data Register (MDR).
  3. The PC is incremented to point to the next instruction.
  4. The instruction in the MDR is copied to the Current Instruction Register (CIR).
  5. The Control Unit (CU) decodes the instruction in the CIR.
  6. The instruction is executed (ALU performs calculations, data is moved between registers).

Worked Example. Trace the FDE cycle when PC = 200 and memory[200] contains “ADD R1, R2” (add Register R2 to register R1).

  1. Fetch: MAR \leftarrow 200, MDR \leftarrow “ADD R1, R2”, PC \leftarrow 201, CIR \leftarrow “ADD R1, R2”.
  2. Decode: CU identifies this as an addition instruction. Source: R2, destination: R1.
  3. Execute: ALU computes R1 + R2, result stored in R1.

Computers represent all data in binary (0s and 1s).

Data TypeRepresentation
IntegerTwo”s complement (signed integers)
CharacterASCII (7-bit) or Unicode (16+ bit)
ColorRGB values (24 bits, 8 per channel)
ImageGrid of pixels, each with RGB values
AudioSampled amplitude values

For an nn-bit number:

  • Range: 2n1-2^{n-1} to 2n112^{n-1} - 1
  • 8-bit: 128-128 to 127127
  • 16-bit: 32768-32768 to 3276732767
  • 32-bit: 2147483648-2147483648 to 21474836472147483647

Negation: Flip all bits and add 1.

  • Computational Thinking — Abstraction and decomposition principles guide how computing systems are designed and organised.
  • Algorithms and Programming — Hardware constraints influence algorithm design, connecting system architecture to software efficiency.
  • Data Analysis — Data representation formats depend on the underlying hardware and number systems of computing systems.