Lite / Engineering Complex Systems / Week 25
Week 25: Instruction set architecture
This week you will
- Explain what an ISA defines: instructions, registers, encodings and addressing modes.
- Encode and decode instruction words field by field.
- Trace a short assembly program and count its clock cycles.
Lessons
- The contract between code and silicon · about 35 min
Code compiled years ago still runs on brand-new processors with completely different insides. What promise makes that possible? - Instructions are just numbers · about 35 min
The hex number 0x1405 can be a price, a colour or an instruction that puts 5 into register 2. How does the processor know which? - Tracing a program, counting cycles · about 35 min
Two programs give the same answer. One takes 12 clock cycles, the other 33. How do you know before you run them?