Topic 2 - Computer Architecture Flashcards

1
Q

Fetch

A
  • The program counter (PC) holds the memory address of the next instruction that is going to be read/written to
  • The address is transferred to the MAR via the address bus
  • The MAR sends the memory address to RAM via the address bus to signal it to read the instruction at the specified memory address
  • The instruction is sent to the MDR via the data bus from the RAM and then copied into the CIR (Current Instruction Register) also via the data bus
  • The PC is incremented to the next instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Decode

A
  • Th UI interprets and decodes the instruction in the CIR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Execute

A
  • The ALU carries out the decoded instruction by performing arithmetic or logical operations
  • The ACC stores and accumulates the result of the calculations performed by ALU if needed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ROM

A

Read only memory that stores the permanent and persistent instructions to boot up the computer (BIOS)

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

Cache memory is more _____ than RAM and is checked before/after the RAM

A

expensive

before

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

Secondary Memory relationship to CPU

A

It is not directly connected to CPU unlike primary memory

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

Virtual Memory

A

This is utilized when primary memory is overloaded. It works by sending less used data from primary memory to secondary memory in pages freeing up space in the primary memory. When primary memory needs the data sent again, it is sent back to the primary memory from secondary memory.

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

Virtual memory 2 characteristics

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

Draw VM diagram

A

2 boxes next to each other with a gap in between

1 box = RAM

1 box = Hard disk (but secondary box inside it called Virtual memory (pagefile))

There are two arrows that connect the boxes.

One arrow on the top going from RAM to hard disk called “less used data”

One arrow under it going from hard disk to RAM called “data needed by the CPU”

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

Operating system definition

A

Set of software that controls computer’s hardware and resources and provides services for computer programs

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

3 examples of roles of OS

A
  • User interface
  • Memory management
  • Multitasking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

User interface

A

It is what facilitates the link between user and hardware

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

4 examples of UI

A

GUI
CLI
Natural LI (speak to computer like Siri)
MBI (like CLI but no commands only menu options)

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

Memory management

A

A role of OS. It refers to keeping tracking of storage devices, allocating the appropriate amount of RAM to programs in use and organizing and managing data files and folders.

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

Peripheral management

A

A role of OS. The OS works with the BIOS and device drivers to translate signals from peripherals into instructions the system can understand and use.

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

Multitasking

A

A role of OS that allocates CPU time and resources to multiple programs in use, allowing them to run concurrently. This process is often managed using time slicing and ensures each program gets a fair share of CPU time based on priority and scheduling algorithms.

17
Q

Security (OS)

A

A role of OS. It involves the setting of usernames and passwords, setting user permissions and file permissions for reading and writing throughout the OS to enhance security.

18
Q

3 examples of types of Application software

A
  • Word processor
  • Spreadsheets
  • Web Browser
19
Q

Translate

1 byte –> bits
1 kilobyte –> bytes
1 mb –> kilobytes
1 gb –> mb
1 tb –> gb

A

1 byte = 8 bits
1 kb = 1024 bytes
1 mb = 1024 kb
1gb = 1024 mb
1 tb = 1024 gb

20
Q

Bit

A

Binary digit. This is a measurement unit that can only have two states, 1 or 0 (or on or off)

21
Q

One extended ASCII character (e.g. A) into bytes

A

1 byte

22
Q

Binary is what base?

A

Base 2

23
Q

Hexadecimal what is it and what base

A

These more efficiently represent large binary values. These are base 16.

24
Q

3 uses of Hexadecimal

A
  • HTML colors
  • MAC addresses
  • IP addresses
25
Q

Two formats of text

A

ASCII & Unicode

26
Q

How many possible characters in ASCII

A

128 possible characters

27
Q

Unicode

A

It is used to represent text in multiple languages. There are 3 types of UTF

UTF-8
UTF-16
UTF-32

each number corresponds to amount of bits used per character

28
Q

Pixel

A

Smallest controllable element in a display

29
Q

Each pixel represented by what type of code

A

6 digit hex value.

First 3 values represent red, second 2 represent green and last 2 represent blue

e.g. 70EF5A

30
Q

How many possible color combinations in each pixel

A

256^3

31
Q

How to draw gates

A

And = mario bullet

Or = space ship

Not = Triangle with mini circle attached

XOR gate = space ship with extra line (not connected) behind it)

NAND and NOR = the same but with a mini circle