3.1 Flashcards
3.1.1 von Neumann
a MEMORY UNIT into which programs instructions and data loaded prior to being processed.
a PROCESSING UNIT to decode and execute program instructions fetched from memory one at a time.
INPUT and OUTPUT mechanisms to input programs and data and output the result of processing
3.1.1 main memory
short, term working memory
only holds the instructions and data that the CPU is currently using.
consists of a collection of storage location, each with a unique address.
a storage location and hold a program instruction or an item of data.
referred to as RAM
primary storage because the CPU had fast, direct access to it.
volatile
3.1.1 Central processing unit (CPU)
Buses, control unit, clock, ALU, registers
buses - work together to transfer data between the CPU, main memory and input/output devices.
control unit - fetches program instructions from main memory one a time and decodes them and directs the operations of the other parts of the system to execute them.
clock - synchronises the actions of the CPU
ALU - performs the actions of the CPU.
Registers (immediate access storage) - memory that is extremely fats.
some are general purpose while other are have specific functions.
3.1.1 Buses
control bus
signals are carried between the CPU and other parts of the computer system.
address bus
holds the memory address of the memory locations that the CPU needs.
data bus
transfers program instructions and data between memory and the CPU.
3.1.1 Fetch decode execute
The Fetch stage
(adress,control,data bus) abcd
1) the CPU places the memory address of the next instruction on the address bus.
2) the control unit sends a read signal along the control bus to memory.
3) the content of memory location is transferred along the data bus to the CPU, where its stored in a register.
The decode stage
- the control unit decodes the instruction by looking it up in the CPU’s instruction set
The execute stage
- the CU then carries out the instruction.
- it instructs the ALU if calculations need to be performed.
3.1.2 Why secondary storage is needed
RAM is volatile.
it loses its contents when the power of switched off.
Secondary storage provides non-volatile storage that can be used to write and rewrite data, so that it does not vanish when the power is turned off.
3.1.2 differences between primary and secondary storage
primary
- volatile and power dependent
- short term
- directly accessible by CPU
- Limited storage capacity
- Limited scope for expansion.
Secondary:
- non volatile
- long term
- programs and data must be transferred to memory in order for them to be accessed by the CPU.
- large storage capacity
- can be expanded by using external device (USB)
3.1.2 advantages and disadvantages of optical
+ cheap yo produce
+ thin and lightweight
+ portable
- slow to access
- low capacity
- prone to scratches
3.1.2
advantages and disadvantages of magnetic
+ high capacity
+ quick to access, providing the disk is defragmented periodically.
- Has moving parts that will eventually fail.
3.1.2
advantages and disadvantages of solid state
\+ quick to access \+ no moving parts so reliable \+ quit \+ low power requirements \+ no need to defragment
- expensive
- has a limited number of read write cycles
3.1.2
magnetic storage
Magnetic media are coated with a substance that can be magnetised.
Magnetic storage technology works by magnetising parts of this substance as north and south poles to represent binary 1s and 0s.
Examples include: hard disk drive, tape drive and cassette.
3.1.2 optical storage
Optical media consists of a platter with a flat reflective surface.
Optical storage technology works by using a laser to burn ‘pits’ into the flat surface.
The reflective areas between pits are known as ‘lands’.
A laser is directed onto the medium’s surface.
When it hits land, a beam reflects (this is read as binary 1).
When it hits a pit, the beam does not reflect (this is read as binary 0).
Examples: CD and DVD.
3.1.2 solid state storage
Solid state media consists of silicon chips that feature a special kind of transistor called NAND flash.
This type of media is called ‘solid state’ because it has no moving parts.
Solid state technology works by using a large electric current to force electrons through a barrier trapping them in positions called pools.
A full pool - 0.
An empty pool - 1.
Examples include: SSD card, USB, SD memory card and flash storage.
embedded systems
features
hardware
firmware
IoT