Expand description
SVA/PSL Code Generation for Hardware Verification
Generates SystemVerilog Assertions (SVA), Property Specification Language (PSL), and Rust runtime monitors from temporal property specifications.
Modules§
- arbiter_
rtl - arbiter_rtl — the deterministic NoC arbiter’s entropy core in silicon.
- autopipe
- Pipelining combinational logic to a target clock with the fewest register bits, the cut certified optimal.
- backend
- The target-backend seam.
- bignum_
rtl - bignum_rtl — the numeric tower’s foundation in silicon: the BigInt datapath.
- bitblast
- Bit-blasting:
BoundedExprdatapath (bitvector) operations → booleanProofExpr. - block_
engine_ rtl - block_engine_rtl — Stage 5 of the self-synthesizing bytecode XPU: the on-chip EXECUTE engine for a decoded block. Stage 4’s reconfigurable fabric runs a block’s certified SPATIAL placement (host-computed). This engine takes a block’s DECODED OPS DIRECTLY — no host placement step — and runs them on a universal reconfigurable datapath: one hardware array executes ANY bounded straight-line block by loading its op list as config. This is the unit the LGB1 decoder feeds: bytecode → ops → this engine → result, all on-chip.
- caravel_
project - A Caravel user project as data.
- caravel_
rtl - caravel_rtl — the Infinichip command player wrapped as an efabless Caravel user macro, the step that makes it literally shuttle-integratable.
- cdc
- Clock Domain Crossing (CDC) Formal Verification
- chan_
rtl - chan_rtl — the deterministic channel in silicon: a bounded FIFO.
- chip_
protocol - The chips’ byte protocol on the UART, defined once.
- choreography
- The control plane of a spatial pipeline: the tokens and credits that make a metapipeline run, and the buffer depth that follows from them.
- ci
- CI/CD Integration — SARIF Output for GitHub Security Tab
- computedram_
rtl - computedram_rtl — Phase 4: the in-DRAM compute path proven end-to-end in simulation.
- controller_
gen - Designer → certified controller: turn a synthesized
PhasePlaninto a Verilog phase-FSM and let the existing RTL pipeline (parse_transition_system→prove_invariant) certify it. - coproc_
core - coproc_core — the coprocessors, ISSUED as CPU instructions.
- coproc_
soc - coproc_soc — the ULX3S-flashable SoC wrapper around
coproc_core. - coverage
- Specification Coverage Metrics
- crdt_
rtl - crdt_rtl — the CRDT merge unit in silicon.
- dae
- dae — Decoupled Access-Execute for the spatial fabric (
FabricTarget::agu). - ddr2_
dfi - ddr2_dfi —
ddr2_dfi_ctrl, the LOGOS DDR2 controller at the DFI 1:2 rate: a 64-bit native request port (a word a command, write data on its own stream, read data back in request order) and two DFI phases a system clock, the interface LiteDRAM’s controller presents to its PHY, so either drives the same PHY. - ddr2_
jedec - ddr2_jedec — a DDR2 part’s datasheet timing at one clock, and the JESD79-2 command rules a bus trace is held to.
- ddr2_
phy - ddr2_phy — a full custom hand-rolled DDR2 controller + PHY for the Nexys A7-100T’s on-board
Micron MT47H64M16 (1 Gb, x16, 8 banks, DDR2-800). This is Phase 1 of the DRAM-into-Compute
campaign: total ownership in the openXC7 flow (no vendor MIG), tied directly to the
dram_executorcommand engine (super::dram), so the SAME command stream that drives the JEDEC-legal schedule also drives the deliberately-illegal ComputeDRAM cadences. - ddr2_
traffic - ddr2_traffic — the K7 traffic: one stream of 64-bit words that every DDR2 controller of the comparative bench writes to the same part and reads back, the device and testbenches it runs on, and the judgement of a run’s log.
- ddr4_
jedec - ddr4_jedec — a DDR4 channel’s timing at its clock, the JESD79-4 command rules a trace is held to, and the in-order controller that turns line streams into commands on it.
- decision_
workload - The HFT decision as a workload: its one LOGOS source, lowered to a combinational select-DAG by
emit_decision_fabric(the decision fabric), and run as ordinary bytecode on the routable scalar core by the program here — the CPU twin ofdecision_hft_realbist. Both blocks decide over the same realistic input ranges, so their gate-level switching power per decision is one comparison. - dram
- dram — the DRAM machine.
- engine_
build - LOGOS source → what the whole-program fabric engine loads: the program lowered to an engine config, proven to
answer what the VM answers on the exact arguments about to be streamed before a byte is emitted, checked against
the deployed engine’s profile and the flashed image’s caps. One path for every caller — the
emit_wpe_socexample the board hosts compile through, and the Fabric Terminal’s library — so a program is lowered the same way wherever it runs. - fabric_
config - fabric_config — Phase D: the config-driven reconfigurable grid = THE INTERPRETER.
- fabric_
grid - fabric_grid — a TRUE reconfigurable CGRA: place a fabric’s dataflow onto a 2-D array of identical tiles and route it through a LOCAL switchbox interconnect. The same silicon runs any fabric by reconfiguration — not a bespoke circuit per program.
- fabric_
pipe - fabric_pipe — the compiled residual circuit cut into register stages: a new input every clock, a short period.
- fabric_
rtl - fabric_rtl — Futamura’s first projection in silicon: “the specialized residual IS the circuit,” end-to-end from the REAL compiler.
- fabric_
soc - fabric_soc — Phase E: the FLASHABLE reconfigurable-fabric SoC.
- fabric_
target - fabric_target — the ADL spine: a
FabricTargetdescriptor +place_with_target. - fabric_
tile - fabric_tile — the SINGLE SOURCE OF TRUTH for “which ISA ops the spatial fabric realizes”.
- fanout
- fanout — the pit-of-success primitive for antenna-safe wide selects.
- floorplan
- Floorplans read off a fitted build: a Logic Lock region for each instance named, a square beside the site its clock comes from, as small as what the instance needs at the parent region’s density allows, inside the parent region.
- flow_
config flow_config— the compiler emits its own physical-design configuration.- fol_
to_ sva - FOL → SVA Formal Synthesis
- fol_
to_ verify - FOL → Bounded Verification IR Translation
- fp_hard
- The engine’s f32 multiply and add on the card’s floating-point DSP block (
fourteennm_fp_mac), as the oracle (super::fp_oracle) measured it: a wrapper with the pipelined unit’s ports (logos_fmul_p’s andlogos_fadd_p’s:clk,a,b,y) and exactly its latency, computing the engine’s own arithmetic (Semantics::ENGINE) on a block whose semantics are another member of the family, wherever a thin layer of logic around the block can make them one. - fp_
hypotheses - Binary32 multiply and add under a family of semantics: the hypotheses a hard floating-point block is told apart by.
- fp_
oracle - The hard floating-point oracle: a D5005 persona that measures which binary32 semantics the card’s floating-point DSP
block computes (
fourteennm_fp_mac, whose simulation model is encrypted), by running the block beside every class of the hypothesis family (super::fp_hypotheses) as soft units on one stream of operands and counting, class by class, the results that differ from the block’s. - fp_
receipt - The card’s measurement of its floating-point DSP block as a receipt (
benchmarks/silicon/d5005/fp_hard_receipts.json): what the oracle persona (super::fp_oracle) measured on the card, tied to the build that compiled it and the image the card ran, with what each mode’s block is for the engine (super::fp_hard). The block is the vendor’s and encrypted, so a receipt is a measurement recorded as one; the proofs hold everything around it. - full_
asm - full_asm — assemble a compiled LOGOS program (register bytecode
CompiledProgram) into the instruction words the FULL soft-core (soft_core.v) executes: the whole 113-op ISA — user functions (hardware arg-copyCall), division/modulo (the sequential shared divider), and the structured heap (lists, tuples, ranges, sets, maps, structs) — so the ENTIRE benchmark suite compiles from.lgsource to words that run on silicon byte-identically to the VM. - fusion
- Operand sharing — reader fusion on the RDU, decided from the cost model.
- gpu_
simt_ rtl - gpu_simt_rtl — the GPU processor edge: a tuneable SIMT data-parallel engine in silicon.
- handshake_
rtl - Handshake primitives of the spatial IR in silicon: the bounded FIFO (
Handshake::Fifo), the counting semaphore (Handshake::Semaphore’s ready counter / valid flag), the arrive-all barrier (Handshake::Barrier) and the one-writer multicast bus (aGroup). Each emitter is paired with a trace testbench whose expected values come from the Rust model of the same primitive, and the FIFO’s bound is proven by k-induction with our own certified SAT — the sequential analogue of the combinational proofs the datapaths carry. - hart
- The board’s own CPU: an RV64IMAC hart with machine and user modes, built to run the LOGOS compiler from the board’s DDR2 so the board compiles programs for its fabric engine with no computer attached.
- hw_
pipeline - Hardware Verification Pipeline
- infinichip_
rtl - infinichip_rtl — the integrated Infinichip memory subsystem, taken all the way to a signoff-clean Sky130 GDSII.
- keccak_
rtl - keccak_rtl — the flagship silicon FACT.
- lutmap
- Mapping logic onto K-input LUTs for depth, the way an FPGA’s synthesis sees how deep a circuit is.
- memsched
- memsched — the static-memory-schedule FACT.
- metapipeline
- The metapipeline initiation-interval (II) model — P1 of the Plasticine lane, and the question an RDU engineer asks first: how often can a pipelined stage accept a new iteration, and how deep must the buffers between stages be?
- mul_
tree - mul_tree — a word multiply as an aligned tree of adds. The product
a · x mod 2^wis the sum of thewpartial productsx[i] ? a << i : 0; the tree adds them pairwise, level by level, each add only as wide as the bits it can still change (a partial product shifted byiis zero below biti, and nothing above bitw − 1survives), and a register can follow any level. On a fabric with carry chains every add is one chain and nothing multiplies; cut after every level, no stage holds more than one add. - netlist
- Verilog to and-inverter graphs, through yosys: the bridge that puts any RTL the compiler prints in front of the
certified equivalence engine (
logicaffeine_proof::sweep,logicaffeine_proof::seq_equiv). - onboard
- The compiler as the board’s own CPU runs it: LOGOS source → register bytecode → the fabric engine’s wire
image, through exactly the path the laptop’s board hosts take (
super::engine_build), with the VM’s golden proven against the engine model before a byte of the image exists. The board runs ariscv64gc-unknown-linux-muslbuild of this same code;onboard_compiler_lockholds its every answer byte-identical to the host build’s. - pdk_
target PdkTarget— the PROCESS a design is built out of, as data.- plasticine
- The Plasticine mesh descriptor — the open RDU (Prabhakar et al., ISCA 2017) and its SARA/Capstan-era
successor configuration — as a physically-described target that wraps the certified
FabricTargetseam. - plasticine_
place - Mesh placement + static routing for a Plasticine configuration — P3 of the Plasticine lane.
- plasticine_
report - The Plasticine report — P4 of the Plasticine lane: the artifact an RDU engineer reads, generated from the model so no number in it is typed by hand.
- pmu
- The PMU banking model — P2 of the Plasticine lane: the Pattern Memory Unit’s scratchpad as the papers describe it (ISCA’17 §3.2), with an executable meaning.
- pnr_
certificate - Proof-carrying place-and-route.
- power
- Power-Aware Formal Verification
- preflight
- Whether a persona build fits the card’s partial-reconfiguration region and can close its clock, decided before Quartus runs, from what the build ledger has measured.
- protocols
- Pre-Verified Protocol Templates
- psram
- The off-chip memory edge for a QSPI PSRAM — the block behind the memory-edge descriptor contract when the far side is a pseudo-SRAM instead of a DRAM.
- qor_
harness - qor_harness — the measurement harness of the comparative-synthesis bench.
- quartus
- Quartus Prime reports as data: a compile’s flow, the resources it used, the slack of every clock, the retimer’s
limits, the router’s peak wire demand, and the resources and logic depth of every entity, read from the text
reports Quartus writes into a project’s
output_files. - reconfig_
fabric_ rtl - reconfig_fabric_rtl — Stage 4 of the self-synthesizing bytecode XPU: the placer IN SILICON as a
RECONFIGURABLE fabric. Stage 1 HARDWIRED a grid per block; Stage 3 proved
route_loop_bodycorrect for every bounded body. This stage makes the fabric CONFIG-DRIVEN: ONE fixed R×C tile array whose every tile’s operation and channel routing are RUNTIME inputs, so loading the certified placement of ANY block runs it on the same physical silicon — the reconfigurable array the on-chip placer configures. - reverse_
module - R5 — the SVA REVERSE-MODULE OBLIGATION for Hardware Studio.
- rtl
- RTL / transition-system bounded model checking — including multi-bit (bitvector) registers.
- rtl_
extract - Verilog Declaration Parser
- rtl_kg
- RTL KG + Spec-RTL Linking
- scalar_
asm - scalar_asm — assemble a compiled LOGOS program (the register bytecode
CompiledProgram) into the instruction words thatsoft_core_scalar.vexecutes, so a REAL.lgprogram can be streamed to the Nexys A7 FPGA over UART and run on silicon (see scripts/run-on-nexys-scalar.sh). - scratchpad_
rtl - scratchpad_rtl — the on-chip scratchpad subsystem in silicon.
- select_
hoist - select_hoist — a decision fabric’s selects hoisted out of its arithmetic: every select an add, a shift or a compare reads is cofactored away, so the fabric becomes arithmetic over its inputs, compares of that arithmetic, and one tree of selects over the compares’ outcomes.
- sequencer_
rtl - sequencer_rtl — Stage 1 of the self-synthesizing bytecode XPU: the AUTONOMOUS block-walk sequencer as
synthesizable RTL. The CONTROL PLANE that
run_program_cfg_on_gridmodelled in software now exists in silicon: a register file that survives block reconfiguration, per-block placed grids, a block program- counter, a terminator FSM (Jump/Branch/Return), and a cycle counter — a hardwired micro-sequencer that walks the whole function itself, one block per clock, with no host help. - shuttle_
wrapper - Packing EVERY signed-off macro into ONE Caravel shuttle submission.
- signal_
design - Conflict-free traffic-signal PHASE DESIGNER (certified SAT synthesis).
- signoff_
blocks - The clock period every hardened block is signed off at — held here, derived from its measured
SLOW corner, and the only period
emit_flow_configaccepts for a registered block. - simd
- simd — configurable-precision packed SIMD lanes for the fabric datapath (
FabricTarget::simd). - simt_
ports - simt_ports — the SIMT engine’s step on ports: its uniforms, its mask and every lane’s varying as inputs, every
lane’s output and the warp-reduce as outputs, a step every clock. Where the engine’s register file
(
emit_gpu_simt_verilog) takes a step’s operands a slot a clock and hands its results back a read at a time, this takes them all at once, as a caller holding them in registers presents them, and reads no register of its own on the way in. - soft_
core_ model - The cycle-accurate Rust model of
benchmarks/silicon/soft_core.v— the executable spec of the LOGOS universal interpreter in silicon. Fetch/decode/execute over a chip-word program ([opcode:8][dst:8][a:8][b:8]; wide/float/heap ops per the doc onrun_soft_core_typed), returning theShowsequence. This is the differential ORACLE the whole spatial-interpreter campaign checks against:compile_to_full_words->run_soft_core_typedmust equalcompile::vm_outcomefor every program, and the iverilog testbenches agree with it. Lifted here (fromrtl.rs’s test module) so both the in-crate RTL tests and thelogicaffeine_testsintegration locks share ONE oracle. - spatial_
emit - Spatial source emission for a counted loop — the bridge from the certified fabric IR to the open Plasticine toolchain (Spatial → PIR → plastiroute → Tungsten; Koeplinger et al., PLDI 2018; the chain is mirrored at gitlab.com/dataplane-ai). P4 of the Plasticine lane.
- storage_
controller_ rtl - storage_controller — the deterministic NAND storage controller (the storage analog
of
super::dram). - sufficiency
- Property Sufficiency Analysis
- sva_
model - SVA Semantic Model
- sva_
to_ proof - Bounded SVA/FOL obligation →
ProofExpr(the certified-prover seam). - sva_
to_ verify - SVA → Bounded Verification IR Translation
- sva_
vacuity - SVA Nonvacuous Evaluation Tracking (IEEE 16.14.8)
- synthesis_
refine - CEGAR Refinement for SVA Synthesis
- synthesize
- Sprint 5C: Top-Level Synthesis API
- systolic
- systolic — the weight-stationary spatial GEMM tile (Phase 1).
- terminal_
protocol - The Fabric Terminal’s wire protocol and screen, in one place: the link between a host and the terminal board (Board B, the Nexys A7-100T) that puts a LOGOS editor on a VGA screen, takes a keyboard on the board’s USB port, and runs each program on the fabric engine beside them.
- terminal_
rtl - The Fabric Terminal’s RTL, emitted from its templates (
codegen_sva/terminal/) with every protocol byte and dimension filled fromsuper::terminal_protocol: the UART, SLIP framing, the PS/2 port, the VGA text plane, the link controller, the activity panel and the Nexys A7-100T top with its pins; andrender, the picture the screen’s frames are held to. The board build reads the emitted files (board_files) frombenchmarks/silicon/, wherefabric_terminal --emitwrites them. - timing_
graph - A circuit’s timing graph: how deep its logic is, where the depth sits, and the bound its loops put on the clock, known before Quartus runs.
- traffic_
flow - Traffic FLOW / capacity analysis as model checking.
- unified_
placement - unified_placement — Phase 5: ONE LOGOS program placed across THREE execution planes that all run LOGOS (host-CPU tiers, the reconfigurable fabric-CPU, and the DRAM-compute plane), under a single shared primitive descriptor, certified ≡ the VM.
- verified_
compiler - Verified SVA Compiler via Futamura Projections
- verify_
to_ kernel - Spec Encoding: BoundedExpr → Kernel Term
- wpe_
caravel - The whole-program engine as a Caravel user project: the off-chip engine
(
wpe_offchip) on the Caravel user interface, its UART and its PSRAM on user GPIOs, clocked byuser_clock2(WPE_CLOCK) and reset by the management SoC. - wpe_
floorplan - The whole-program engine’s memory, planned against a real process — before place-and-route.
- wpe_
offchip - The whole-program engine with its bulk memories off the die: the same loader and interpret FSM, whose
heap, frame stack and config image — any of them — live in a QSPI PSRAM behind one
psram_edge, each through its ownpsram_cache, the caches sharing the edge through apsram_arbiter. - wprog_
engine_ rtl - wprog_engine_rtl — the WHOLE-PROGRAM spatial engine: run an entire control-flow program on the
reconfigurable fabric, streamed over the wire, not just one straight-line block. Where the block engine
(
block_engine_rtl) runs a single straight-line residual, this runs a wholeProgramCfgFabric— multiple basic blocks with branch conditions (Selectcells), a register file that survives block reconfiguration, and a block-walk terminator (Jump / Branch / Return) — the RTL ofrun_program_cfg_on_griddriven by a flat config, so ANY acyclic branchy program runs on ONE physical array by loading its config. - xpu_
soc_ rtl - xpu_soc_rtl — Stage 6 of the self-synthesizing bytecode XPU: the SoC that receives a block’s BYTECODE OVER THE WIRE, parses it on-chip, and runs it on the reconfigurable execute engine — the north star made physical (in simulation). A block’s decoded op list is serialized to a byte stream (the wire format); the SoC clocks the bytes in one at a time into an on-chip buffer, assembles them into the engine’s config + inputs, and the engine computes the result — no host help beyond the bytes on the wire.
- z3_
synth - Sprint 4A: Z3 Synthesis Constraint Builder
Structs§
- SvaProperty
- A single SVA property ready for emission.
Enums§
- SvaAssertion
Kind - Assertion type — determines the SVA wrapper.
Functions§
- emit_
psl_ property - Emit a single PSL property.
- emit_
rust_ monitor - Emit a Rust runtime monitor scaffold for a property.
- emit_
sva_ module - Emit multiple SVA properties as a complete module.
- emit_
sva_ property - Emit a single SVA property with its assertion wrapper.
- sanitize_
property_ name - Sanitize a human-readable property name into a valid SVA identifier. “Data Integrity” → “p_data_integrity”