Wave 42 — R-HS-4: Host performance model and cycle estimator
Summary
Add a host-side PerformanceModel that, given engine configuration (layers, neurons, chunks), estimates:
- Per-layer inference cycles (compute + DMA)
- Total inference cycles
- Weight BRAM utilization (bytes / occupancy %)
- Estimated throughput at a given clock frequency
Scope
bootstrap/src/host/perf.rs — new file
bootstrap/src/host/mod.rs — add pub mod perf + re-exports
bootstrap/src/main.rs — new CLI subcommand host-perf
bootstrap/tests/host_perf.rs — >= 20 integration tests
docs/NOW.md — wave-42 entry
Constraints
- Bootstrap-only (no RTL, no specs, no gen/ touched) — L2/L6 clean
- Pure arithmetic model, no hardware dependency
- All tests must pass on default cargo test
Acceptance
Wave 42 — R-HS-4: Host performance model and cycle estimator
Summary
Add a host-side
PerformanceModelthat, given engine configuration (layers, neurons, chunks), estimates:Scope
bootstrap/src/host/perf.rs— new filebootstrap/src/host/mod.rs— addpub mod perf+ re-exportsbootstrap/src/main.rs— new CLI subcommandhost-perfbootstrap/tests/host_perf.rs— >= 20 integration testsdocs/NOW.md— wave-42 entryConstraints
Acceptance
PerformanceModelstruct with estimation methodshost-perfCLI subcommand