Lecture 1: Machine Organization Flashcards

1
Q

operating system

A

operating system

a program that acts as an intermediary between user of a computer and the computer hardware.

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

computer system structure

A
  1. hardware
  2. operating system
  3. application programs
  4. users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Machine Organization

A
  1. CPU: a processor for interpreting and executing programs
  2. Memory: for storing data and programs
  3. Controller: mechanism for transferring data from/to outside world (devices). It transfers the data on the bus, through the bus
    Bus: sets of wires (zeros and ones), each “on” or “off”: move data and instructions within units of the machine. All data is interpreted as zeroes and ones (binary).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Bus

A

The bus is divided into 2 sets:
data(what), address(where)

Primary movement of the bus:
Data is moved from:
1. From CPU to Memory
(and from Memory to CPU)
2. From CPU to the device controllers (disk)
3. From memory to device controllers (sometimes)

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

CPU

A

Central Processing Unit
=ALU + Control Unit

CPU os responsible for fetching, decoding and executing instructions on the correct data.

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

ALU

A

Arithmetic Logical Unit
= registers + function unit
-It stores and performs operations on data

Registers: storage units (for addresses, program counters, data)

Function Unit: arithmetic and logic Units

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

Control Unit

A
  • Interprets program instructions

- Makes sure the correct data is where it needs to be.

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

Registers

A
  • Fast Expensive Memory on the Processor
  • 32-64 registers in ALU
  • Each holds a “word”
  • word is data size used in computation
  • word is data transferrable over data bus at a time

Types: General Purpose Registers (GPR) and Status Registers

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

Function Unit

A
  • performs logical and arithmetic computations with data in registers
    e. g. ADD R1, R2 –> R1: =R1+R2
  • Operations in FU may affect bits in status registers (e.g. overflow, zero flag)
  • knows which operations to perform because it is controlled by signals from the Control Unit of the CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

General Purpose Register (GPR)

A
  • All data used in computation is stored in General Purpose Registers.
  • Set directly by software (assembly language instruction)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mem to CPU Operations (Assembly Language )

A

LOAD: Mem->Reg
STORE: Reg ->Mem

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

Mem to Disk (System Calls)

A
  • Request OS to perform service
  • Causes it to cede control of CPU (trap)

READ R1: : Disk -> Reg

WRITE R1: : Reg -> Disk

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

Status Register

A
  • convey info about previous and current operation
    e. g. CPM R1, R2
  • Set as “side effect” of software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Program Counter (PC)

A
  • register of the CPU that stores where the program where the program is stored in emory
  • The register containing the address of the instruction in the program being executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Instruction Register (IR)

A

register of a CPU’s control unit that holds the instruction currently being executed or decoded

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

Control Circuitry (CC)

A

digital circuitry within the processor that coordinates data movements into, out of, and between a processor’s many sub-units.

17
Q

2 Roles of the OS

A
  1. resource abstraction for applications: abstract from functionality of hardware (ease of use for programs, makes our programs, in a way, device independent)
  2. resource sharing: protects, manages resources (CPU’s, memory, I/O devices)
18
Q

What is a resource?

A

Most are hardware: CPU, Memory, I/O devices

19
Q

Boostrap Loader

A

small program stored in ROM that runs part of OS

20
Q

BIOS

A

(no-volatile firmware on flash memory of motherboards) initialized hardware and runs the bootstrap loader - BIOS is part of hardware

21
Q

Control Unit Components

A

Fetch-Decode-Execute (FDE) Unit + PC + IR