CPSC 355 Lecture Notes - Lecture 2: Hard Disk Drive, Central Processing Unit, Apple A7
Document Summary
Primary memory: also called random access memory (ram) Secondary memory: usually a hard disk drive (hdd) Peripheral input and output devices: eg: keyboard, monitor. Controls the transfer of data across the bus. Is usually contained on a single microprocessor chip. Eg: inter core i5, apm883208-x1, apple a7. The cu directs the execution of instructions. Loads an operation code (opcode) from primary memory into the instruction. Decodes the opcode to identify the operation. If necessary, transfers data between primary memory and registers. If necessary, directs the alu to operate on data in registers. The alu performs arithmetic and logical operations on data stored in registers. Eg: add numbers stored in 2 source registers, and store the result in a destination register. Eg: do a bitwise and using data in 2 registers. Registers are binary storage units within the cpu. Eg: general-purpose registers are used by a programmer to temporary hold data and addresses.