Topic 7 - Computer organisation and architecture Flashcards
What do the internal components of a computer system do?
Give some examples
They are the hardware required to process data and to allow the processor to communicate with other devices (external).
Main components are the processor, main memory and input/output controllers
They are connected by the system bus (address bus, data bus, control bus)
Secondary storage provides permanent storage for programs and data
Describe the role of the processor (CPU) in a computer system
The part of the computer that processes data by executing program instructions
At processor level these are low-level instructions in the form of machine code that the CPU has been designed to handle based on a specific processor instruction set
For instructions to be executed, they must be transferred from secondary storage to main memory, where they can be fetched, decoded and executed. Data can also be provided by I/O devices via the I/O controllers
Describe the role of main memory in a computer system
Memory that can be accessed directly by the processor
Each memory location (where instructions/data are stored in binary) has a physical address - a number used to locate it and access its contents
There are two types :
- RAM - working memory used by the CPU in the FDE cycle
- ROM - used in the boot process for the computer system
What are the roles of Input/Output controllers in a computer system
All external (peripheral) devices are connected to the CPU via I/O controllers
Provide the mechanisms for input data to be received for processing from input devices + the results of computation to be output from the system to output devices
Also connect secondary storage devices to the processor
Describe how Input/Output controllers work
CPU can’t attach directly to peripheral devices as they all operate in different ways at different speeds using different electronic signals so I/O controllers act as an interface
Provide a set of addressable registers that both the processor + I/O device can access
Physical port on the controller provides a connection for the peripheral. Controller circuitry facilitates the exchange of data as electrical signals between processor + peripherals. Translates signals into correct form + provides a buffer for the difference in speeds
Each peripheral needs a device driver - a piece of software providing a software interface for the device, enabling the OS to access functions of the hardware without being configured for it.
What is a bus?
What is a system bus?
What are external buses?
A communication system used to transfer data between components. Connects components
A set of parallel connections allowing internal components to communicate + exchange data. In Von Neumann architecture this is made from an address, data and control bus.
Connect peripherals to the processor. Can be serial or parallel
Describe the features of the data bus in Von Neumann architecture
A bidirectional bus used to transfer data and instructions
The width of the bus is its number of parallel lines - it determines the number of bits that can be transferred in one operation
If the width is n bits, n bits can be transferred at once
Describe the features of the address bus in Von Neumann architecture
A unidirectional bus used to specify the address of a memory location to read from / write to
One way connection from the CPU to the bus and a one way connection from the bus to other components
The width determines the number of bits that can be used to form an address
If the width is n bits, there are 2^n addresses, so it determines the maximum memory capacity of the system (addressable space)
Describe the features of the control bus in Von Neumann architecture
A bidirectional bus used to send control signals that manage operations in the system
Can:
- request communication between 2 units
- acknowledge communication requests
- synchronise operations with clock pulses
- send interrupt requests
- specify the type of data being transferred by other buses
- send memory read/write requests
- send bus requests
What is computer architecture?
The structure and organisation of a computer system. Specifies the components that make it up and how they are interconnected
What is the stored program concept?
A program must be resident in main memory to be executed.
Machine code instructions are fetched sequentially and executed one at a time by the processor
Why is the stored program concept important?
Originally programming was performed by manually setting a large number of switches then entering input data. Very inefficient and time consuming. Every time a new calculation was programmed the places of the switches changed + the previous program lost so the system had to be reprogrammed for every new input
Issues solved by the stored program concept. It introduced a memory unit that could store programs + data. Meant a processing unit could fetch + execute multiple instructions = versatile machines
Describe the features of Von Neumann architecture
Used in many modern-day systems, consisting of a processor, main memory unit, I/O controllers + secondary storage connected by buses
Uses an address bus to identify locations + a data bus to transfer their contents. Uses a control bus to synchronise + control operations
Same address and data buses are used to transfer both instructions and data between main memory + the processor
Describe the features of Harvard architecture
Keeps instructions + data in separate memories + accesses them using separate data + address buses
Used mostly in embedded systems
What are the benefits of Harvard architecture?
- Instruction + data memories can be accessed simultaneously = less time waiting = increased processor performance
- Avoids bottleneck of single data/address buses
- Instruction + data memories can be adapted to meet the needs of a particular system (different sizes, word lengths, type of technology etc)
- Systems with pre-determined uses can store instructions as ROM to protect against hackers
What are the disadvantages of Harvard architecture?
- More complicated
- More expensive (more hardware)
- More suited to embedded systems than general purpose computers when the uses aren’t pre-determined