CPU,Memory And Program Execution Flashcards

1
Q

What does the “memory” part do?

A

It stores both the program while it is running and the data on which the program operates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What properties does the “memory” have and explain its functions?

A
  1. Discrete locations - It is is organised as a sequence of discrete locations
  2. Address - Every memory location has an address, whole numbers starting at 0
  3. Values - Memory locations record/store values
  4. Finite capacity- This means that the memory locations have a finite capacity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Random Access Memory (RAM)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the control unit do?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a typical instruction formation in a computer system?

A

The typical machine instruction is : ADD 4000,2000,2080

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does it really mean from the instruction formation?

A

So what ever the numbers are stored in memory locations 2000 and 2080 be added together and the result be stored in locations 4000.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the arithmetic Logic Unit (ALU) do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the Input/output units do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the peripherals do?

A

It connect to the computer input/output (I/O) ports

They provide input or receiving its output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the peripherals do?

A

It connect to the computer input/output (I/O) ports

They provide input or receiving its output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why isn’t “Peripherals” not considered as part of the computer?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do we execute programs?

A

The program is loaded into memory and address of FIRST INSTRUCTION is placed in PC (Program Counter)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the steps of the Fetch/ Execute cycle after the first instruction?

A
  1. Instruction Fetch (IF)
  2. Instruction decode (ID)
  3. Data/ Operand Fetch (DF/OF)
  4. Instruction Excution (EX)
  5. Result return/ store (RR/ST)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the instruction Fetch (IF) function?

A

Move instruction from memory to the control unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the Instruction Decode (ID) determines?

A

It determines what operation the ALU will perform (ADD) and sets up the ALU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the two things decoder finds in the computer system?

A
  1. It finds the memory address of the instruction’s data (source Operands)
  2. It finds the destination address for Result Return step and places the address in the RR circuit.
17
Q

What is the instruction decode function?

A

It pull apart the instruction,set up the operation in the ALU, and computer the source and destination operand addresses.

18
Q

What is the function of ‘Data Fetch’ (DF)?

A

It moves the operands from memory to the ALU

19
Q
A

Data values to be operated on are retrieved from memory.

Data values remain in memory ( they are not destroyed)

20
Q

What is the function for Instruction execute?

A

Computer the result of the operation in the ALU

21
Q

What is the function of the Result Return?

A

Store the result from the ALU into the memory at the destination address.

22
Q
A

RR returns the result of EX to the memory location specified by the destination address

Once the result is stored the cycle begins again.