docs: energy figures + Mermaid pipeline in the README - #7
Merged
Conversation
Spice up the README with real, reproducible graphics: - new zero-dependency figure generator (crates/theseus-tisc/examples/ readme_figures.rs): a hand-rolled SVG log-log/bar chart emitter fed by the real energy APIs. No new crate deps. - docs/img/cpu-money-plot.svg -- the headline: energy per TISC step vs power-clock ramp, reversible curves sliding below the flat CMOS 1/2 CV^2 floor (offline from the committed rung-0 chardb). - docs/img/sky130-money-plot.svg -- the three device families on the real SkyWater sky130 PDK via ngspice (adiabatic-TG slope ~-0.94, pFAL falls-then-floors, CMOS flat). - docs/img/benchmark-energy.svg -- per-program reversible vs CMOS-equivalent energy (fib, adder) at a fixed ramp. - README: replace the ASCII pipeline with a Mermaid diagram; add an Energy section embedding the three figures. Regenerate: cargo run -p theseus-tisc --example readme_figures (sky130 fig needs the .#char shell: ngspice + sky130 PDK).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add graphics to README, generated from the energy model
Figures (all from real repo data)
docs/img/cpu-money-plot.svg): energy per TISC step vs power-clock ramp, reversible curves sliding below the flat CMOS1/2 CV^2floor. Reproduces offline from the committed rung-0 chardb.docs/img/sky130-money-plot.svg): real SkyWater sky130 PDK via ngspice: adiabatic-TG (slope ~-0.94), pFAL (falls-then-floors), static CMOS (flat).docs/img/benchmark-energy.svg): reversible vs CMOS-equivalent for fib/adder at a fixed ramp (~26x and ~43x).Mechanism
crates/theseus-tisc/examples/readme_figures.rs: a hand-rolled SVG log-log/bar emitter fed bycpu_money_plot/money_plot_rung/rom_program_energy. No new crate deps.Regenerate:
cargo run -p theseus-tisc --example readme_figures(sky130 fig needs the.#charshell).Verified: clippy
--all-targets0 warnings, fmt clean, SVGs valid XML.