Basic Computer Structure Flashcards
(70 cards)
What are the 3 blocks that every computer has?
- CPU (instructions and execution)
- Memory (Stores instruction and data for CPU)
- Input/Output ports
What are the 3 busses?
- Address Bus
- Data Bus
- Control Bus
What is a bus in computer architecture?
A bus is a series of parallel wires used for communication by the microprocessor.
What are the three types of buses used by a microprocessor?
The three types of buses are the Address bus, Data bus, and Control bus.
What is the function of the Address bus?
The Address bus is a unidirectional bus from the CPU that sends out a unique address code to memory or I/O ports.
What is the function of the Data bus?
The Data bus is a bidirectional bus that transfers data or instructions into the CPU and sends out the result of operations.
How many bits do modern computers have for data lines?
Modern computers have 64-bit data lines.
What is the function of the Control bus?
The Control bus carries signals required to coordinate CPU operations and communicate with external devices.
What does the Control bus do for slower devices?
The Control bus inserts wait states so slower devices can access the CPU without causing contention.
What additional function does the Control bus serve?
The Control bus also carries clock lines for synchronization.
Explain Von Neumann architecture
Processor uses two clock cycles
In the 1st, CPU gets instructions from memory and decodes it
In the 2nd, CPU gets required data from memory
Pros and Cons of Van Neumann
Pros
- Makes computer cheaper
- Data and instructions are accessed in the same way
Con
- One bus which we call a bottleneck
- Error in programme can cause a crash
Explain Harvard architecture
Programme and data are stored in 2 separate places, unlike Von Neumann architecture
Pros and Cons of Harvard Architecture
Pros
- Two memories with 2 busses allowing faster execution
- Programs cannot rewrite itself (and crash)
Cons
- More expensive
- Takes more time to develop Control Unit
What are the 6 components of the internal structure?
ALU
Instruction Decoder
Register Array
Control Unit
Clock
Registers
Function of the ALU
ALU performs arithmetic operations, addition subtraction etc. and logic operations AND, OR etc.
Function of Instruction Decoder
Decodes binary instruction and tells ALU what to perform
Function of Register Array
Data and memory are stored here during the execution of a programme
Function of Control Unit
Processes decoded instructions and timing signals for getting data in and out of microprocessor
Function of Clock
Generates time signal needed for all operations
Function of registers
Used for temporary storage of binary numbers, consists of FFs
What is the function of the Accumulator?
Stores intermediate results from the ALU
Function of STATUS register?
It conveys information as to the status of the microprocessor.
It has flags that represent different parts like addition or subtraction which change depending on what stage it is at
What is EFLAGS?
AKA Status Register