About
A decoder retrieves the current instruction and selects the device to execute it.
It's a device in the CPU that:
- read the instruction
- extract the opcode part
- lookup the device in the mapping_table
- and returns the implementing device
Articles Related
Mapping table
The mapping table between:
- the opcode (in name or binary format)
- and the corresponding device
Device | Opcode | Binary Code |
---|---|---|
1 | nand | 00 |
2 | or | 01 |