Computer Architecture

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:32 PM on 4/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

46 Terms

1
New cards

Computer Architecture Definition

specification of a set of instructions and the specification of the behaviour of hardware units to implement/support these instructions

2
New cards

Instruction Set Architecture Definition

The conceptual structure and functional behavior of a computer system as seen by the assembly-language programmer, including machine instructions and their formats, addressing modes, data representation, and storage organization.

3
New cards

Parts of a Processor

Processor-memory interface, Arithmetic Logic Unit, Registers, Control, Program Counter, Instruction Register

4
New cards

Addressing modes

Immediate: e.g. movi, addi

Register: e.g. mov

Absolute: EA = LOC - cant put whole address, it wont fit in the instruction size

Index: EA = offset(R) e.g. load, store

5
New cards

Parts of a computer

Memory, Control, ALU, Input, Output

6
New cards

How many registers are there

32

7
New cards

Special Registers

31: link register (except for us its r8)

27: stack pointer

0: zero register, always holds 0

8
New cards

Program Counter

Holds the address of the next instruction

9
New cards

Instruction Register

Holds the next instruction

10
New cards

Control Unit

coordinates fetches, retrieves, logic computations, reads, and writes

receives state signals and sends timing signals to/from units

often distributed throughout the computer

11
New cards

ALU

holds the circuitry to do combinational logic and arithmetic

12
New cards

Processor Memory Interface

a collection of wires that carry reads, writes, and signals

13
New cards

size of a word

32 bits, 4 bytes

14
New cards

Generic Instructions

Load, Add, Store, Subtract, Move

15
New cards

What does RISC stand for

Reduced Instruction Set Completion

16
New cards

size of RISC instructions

32 bits

17
New cards

Machine Instruction

a command specifying a data transfer or arithmetic/logic operation

18
New cards

Types of Memory

Primary memory(RAM, Cache), Secondary Memory

19
New cards

Primary Memory

uses semiconductor storage cells (fast)

includes RAM, and Cache

20
New cards

Cache

stores current/recent program instructions and data. on same chip as processor

21
New cards

RAM

has fixed access time that is independent of location

22
New cards

Secondary Memory

larger capacity that holds info when computer is off. Less expensive, but slower

23
New cards

Big-Endian

lower addresses hold more significant (leftward) bits

24
New cards

Little Endian

lower addresses hold less significant (rightward) bits

25
New cards

Read

memory retrieves contents at address given by processor

26
New cards

Write

memory overwrites contents at given location with given data

27
New cards

steps for fetching an instruction

send pc value to memory as address

command memory to perform a read

increment PC value by 4 inside processor

place result from memory in IR

28
New cards

T/F calls are included in branching

T: though they are not branch instructions

29
New cards

What happens in branching

PC is updated to point to the instruction after call

that address is saved to the link register

then it is overwritten with the target address

30
New cards

how do addresses fit in instructions

remove 2 lowest bits (always 0 since multiple of 4), get rid of 4 highest bits

31
New cards

first instruction for the stack pointer

movia sp, 0×7FFFFC

32
New cards

Shifts

multiply / divide by 2

logical and arithmetic (preserves sign bit)

33
New cards

steps of movia

OrHigh - moves top 16 bits

Or - adds last 16 bits

34
New cards

3 lines of startup code

.text

.global _start

.org 0×0

35
New cards

Steps in Calls and Returns

Call:

copy PC value to Link Register

reconstruct target address by adding 2 zeros to the end and copying the highest 4 digits from PC to the front

copy subroutine address in IR to PC

Return: copy link register contents to PC

36
New cards

general steps to process any instruction

fetch, decode/interpret, execute

37
New cards
38
New cards
39
New cards
40
New cards
41
New cards
42
New cards
43
New cards
44
New cards
45
New cards
46
New cards