Computer Organization and Design

Motivations:

Course goals: Understanding of computer architecture, structure and evolution

Why this course is taught:

A brief look at electricity:

Digitizing

Why binary?

Course outline:

CS 251 topics continued in other courses:

Adminstrative overview

Weekly: quiz and/or assignment each week

Videos (broken up into the following):

Quizes:

Assignments:

Term test:

Arm Overview

ARM:

Registers

Registers:

There are 32 registers

Example: f = (g + h) - (i + j)
Lets assume X1:f X2:g X3: h X4:i X5:j

ARM: ADD X6, X2, X3 ADD X7, X4, X5 SUB X1, X6, X7

Instruction

Five general types of ARM instructions
Format refers to how many and what type of operands

Program counter:

Memory

Control flow

Branch instruction

Branch: B

100: B #3 104: ... 108: ... 112: ... // this line

Conditional branch

Example: CBZ X1, #100 (or -100)

Example:

100: ADD X1, XZR, XZR 104: ADD X2, XZR, #6 108: ADDI X1, X1, 5 112: SUBI X2, X2, 1 116: CBNZ X2, #-2 120: ADD X4, X6, X8

Memory access

Three general categories of instructions in every Instruction Set Architecture

  1. computation (arithmetic format)
  2. control flow
  3. data manipulation (memory access) (loading and storing)

Load Unscaled Register (LDUR): Reads a double word from memory and stores this to register
100: LDUR X1, [x2,#100]

Store Unscaled Register (STUR): takes the value contained in a register 64-bit) value and writes it to memory

Simulator