Week 1 Flashcards
ALU
-Arithmetic and Logic Unit inside of CPU
LC-3: Can perform “ADD”, “AND”, and “NOT operations
Memory
-Stores bits in a 2^k x m array
-k = # of bits in address (index)
-m = # of bits that can be stored
-Contains MAR and MDR
-Has load and store operations
LC-3: k = 16 and m = 16
Load
-Gets data out of memory (“Read”)
Steps:
1: Write address to MAR
2: Send a “read” signal
3: Read value from MDR
Store
-Puts data into memory (“write”)
Steps:
1: Write value to MDR
2: Write address to MAR
3: Send a “write” signal
MAR
-Memory Address Register
-Contains the address/index of a piece of data stored on memory
MDR
-Memory Data Register
-Stores the data to be put in or taken out of the memory
CPU - Registers
-Small bits of temporary data in the cpu
Word Size
-Number of buts handled at once by the Processing Unit (size of the registers)
LC-3: Has eight registers (each holding 16 bits = word size)
Control Unit
-Interprets instructions and sends signals to other components for coordination of instructions
-Contains the IR and the PC
IR
-Instruction Register
-Contains the current instruction being executed
PC
-Program Counter
-Contains the memory address of the next instruction to be executed
I/O Devices
-Devices used for transferring data into and out of the memory
-Keyboards, speakers, displays, etc
-Program that controls devices = drivers
LC-3: Uses keyboard for input and terminal for output
ISA
-Instruction Set Architecture
-Provides all info needed to write a program in machine language
-Microarchitecture = hardware of ISA
Opcode
-Specifies which operation to perform
Operand
-Data used for the operation