AxisSim is a C++ tool for exploring how AI hardware and software choices affect speed, deadline behavior, and energy use before a chip is built. It models a hypothetical real-time vision system and helps answer practical design questions: Should we add more compute, improve memory bandwidth, change the workload mapping, or adjust scheduling?
- Models an end-to-end AI vision pipeline, from data movement and image processing through neural-network inference.
- Compares compute, memory, scheduling, and energy tradeoffs with reproducible experiments.
- Identifies bottlenecks such as memory saturation and missed real-time deadlines.
- Includes automated tests, machine-readable results, and a native desktop workbench for interactive exploration.
AxisSim now retains reproducible CPU-inference evidence alongside its analytical SoC studies. Both records below execute the same public ONNX Model Zoo MobileNetV2 opset-7 model (batch 1; identical SHA-256), under ONNX Runtime 1.31.0's CPU provider with the same 20-warm-up/100-sample contract.
| Host record | Observed P50 | Observed P99 | What it establishes |
|---|---|---|---|
| macOS Arm64 interactive host | 7.89 ms | 18.55 ms | A reproducible Arm64 CPU/runtime observation with raw samples and desktop-condition notes. |
| GitHub-hosted Ubuntu x86-64 runner | 2.13 ms | 5.70 ms | A reproducible shared-runner x86-64 observation, generated by a manual GitHub Actions workflow. |
The records pass a checked-in latency-contract test: model hash/input shapes,
runtime version/provider, thread policy, warm-up count, and sample count match.
They are not a cross-vendor CPU ranking, a chip-power measurement, or an
AxisSim calibration. Both environments have unpinned desktop/CI scheduling and
no power or thermal control. See the raw samples and conditions in
reference_data/hosts, or inspect them in the desktop
workbench under Evidence → Host references.
AxisSim is a configurable discrete-event simulator for a hypothetical Physical AI SoC. It estimates latency, deadline reliability, shared-DRAM traffic, and energy for a camera-to-inference pipeline comprising DMA, an RVV-style vector engine, and a tiled GEMM NPU. Existing configurations retain legacy_implicit event ordering; use the explicit deterministic_v1 policy for a cross-platform equal-time ordering contract. See scheduler ordering and compatibility.
The project is an independent architecture-exploration tool. Its arithmetic-energy scale is a hypothetical parameter inspired by public discussion of lower-power arithmetic; it does not model or disclose any proprietary implementation.
See the research capability and evidence map for the questions current models can support and their validation boundaries. The M9.0 closure records why a new shared-memory QoS model is not justified by current workload evidence.
The M10.0 architecture case study walks through accepted GEMM mapping and weight-residency evidence, with reproducible artifacts and explicit model limits.
flowchart LR
Camera[Camera frame] --> DMA[DMA + shared DRAM]
DMA --> RVV[RVV-style preprocessing]
RVV --> SRAM[SRAM-tiled GEMM operands]
SRAM --> NPU[Matrix NPU]
NPU --> Post[RVV postprocessing]
Control[Periodic safety control] -. fixed priority .-> RVV
DRAM[(Shared DRAM)] --- DMA
DRAM --- SRAM
- Layered, validated
key = valueconfiguration manifests - Unified discrete-event runtime for normal and control-enabled workloads
- Shared DRAM/DMA contention and explicit task dependencies
- RVV-style strip-mined kernels with configurable VLEN, SEW, LMUL, lanes, setup overhead, and tail utilization
- Output-stationary tiled GEMM with SRAM-fit validation and explicit tensor traffic
- Per-operation and per-byte energy accounting
- Static-capacity power, PUE, fixed-budget feasibility, and deployment electricity-cost extrapolation
- Optional, assumption-driven area, first-order thermal, and FIT reliability proxies
- Mean/P99 latency, deadline misses, engine utilization, pipeline concurrency, traffic, energy/frame, and CSV traces
- Deterministic release-trace QoS studies with explicit provenance, queue-delay, output-jitter, and control-response metrics
- Declared-bounds sensitivity analysis with one-at-a-time and bounded corner exploration
- CTest smoke coverage for valid and invalid configurations
- Reference-data calibration reports with public/reproduced provenance labels
- Native Qt 6 architecture workbench with an Overview, guided Experiment Lab, candidate comparison, model evidence, light/dark appearance modes, and accessible keyboard controls
Dynamic energy is accumulated from scheduled vector/NPU arithmetic and DRAM/DMA
traffic. Configured static-power terms are integrated across the full modeled
makespan; there is no separate idle or leakage-energy term. DRAM-interface
static power is a fixed configured value and does not scale with bandwidth.
SRAM access energy is not modeled, and resident-weight SRAM's incremental
static/access costs are not fully represented. Budget feasibility therefore
means feasible under the current modeled terms, not physically feasible silicon.
The 0.23 W reference is in configs/power_budget/manifest.conf; the legacy
MNIST-12 profile keeps its zero-default static-power terms and disabled budget.
For compatibility, the run and JSON per_frame_uj values remain dynamic
activity energy, while the separate it_per_frame_uj value includes configured
static energy; sweep CSV energy columns also remain dynamic-only.
The power-cost coverage reference documents the current equations, coefficient provenance, missing costs, and limits on interpreting budget passes.
All figures below are reproducible model outputs from configs/baseline/manifest.conf, not silicon measurements.
| Experiment | Result | Architectural implication |
|---|---|---|
| 256 → 4,096 NPU MACs | 959.36 → 836.48 µs latency (12.8% lower) | Additional NPU throughput has diminishing returns. |
| 2 → 32 RVV lanes | 2,010.36 → 573.74 µs latency (71.5% lower) | Vector preprocessing is a more valuable performance investment for this mapping. |
| 3× lower NPU arithmetic energy | 107.76 → 103.28 µJ/frame (3.9% lower) | DRAM dominates modeled energy; arithmetic gains need system-level context. |
| DRAM below 0.5 GB/s | 30/30 vision deadlines miss at 0.15 GB/s | Memory service is insufficient to sustain the configured frame stream. |
Reproduce the complete data set with:
./experiments/run_initial_study.shRead the baseline results report for the experiment data, interpretations, and figure-generation commands.
AxisSim's rvv_stream mode was checked against public Verilator RTL simulations of the open-source Ara vector processor, pinned to revision 34bd3bc152421b4601a7bf3d6e8e91ffb545c99e. This is a compute-envelope validation, not a claim about silicon frequency, power, cache behavior, or a complete SoC.
The 4-lane size controls establish the model's compute-scaling slope. The 2-, 8-, and 16-lane rows are held-out configurations: the model parameters were not retuned after seeing them.
| Ara lanes | VLEN | Ara RTL cycles | AxisSim cycles | Relative difference |
|---|---|---|---|---|
| 2 | 2,048 | 1,064,052 | 1,048,576 | 1.454% |
| 4 | 4,096 | 532,392 | 524,288 | 1.522% |
| 8 | 8,192 | 275,911 | 262,144 | 4.990% |
| 16 | 16,384 | 172,252 | 131,072 | 23.907% |
The outcome is useful precisely because it is mixed: the simple lane-throughput model follows low-to-medium parallelism well, while its error grows at 16 lanes. That exposes unmodeled fixed and scaling overhead rather than supporting an overbroad accuracy claim. See the Ara validation report, raw reproduction logs, hashes, and commands in reference_data/ara/reproductions.
The checked-in 96-point Physical AI study holds the workload mapping fixed while sweeping RVV lanes, DRAM bandwidth, SRAM capacity, and NPU arithmetic-energy scale. The fastest feasible point is 16 RVV lanes and 20 GB/s DRAM at 669.51 microseconds/frame. The lower arithmetic-energy scenario reduces modeled energy from 107.76 to 103.28 microjoules/frame without changing latency.
The architectural recommendation is deliberately bounded: for this mapping, prioritize vector and memory resources before additional NPU arithmetic. SRAM capacity alone does not improve this particular fixed-tile sweep, which is a reminder that capacity only helps when the software mapping can use it. Reproduce or modify the study with experiments/run_design_space.sh.
AxisSim also evaluates an explicitly hypothetical iso-performance arithmetic-energy scenario: the workload, resource counts, mapping, frequency, and latency model remain fixed while NPU arithmetic energy changes. It then evaluates separate reinvestment choices under a modeled IT power budget.
./experiments/run_power_budget_study.sh
./experiments/analyze_power_budget_study.sh
./experiments/run_gemm_heavy_power_study.shThe default illustrative study assumes 0.05 W base static IT power, a 0.23 W IT budget, and PUE 1.5. It compares a baseline with an iso-performance arithmetic-energy sensitivity, a voltage sensitivity, compute reinvestment, and a memory-constrained counterexample. At 20 GB/s DRAM, reinvested compute improves modeled latency; at 0.5 GB/s DRAM, the same reinvestment becomes severely memory-bound (12,633.58 microseconds). The GEMM-heavy companion study shows the complementary case: arithmetic-energy reductions have a larger modeled effect when arithmetic is a greater share of workload energy.
AxisSim models the system-level consequences of an assumed arithmetic-efficiency improvement. It does not model low-voltage cells, frequency recovery, timing closure, soft-error mechanisms, yield, Titan Core IP, or Velaura silicon. Its optional area, first-order thermal, and FIT calculations are transparent sensitivity proxies—not physical-design, thermal, or reliability signoff.
./experiments/run_capacity_sweep.sh
./experiments/analyze_capacity_sweep.sh| Illustrative assumption | Value |
|---|---|
| Base static power | 0.05 W |
| NPU capacity power | 0.00003 W/MAC |
| RVV capacity power | 0.002 W/lane |
| SRAM capacity power | 0.0001 W/KiB |
| DRAM-interface power | 0.02 W |
| IT power budget | 0.23 W |
| PUE | 1.5 |
The 36-point sweep finds four feasible non-dominated designs. The minimum-energy point retains 1,024 MACs and the baseline tile at 861.06 microseconds. The minimum-latency point uses 2,048 MACs and a 512 KiB SRAM with a larger reuse tile, reaching 766.03 microseconds. The 4,096-MAC option is not the recommendation: once capacity power and mapping are included, a balanced compute-plus-reuse design provides better realized performance under the budget. These are modeled scenario results, not chip measurements.
Requirements for a CLI build:
- CMake 3.20 or newer.
- A C++20 compiler supported by CMake. The exact compiler and version are recorded in run provenance when available.
- Python 3.10 or newer for the complete study, provenance, and runner contract suite. Python is not required to build or run the ordinary C++ CLI.
- Qt 6 Widgets is optional for the desktop application. If Qt is not found, CMake continues with a CLI-only build and reports that the GUI target was omitted.
At configure time, CMake prints whether the full Python 3.10+ contract suite is
registered. If Python is absent, or older than 3.10, reduced test registration
is reported explicitly. Confirm the registered tests with
ctest --test-dir build -N. The cmake_python_registration_contract checks
both enabled and disabled configuration paths on hosts with Python 3.10+.
cmake -S . -B build
cmake --build build
./build/axissim validate configs/baseline/manifest.conf
./build/axissim run configs/baseline/manifest.conf --trace frame_trace.csv
./build/axissim run configs/baseline/manifest.conf --json result.json
ctest --test-dir build --output-on-failureGitHub Actions runs the same configure, build, and CTest workflow on every push and pull request; see CI workflow.
AxisSim's C++ CLI is built in CI on Windows x64, Linux x64, and macOS ARM64.
When Qt 6 Widgets is available, Windows and Linux builds also create a
portable/ layout containing the desktop workbench, authoritative CLI, and
the required axissim-data/ scenarios and reference data. This means the GUI
does not depend on a checked-out source tree after packaging.
The package-validation workflow builds and verifies packages in native runner
workspaces. It does not retain them as downloadable Actions artifacts or publish
releases.
Create and verify a native package with:
# Linux (native Qt 6 build host; GUI uses system Qt and QPA plugins)
./scripts/package_linux.sh
# Windows (Visual Studio Developer PowerShell with VCINSTALLDIR and Qt's windeployqt on PATH)
.\scripts\package_windows.ps1
# macOS (Qt 6, macdeployqt, codesign, hdiutil, and Cocoa required)
./scripts/package_macos.shThe Windows script runs windeployqt, extracts its ZIP into a new directory,
and verifies the packaged CLI, GUI, provenance, license files, Qt runtime
inventory, and bundled vc_redist.x64.exe. The Windows package requires the
Microsoft Visual C++ Redistributable (x64); install the included redistributable
before launch if it is not already present. The Linux script verifies the
extracted tarball and Debian package; the tarball uses system Qt, and the .deb
declares Qt libraries and QPA plugin dependencies. The macOS script preserves
the DMG relocation test, checks the relocated app's actual Mach-O dependency
closure, and runs a native Cocoa GUI smoke test. These scripts create validation
artifacts only. They do not publish a GitHub Release, sign/notarize a public
macOS release, or establish that all LGPL source/relinking obligations have
been met. See
package and licensing notes.
Untagged packages are labeled as validation builds. A release-labeled package requires a local tag that resolves exactly to the checked-out source commit; CMake rejects absent, mismatched, or tracked-dirty source identities. This build path does not create or publish a GitHub Release.
When Qt 6 Widgets is available, CMake also builds axissim-gui, a native desktop architecture workbench. It launches the same CLI model used by the command line and visualizes the resulting JSON and trace artifacts; it does not contain a second performance model.
cmake -S . -B build -DAXISSIM_BUILD_GUI=ON
cmake --build build
# macOS
open build/AxisSim.app
# Linux / Windows build-tree executable
./build/axissim-guiThe workbench is organized around four engineering questions:
- Overview: Read the measured-in-model latency, deadline margin, energy ledger, resource timeline, dominant bottleneck, and evidence boundary for one completed run.
- Experiment Lab: Make explicit run-only changes without rewriting the source manifest. The parameter groups are functional: workload selection; RVV lanes/VLEN/SEW/frequency/chunking; NPU MACs and DRAM bandwidth; FCFS/fixed-priority/EDF scheduling; and NPU arithmetic-energy scale. Each group has a direct run action and the delta ledger records active overrides.
- Compare: Inspect the checked-in RVV lane sweep, public-model mapping policies, and a five-point Power opportunity study. The latter runs baseline, iso-performance arithmetic and voltage sensitivities, compute reinvestment, and a DRAM-constrained counterexample through the same CLI JSON interface under an explicit 0.23 W IT-power budget.
- Evidence: Inspect scenario provenance, public/Ara reference status, imported Arm64/x86-64 host-reference contracts, assumptions, implementation-proxy scope, and the full CLI run log.
The desktop interface also provides guided first-run help, scenario copy/export actions, progress and validation feedback, keyboard accessibility, light/dark appearance modes, and responsive desktop layouts. The macOS bundle includes the CLI, scenario manifests, and public reference data. Save edited manifests before running; included config paths remain relative to the manifest's saved directory. The Qt target is optional (-DAXISSIM_BUILD_GUI=OFF) for headless CI and minimal CLI builds.
New users can select Guided first run from the initial results area or Help → Start Guided First Run. The optional four-step guide runs the checked-in public MNIST-12 profile, explains the emitted modeled result, applies a visible 3× NPU-arithmetic-energy sensitivity, and compares the two actual result artifacts. It can be skipped, restarted from Help, or dismissed without changing a manifest. The guide is deliberately a workflow aid, not a benchmark: every value it explains comes from the same CLI JSON and trace outputs used elsewhere in the application.
To create a relocatable macOS app and DMG with Qt frameworks bundled and an ad-hoc local signature:
./scripts/package_macos.shRelease-validation artifacts are written under build/package-macos-release/ by default, including AxisSim.app and AxisSim.dmg. The bundle is ad-hoc signed for local distribution; public distribution without Gatekeeper warnings requires an Apple Developer ID signature and notarization. The build directory is ignored by Git so generated package files do not make the source identity appear dirty.
For a non-interactive GUI initialization check on a machine with Qt, run:
# macOS build-tree bundle
QT_QPA_PLATFORM=offscreen ./build/AxisSim.app/Contents/MacOS/AxisSim --smoke-test
QT_QPA_PLATFORM=offscreen ./build/AxisSim.app/Contents/MacOS/AxisSim --smoke-test-run
QT_QPA_PLATFORM=offscreen ./build/AxisSim.app/Contents/MacOS/AxisSim --tutorial-smoke-test-run
# Linux build-tree executable
QT_QPA_PLATFORM=offscreen ./build/axissim-gui --smoke-test-run
QT_QPA_PLATFORM=offscreen ./build/axissim-gui --tutorial-smoke-test-run
QT_QPA_PLATFORM=offscreen ./build/axissim-gui --power-study-smoke-test-runThe model, tutorial, mapping, and power-study checks exercise the complete GUI-to-CLI-to-JSON/trace result path. The power-study check evaluates all five named scenarios rather than rendering precomputed values.
Every push and pull request configures, builds, and runs CTest on GitHub Actions. The checked-in QoS release traces and sensitivity-range CSV are deliberate deterministic fixtures, so CI exercises the same arrival-trace and bounded-sensitivity paths as a local checkout. Generated experiment CSVs and JSON artifacts remain ignored.
The baseline scenario is a manifest rather than one monolithic parameter file:
| Layer | Owns |
|---|---|
workload.conf |
Frame stream, vector kernels, GEMM shape, task deadlines |
architecture.conf |
RVV capacity, NPU MACs, tile shape, SRAM capacity |
implementation.conf |
Frequencies, DMA setup, DRAM bandwidth, timing overhead |
energy.conf |
Activity-energy assumptions and arithmetic-energy scale |
manifest.conf composes the layers and identifies the scenario/model version. This makes architectural facts distinct from timing and energy assumptions.
--json result.json preserves the existing numerical result contract and
writes a separate result.json.provenance.json sidecar. The sidecar binds the
executable and source revision to the resolved model configuration, root and
included manifests, explicit CLI overrides, and referenced profile/mapping/
arrival inputs. Unknown identity is recorded as unknown and sets
identity_status to incomplete; timestamps and absolute developer paths do
not participate in the canonical identity. See run provenance.
The --set key=value option overrides one configuration field without modifying the baseline file. For example, these runs compare a memory-constrained pipeline and a hypothetical 3x NPU arithmetic-energy improvement:
./build/axissim run configs/baseline/manifest.conf --set dram_bandwidth_gbps=0.15
./build/axissim run configs/baseline/manifest.conf --set npu_arithmetic_energy_scale=0.333333
# A larger output-stationary tile needs more SRAM but reduces refetch traffic.
./build/axissim run configs/baseline/manifest.conf \
--set sram_capacity_bytes=262144 \
--set npu_tile_m=128 --set npu_tile_n=128 --set npu_tile_k=128
# Increase input rate to observe cross-frame pipeline overlap and saturation.
./build/axissim run configs/baseline/manifest.conf \
--set frames=10 --set frame_period_us=500 --set deadline_us=500Generate a CSV for a reproducible architecture experiment:
./build/axissim sweep configs/baseline/manifest.conf \
--sweep dram_bandwidth_gbps=0.15,0.5,1,5,20 \
--csv experiments/bandwidth_sweep.csvsweep accepts any supported configuration key. Use --set for constants shared by every point—for example, sweep npu_macs while holding a larger SRAM/tile mapping fixed.
Each result also includes a vector/NPU-arithmetic/DRAM/DMA energy breakdown. The NPU arithmetic scale is deliberately an independent hypothetical input, not a claim about a particular technology or full-system power reduction.
analyze explores a bounded set of explicit assumptions. It is deliberately deterministic: the low/nominal/high inputs are declared sensitivity bounds, not confidence intervals, probability distributions, or measured silicon error bars.
./build/axissim analyze configs/baseline/manifest.conf \
--ranges tests/reference/sensitivity_ranges.csv \
--csv experiments/sensitivity_points.csv \
--json experiments/sensitivity_summary.jsonThe range file records a parameter, its low/nominal/high values, unit, evidence class, and rationale. AxisSim runs one-at-a-time points plus the bounded corner set (at most four parameters), then reports the span of modeled latency/energy and whether feasibility or deadlines change within those declared bounds. Inputs are tagged reproduced_reference, published_reference, or assumed_sensitivity; those categories are never collapsed into a single validation score.
AxisSim includes a provenance-pinned static ONNX characterization of the public MNIST-12 vision model. It has 12 mapped operators and is scheduled as a dependency graph with explicit DMA/RVV/NPU work:
./build/axissim profile-validate reference_data/workloads/mnist12_profile.json
./build/axissim run configs/workloads/mnist12_profiled.conf \
--trace experiments/mnist12_trace.csv --json experiments/mnist12_result.jsonThe checked-in baseline result is a modeled 56.42 µs mean latency and 4.95 µJ per frame under the scenario's explicit assumptions. It characterizes a public model's operations and tensor traffic; it is not a measured MNIST runtime, compiler mapping, hardware-power measurement, or claim about Velaura silicon. See workload profile rules and the profile's source metadata before interpreting the result.
The same profiled graph can be evaluated under explicit, reviewable mapping
policies—not inferred generic “optimization” percentages. The checked-in study
compares the baseline with a legal direct Plus30 → ReLU32 fusion, capacity-
checked persistence for two named NPU weight tensors, their combination, and
FP32-to-FP16 and controlled FP32-to-INT8 storage/energy policies:
bash experiments/run_mnist12_mapping_policy_study.sh ./build/axissim \
experiments/mnist12_mapping_policy_study.csvFor this scenario, the combined policy changes modeled mean latency from 56.42 to 53.25 µs, modeled IT energy from 4.95 to 3.91 µJ/frame, and total 30-frame DRAM traffic from 8.71 to 6.81 MB. The JSON ledger preserves the reason: one named fusion removes 50,176 B/frame of intermediate transfers and two named NPU tensors avoid 13,600 B only after frame 0, subject to a declared 16 KiB weight-SRAM capacity. These are reproducible model outputs under this profile and configuration, not a measured compiler transformation, ML accuracy result, or silicon-power claim.
AxisSim also checks that a proposed mapping is feasible before it is treated
as an optimization. The checked-in mnist12_persistent_weights_insufficient_sram.conf
uses the same named persistent-weight plan with only 8 KiB of dedicated weight
SRAM; it is intentionally rejected because the plan requires 13,600 B. This
negative case is covered by CI and is not included in the six-policy result
chart.
The FP16 policy is intentionally separate: it requires extractor-derived FP32 storage provenance, exactly halves the declared tensor/weight bytes, and uses an explicit 0.5 NPU arithmetic-energy multiplier. Its 49.17 µs and 2.48 µJ/frame output is a sensitivity result—not a claim that MNIST-12 was quantized, retained accuracy, or would run at that speed on a real NPU.
The controlled INT8 policy is the one checked-in policy with external accuracy
evidence. A QDQ INT8 candidate was generated from the pinned public FP32 model
using 256 declared calibration images, then evaluated with ONNX Runtime CPU on
all 10,000 MNIST test images under the documented grayscale /255 input
contract. Top-1 accuracy was 98.90% for the baseline and 98.91% for that
candidate. The linked result artifact records both model hashes, the dataset
hash, quantization settings, evaluator version, and the measured delta.
For the same static profile and AxisSim configuration, the controlled INT8 mapping produces modeled 45.54 µs mean latency, 1.25 µJ IT energy/frame, and 2.18 MB DRAM traffic over 30 frames, versus 56.42 µs, 4.95 µJ/frame, and 8.71 MB for the FP32 baseline. The accuracy comparison is externally evaluated; the latency, energy, and traffic deltas remain analytical model outputs. The INT8 plan's 4× storage scaling and 0.25 NPU arithmetic-energy multiplier are explicit mapping assumptions, not measurements of a target accelerator.
The derived candidate model binary is intentionally not committed. The checked-in quantization tool/settings, candidate hash, calibration count, dataset hash, and accuracy artifact make the result reviewable without redistributing transformed model weights.
The desktop app exposes these same scenarios in Mapping Lab. Select a single named policy from the scenario picker, or choose Run policy study to run all six through the CLI and inspect the emitted latency, energy, DRAM, first/steady transfer ledger, and declared effect side by side.
calibrate compares a traceable reference CSV with the selected model. For rvv_stream references that preserve raw RTL cycles, cycles are primary; normalized latency is secondary. It reports predicted/reference values and absolute/relative error for every point:
./build/axissim calibrate configs/baseline/manifest.conf \
--reference reference_data/ara/ara_latency_template.csv \
--csv experiments/ara_calibration.csvThe checked-in CSV is deliberately an empty template: no value is treated as Ara data until it has a source URL, source revision/date, workload mapping, and either published or reproduced status. The test fixture in tests/reference/ exercises the command but is synthetic and is not calibration evidence. See the Ara reference-data contract.
AxisSim includes one public Ara2 reference point in reference_data/ara/ara2_published_latency.csv. It is a compute-only normalization of the paper's 4-lane, 1.35 GHz, 256×256 fmatmul64 result: latency is derived from its published 10.7 GOPS throughput. The matching rvv_stream profile excludes CVA6 dispatch, cache behavior, Ara's VLSU, and all Physical-AI pipeline stages. Its close roofline estimate demonstrates arithmetic-rate consistency only—it is not a claim of end-to-end Ara accuracy or a calibrated power model.
Set all three control parameters to enable a periodic control workload. The unified non-preemptive runtime supports fcfs, fixed_priority (the default), and edf policies. Under fixed priority, safety_control takes precedence over normal RVV pipeline work at each scheduling point.
./build/axissim run configs/baseline/manifest.conf \
--set control_period_us=1000 \
--set control_deadline_us=250 \
--set control_ops=400Compare policies by adding, for example, --set scheduler_policy=edf.
In the included stressed-control experiment, fixed priority improves control deadline misses relative to FCFS, while EDF does not; long non-preemptive RVV operations still block urgent work. This distinguishes policy selection from the need for bounded execution chunks or preemption.
Set rvv_chunk_elements to split vector stages into independently scheduled work units. In the stressed configuration below, 20,000-element chunks reduce fixed-priority control misses from 45/50 to 0/50, at the cost of greater vision latency and additional runtime overhead:
./build/axissim run configs/baseline/manifest.conf \
--set frames=20 --set frame_period_us=500 --set deadline_us=500 \
--set control_period_us=200 --set control_deadline_us=80 --set control_ops=200000 \
--set rvv_chunk_elements=20000This models deadline-sensitive resource contention; it is not a functional-safety certification model.
For Physical-AI scheduling sensitivity, a scenario can replace periodic releases with a checked-in frame,release_us trace and a non-empty provenance note:
./build/axissim run configs/qos/synthetic_burst.conf --json experiments/qos_burst.jsonThe included burst trace is synthetic, deterministic stress input—not field sensor data. AxisSim reports modeled resource queue delay, output interval jitter, control response time, and pending-work depth. It preserves the existing non-preemptive scheduler: fixed priority and EDF choose the next ready task but do not interrupt work already in flight. See reference_data/qos for the trace and its boundary statement.
The baseline reloads tiled NPU weights from DRAM for each frame and permits two frames to overlap. To model a dedicated persistent weight store, enable residency only when it can hold the complete weight tensor:
./build/axissim run configs/baseline/manifest.conf \
--set npu_weights_resident=1 \
--set weight_sram_capacity_bytes=262144For this baseline, the model predicts 2.36 MB NPU traffic per first/steady-state frame without weight residency, versus 1.57/1.31 MB with it. dma_double_buffering=0 serializes frame execution; the default 1 permits frame N+1 ingest to overlap work on frame N.
See experiments/README.md for the questions each study answers and how to generate charts.
The arithmetic-energy scenario changes NPU arithmetic energy only; it intentionally does not claim the same scaling for DRAM, DMA, SRAM, or full-system energy.
At 0.15 GB/s, the baseline workload requires more DRAM service per frame than a 33 ms frame period allows. The resulting queue growth and deadline failures make it a useful deliberately memory-bound regression case.
This is a timing-aware architectural model, not a cycle-accurate RTL model or a functional RISC-V instruction-set simulator. Values in a configuration file are explicitly assumptions. Energy results are modeled estimates, not measured silicon power.
(rvv_vlen_bits / rvv_sew_bits) * rvv_lmul determines VLMAX. The vector model accounts for lane-limited execution, per-strip-mined-iteration overhead, and a partial final iteration. It remains a timing model, rather than a functional instruction-set simulator.
- Calibrate timing and energy parameters against target-independent microbenchmarks, traces, or an external architecture model.
- Replace the single serialized DRAM model with channels, interconnect contention, and QoS behavior.
- Model multi-layer weight residency, eviction, SRAM banks, and capacity sharing.
- Explore preemptive execution and runtime overheads beyond bounded non-preemptive RVV chunks.
- Continue modularizing configuration parsing, engine models, runtime scheduling, metrics, and CLI code.
