300 likes | 411 Views
Computer Architecture. Memory, Math and Logic. Basic Building Blocks. Seen: Memory Logic & Math. Computer Parts. Things that go into a computer:. Simplified Parts. Logical structure of parts:. Simplified Parts. Logical structure of parts:. Simplified Parts.
E N D
Computer Architecture Memory, Math and Logic
Basic Building Blocks • Seen: • Memory • Logic & Math
Computer Parts • Things that go into a computer:
Simplified Parts • Logical structure of parts:
Simplified Parts • Logical structure of parts:
Simplified Parts • Logical structure of parts: CPU Memory Input Output
Higher Level Architecture • CPU • Central Processing Unit • Memory • Programs and Data • Input & Output • Keyboards, Mice, ScreensPrinters, Networks, etc… CPU Input & Output Memory
Busses CPU • Busses • Groups of wires that carry a signal • 1 wire for each bit • Separate busses fordifferent signals Input & Output Memory
Memory • Memory • Collection of bytes • Access byte by address
Memory • Memory • Collection of bytes • Access byte by address • Meaning defined by program • Byte 0x00 could be: • 74 • J • Red part of a 24-bit color0x00-0x02 • Part of a 64-bit floating point0x00-0x07
Memory Hierarchy • Memory is • Too slow • Too small • Temporary
Memory Hierarchy • Main Memory : medium speed/capacity • RAM 0
Memory Hierarchy • On processor: Small, Ultra Fast memory • Registers • Cache 0
Memory Hierarchy • Secondary Memory : slower, larger, permanent storage • Hard drives / Flash drives / CD Drives 0
Using the Hierarchy • Program’s trip through memory levels:
Inside the CPU • Registers • ALU • CU Input & Output Memory
Registers • Registers • Special purpose memory in CPU • Examples: • PC : Program CounterWhat memory address has next instruction • IR : Instruction RegisterWhat instruction we are working on • ACC : AccumulatorResult of what we just did
ALU • Arithmetic Logic Unit • Can: • Add/Subtract • Compare values • < > = • Do Logic • NOT, OR, AND,…
CU • Control Unit • Decoder : reads instructionsfrom IR, sends control signalsto control ALU, memory • Clock : synchronizes operations across computer
Machine Code • Machine Code : Instruction stored as binary • Bits to represent • operation to perform (opcode) • value to use (operand) 0001 1100 0100 1011
Fetch-Decode-Execute • Fetch – Decode – Execute http://computerscience.chemeketa.edu/cs160Reader/ComputerArchitecture/MachineCycle.html