Instruction Set Architecture and Implementation
Separate an instruction’s architectural effects from the pipeline and execution hardware used to implement them.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
The instruction describes visible state changes
An instruction set specifies how encoded operations affect registers, memory, control and defined exceptional conditions. Two processors can implement the same addition with different physical datapaths and take different numbers of cycles. Their architecturally visible results must agree for permitted inputs. Register width and signed comparison rules belong to that contract. Cache sizes and branch predictor entries usually describe implementation choices.
A program can depend on some ordering guarantees
A load instruction’s value depends on the memory model in addition to its address and width. The model tells compilers and programmers which cross-thread observations are allowed. Performance can vary even when those observations obey the same rules. Pipeline throughput measures one implementation property. Precise retirement explains how an implementation hides incomplete internal work when reporting architectural state.[1][2]