4CCS1CS1 - Computer Systems

0.0(0)
studied byStudied by 4 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/160

flashcard set

Earn XP

Description and Tags

KCL Yr1 Comp Sci

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

161 Terms

1
New cards

What is computer organisation?

the physical aspects of a computer, how it works on a physical level (e.g. circuit design, control signals, memory types)

2
New cards

What is Computer Architecture ?

the logical aspects of system implementation as seen by the programmer

3
New cards

At the most basic level, what does a computer consist of?

processor, memory, data transfer mechanism

4
New cards

What is a supercomputer?

a computer consisting of a larger memory and more powerful processors for large scale computations/calculation

5
New cards

What is the NEGATIVE of running supercomputers?

expensive

6
New cards

How many levels are within the Computer Level Heirarchy?

7

7
New cards

What do each of the levels within the Computer Level Hierarchy represent?

the different levels at which we can understand and study a computer system

8
New cards

What do the highest and lowest levels of the Computer Level Hierarchy mean?

highest = most abstract, lowest = least abstract (physical detail of computer)

9
New cards

What does Level 6 in the Computer level Hierarchy represent?

USER LEVEL = this is the most abstract level where users interact with the computer and it is the most detached from the physical processor

10
New cards

What does Level 5 in the Computer level Hierarchy represent?

HIGH-LEVEL LANGUAGE = the level used when writing in high level languages such as Java

11
New cards

What does Level 4 in the Computer level Hierarchy represent?

ASSEMBLY LANGUAGE = high level program instructions are translated into assembly language and then into machine level instructions

12
New cards

What does Level 3 in the Computer level Hierarchy represent?

SYSTEM SOFTWARE = controls the processes that are being executed and protects the system from damaging/hacks

13
New cards

What does Level 2 in the Computer level Hierarchy represent?

MACHINE = contains the instructions of the machine (aka Instruction Set Architecture), this is written in machine language so doesn’t need to be complied and can be executed immediately

14
New cards

What does Level 1 in the Computer level Hierarchy represent?

CONTROL = decodes and executes instructions

15
New cards

What does Level 0 in the Computer level Hierarchy represent?

DIGITAL LOGIC = where all the digital circuits and microchips are, which implements the mathematical logic of all the other levels

16
New cards

What are the types of control units?

microprogrammed, hardwired

17
New cards

What is a microprogram?

program written in low level language that’s implemented by the hardware to give more flexibility on the number of operations that can be implemented

18
New cards

What is a hardwired control unit?

hardware that directly executes machine instructions = makes them very fast

19
New cards

What is a negative of Hardwired control units?

they rely on physical processes so they’re typically used for specific operations that are completed over and over again

20
New cards

How to measure a computer system?

processor speed, memory size

21
New cards

what is the Von Neumann Bottleneck?

a single data path between the CPU and main memory

22
New cards

On top the the 3 components of a computer, what does VNM also specify?

capacity to carry out sequential instruction processing, a single data path between the CPU and main memory

23
New cards

What takes place in the Fetch phase of FDE cycle?

the control unit fetches the next instruction from memory and updates the program counter

24
New cards

What takes place in the decode phase of the FDE cycle?

the instruction is translated so it can be understood by the ALU

25
New cards

What takes place in the execute phase of the FDE cycle?

any necessary data is loaded into the CPU registers, the instruction is executed and results are stored in registers or memory

26
New cards

What are the advantages of the Von Neumann Architecture?

flexible use of memory // impact of VNM bottleneck can be reduced through caching and pipelining

27
New cards

What are the disadvantages of the Von Neumann Architecture?

the VNM bottleneck = fetch instruction and then wait to fetch data on the same path

28
New cards

What are the advantages of Non-Von Neumann Architecture?

no VNM bottleneck

29
New cards

What are the disadvantages of Non-Von Neumann Architecture?

rigid use of memory // complex bus structure

30
New cards

What’s the difference between radix notation and prefix notation?

radix - uses subscript : 1011010
prefix = 0b10110

31
New cards

How many bits is a nybble?

4 bits

32
New cards

How does signed magnitude work?

The left most significant bit indicates the sign of the number

1 = NEGATIVE (11001 = -9)
0 = POSITIVE (01001 = 9)

33
New cards

Waht are the advantages of signed magnitude?

easy to understand, easy to convert

34
New cards

Waht are the disadvantages of signed magnitude?

difficult to perform arithmetic // 2 representations of 0 = 0000 or 1000

35
New cards

How does one’s complement work?

0 —> 1 // 1 —> 0 // MSB is a sign bit

36
New cards

What are the advantages of one’s complement?

implementation is easy allowing for simple circuits

37
New cards

What are the disadvantages of one’s complement?

still 2 representations of 0 = 0000 // 1111

38
New cards

What are the advantages of 2’s complement?

no bits with special meanings, only one representation of 0

39
New cards

What are the disadvantages of 2’s Complement?

none

40
New cards

Define Overflow.

when the result of a computation is too large to be stored in the computer’s memory in the format given

41
New cards

When is overflow detected in 2’s Complement addition?

When the carry in is not the same as the carry out

42
New cards

How is 0 represented in the IEEE-754 format?

0/1 00000000 00000000000000000000000 (all 0 and any sign bit value)

43
New cards

How is ±∞ represented in the IEEE-754 format?

0/1 11111111 00000000000000000000000 (the entire exponent is 1, entire significant is 0)

44
New cards

How is NaN (not a number) represented in the IEEE-754 format?

