Computer Architecture Flashcards

1
Q

What is computer architecture

A

Computer architecture refers to the overall organization of a computer system. It is analogous to a blue print.

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

The architecture of a computer specifies

A

1)The functionality of the major components.
2) The intercommunication among components

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

Types of computer architecture

A

1.Von Neumann architecture
2. Harvard architecture
3. Instructions set architecture
4. Microarchitecture

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

……….. Is the fundamental architecture for every digital computer

A

Von Neumann architecture

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

Who proposed von Neumann architecture

A

John von Neumann

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

Von Neumann architecture consist of

A
  1. CPU also known as processor
  2. Memory
  3. Interconnection between the memory and the CLU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does von Neumann architecture execute instructions

A
  1. A von Neumann machine executes a single instructions at a time
  2. Each instruction operates on only a few pieces of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Discuss the CPU

A
  1. The CPU is brain of the computer
  2. The CPU, also called the “processor” is the unit that does all the processing in a computer
  3. This unit of the computer retrieves and executes instructions.
  4. The CPU is an integrated circuit that performs the calculation that runs a computer.
  5. The CPU performs
    Arithmetical
    Logical
    Input/output
    instructions that passed from an operating system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The CPU is made up three essential components, what are there??

A
  1. Arithmetic and logic unit (ALU)
  2. Control unit ( CU)
  3. Registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Discuss ALU ( Arithmetic and Logic Unit)

A
  1. The ALU is a digital circuit ( integrated circuit) used to perform arithmetic and logic operation.
  2. ALU represents the fundamental building block of the CPU in any computer
  3. Modern CPU contain very powerful and complex ALU’s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Examples of arithmetic operations carried out by ALU are

A
  1. Addition
  2. Subtraction
  3. Multiplication
  4. Division
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Examples of logic operations in ALU are

A
  1. AND
  2. OR
  3. NOT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When operations become more and complex the ALU…………

A

Also becomes more complex and expensive and takes more space in the computer and dissipates more heat

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

Discuss the CU ( control unit)

A

The CU tells the ALU what operations to perform on data and ALU stores the results in an output register

The CU moves the data to the output devices

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

Discuss registers

A

Registers are special transistors that store data and instructions as they are being manipulated by the control unit and ALU.

Registers are essentially extremely fast memory locations within the CPU that are used to create and store the results of the CPU operations.

Every data to be processed by CPU must be in the registers

Essentially, registers are the memory locations to which data are sent and retrieved.

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

Computer differ from one another in……..

A

1.The number of registers
2.Register types
3.Length of each register
4. They also differ in the usage of each register

General purpose register are used for multiple purposes and assigned a variety of functions by programmers

17
Q

So registers are user visible and modifiable. Others are not e.g

A

USER VISIBLE AND MODIFIABLE
1.General purpose
2.Data(e.g, accumulators)
3Address( e.g base, addressing, index addressing)

CONTROL ( NO VISIBLE TO USERS)
1. Program counter (PC)
2. Instructions Decoding Register (IR)
3. Memory Address Registers (MAR)
4. Memory Buffer registers (MBR)

STATE REGISTERS ( VISIBLE TO USER BUT NOT DIRECTLY MODIFIABLE)
1.Program status word (PSW)

18
Q

Types of registers

A
  1. Memory access registers (MAR)
  2. Instruction fetching registers
  3. Conditions registers
  4. Special address registers
19
Q

Memory access registers (MAR)

A

To perform write and read operations, two registers are essential
1. Memory data register (MDR)
2. Memory access registers (MAR)

The MDR are used exclusively by the CPU and are not directly accessible to the programmer

20
Q

Memory access registers (MAR)
In order to perform a write operation into a specified memory locations, the MDR and MAR are used as follows

A
  1. The word to be stored into the memory locations is first loaded by the CPU into MDR.
  2. The address of the location into which the word is to be stored loaded by the CPU into the MAR.
  3. A writ signal is then issued by the CPU
21
Q

Memory access registers (MAR)
Similarly, to perform a memory read operations, the MDR and MAR are used as follows

A
  1. The address of the location from which the word is to be read is loaded into the MAR
  2. A read signal is issued by the CPU
  3. The required words is then loaded by the memory into the MDR and ready for use by the CPU.
22
Q

Instructions fetching registers
In order to fetch an instruction for execution, two registers are used, these are

