Section 7 (if something is wrong please change/if there are good questions i have not asked add them in) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the Processor (also known as CPU)

A

A device that carries out computation on data and instructions, in order to produce an output.

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

Define Main memory

A

Stores data and instructions that will be used by the processor.

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

Fetch execute cycle

A

The continuous process of data movement between main memory and the processor during the running of a program.

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

Random access memory

A

Stores data and can be read to and written from, it is a temporary storage, which is quickly accessible.

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

Read only memory

A

Stores data and can be read from but not written to(unless it is programmable ROM) and is not volatile.

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

Data Bus

A

Transfers data between memory and processor(bi-directional).

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

Address Bus

A

Used to specify a physical address in memory so that the data bus can access it.

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

Control Bus

A

Controls the flow of data between the processor and other parts of the computer.(bi-directional).

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

Bus width

A

The number of wires in a bus.

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

Word length

A

The number of bits that can be addressed, manipulated or transferred as one unit.

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

Input and output controller

A

The processor cannot directly communicate with I/O devices therefore an interface called the I/O controller handles the flow of data between the two.

Controller also behaves as a buffer as data from I/O devices are processed slower.

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

Von Neumann architectures

A

A technique of building a processor that stores data and instructions in the same main memory and uses the same busses.

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

Harvard architectures

A

A technique of building a processor that stores data and instruction in seperate memory and uses different busses

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

What benefits are there to the two architectures.

A

pass

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

State the Stored Program Concept

A

The idea that data and instructions are stored in memory together and is fetched , decoded and executed by the processor.

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

List the components of the processor that allows for the fetch execute cycle to occur

A

The Control Unit
The Clock
The Arithmetic Logic Unit
Registers

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

Define Control Unit

A

Part of the processor that manages the execution of instructions and makes sure data is being transmitted to the correct destination.

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

Define ALU

A

Part of the processor that processes and manipulates data.

Also carries out arithmetic and logic calculations when the control unit sends it an opcode and operand to process.

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

Define Clock

A

A device that generates a signal that synchronises the components pf a computer, processor and the movement of data(MHz..millions of cycles a second)

20
Q

Define Register

A

A small piece of temporary storage that is part of the processor and stores data and instructions during the fetch execute cycle

21
Q

Name the 5 registers involved in the fetch execute cycle

A
Program Counter
Memory Address Register
Memory Buffer Register
Current Instruction Register
Status Register
22
Q

Program Counter

A

A register that stores the address of the first or next instruction to be taken from main memory by the processor

23
Q

MAR

A

A register that stores the location of address that data is either being COPIED FROM or WRITTEN TOO by the processor

24
Q

MBR

A

A register that stores the data and instruction that is either being COPIED FROM or WRITTEN TOO by the processor

25
Q

CIR

A

A register that stores the instruction that the processor is currently decoding or executing

26
Q

SR

A

Keeps track of the computers various functions and the properties of data

27
Q

Define the Fetch Execute Cycle

A

The continuous cycle of retrieval of machine code and movement of data from main memory to processor while a program is being ran.

28
Q

Fetch

A
  • PC set to address of first/next instruction
  • Address in PC sent to the MAR
  • Address of memory is transferred along the address bus into main memory
  • Content of main memory is transferred through the Data Bus and stored in the MBR
  • The data or instruction is stored in the CIR
  • PC increments
29
Q

Decode

A

-Instruction/Data held in CIR is transferred into the Control Unit(which will execute the instruction)

30
Q

Execute

A
  • If necessary data is fetched
  • The opcode and Operands are sent to the ALU
  • Result stored in the accumulator
31
Q

Factors affecting the performance of the processor

A
  • Multiple Cores: The n amount of cores allows for n amount of instructions to be executed in one clock pulse
  • Clock Speed: How fast each instruction will be executed
  • Bus Width: The more wires there are in a bus more bits will be transferred in one pulse
  • Cache Memory: High speed temporary memory that stores frequented data and instructions
32
Q

The Processors Instruction Set

A

A pattern of machine code that a specific processor recognises as commands

33
Q

What are the two types of instruction sets

A

Complex instruction set (CISC) and Reduced instruction set(RISC)

34
Q

Define Addressing mode

A

The way in which the operand is interpreted

35
Q

Direct Address

A

The operand is the memory address or register number

36
Q

Immediate Address

A

The operand is the datum

37
Q

Opcode

A

An operation code used in assembly language

38
Q

Operand

A

A value or memory address that forms part of an assembly language’s instruction

39
Q

what are the two types of addressing modes?

A

Immediate address

Direct address

40
Q
Translate:
IF x < 5
       THEN B = 10
       ELSE B = 11
END IF
A

CMP #5 < R1
BLT foo
B goo

foo 
    mov R2, #10
halt
goo 
  mov R2, #11
41
Q

Define Interrupt

A

A signal sent by a device or program to the processor requesting its attention.

Additional Information: Interrupts are stored in the interrupt register and each time the CPU completes one cycle it will check the interrupt register for any instructions it should do immediately before continuing with the fetch execute cycle.

42
Q

Examples of when an Interrupt signal is sent to the processor?

A
  • Printer requesting for more data to be sent
  • User pressing key on keyboard or clicks on the mouse
  • User sending a signal asking the computer to terminate a program
43
Q

Define Interrupt Service Routine (IRS)

A

Calls the routine required to handle an interrupt

Additional Information: This routine consists of placing whatever its current task is on the fetch execute cycle and placing it on the system stack. Once the Interrupt has been processed it will retrieve the values on the stack and put them back in the appropriate registers.

44
Q

Define Priorities

A

A method for assigning importance to interrupts in order to process them in the right order.

Additional Information: interrupts on order of highest priority

  1. Hardware Failure
  2. Reset Interrupt
  3. Program error
45
Q

Vectored Interrupt mechanisms

A

A method of handling interrupts by pointing to the first memory address of the instruction needed.

Additional Information: