CPU,Memory And Program Execution Flashcards
What does the “memory” part do?
It stores both the program while it is running and the data on which the program operates.
What properties does the “memory” have and explain its functions?
- Discrete locations - It is is organised as a sequence of discrete locations
- Address - Every memory location has an address, whole numbers starting at 0
- Values - Memory locations record/store values
- Finite capacity- This means that the memory locations have a finite capacity.
Define Random Access Memory (RAM)
This is the name for computer memory
RAM is measured in megabytes (MB),gigabytes (GB) or terabytes (TB)
Lots of memory is needed to handle the space required of programs and data
What does the control unit do?
The control unit of a computer is where the Fetch/Execute cycle occurs.
- It fetches an instruction from memory and performs the other operations of the Fetch/Execute Cycle on it.
What is a typical instruction formation in a computer system?
The typical machine instruction is : ADD 4000,2000,2080
What does it really mean from the instruction formation?
So what ever the numbers are stored in memory locations 2000 and 2080 be added together and the result be stored in locations 4000.
What does the arithmetic Logic Unit (ALU) do?
It does the maths
The circuit in the ALU can add/subtract two numbers
The circuit uses logic gates or simpler circuits that implement operations like AND and OR
There’s another circuits for multiplying, for comparing two numbers etc.
ALU carries out each machines instruction with a separate circuit
What does the Input/output units do?
The two components are the wires and circuits through which information moves into and out of a computer.
A computer without input or output is useless
What does the peripherals do?
It connect to the computer input/output (I/O) ports
They provide input or receiving its output
What does the peripherals do?
It connect to the computer input/output (I/O) ports
They provide input or receiving its output
Why isn’t “Peripherals” not considered as part of the computer?
It because they only specialised gadgets that encode or dead code information between the computer and the physical world.
E.g keyboard, mouse, USB, Network cards
How do we execute programs?
The program is loaded into memory and address of FIRST INSTRUCTION is placed in PC (Program Counter)
What are the steps of the Fetch/ Execute cycle after the first instruction?
- Instruction Fetch (IF)
- Instruction decode (ID)
- Data/ Operand Fetch (DF/OF)
- Instruction Excution (EX)
- Result return/ store (RR/ST)
What does the instruction Fetch (IF) function?
Move instruction from memory to the control unit
What does the Instruction Decode (ID) determines?
It determines what operation the ALU will perform (ADD) and sets up the ALU