Lesson 3--Intro to ISA Flashcards
3 types of instructions
- Data or memory access (load, store, etc.)
- Control flow (branch)
- Arithmetic or logic (add, subtract, etc.)
In ISA design what is an Operation?
fundamental RISC-like minimal unit of work
True or False: VLIW exposes a scheduler in the compiler
True. Superscalar hides this.
What’s the difference between Registers and Memory
Memory is off chip, not specialized, slow
Registers are On chip, connected to the logic of the processor, fast
VLIW Design Principles
- -instructions consist of parallel operations. Compiler must guarantee safe parallel operations.
- -Simplification of HW to improve energy efficiency.
- -Latency and functional unit are exposed.
True or False: VLIW’s advantages come largely from having an intelligent compiler that can schedule many instructions simultaneously.
True
True or False: VLIW-compatible code is easily portable to hardware otehr than the chip it is designed for
False
True or False: VLIW has some problems with the inflexibility of its compiler-first design
True
Role of VLIW compilers
- Gather independent operations and bundle them into sections.
- Resolve all structural and resource hazards.
- If the VLIW is clustered, the compiler assigns operations to the clusters and generates cross cluster register references.
Horizontal Decisions
Decisions that need to occur when operations sharing the same variable occur within an instruction word
Vertical Decisions
Decisions across pipelined instructions. Such as load and stores that have latencies.
Fixed overhead encoding
Prepend mask bits to a VLIW instruction to identify “what goes where”
Mask0 = 10100111 this means put instructions in the ‘1’s slots and NOPs in the ‘0’ slots
Distributed encoding advantages
- -Explicitly insert stop bit for delimiter
- -Distributed and incremental encoding cost.
- -No need to compute next PC.
Distributed encoding disadvantages
- -More complex.
- -Bits are embedded as part of the instruction, so have to get them back to NOPs.
Fixed overhead encoding advantages
–Simple scheme, just need to track the instructions and the mask.