Skip to main content

Module exec

Module exec 

Source
Expand description

EX-stage execution: Decoded plus operands in, result out (T-11-002).

The bridge between crate::decode and crate::alu. Kept separate from the pipeline so it stays a pure function of (op, rs_val, rt_val, hi, lo) — testable without a machine, and with no way to accidentally read register state the decode did not name.

Structs§

Executed
The outcome of executing one instruction in EX.
Redirect
A control-flow redirect EX resolved.

Enums§

Cop0Access
A coprocessor access that EX resolved but must not itself perform.
Cop1Access
The COP1 control moves (T-12-006). Arithmetic is Sprint 3.
MemOp
A memory access EX computed and DC must perform.
TlbOp
The four TLB instructions.
WriteBack
What an executed instruction wants written back.

Functions§

execute
Execute one decoded instruction.