Week 1 Flashcards

1
Q

How do we measure the complexity of hardware?

A

Transistors.

We measure the complexity in terms of how many transistors in a particular technology can be integrated onto a single chip of silicon (or silicon dye).

10 billion transistors on a single dye is a good idea of what it should be.

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

How many lines of code do we expect a modern operating system to have?

A

10-100 million lines of code

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

How many lines of code do we expect a modern operating system to have?

A

10-100 million lines of code

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

The chip has 20 rectangles. 18 of them are the same, and 2 of them do something different. what are these rectangles?

A

2: memory controllers - interfacing the chip to memory outside
18: cores

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

What are the four levels of abstraction, from lowest granularity to highest (where the user interacting with the software sits)?

A

1) Digital circuits (raw hardware eg wires and transistors)
2) Instruction set (low-level machine code)
3) Operating system
4) Application software

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

At a high level, what is a computer?

A

A computer is a machine that has hardware that’s flexible enough to execute a sequence of instructions (a program), which direct it to operate on (process) data.

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

What are 4 kinds of computers?

A

1) personal computers
2) server
3) embedded computer - a component that adds functionality to a bigger machine
4) high performance computer

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

What is a concept?

A

It’s a model external to reality. Not physical. Ideas.

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

What is meant by labelling?

A

Labelling implies counting, or taking a set of items and mapping these onto whole numbers e.g. Sunday = 0, Monday =1, …
These are a finite set of numbers. Such a mapping from names to numbers is called a code.

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

What is measurement?

A

Measuring some physical quantity with a measuring instrument.
Result in real numbers, not integers like in labelling.

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

What are the results of labelling and measurements?

A

These are data items. Data are just sequences of data items.

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

Do data processing machines process data?

A

No, because machines are physical and data (being numbers) are not. We first need to find a way of representing data in physical quantities.

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

What is data representation?

A

Data representation involves finding suitable physical quantities to represent numbers. We need representations that can be stored (memory) in physical devices, communicated between devices and manipulated so as to mimic abstract data operations (like addition).
Physical

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

What’s a common method for data representation, ie representing intangible and abstract numbers in a physical form?

A

Voltages - easily stored and transmitted over wires.

Optic fibres.

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

What are two distinct approaches to data representation?

A

Analogue representations and digital representations

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

What are the limitations of data representation?

A

1) Limited accuracy
2) Noise on the environment in all situations - fluctuations that add errors to the measurement. In the case of length, a smaller tremor for example can cause an error.

17
Q

What are analogue representations?

A

It’s when we assign real numbers to continuous physical quantities. Eg x metres.

18
Q

What is a digital representation?

A

These are binary representations where there is a true/false, 0 or 1 etc.
Good because it blocks out noise errors, as for example, if we have a low voltage (0), then there’s going to have to be a substantial upward spike of noise for it to be seen as high (1).

19
Q

What is the name for a sequence of bits?

A

code word

20
Q

What is a binary code?

A

Binary code is a mapping from a data set to binary code words.

21
Q

What is a fixed length code?

A

If all the code words have the same number of bits, code is fixed length.

e.g. if letters of the alphabet all have the same number of bits

22
Q

What is a program?

A

A program is a (finite) set of instructions detailing how input data should be processed to achieve a desired result (output data)

23
Q

How can we store bits (or code words)?

A

We need a basic digital circuit that can take a bit and store it, then remember the value indefinitely, and read out the stored value. We will call them bit storage circuits.

24
Q

What is a byte?

A

A byte is a string of 8 bits.

25
Q

How many different values are there in a byte?

A

2^8 = 256 different values

26
Q

How many bits usually are there in a short word, normal sized word, and long word?

A

Short word - 16 bits (2 bytes)
Word - 32 bits (4 bytes)
Long word - 64 bits (8 bytes)

27
Q

What is a k-bit word?

A

A word that contains k bits and can represent 2^k distinct values.

28
Q

What are wires used for?

A

Connecting components, so that we can manipulate binary representations.
In electronic devices this is done by conducting wires. Each wire represents one bit at a time (as a high or low voltage between wire and ground). Multiple bits can be sent on the same wire, but not at the same time!

29
Q

In terms of wires, what is line driver/line receiver?

A

Line drivers makes the line go high or low and these are detected by the line receiver.

30
Q

What is the bit time?

A

The minimum time needed for the bit to be kept steady on the wire for it to be properly detected by the receiver.

31
Q

What is an n-bit bus?

A

An n-bit bus is n-wires running in parallel, taking 1 bit at a time.

32
Q

What are common examples of physical devices that perform operations on bits and code words?

A

Not-gate
And-gate
Or-gate
n-bit adder

33
Q

What is a transistor?

A

It’s a small electronic switch - you can switch on or off by another voltage. By sending an electronic signal, you can switch the transistor on/off. (Don’t need to know this in depth for this course).