Computer Architecture Flashcards
What are the core components of the three box model
- The processor, the main memory and input/output controllers, connected by high speed communication system buses
The Processor
- Sometimes referred to as the CPU (central processing unit) processes data by executing program instructions.
- At processor level, these will be low-level instructions in the form of machine code that the processor has been designed to handle based on a specific processor instruction set
The Main Memory
- Main memory is memory that can be accessed directly by the processor.
- Each memory location (instructions/data stored as binary sequences), has a physical address, used to locate it and its content.
What are the two main types of memory
- RAM (Random Access Memory) : The working memory that is used by the processor during the Fetch-Decode-Execute cycle. It is volatile
- ROM (Read Only Memory) : Memory which is used in the boot process for the computer system. It is non-volatile
How is main memory distinct from secondary storage in terms of the processor?
- The processor can’t work directly with secondary storage. As it must be accessed through I/O controllers.
what are I/O devices (3 types) and how do they work?
External (peripheral) devices that can be categorised into 3 groups:
- Secondary storage devices e.g. hard disk
- Input devices e.g. a keyboard/sensor
- Output devices e.g. a speaker/actuator
Each peripheral also has a device driver that provides a software interface for the device
I/O Controller mechanisms
- Input data to be received for processing input devices, such as keyboards
- The results of computation to be output from the system to the output devices, such as display screens
How is an I/O controller described?
- I/O Controller can be described as an interface between the core computer system and its peripherals.
- They provide a set of addressable registers that the CPU can access to communicate with the I/O devices.
physical port
provides a connection for the peripheral
what does the I/O circuitry do?
- facilitates the exchange of data between device and peripheral devices
Bus
- A series of parallel wires that connect internal components of a computer system, allowing signals to be passed through them
Bus Width
- The number of parallel wires in a bus has a direct relationship to the number of bits that can be transferred.
Address Bus
Unidirectional
———–>
(away from CPU)
- Transports memory addresses
- Bigger width = larger range of addresses thus - increasing the computers amount of addressable memory
- 1 wire = 2^1 addresses
What is the Data Bus?
Bidirectional
main memory ←———–> processor
- Sends data and instructions
- Bigger width = larger volume of data transfer
- 1 wire = 1 bit
What is the Control Bus?
Bidirectional
Main memory ←———–>CPU(Processor)
- Carries control signals to regulate operations
- Higher clock speed (a control signal) = More instructions per second + higher temp/power consumption
- can control Clock, memory read/write
How is the Von Neumann Architecture structured?
- All data/instructions are stored in the main memory
- Instructions are sent to the processor along the system bus to be executed
- Data sent to/from the processor is sent along the system bus
- Any input/output is performed by i/o devices with the data travelling from them to the cpu/main memory
Harvard Architecture
- The main difference to the Vonn Neumann Architecture is it has separate buses for data and instructions, making it more efficient and faster
What is the Stored Program Concept?
- machine code instructions stored in main memory are fetched and executed serially by a processor that performs arithmetic and logical operations.