Week 3 Flashcards

1
Q

What are the main parts of a computer?

A

It’s a machine that executes sequences of instructions (which are programs) that are directed to work on data coming in (which is binary code). The data coming out will also be binary coded.

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

What are the computer subsystems?

A

1) Processor (at the core) or CPU. The processor fetches, decodes and executes sequences of binary coded instructions. The processor controls the fetch of the instructions.
2) Instruction memory - where a program is stored as a list of machine code instructions.
3) Data memory - code words representing data are stored here. It will store intermediary results here.
4) input/output subsystem
5) system interconnect - allows the various components to communicate. This is usually implemented as one or more buses.

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

What kind of information can electronic memory store?

A

binary coded information

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

Do all addresses have the same length of bits in memory?

A

Yes. The longer the number of bits, the more addresses we can have.

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

If we have an address where there’s no memory cells there, what do we say about the addresses?

A

They are unpopulated. Unpopulated addresses cannot stope anything. large address spaces are only party populated

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

How is data memory organised?

A

By indexed arrays of registers called locations, each labelled by an unsigned binary index or address.

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

What does the CPU do when it want to read data from memory?

A

The CPU will generate an address when it wants to read from or write to a location.

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

What is the address space?

A

The address space is the set of all addresses CPU can generate is its address space.

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

What is primary memory?

A

Randomly addressable memory such as that used for instructions and data. These are stored there as binary coded words.

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

In most current computers, the instructions and data are stored in a single address space (often on the same chips) accessed using the same buses. What is this called?

A

von Neumann or Princeton architecture.

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

In most current computers, the instructions and data are stored in a single address space (often on the same chips) accessed using the same buses. What is it called when the instructions and data are stored on separate addresses and spaces?

A

Harvard architecture.

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

What does it mean to say physical memory is volatile?

A

If it’s content is lost when power is removed. Non-volatile memory doesn’t need power at all.

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

Is read only memory (ROM) volatile or non-volatile?

A

non-volatile

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

Is random access memory (RAM) volatile or non-volatile?

A

volatile. RAM is read/write memory.

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

What is flash memory?

A

It’s non-volatile.
Slower than RAM.
It’s used in things like solid state drives.

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

What is secondary memory in computers?

A

Usually in the form of disks or other mass storage devices.

17
Q

What is the CPU?

A
  • a compound subsystem of the computer.
  • inside every processor there is:
    1) a control unit (CU) - co-ordinates the activities of the processor as a whole. It ultimately controls the computers as well. It examines the instructions and co-ordinates the other systems to execute them.
    2) An execution unit (EU) - contains hardware to perform operations on binary words.
    3) A register file consists of a set of general registers for holding data or addresses. It’s a device that can store a binary word. Supplies code words to the execution unit.
    4) A bus interface - an interface to the external address and data buses through which the CPU communicates with primary memory and I/O interfaces.
18
Q

What do we call a processor (CPU) on a single chip?

A

microprocessor

19
Q

What is a microcomputer unit?

A

A complete computer (including memory and CPU) on a single chip

20
Q

What is the control unit?

A

It is in the CPU, and it co-ordinates the activities of the processor. It also contains special-purpose registers.

21
Q

What is the program counter?

A

It’s a special register that’s found in the control unit (in the CPU). It points to the next address once the previous instruction has been fetched.

22
Q

What is the instruction cycle?

A

The sequence of fetching, decoding and execution

23
Q

What is the arithmetic logic unit?

A

It can do simple boolean logic operations and it resides in the execution unit (in the CPU).

24
Q

What are the two categories of CPU registers?

A

1) Registers in the register file for general use by instructions and are numbered.
2) Special purpose registers usually associated directly with the CU (control unit).

25
Q

What are the two kinds of special purpose register?

A

1) Registers that contain useful info at the end of an instruction. The status register captures all the flags (eg overflow, z-bit) from the last instruction.
2) Registers which are only used inside an instruction and have no useful info after the instruction finishes execution.

26
Q

What does the compiler do in high level languages such as C and Java?

A

It translates the code written into machine code. A compiler must generate machine code for a specific CPU type

27
Q

What is programmer’s model?

A

It’s the set of CPU registers that can be used to carry info from one instruction to another.

28
Q

What does the instruction register hold?

A

The machine code instructions that is fetched from memory while the processor is figuring out what it is.

29
Q

Look over instruction cycle diagram from slide 11 lecture 3 and outline each of the stages.

A

see slide 11 and 14 of lecture 3

30
Q

What is sigma 16?

A

It’s a microprocessor.