Repository navigation
The headline change is the RTL on-ramp. jacquard sim and cosim now take
behavioral Verilog and SystemVerilog directly, synthesizing to gates and
caching the result behind the scenes, so you no longer run synthesis yourself
before simulating.
Standard-cell handling moved inside the binary. It carries generated cell
descriptors now instead of reading vendored PDK files at simulation time, which
is what lets SKY130 and IHP SG13G2 work with no setup; a proprietary library
needs only --cell-descriptor, no Jacquard rebuild.
Cosim grew in two directions. The SPI-flash peripheral takes a list of devices
and gained a writable RAM mode, so you can model a chip whose main memory is
external QSPI PSRAM, on Metal, CUDA, or HIP. And two new tools show what the GPU
does during a run: a per-edge timing report built from device timestamps, and
Xcode .gputrace capture for reading individual dispatches.
One thing to know before you upgrade: cosim output-VCD timestamps change in
this release. They were stretched by the number of clock edges per period —
2x for a single clock — so an output VCD never lined up with the stimulus VCD
from the same run. Both now sit on the scheduler's own time grid. Times within a
run were self-consistent before, so relative measurements were fine, but
anything reading absolute times out of a cosim output VCD will read different
numbers. Waveforms that used to drift apart when overlaid now line up.
A design with SRAM that gets level-split also used to abort, or worse, silently
read the wrong memory. That's fixed.
Added
- Behavioral-RTL on-ramp (ADR 0021).
jacquard simandcosimaccept
behavioral Verilog / SystemVerilog directly, synthesizing to gates through an
embedded YoWASP Yosys (theyosys-slangfrontend) run in-process via
wasmtime. Release binaries include it under thesynthfeature;
--yosys-wasm <PATH>overrides the bundled build. See docs/accepted-rtl.md. - Cell-model IR descriptors (ADR 0019). Standard-cell libraries are read as
generated JSON descriptors (pin directions, combinational AIG, sequential
roles, timing), produced from Liberty by theliberty-to-cellirconverter and
embedded at build time. SKY130 arrives through a.lib.jsonreader; IHP
SG13G2 is a new built-in PDK with no per-PDK Rust; proprietary libraries run
from--cell-descriptorwith no Jacquard build. The runtime no longer reads
vendored PDK files at simulation time, and thePdkVariantenum, per-PDK
stdcell classifiers, andbuild.rspin-table generation are gone. See
docs/adding-a-pdk.md. - Plural QSPI memory + writable PSRAM (ADR 0013). The SPI-flash peripheral
takes a list now,qspi_memory: Vec<QspiMemoryConfig>, with N independent
instances (the oldflashkey folds into instance 0), N-instance GPU kernels
on Metal, CUDA, and HIP with separate backing stores, and an opt-in writable
QSPI-PSRAM mode (APS6404L-class: enter-QPI, quad-write, quad-read). This is
what post-PnR cosim of a chip with external QSPI PSRAM as main RAM needs.
Leave the new options unset and you get byte-for-byte the old read-only flash. - GPU frame capture (Metal).
JACQUARD_GPU_CAPTURE=<path>(with
METAL_CAPTURE_ENABLED=1) wraps anMTLCaptureManagerscope around a bounded
window of cosim batches and writes an Xcode.gputracefor per-dispatch
inspection.JACQUARD_GPU_CAPTURE_SKIP/_BATCHESpick the window. See
docs/gpu-capture.md. (#174) - Cosim perf report.
jacquard cosimprints a per-edge CPU/GPU timing
breakdown, taking GPU-execution time from device timestamps (Metal
GPUStartTime/GPUEndTime) rather than a full GPU trace, which distorts a
workload of thousands of tiny dispatches per batch.--cosim-perf-json <PATH>
writes it as JSON for CI. See docs/cosim-perf-report.md. (#175) - RTL-source provenance.
sverilogparsecaptures(* src *)attributes and
carries them through the netlist and AIG;jacquard xsourcesreports the RTL
source location of each X-source. - TNS / THS timing metrics in
--timing-summaryand--timing-report. Next
to the worst-single-slack WNS/WHS, the report now carries Total Negative Slack
and Total Hold Slack, the sum of every negative setup and hold slack across
the run (stats.total_setup_slack_ps/stats.total_hold_slack_ps). The JSON
schema takes an additive bump to1.2.0; older reports still parse via
#[serde(default)]. Salvaged from #17. (#9) JACQUARD_VENDOR_DIRoverrides the vendored-PDK root.
Changed
jacquard buildfolded intosim/cosim. The standalonebuild
subcommand is gone; behavioral RTL is synthesized on the fly by
sim/cosim.
Fixed
- Cosim output-VCD timestamps were stretched by the edges-per-period factor
(2x for a single clock).--output-vcdtimed each event at
edge_tick * clock_period_ps, butedge_tickcounts scheduler edges, so a
40-edge run of a 40000ps design ended at 1540000ps instead of 780000ps. The
matching--stimulus-vcdwas always on the correct axis, so the two disagreed
and overlaying them in a viewer drifted them apart. Output events are now
stamped on the scheduler's own grid (edge_tick * gcd_ps), the axis the
stimulus already used. If you parse absolute times out of a cosim output VCD,
they change with this release; times within a run were self-consistent
before, so relative measurements were unaffected. The committed fixture goldens
are regenerated accordingly. (#195) - A design with SRAM that was level-split read the wrong backing storage, or
panicked. The SRAM storage-offset walk indexed the original AIG's memories
using an index from the current stage's endpoint space. The two only agree
when staging is the identity, which is why no existing fixture caught it: none
of them stage. Split a design with SRAM (--level-split, or any design large
enough to stage on its own) and the index either ran off the end and panicked,
or — worse — landed on a valid but wrong offset and quietly read another
memory's contents. Staged indices are now translated before use. (#186)