Parts of a Computer

  1. Central Processing Unit (CPU)
    1. 32-bit (Nios II processor)
    2. Has a bunch of registers r0, r1, r2, r3 …
    3. r0 always equal to 0
    4. Mostly use r8-r15
  2. Main memory
    1. Broken into 8 bit chunks
    2. Has unit addresses
  3. Input/Output unit
    1. Screen
    2. Keyboard
    3. LED
    4. button

Untitled

Example: storing and adding registers

Immediate vs Non-Immediate Instructions

32-bit Nios II Processor

First few words of memory

Each byte has its own address

Each byte has its own address