Computer Architecture Flashcards
What are the internal components of a computer system?
- The internal components of a computer system consist of the hardware required to store and process data, and communicate with external, peripheral devices
- It contains the processor, main memory, I/O controllers
- These components are connected by the system bus (this is comprised of the address bus, data bus, control bus)
What is the processor?
It is part of the computer that processes data by executing program instructions (these are low-level instructions in the form of machine code that the processor has been designed to handle, based on a specific processor instruction set)
- For the processor to be able to execute a program, the program instructions need to be transferred from secondary storage into main memory where they can be detached, decoded and executed. The data that needs to be processed is also loaded into main memory (from secondary storage) or provided by the input and output devices via the I/O controllers.
What is main memory?
This is memory that can be accessed directly by the processor. Each memory location, where instructions or data are stored as binary sequences, has a physical address, which is a number used to locate that memory location and access it’s contents.
Classifications of main memory
RAM, ROM
What is RAM?
Random Access Memory is a type of computer memory that is used to temporarily store data that the computer is currently using or processing. RAM is volatile memory, which means that the data stored in it is lost when the power is turned off. RAM is typically used to store the operating system, application programs, and data that the computer is currently using.
What is ROM?
Read Only Memory is a type of computer memory that is used to permanently store data that does not need to be modified. ROM is non-volatile memory, which means that the data stored in it is retained even when the power is turned off. ROM is typically used to store the computer’s BIOS (basic imputer/output system), which contains the instructions for booting the computer, as well as firmware for other hardware devices.
Advantages of RAM
- Speed: RAM in much faster than other types of storage, such as hard drive or solid-state drive, which means that the computer can access the data stored in RAM , more quickly.
- Flexibility: RAM is go,a tile memory, which means that the data stored in it can be easily modified or deleted. This makes it ideal for storing data that the computer is currently using or processing
- Capacity: The capacity of RAMa can be easily upgraded, which allows the computer to store more data in memory and thus improve performance
- Power Management: RAM consumes less power compared to hard drives and solid-state drives which makes it an ideal memory for portable devices
Disadvantages of RAM
- Volatility: RAM is volatile memory, which means that the data stored in it is lost when the power is turned off. This can be a problem for important data that needs to be preserved, such as unsaved work or files that have not been backed up
- Capacity: The capacity of RAM is limited, and although it can be upgraded if may still not be sufficient for certain applications or tasks that require a lot of memory.
- Cost: RAM can be relatively expensive compared to other types of memory, such as hard drives or solid-state drives, which can make upgrading the memory of a computer more costly
Advantages of Read Only Memory
- Non-volatility: ROM is non-volatile memory, which means that the data stored in it is retained even when the power is turned off. This makes it ideal for storing data that does not need to be modified, such as the BIOS or firmware for other hardware devices
- Reliability: Because the data stored in ROM is not easily modified, it is less prone to corruption or errors than other types of memory
- Power Management: ROM consumes less power compared to other types of memory, which makes it an ideal memory for portable devices
Disadvantages of ROM
- Limited Flexibility: ROM is read-only memory, which means that the data stored in it cannot be modified. This can be a problem for applications or firmware that need to be updated or modified
- Limited Capacity: The capacity of ROM is typically limited, and upgrading it can be difficult or expensive.
- Cost: ROM can be relatively expensive compared to other types of memory, such as hard drives or solid-state drives, which can make upgrading the memory of a computer or device more costly.
What are I/O controllers?
They allow input data to be received for processing from input devices. The results of computation to be output from the system to output devices like display screens
What are buses?
A bus is a communication system that is used to transfer data between components. The system bus is a set of parallel connections that allow internal components to communicate with each other and exchange data. There are also external buses that are used to connect the peripherals to the processor. These can be serial or parallel connections.
Classifications of buses
Data, address, control
What is a data bus?
The data bus is used to transfer data and instructions. The data bus is bidirectional; it allows a two-way connection between between internal components of the system allowing values to be written to or read from a location.
What is the width of the data bus?
The width of the bus refers to its number of parallel lines and this determines the number of bits that can be transferred in one operation. If the width is 8 bits, then 8 bits can be transferred at one time.
What is an address bus?
The address bus is used to specify the address of a memory location to either read data from or write data to that memory location
What is the width of an address bus?
The width of this refers to its number of parallel lines which determines the number of bits that can be used to form an address of a memory location. If the width of the address bus is n bits then there are 2^n numbers that can be used to address memory locations; the max number of addressable memory locations.
What is the control bus?
The control bus is used to send control signa,s that manage and orchestrate the operations that take place inside a computer system. This includes exchanging status signals between the components of the computer system, and transmitting clock signals required for the coordination of operation.
What are the parts of a processor?
ALU, Control Unit, Clock, Registers,
What is the ALU?
The ALU is responsible for performing arithmetic calculations and logical operations that include: addition, subtraction, multiplication, division, logical bit wise operation (AND, OR, NOT, XOR), comparison between values, shifting binary patterns to the left or right.
What is the control unit?
This is charge of organising the sequence in which program instructions are executed followed by deciding the instructions. Decoding an instruction means that the opcode and operand of an instruction are analysed to determine what needs to be done to execute the instruction. This means that the control unit is responsible for directing the operations of all the other components of the of the processor:
- It uses control signals to enable data to be read from and written to the main memory
- It decodes every instruction that the processor will execute to determine what needs to be done (a calculation, logical operation, loading or storing data)
- It organises the sequence of micro-operations that need to be performed in order to carry out an inspection
- It uses control signals to determine the operation the ALU will carry out at each instance
What is a clock?
The system clock — also simply referred to as the clock — generates
regular clock pulses by emitting a signal that continuously oscillates
between a low (or ‘0’) and a high (or ‘1’) state. The clock signal is used
to synchronise the operations of the processor components.
▪ If the processor needs to read a memory location, it sends a read
request via the control bus, along with the address of the memory
location via the address bus. These operations happen at the same
time (i.e. in the same clock cycle).
▪ Depending on how long it takes to access the memory, the processor
then receives the contents of that memory location via the data bus,
after a number of clock cycles
What are registers and their classifications?
They are locations of computer memory within the processor that provide extremely fast access. Classifications include general-purpose registers, special purpose registers.
What are general purpose registers?
Having to access the main memory can slow down the execution of instructions. Therefore, the processor uses registers to temporarily store and access the results of operations. The ALU is connected to a set of general-purpose
registers that are used to keep the results of the intermediate calculations that are produced as part of a larger computation.