A
  1. Program counter (PC)
    i) the PC contains the address of the next instruction to be fetched.
    ii) After a successful fetch, the PC is updated to point to the next instruction to be executed
    iii) In the case of a branch operation, the PC is updated to point to the branch target instruction after the branch is resolved
  2. Instruction registers (IR)
    The fetched instructions is loaded in the IR for execution.
23
Q

Condition registers

A
  1. Condition registers/flag are used to maintain status information
  2. Some architecture contain a special program status word (PSW)
  3. The PSW contains bits that are set by the CPU to indicate the current status of an executing program
  4. These indicator are typically for:
    i. Arithmetic operations
    ii interrupts
    iii memory protection information
    iv processor status
24
Q

Memory

A
  1. In a computer, memory refers to devices that can store information temporarily or permanently.
  2. A computer needs storage devices to operate. Some of the major devices are: HDD, CD, ROM, RAM, Floppy disk etc
  3. The memory of a computer is an array of millions of adjacent cells
  4. Each cell in a memory is capable of storing a binary (bit), having a value 1 or 0
  5. These cells are organized in the form of fixed numbers, say n can be dealt with as an entity
25
Q

Continuation of memory

A
  1. An entity consisting of 8 bits called a byte
  2. An entity consisting of n bits can be stored and retrieved in and out of the memory using the basic memory operation called word.
  3. Word is the smallest addressable entity in the memory
  4. The typical size of a word ranges from 16 to 64 bits.
  5. The size of memory is customarily Expressed in terms of bytes
  6. For example, the size of the memory of a personal computer ranges from 256mbytes to 16gbytes
26
Q

Parameters for characterizing memory hierarchy

A
  1. Access type
  2. capacity
  3. Cycle time
  4. Latency
  5. Bandwidth
  6. Cost
27
Q

Discuss the parameters of characterizing memory hierarchy

A

Access: refers to the action that physically takes place during a read/write operation

Capacity: of a memory is the amount of data it can hold at anyone given time and it is measured in bytes

Cycle time: is the time that elapsed from the start of a read/write operation the subsequent read/write operation.

Latency: is the interval between the request for information and access to the first bit of that information.

Bandwidth: is a measure of the number of bits that can be accessed from the memory in a given time and it is measured in bits per second (bps)

Cost: the cost of a memory level is usually specified as dollars per megabytes

28
Q

There are 5 five classes of memory available to a computer, what are there??

A
  1. Registers
  2. Cache
  3. Main memory
  4. Secondary memory
29
Q

Cache and main memory are built using??

A

Solid-state semiconductor material

30
Q

…………and………… are volatile memories

A

Cache and main memory

31
Q

Discuss cache

A
  1. Very high speed semiconductor memory
  2. It speeds up the CPU
  3. Holds frequently used part’s of data and program.
  4. Acts as a buffer between main memory and the CPU
32
Q

Advantages of cache

A
  1. Cache memory is faster than main memory
  2. It consumes less access time as compared to main memory
  3. It stores the program that can be executed within a short period of time
  4. It stores data for temporary use.
33
Q

Disadvantages of cache

A
  1. Cache memory has limited capacity
  2. It is very expensive
34
Q

Discuss main memory

A
  1. Holds data and instructions running at the moment in the CPU
  2. It has limited space
  3. Data is lost when power is turned off
  4. Not as fast as registers and cache
35
Q

Characteristics of main memory

A
  1. Semi conductor memories.
  2. It is known as the primary memory.
  3. Usually volatile memory.
  4. Data is lost in case power is switched off.
  5. It is the working memory of the computer.
  6. Faster than secondary memories
  7. A computer cannot run without primary memory.
36
Q

Types of main memory

A
  1. Random access memory (RAM)
  2. Read only memory (ROM)
37
Q

Discuss secondary memory

A
  1. These are memory space that store data and program permanently
  2. They include hard disk drives (HDD), solid state drives (SSD) and flash drive.
  3. SSD is a memory device made with solid state component as a replacement for hard disk drive (HDD’s).
  4. Solid state because they are electronic circuitry built with semiconductors.
  5. Examples of secondary memory are
    i. Floppy diskettes
    ii. Hard drives ( internal/external)
    iii. Flash drive
    iv. SSD cards
38
Q

Input and output units

A
  1. Hardware components
  2. Most visible hardware components
  3. Connected to the computer
  4. Controlled by the computer system
  5. Outside the main circuitry (PCB/ Motherboard) of the computer
  6. Input, output and store data permanently
  7. Interfaces between the computer and user
  8. Data: instruction, voice, video etc