4.7 - Fundamentals of computer organisation and architecture Flashcards
What are the 6 basic internal components of a computer system?
Processor
Main memory
Address bus
Data bus
Control bus
I/O controllers
What is the processor and what does it do? (2 points)
Sometimes referred to as the CPU - central processing unit
Processes data by executing program instructions - machine code instructions based on a specific instruction set
How can a program be executed? (2 points)
Instructions need to be transferred from secondary storage into main memory from where they can be fetched, decoded and executed
The data that needs to be processed is also loaded into main memory or provided by input/output devices via I/O controllers
What are the 5 main qualities of main memory?
Two types of main memory:
RAM - working memory used by processor during the fetch-decode-execute cycle
ROM - used in boot process for computer system
Instructions or data are stored as binary sequences in memory locations
Each one has a physical address - a number used to locate the location and access its contents
Distinct from secondary storage - can be accessed directly by the processor; secondary storage must be accessed through I/O controllers
What are I/O controllers and what do they do? (6 points)
Components each device has that act as an interface between core computer system and peripherals
They connect all external and secondary storage devices to the processor
Not favourable for peripherals to be directly attached to processor - each device operates with different speeds and electronic signals
They provide the mechanism for:
- Input data to be received for processing from input devices like keyboards
- Computation results to be outputted from the system to output devices like display screens
Provide a set of addressable registers that the processor can access to communicate with I/O devices
How do I/O controllers connect to devices? (3 points)
Physical port on the controller provides connection for the peripheral
Device has a cable/connector to connect it to the port
Large desktop computers usually have slots where additional specialist controllers can be added
How do I/O controllers work? (4 points)
Controller circuitry facilitates exchange of data in the form of electrical signals between the processor and peripheral
Controller then translates signals into correct form
Peripheral device almost certainly operates slower than processor
Interface provides buffer - disparate timing requirements can be satisfied
Define ‘device driver’. (3 points)
A piece of software that provides an interface for the peripheral device
Enables operating systems to access functions of hardware without having to be specifically configured for every device used
Many devices are now ‘plug and play’ - driver is either embedded or automatically downloaded when the hardware is connected
What is a bus and what is the system bus? (2 points)
Bus - a communication system that is used to transfer data between components
System bus - a set of parallel connectionsthat allow internal components to communicate with each other and exchange data
What are the data bus and address bus? (3 points)
Data bus - a bidirectional bus that transfers data and instructions
Address bus - a unidirectional bus that specifies the address of a memory location to read/write data
Width (number of parallel lines) = number of bits that can be used to form an address of a memory location
What are 4 of the control bus’s functions?
Sends control signals to manage and orchestrate operations that take place inside a computer system
Exchangingstatus signals between the components of the computer system
Transmittingclock signals required for the coordination of operations
Specifying the type of data that is being transferred via the other buses (i.e. data values, instructions, or addresses)
What are the 4 components of Von Neumann architecture?
A processor
A memory unit that can communicate with the processor directly
Connections for input and output devices
Secondary storage for saving/backing up data
How does Von Neumann’s architecture work and where is it used? (4 points)
Uses the idea of storing program instructions and data in main memory and moving them between memory and the processor
Processor can access the instructions and data in the main memory as required to execute a program using buses
Same address and data buses used in transferringinstructions and databetween main memory and the processor
Commonly used in general-purpose computers that are expected to accommodate the varying needs of the end-users
How does Harvard architecture work and where does it work? (3 points)
Keeps instructions and data in separate memories
Processor accesses the ‘instructions memory’ and ‘data memory’ using separate data and address buses
Used extensively in embedded systems (eg. DSP systems) and also in microcontroller devices and some types of smartphones
What is the advantage of Von Neumann architecture?
Enables more flexible use of main memory - allows processor to run a variety of programs that are not known in advance