TOPIC 2 - Part 1 Flashcards

1
Q

What is the relationship
between the components of a computer system?

A

A computer system accepts data or instructions as input from an input device. Data or instructions are then processed by the computer system.
It may be the case that other data or instructions, apart from the input, are necessary during processing. These exist in the storage and may be loaded and used. Finally, the computer system outputs the processed data into information that we can see and use. This output is also saved on the storage (memory).

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

CPU (processor or chip)

A

Data or instructions that are processed by a computer system in the process phase of the input, process, output and storage model are processed by the central processing unit (CPU). The CPU is a hardware component of a computer system and can perform basic arithmetic, logical or input/output operations, in order to process data from input devices into useful information. The CPU is the ”brain” of a computer system.

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

Components of CPU

A

. control unit (CU)
. arithmetic logic unit (ALU)
. memory address register (MAR)
. memory data register (MDR)

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

What are the functions of the control unit?

A

The control unit (CU) is responsible for the operation of the CPU. It controls the retrieval of instructions from the primary memory as well as the sequence of their execution.

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

What are the functions of the arithmetic logic unit (ALU)?

A

The arithmetic logic unit (ALU) performs all the basic arithmetic, logical or input/output
operations. The CU is responsible for providing the ALU with the data that needs to be processed as well as the instructions of how the data should be processed.

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

What are two types of primary memories?

A

The primary memory used as storage contains two types of memory - the random access memory (RAM) and the read only memory (ROM).

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

RAM

A

The RAM stores the executing program instructions as well as any data that is needed. Instructions and data in the RAM are stored in unique memory locations and every such location has an address as well as content. The content is where the instructions and data reside, whereas the memory location is used by the CU to find, retrieve and access the data in order to send it to the ALU for processing.

RAM is a general—purpose storage area
meaning that the data stored can be over—
written. This allows data and instructions to
be loaded for execution and use whenever
they are necessary. However, RAM is
volatile, which means that whenever power
is lost the contents of its memory are wiped.

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

ROM

A

Similar to the RAM, the ROM holds instructions and data in unique memory locations. Every such location has an address as well as content. Unlike the RAM however, the ROM is used to store permanent instructions and data that cannot be changed and are used to boot and operate the computer. As such, nothing can be altered in the ROM.

ROM is used to store instructions and data and cannot be over—written. This means that the instructions that are embedded in ROM cannot be changed, even if power is lost, and as such is considered nonvolatile memory. ROM is used to store programs and instructions that do not need to be updated or change.

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

Registers

A

The CU contains various registers. In general, a register is a small storage location that can hold data, usually a multiple of 8 bits. The size of the register in bytes is known as a word. The basic registers in the CU are the memory address register (MAR) and the memory data register (MDR).

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

MAR

A

The MAR holds the memory address of the data to be used by the ALU, so that the ALU can fetch the corresponding content from the memory and process it accordingly. The MAR may also hold the memory address of where data that has been processed will need to be stored. In order for the MAR to communicate with the primary memory, a connection is necessary. This connection is accomplished by the Memory (Address) Bus.

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

MDR

A

The MDR holds the data that is to be used by the ALU and then saved to the RAM. The MDR
is closely related to the MAR, since whichever memory address location the MAR is holding,
the corresponding data will be loaded onto the MDR for processing by the ALU. After the
processing has taken place, the ALU places the result onto the MDR and the data is copied to the memory address location in RAM specified by the MAR. The connection between the RAM and the MDR is accomplished by the Data Bus.

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

Primary memory

A

The primary memory is the only storage that is directly accessible by the CPU. At any point in time, the primary memory may hold both data and instructions that are currently running on the computer system. These data and instructions are stored in the primary memory as binary machine code (i.e. a series of 0 s and 1s).

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

2 main types of RAM and cache memory

A

RAM has two main types:
. Dynamic RAM (DRAM)
. Static RAM (SRAM)

SRAM is faster but more expensive than DRAM, and as such DRAM is preferred for the main RAM of a computer system. However, a small amount of SRAM is placed between the main RAM and the processor and it is called cache. As such, cache is a smaller and
faster RAM (SRAM) that temporarily stores instructions and data so that the processor does not need to access the slower main memory (DRAM).

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

How does cache memory work?

A

Cache holds the information from the RAM that is most actively used, and accessed most frequently. The computer system will run faster as the slower main memory will need to be accessed less frequently. When the processor needs to read from the main memory, it first checks if a copy of the data exists in the cache. If so, the processor reads from the cache, instead of reading from main memory. This action speeds up the process. If the data to be read do not exist in the cache, the data are first copied to the cache and then used. When the processor needs to write to the main memory it does so through cache memory.

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

Two types of cache memory

A

There are two types of cache memories that reside between the main RAM and the processor. These two types are L1 cache and L2 cache. L1 cache is placed on the microprocessor itself whereas L2 cache is placed between the primary memory and the microprocessor.

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

Functions carried out by the CPU in order to run a computer program:

A
  1. Fetch instruction from primary memory to control unit
  2. Decode instruction in control unit
  3. Execute instruction
  4. Store result of execution and check for next instruction
17
Q

More about primary memory, RAM and ROM (not a question)

A

The primary memory of a computer system consists of both random access memory (RAM) and read only memory (ROM). The primary memory is the only storage that is directly accessible by the CPU, meaning that any data that is stored elsewhere needs to first be copied onto the RAM, since the ROM cannot be written to but only read from, in order to be used by the CPU. RAM however is volatile, meaning that whenever power is lost the contents of the memory are wiped.

18
Q

Secondary memory

A

relatively slow, non-volatile memory, also known as persistent storage. Secondary memory has a relatively high capacity to hold data compared to the primary memory. Examples: Hard drive, CD-RW, DVD-RW, USB Flash drive

19
Q

Differences between Cache Memory and RAM

A
  • Cache memory is nearer to the CPU than RAM.
  • Cache memory is much faster than RAM.
  • Cache memory is more expensive than RAM.
  • Cache memory is separated in L1 and L2.
20
Q

Size in binary system

A

1 Byte = 8 bits; A bit is denoted by the small letter b, whereas a byte is denoted by the capital letter B. Thus, 13 = 8b. One byte can store a single character.
Kilo (K) –> 1,024
Mega (M) –>1,042^2
Giga (G) –> 1,024^3
Tera (T) –> 1,024^4