summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/sim/__init__.py
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-03 14:05:38 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-03 14:05:38 -0400
commit32b551d43781dc7b8ac4587ca2ba1554b0cbd5e5 (patch)
treed1cab6bcc35e461610cd5dfcf3f51ba679a576fc /debug/risc-v-gsp-rm-vm/sim/__init__.py
parentfa71f1b53b524e5f6c6c1fbff1088d610b9f3236 (diff)
downloadopen-iov-32b551d43781dc7b8ac4587ca2ba1554b0cbd5e5.tar.gz
open-iov-32b551d43781dc7b8ac4587ca2ba1554b0cbd5e5.zip
vgsp: host CUDA bridge + sema release recovery; greeneye simulator wave
- kernel: gsp_cuda_bridge (QMD launch capture, debugfs job/out/done, param+output resolution cached from inline writes), sema drain fixes (never hold/starve a channel), GR ring autopin + counter autoreg, per-page push reads, counter-derive gate; module builds clean - tools/cuda-bridge: CUDA driver-API daemon executing mail/vadd kernels on the physical GPU, CUBB2/CBD2 v2 protocol, layout check + self-tests - tools/guest-diag + tools/cuda-ab: scanner/pin fixes, victory push-only mode - debug/risc-v-gsp-rm-vm: Phase S simulator wave (GSP device model, boot ladder, triage/re-demo harnesses, docs 30-41), GPGPU-sim scaffolding - STATE-CURRENT/docs updates
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/sim/__init__.py')
-rw-r--r--debug/risc-v-gsp-rm-vm/sim/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/debug/risc-v-gsp-rm-vm/sim/__init__.py b/debug/risc-v-gsp-rm-vm/sim/__init__.py
index ad20893..c083bb7 100644
--- a/debug/risc-v-gsp-rm-vm/sim/__init__.py
+++ b/debug/risc-v-gsp-rm-vm/sim/__init__.py
@@ -5,8 +5,17 @@ RV64IMAC from a 256 MiB RAM region with an NS16550A UART; the debugger-facing
adapter lives in ``greeneye.sim_backend``. A machine can be given a
``greeneye.device_map.DeviceMap`` and ``unknown_mmio="lenient"`` to serve
unmodelled MMIO accesses from harvested first-touch data instead of faulting.
+:mod:`sim.cycles` adds a modeled, table-driven cycle counter alongside the
+instruction count (not a timing claim; see ``docs/32-GSP-CYCLE-MODEL.md``).
"""
from .decode import decode16, decode32 # noqa: F401
+from .cycles import ( # noqa: F401
+ CYCLE_FIDELITY,
+ CYCLE_MODEL_NAME,
+ DEFAULT_MODEL,
+ NOTE,
+ CycleModel,
+)
from .machine import ( # noqa: F401
R_BP,
R_BUDGET,
@@ -32,6 +41,11 @@ __all__ = [
"decode32",
"Trace",
"make_trace",
+ "CycleModel",
+ "DEFAULT_MODEL",
+ "CYCLE_MODEL_NAME",
+ "CYCLE_FIDELITY",
+ "NOTE",
"R_BUDGET",
"R_BP",
"R_WATCH",