Lecture 1 Chapter 1 Flashcards

1
Q

What are the 4 parts of a computer

A

CPU RAM IO and BUS

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

What does the ALU do

A

Carries out basic arithmetic and logical operations

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

What does the CU control unit do

A

Determines the sequence of operations

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

What are registers

A

Small memory in the CPU for immediate data and results

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

What does the Program counter PC register hold

A

The address of the next instruction to be executed

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

What does the Instruction register IR hold

A

Holds the current instruction data

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

What does the Accumulator AC hold

A

Partial results of any computation

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

What does the Memory Address register hold MAR

A

Holds the address of the current instruction or data

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

What does the memory Buffer data register hold MBR

A

Hold the current data or instruction

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

What does the I/O address register hold? I/O AR

A

The address of the I/O device

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

What does the I/O buffer register hold
I/O BR

A

Data from the I/O devices

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

What do the first 4 bits of the Instruction hold

A

The Opcode (instruction to be performed)

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

What do the last 12 bits of the instruction contain?

A

The address of the operation

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

What are the two stages of the instruction cycle?

A

Fetch and Execute

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

What are the three types of Instructions?

A

CPU arithmetic or logical operation
Communication with memory
Communication with I/O devices

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

What is the process required for a single instruction called?

A

The instruction cycle

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

What happens to the PC during instruction cycle

A

It is incremented at each fetch

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

Processor

A

Controls Computer Operation, preforms data processing functions

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

User -visible

A

basic type of register, available to all programs, can be referenced by a user/programmers instruction set

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

Control and Status

A

Basic type of register, used by CPU to control execution of programs

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

MAR

A

register for processor to exchange data with memory, specifies the next address is memory for next read or write

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

MBR

A

register containing data to be written to memory, or data from memory

23
Q

IO AR

A

register with the address of a particular I/O device

24
Q

IO BR

A

Register for exchange of data between IO and processor

25
Q

Main Memory

A

Stores data and programs, volitaile, contains a set of locations with addresses, each location contains a bit pattern interpreted as instruction or data

26
Q

IO modules

A

move data between computer and external environment, contains internal buffers for storing data for sending

27
Q

System BUS

A

Communication pipeline between components

28
Q

What does a program consist of

A

Instructions stored in memory to be executed by the processor

29
Q

Why would program execution stop?

A

If processor turns off, an error occurs, or an instruction to halt is received.

30
Q

What are the four categories of instructions?

A

CPU-MEM
CPU-IO
Data Processing
Control

31
Q

What is a control instruction?

A

An instruction that specifies a change to the sequence of execution

32
Q

What is a Data Processing instruction?

A

The processor will preform an arithmetic or logical operation on data

33
Q

What is a processor - IO instruction?

A

Data will be transferred between processor and IO module

34
Q

What is a Processor -Memory Instruction?

A

Data is transferred between the processor and memory

35
Q

What is an Interrupt?

A

mechanism by which modules interrupt normal sequence of the processor

36
Q

What are the four classes of interrupts?

A

Program, Timer, IO, Hardware Failure

37
Q

What is a program interrupt?

A

generated by a condition occurring as a result of instruction execution (arithmetic overflow, division by zero, attempt to execute an illegal machine instruction, reference outside a user’s allow memory space)

38
Q

What is a timer interrupt?

A

generated by timer within processor, allows operating system to perform certain functions on a regular basis

39
Q

What is an I/O interrupt?

A

generated by I/O controller, to signal normal completion of an operation or variety of error conditions`

40
Q

What is a hardware failure interrupt?

A

generated by a failure (power/memory parity error)

41
Q

Why are interrupts needed?

A

Primarily to improve processor utilization

42
Q

What is an interrupt stage?

A

A stage added to the instruction cycle to accomodate interrupt handling

43
Q

What is the interrupt handler routine?

A

A process preformed when an interrupt is found during interrupt stage, OS determines nature of interrupt and preforms actions needed.

44
Q

What are the two ways to handle multiple interrupts?

A

Disable interrupts, priority

45
Q

What are the constraints on computer memory?

A
  1. decreasing cost per bit
  2. increasing capacity
  3. increasing access time
  4. decreasing frequency of access to memory by processor
46
Q

What is the memory hierarchy

A

Smaller, faster, expensive memories are supplemented by larger, cheaper, slower memories

47
Q

What is locality of reference?

A
  • During program execution, memory references by processor (for both instructions and data) tend to cluster
  • possible to organize data across hierarchy so that percentage of accesses to each subsequently lower level is much less than that of level above
48
Q

What is a cache?

A
  • high-speed, smaller, extends main memory
  • stages data movement between main memory and processor registers for performance improvement
49
Q

What are the key elements of cache design?

A
  • cache size
  • block size
  • mapping function
  • replacement algorithm
  • write policy
  • number of cache levels
50
Q

What are the three IO operation techniques?

A

Programmed, interrupt driven and DMA

51
Q

How does programmed IO work?

A

The processor periodically checks status of I/O module

52
Q

How does Interrupt driven I/O work?

A

I/O module will send interrupt when ready for service

53
Q

How does DMA driven I/O work

A

DMA module will use cycle staling to directly communicate with memory

54
Q
A