computer organizaiton (week 3) Flashcards
what is a program
program is a source file that contains many lines of instructions.
it is written in a high level programming language such as C, java, python
how are programs executed
high level language –> low level language (assembly language) –> machine language(binary)
computers execute ______
machine language
What is the von Neumann architecture
Has a fixed set of electronic parts, which can be manipulated to perform various tasks determined by a variable program.
The parts are:
- cpu
- primary memory unit
- collection of I/O devices
- buses to interconnect the components
what does the CPU contain?
ALU
control unit
what does the ALU do
–> responsible for performing artihmetic and logical operations
ALU comprises of ?
–> comprises of functional unit that performs operations
–> registers that loads and saves data to and from the primary memory. 32 to 64 bit registers to hold 32-bit data
how are computations accomplished in ALU
–> Loading binary values into registers
–> performing operations on the registers using the function unit
–> storing the result back into a general register
–> saving the register contents back into memory
what is the control unit
causes a sequence of instruction to be stored in memory to be retrieved
what does the control unit comprise of?
fetch unit
decode unit
execute unit
instruction registrar
program counter register
control unit works based on the __________ cycle
fetch execute cycle
what is fetch unit
fetches an instruction from memory
what is decode unit
decode an instruction
what is execute unit
signals ALU to execute instruction
what is instruction registrar
contains a copy of the current instruction
what is program counter registrar (PCR)
contains the memory address of the next instruction the unit is to load.