0/1 11111111 (any non-zero significand)

45
New cards

What is underflow in IEEE-754 arithmetic?

magnitude is too small to store in the format

46
New cards

What is catastrophic cancellation?

a lack of significant figures to represent the result of colliding large and small numbers so the small values are cancelled out

47
New cards

How can you calculate the relative error of a representation?

error = [(true value - represented value) / true value] * 100

48
New cards

On top of the 3 basic components of a computers, what are other features do modern digital computer systems rely on?

buses, clocks/interrupts

49
New cards

What are the main parts of the CPU

datapaths (buses) control unit

50
New cards

How are the ALU and registers connected

by a databus

51
New cards

What do registers do?

hold data that can be readily accessed by the CPU

52
New cards

What does the ALU do?

carries out the logical and arithmetic operations of the CPU

53
New cards

What does the control unit do?

sends signals to components of the CPU to perform certain operations

54
New cards

How does the control unit determine the action to be executed?

by checking the values held in the program counter and status register

55
New cards

What does computer memory consist of?

a linear array of addressable storage cells

56
New cards

What are the storage cells of memory that are of a regular, fixed sixe called?

word

57
New cards

What does it mean to be word-addressable?

means that the processor can identify a particular word when it would like to read from or write the memory

58
New cards

What is the main memory in modern computer systems composed of?

RAM

59
New cards

What are the 2 mapping types of IO devices

memory mapped, instruction mapped

60
New cards

Define memory mapped

when the device behaves like main memory from the point of view of the CPU

61
New cards

Define instruction mapped

When the CPU has specific instructions to control the device

62
New cards

What is a bus?

and array of wires that simultaneously convey a single bit along each line

63
New cards

How does the CPU share data with other system components?

data bus

64
New cards

What are the 2 most common buses?

point-to-point, multi-point

65
New cards

What is a point to point bus

connects 2 components together

66
New cards
67
New cards

What is a multipoint bus?

many components are able to access a bus that can connect to any other component that is connected to it

68
New cards

What are the 3 types of bus?

data, control, address

69
New cards

Waht is the role of the databus?

convey bits between one device to another

70
New cards

What is the role of control bus?

determines the direction of the flow of data and when a device can gain access to the bus

71
New cards

What is the role of the address bus?

determines the source or destination location of data

72
New cards

Which buses are bi-directional?

data, control

73
New cards

What does the clock do?

synchronises the activities of the CPU

74
New cards

What does the clock frequency determine?

the speed at which all operations are carried out

75
New cards

How is clock cycle time calculated?

time = 1 / freq

76
New cards

How is CPU time calculated?

<p></p>
77
New cards

What do interrupts do?

alter the normal flow of the execution of a program when an event of higher priority occurs

78
New cards

What are the specifications of MARIE?

binary 2’s complement, fixed word length, 4k words of word-addressable memory, 16-bit word size, 16-bit instructions, 16-bit ALU, seven registers

79
New cards

What are the 7 registers in MARIE?

Accumulator, Memory Address Register, Memory Buffer Register, Instruction register, Program Counter, Input register, output register

80
New cards

How is an instruction in MARIE split?

first 4 bits = OPCODE
last 12 bits = ADDRESS

81
New cards

What does M[X] mean in RTL?

indicates the actual data stored at memory location X

82
New cards

what does the arrow ← indicate?

the transfer of bytes to a register or memory location

83
New cards

How often does the computer system check for interrupts?

After executing each instruction

84
New cards

What are the steps of processing an interrupt?

1) save data stored in register into the memory
2) look up the ISR (Interrupt Service Routine) address in the interrupt table
3) place ISR address in the PC
4) execute instruction in ISR
5) restore data to registers from memory
6) return to FDE cycle

85
New cards

What does it mean for an interrupt to be maskable?

low priority interrupts that are ignored when another interrupt is running

86
New cards

What are non-maskable interrupts?

interrupts that must be processed to keep the system in a stable condition

87
New cards

What is the RTL for input?

AC ← IN

88
New cards

What do assemblers do?

Translates the mnemonic instructions that are comprehensible to humans into machine language so that is comprehensible for the machine

89
New cards

What is the output of an assembler?

object program file

90
New cards

What does the assemble do in each pass?

1st pass → assembles most of the program and creates a symbol table with memory references for all the symbols in the program

2nd pass → completes the instructions using the values in the symbol table

91
New cards

What does the Clear instruction do?

sets the contents of the AC to 0

92
New cards

What does SKIPCOND 000 mean?

Skip the next instruction if AC < 0

93
New cards

What does SKIPCOND 400 mean?

Skip the next instruction if AC = 0

94
New cards

What does SKIPCOND 800 mean?

Skip the next instruction if AC > 0

95
New cards

What must you consider when designing ISAs?

  • instruction length

  • number of operands per instruction

  • type/ size/ location of operands

  • memory organisation

  • addressing modes

  • types of operations available

  • number of operations

96
New cards

What are the main measures when choosing an ISA?

  • Main memory space

  • instruction complexity

  • instruction length in bits

  • total number of instructions in the set

97
New cards

what does endianness refer to?

refers to the way in which data is stored in the system → the order of the bytes

98
New cards

What is meant by a little endian machine?

the LSB (byte) is followed by the MSB (byte)

99
New cards

What is meant by a big endian machine?

MSB is followed by LSB

100
New cards

What are the advantages of BIG ENDIAN?

  • More natural

  • sign of number can easily be seen by looking at the byte at the address offset 0

  • strings / integers stored in same order