Computer Orginisation Flashcards

1
Q

What is the CPU?

A

The CPU executes programs, which are stored as
numbers representing Machine Language Instructions

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

What is the Control Unit (CU) and what cycle does it preform?

A

Control Unit – controls all parts of the computer system. It manages the four basic operations of the Fetch Execute Cycle.

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

What does the Arithmetic Logic Unit (ALU) do?

A

The ALU must perform the command, performing Arithmetic (+,*,­,/) or Logic (and, or,…) operations. The result of the operation is placed in the ACCUMULATOR (a CPU register). Then the CU might send a result back to the RAM.

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

Stages of data retrival

A
  • The Memory Address Register contains the address (location) of a byte in the memory.
  • This is transmitted over the Address Bus.
  • After that the RAM finds the data and sends it back over the Data Bus,
  • and the value is stored in the Memory Data Regiter.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CPU and Memory diagram

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

What types of registers are there?

A

MIMAP

  • Memory Address Register
  • Instruction Register
  • Memory Data Register
  • Accumulator
  • Program Counter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the Program Counter do?

A

Program Counter: Stores the address of the next instruction

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

What does the Memory Address Register do?

A

Memory Address Register: Stores the address in memory that is to read or written.

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

What does Memory Data Register Do?

A

Memory Data Register: Stores the data in memory that has been read or is to be written.

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

What does the instruction register do?

A

Instruction Register: Stores the current instruction being processed.

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

What does the Accumulator do?

A

Accumulator: A set of general purpose registers used for storing temporary intermediate results of the CPU’s calculations.

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

What is done in the Fetch Phase?

A
  1. The PC (Program Counter) stores the address of the next instruction in memory.
  2. The contents of the PC are copied to the MAR and the PC is incremented.
  3. The address is put onto the address bus.
  4. The data at that address is read into the MDR.
  5. The data returns on the data bus.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is done in the Decode Phase?

A
  1. The instruction carried by the MDR is copied to the IR (Instruction Register)
  2. The instruction is translated into a format that the ALU can understand.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is done in the Execute Phase?

A
  1. The ALU carries out the operation, e.g. ADD, MUL, CMP, JMP, STO, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is done in the Store Phase (optional)?

A

This is almost exactly the same as the Fetch phase, except that the control bus carries a “write” signal instead of a “read” signal. Therefore, instead of reading the data stored at the MAR address into the MDR, the data stored in the MDR is written to the location at the MAR address.

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

What is an operating system?

A

Software that controls the execution of programs and that may provide services such as resource allocation, scheduling, input/output control, and data management.

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

Functions of an Operating System?

A
  • A collection of programs
  • Input/Output (IO) control
  • File management
  • Software/hardware interface
  • Memory management
  • User interface
  • Scheduling
  • Program execution control
  • Security
18
Q

What is primary memory?

A

RAM and ROM

19
Q

What is secondary memory/storage?

A
  • Disk storage
  • Magnetic tape
  • USB flash drives
  • SSD
20
Q

Difference between RAM and ROM?

A
  • RAM: Random Access Memory. Holds data and instructions from running programs.
  • ROM: Non-volatile memory, used to hold the operating system’s bootstrap loader (small start-up program) or BIOS.
  • ROM cannot be modified
21
Q

What are registers (memory)?

A

Smallest, fastest memory, used to hold data that the CPU is
currently working.

22
Q

What is the cache?

A

Small, fast memory, used to hold very frequently used data.

23
Q

Operating system memory management tasks?

A
  • Multi-tasking environment: keeping the memory space of each process safe from other running processes (see Security)
  • Multi-user environment: keeping the memory space (primary and secondary) of each user safe from other users (see Security)
  • Allocating and deallocating memory for each process
  • Paging: Dividing virtual memory up into equal- sized blocks (pages). Paging allows OSs to allocate non-contiguous chunks of memory to the same process, thus reducing fragmentation problems
  • Virtual memory: The use of secondary memory as if it were primary memory. By creating virtual memory, the OS make it easier for programs to reference memory because they don’t need to worry about the complications of the underlying physical structure of memory and disk (another example of abstraction)
24
Q

Types of applications?

A
  • Word processor: Text document management
  • Spreadsheet: Mathematical and financial calculations
  • Database: Organisation of information
  • Email: Electronic mail
  • Web browser: Viewing HTML pages
  • Graphics processing: Editing, cropping and enhancing images
  • Computer-Aided Design (CAD): Creating and editing designs for engineering or manufacturing
25
Q

Common Features of Applications

A
  • I/O (input/output) operations
  • File system manipulation (reading/writing files)
  • Frameworks of GUI components
  • Program execution
  • Hardware interface
  • Error detection
26
Q

What is a Bit?

A

The smallest amount of data that can be represented. Short for “binary digit”. Represented as either a 0 or 1.

27
Q

What is a Byte?

A

Byte: 8 bits

28
Q

What is Denary/Decimal?

A

The base 10 counting system. The normal place- value counting system in which a new column is created when a power of 10 is reached.

29
Q

What is Hexadecimal?

A

The base 16 counting system. Requires six new symbols in addition to 0-9, which are A-F. Since 2^4 = 16, one Hex digit can be used to represent 4 bits, and two Hex digits can be used to represent a byte.

30
Q

What does AND logic gate do?

A

Binary multiplication A*B

31
Q

What does OR logic gate do?

A

Binary addition A+B

32
Q

What does NOT logic gate do?

A

Inverts the binary value eg: 0->1 or 1->0

33
Q

What does a logic gate starting with N do? Eg: NAND, NOR

A

It NOTs the value after processing it

34
Q

What does XOR do?

A

If values are same -> 0. If values are different->1.

OR

True when added inputs are odd and false when added inputs are even

35
Q

Converting Binary to Decimal

A
36
Q

Convert from Decimal to Binary

A
37
Q

Convert from Decimal to Hexadecimal

A
38
Q

How to construct a truth table

A
39
Q

Visual Representation of the Fetch Decode Execute cycle

A
40
Q
A