IFB102 Lecture Notes - Lecture 2: Central Processing Unit, Multi-Core Processor, Microprocessor
Document Summary
Something is inputted, the cpu (central processing unit) processes this input and uses memory to store data and programs, and an output is produced (e. g. play a video game, generate a payroll, webstore, etc. ) Cpu: carries out the instructions of a computer program, cpu typically comprises, control unit: performs tasks such as fetching data, decodes, manages execution and stores results, arithmetic logic unit (alu): performs computation and comparison operations - a calculator. Set of registers: store locations that hold inputs and outputs for the alu, only a few of them, but very fast to access: machine instructions (code) control these cpu elements. R1, r2, and r3 are registers: the program might look like this: Store 0202, r3: these are the human friendly representations of data and instructions. They are really represented as patterns of bits, ones and zeros, high and low voltages. Fetch-execute cycle: program and data are stored in memory.