Computer Architecture: programmer's perspective Flashcards

to learn the basics of c programming

1
Q

what are stored program computers, who is it created by and what they do?

A
  • created by john von neumann
  • also known as ‘von Neumann Architecture’ systems
  • reprogramming does not require hardware modifications
  • computer that store program instructions in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

who made stored program computers

A

john von neumann

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

what does stored program computer reprogramming does not require

A

does not require hardware modifications

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

what do stored program computers do

A
  • computer that stores program instructions in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the 3 main components of von neumann architecture

A

1) central processing unit (CPU)
2) Memory
3) I/0 interfaces

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

What are the components of the CPU

A

1) Control unit (CU)
2) Arithmetic and Logical unit (ALU)

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

What does the ALU do

A

preforms aritmetic and logical operations

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

what does CU do

A

Control Unit determines the order in
which instructions should be executed and controls the retrieval of the proper
operands

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

what is the process of the CU

A
  1. Retrieves the operands
  2. Asks ALU to compute the operation
  3. Stores the result
  4. Jumps to the next line
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is memory

A

it stores the data and program instructions

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

what is I/0 interfaces

A

it collects or sends information to or from connected devices

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

what are connected devices also known as

A

peripheral devices

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

what are registers

A

small storage elements that are located close to ALU
they
Used as temporary storage during computation
ALU can read and write from registers very fast

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

advantage of registers

A

CPU need not have Registers. We can use Memory to store all data

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

describe memory as an address

A

memory have small cells
each data cell contains a small section of data
each cell has its own memory address from #0 to #n-1

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

what are the 2 steps in memory access

A
  • During Read and Store operations, CPU generates memory
    addresses.
  • Memory Management Unit (MMU) reads or writes from/to
    the requested memory-location
17
Q

what is the process during Memory access during program exe

A
  1. CPU asks MMU to fetch data from #0.
  2. MMU reads location with address #0
    and returns value of ‘a’.
  3. Similar steps for ‘read b’
  4. CPU computes sum ‘c’
  5. CPU instructs MMU to store ‘c’ in
    location with address #2.
  6. MMU writes ‘c’ at #2
18
Q

what is base 10

A

Decimal number system is a base-10 system

19
Q

what are digits of base 10

A

The digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

20
Q

what is 957 in base 10

A

910^2 + 510^1 + 7

21
Q

what is base 2

A

Binary number system is a base-2 system

22
Q

what are digits in base 2

A

0, 1

23
Q

what else can a digit be called in base 2

A

bit

24
Q

0b1110 in base 2

A

12^3 + 12^2 + 1*2^1 + 0
= 13 in decimal

25
Q

what is a collection of 8 bits

A

a byte
0b11010100

26
Q

what is base 16

A

Hexadecimal number system is a base-16 system

27
Q

digits of base 16

A

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
A = 11, B =12, C =13 , D = 14 , E = 15, F = 16

28
Q

value of 0xA3B in base 16

A

A16^2 + 316^1 + B
= 1016^2 + 316^1 + 11
= 2114 in decimal

29
Q

what is a byte in base 16

A

2 hex digits