A-Level OCR Computer Science (1.1.1)

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/53

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

54 Terms

1
New cards

CPU

Central Processing Unit

2
New cards

ALU

Arithmetic Logic Unit

3
New cards

CU

Control Unit

4
New cards

PC (CPU)

Program Counter

5
New cards

ACC

Accumulator

6
New cards

MAR

Memory Address Register

7
New cards

MDR

Memory Data Register

8
New cards

CIR

Current Instruction Register

9
New cards

Define CPU

The main processor in a computer system handling data and instructions.

10
New cards

Define ALU

A circuit that performs mathematical and logical (comparative) operations.

11
New cards

Define CU

A component that handles data flow with 'control signals'. It also decodes instructions in the FDE cycle.

12
New cards

Define PC (CPU)

A REGISTER which holds the address of the next instruction to be executed.

13
New cards

Define ACC

A REGISTER which stores the results of calculations processed by the ALU.

14
New cards

Define MAR

A REGISTER which stores the address of the memory location currently in use.

15
New cards

Define MDR

A REGISTER which stores the instructions or data to be executed.

16
New cards

Define CIR

A REGISTER which stores the instruction while it is being decoded.

17
New cards

Define Register

A location where data can be stored.

18
New cards

Give the names of all 5 CPU registers

- PC (Program Counter)

- MAR (Memory Address Register)

- MDR (Memory Data Register)

- CIR (Current Instruction Register)

- ACC (Accumulator)

19
New cards

Define Bus

Wires that transmit data between the components in the CPU.

20
New cards

Give the names of the 3 CPU buses

- Data Bus

- Address Bus

- Control Bus

21
New cards

Define Data Bus

A bus on a HALF-DUPLEX pathway that transmits DATA between the CPU and memory.

22
New cards

Define Address Bus

A bus on a SIMPLEX pathway that transmits MEMORY LOCATION ADDRESSES between the CPU and memory.

23
New cards

Define Control Bus

A bus on a DUPLEX pathway that transmits SIGNALS between all components.

24
New cards

Define Simplex Pathway

A pathway that transmits data in only one direction.

25
New cards

Define Half-Duplex Pathway

A pathway that transmits data in both directions but not simultaneously.

26
New cards

Define Duplex Pathway

A pathway that transmits data in both directions simultaneously.

27
New cards

Define Assembly Language

A low level programming language designed for a specific type of processor. Converted into machine code with an assembler.

28
New cards

Assembly: LDA

Load - transfers a number from RAM to the ACC.

29
New cards

Assembly: STA

Store - transfers a number from the ACC to RAM.

30
New cards

Assembly: ADD

Add - adds the ACC contents to the contents of a specified RAM address.

31
New cards

Assembly: SUB

Subtract

32
New cards

Assembly: INP

Input - inputs a value and stores it in the ACC.

33
New cards

Assembly: OUT

Output - outputs the contents of the ACC.

34
New cards

Assembly: HLT

End (Halt) - stops the processor/process.

35
New cards

Assembly: BRZ

Branch if Zero - if the ACC = 0, the PC is set to the given address.

36
New cards

Assembly: BRP

Branch if Zero or Positive - if the ACC = 0+, the PC is set to the given address.

37
New cards

Assembly: BRA

Branch Always - set the contents of the ACC to the given address.

38
New cards

Assembly: DAT

Data Definition - loads the given value into the next available slot or can declare variables.

39
New cards

Define Opcode

The part of an assembly instruction that defines the operation (e.g. LDA, STA, HLT, ADD, etc).

40
New cards

Define Operand

The data that is being manipulated by the opcode. Written in HEXADECIMAL.

41
New cards

FDE Cycle

Fetch-Decode-Execute Cycle.

42
New cards

What are the 4 steps of FETCH in the FDE cycle?

1. The address in the PC is copied to the MAR.

2. The PC is incremented.

3. A fetch signal is sent along the Control Bus by the CU to memory. The Address in the MAR is sent to memory along the Address Bus. The value in memory returns to the CPU along the Data Bus to the MDR.

4. The value in the MDR is copied to the CIR.

43
New cards

What are the 2 steps of DECODE in the FDE cycle?

1. The contents of the CIR are sent to the CU for decoding.

2. The addressing is identified.

- Direct Address: load to MAR and retrieve contents.

- Indexed Address: add contents of the index register to the address and copy it to the MAR. Retrieve the contents.

44
New cards

What are the 2 possible steps of EXECUTE in the FDE cycle?

If the instruction is a jump: load the address operand into the PC and copy the address in the CIR to the PC

Otherwise: execute the instructions.

45
New cards

List the 4 factors affecting CPU performance

- Clock Speed

- Cache Memory

- Number of Cores

- Pipelining

46
New cards

What is clock speed?

The amount of FDE cycles a CPU can perform every second (measure in hertz).

47
New cards

What is cache memory?

Memory that temporarily stores data that is faster to access than RAM.

48
New cards

What is a core?

An individual processor.

49
New cards

What is multicore processing?

Using multiple cores to handle different tasks simultaneously (used in multitasking).

50
New cards

What is pipelining?

A process where next instruction for a process is fetched while the current instruction is being decoded.

51
New cards

List 4 additional factors that affect CPU performance

- Temperature

- Multithreading

- Bus width

- Register size

52
New cards

Von Neumann Architecture:

- Buses

- Instruction order

- Data/instruction storage

- simultaneous access

- clock cycles for instructions

- Data, address, control

- Sequential

- Data and instructions in same memory unit

- Cannot fetch multiple instructions simultaneously ("Von Neumann Bottleneck")

- Two clock cycles

53
New cards

Harvard Architecture:

- Buses

- Instruction order

- Data/instruction storage

- simultaneous access

- clock cycles for instructions

- Data, address, control, instruction

- Sequential

- Data and instructions are separate

- Reading and memory access simultaneous

- Two clock cycles (1 with pipelining)

54
New cards

Contemporary Architecture:

- Buses

- Instruction order

- Data/instruction storage

- simultaneous access

- clock cycles for instructions

- Data, address, control, instruction

- Sequential

- Relaxed separation of data and instructions

- Reading and memory access simultaneous

- Two clock cycles (1 with pipelining)