Computer Architecture Flashcards
(44 cards)
What is an instruction set?
The interface between the hardware and the software
List four different types of ISAs
- Accumulator based ISAs
- General purpose register ISAs
- Reduced instruction set computers
- Stack based ISAs
Describe the architecture of a reduced instruction set computer
It has a small number of instructions which all have a common format and all of these instructions apart from LOAD and STORE operate on the registers. LOAD and STORE transfer information to and from memory.
How many clock ticks does an instruction take to execute in a RISC?
Typically 1 clock cycle
WHat is the opposite to a RISC computer?
A Complex Instruction Set Computer
What is the principle behind a stack based ISA?
Instructions are stored in a stack and only the first element in the stack can be manipulated using push or pop
What is MIPS 1 ISA?
An influential instruction set
What are the three categories of instructions in a MIPS 1 ISA?
Arithmetic and logic instructions, data transfer instructions, and control transfer instructions
What type of form is a MIPS 1 ISA?
A RISC form ISA
What does MIPS32 mean?
There are 32 registers each of which has 32 bits
What is 1 downsides to MIPS1 ISA?
There is no floating point capability
How are instructions stored in MIPS1 ISA?
6 bits for the operation class
5 bits for the first source register
5 bits for the second source register
5 bits for the destination register
5 bits for a shift operation
6 bits for the functions in class
What is the default ‘mode’ of the PC?
Sequential execution
Describe the concept behind a multi stage fill adder with ripple carry
We can connect multiple adders together to allow the carry from the original adder to flow to the next one but this is too slow
What is a carry-select adder?
Carry select adders split multi stage ripple carry adders into two so that the addition of lower value and upper value bits are executed simultaneously
What are status flags?
Contained in a flags register
What are status flags for the ALU?
- Zero flag checks whether all of the outputs are 0
- The negative flag checks the value of the MSB to determine if a number if negative
- The overflow flag checks for overflow by using negative flags
What are the two types of volatile memory?
Static and dynamic
Difference cost and efficiency of static and dynamic memory
Dynamic memory is slower and cheaper
Static memory is faster but more expensive
Uses of static memory
Registers and cache, fast but small so not too expensive
What does the address decoder do?
Maps a linear address provided by the processor to a specific location on a specific memory chip
Difference between big endian and little endian
Big endian stores the MSB in the lowest memory address
Little endian stores the MSB in the highest memory address
What type of logic does static memory use as opposed to dynamic
Static memory uses sequential logic where as dynamic memory uses combinatorial logic (Boolean)
What is sequential logic?
The outputs from sequential logic are based on the inputs and outputs meaning that you have a feedback loop