-
Notifications
You must be signed in to change notification settings - Fork 0
FPGA Metrics
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
src/fpga_metrics.rs
pub struct FpgaMetrics {
pub wns_ns: f32, // Worst Negative Slack
pub lut_utilization: f32, // reserved; always 0.0 today
pub synthesis_ok: bool,
}parse_from_report(text) finds the WNS(ns) header line, then parses the first token of the next non-empty data row.
| WNS | Meaning |
|---|---|
| < 0 | Timing violation |
| > 0 | Timing margin |
| Method | Path |
|---|---|
load_from_project() |
fpga-project/ship_ssn_logic.runs/impl_1/Basys3_Top_timing_summary_routed.rpt |
load_from_path(path) |
Arbitrary report file |
Both set lut_utilization = 0.0 and synthesis_ok = true when WNS parses. TNS is not parsed. Do not treat LUT % or TNS as enforced gates yet (see boundary matrix).
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: de069cd (main)