Skip to main content

Module gas_sim

Module gas_sim 

Source
Expand description

Single-pass pipeline gas model (JAR v0.8.0).

O(n) single-pass model tracking per-register completion cycles. Replaces the full ROB-based pipeline simulation.

Tracks reg_done[13] (cycle when each register is ready) and decode throughput (4 slots/cycle). No ROB, no priority loop, no EU contention. See docs/gas-metering-design.md for detailed comparison.

Structsยง

GasSimulator
Single-pass pipeline gas simulator. O(1) per instruction, stack-allocated.