11 + 12 Flashcards
What is the operation of the cpu?
Repeat the fetch cycle, indirect cycle, execute cycle and interrrupt cycle.
What does the fetch cycle involve?
- Copy program counter into memory address register.
- Attach memory address register to address bus.
- Control unit issues a READ.
- Copy the data bus value into the Memory Buffer Register.
- Copy the value from Memory bus register to Instruction register.
- add 1 to program counter.
What occurs in the indirect cycle?
Indirect addresses are converted into direct addresses.
What occurs in the execute cycle?
This varies based on the instruction.
What occurs in the interrupt cycle?
Test the IRQ line, pushing PC onto the stack and loading it with the interrupt service routine address if triggered.
What is microprogramming?
Microprogramming involves 4 cycles: fetch, indirect, execute, and interrupt. There are 4 microinstruction typeS: Register to Register, input, output, and manipulate(occurs in ALU).
Microprogramming is basically the lowest level operations the CPU can perform, everything else is just combinations of these.
What is a horizontal microinstruction?
One which directly selects the registers, ALU operation, and destination in the instruction. Making it a quite large bit pattern. This is the most common due to how cheap transistors are.
What is a vertical microinstruction?
All operations sent through demultiplexer to find out location to go to, this takes longer to do but conserves bits.
What is instruction pipelining?
Fetch unit pre-fetches the next instruction while execute unit performs current, if a branch occurs(making the prepped instruction wrong) it is discarded and loaded with correct instruction.
What are the parts of a 6 stage pipeline?
Fetch instruction, decode instruction, calculate operands, fetch operands, execute instruction, write operand.
What are the main problems with pipelines?
Data must be moved through each stage of the pipeline, potentially increasing overall time for each instruction. The extra hardware is also complex.
What is CISC?
Complex instruction set computers, in order to utilise the extra transistors they add extra instructions, make the PCU do more and have pipelines.
What is the semantic gap?
New instructions added to CPU, but they were not being used by programmers, or compilers
What is RISC?
Reduced instruction set computers, these use the extra transistors to increase the number of registers, design the pipeline for conditional branches and make each instruction do less
One instruction is ran per cycle, register to register operations are common, simple address modes and instruction formats.
How do RISC register windows work?
Large number of registers addressed relative to a start, out registers of one routine are the “in” registers of next, each routine has local registers, upon entry to a routine the start is moved to the next block.
There will be an arbitrary depth of nesting and arbitrary number of registers in each window, requiring writing to memory if more than this are used.