Skip to main content

Module codegen_sva

Module codegen_sva 

Source
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: BoundedExpr datapath (bitvector) operations → boolean ProofExpr.
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 PhasePlan into 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_executor command 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 of decision_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_soc example 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 FabricTarget descriptor + 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 and logos_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-copy Call), division/modulo (the sequential shared divider), and the structured heap (lists, tuples, ranges, sets, maps, structs) — so the ENTIRE benchmark suite compiles from .lg source 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 (a Group). 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^w is the sum of the w partial products x[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 by i is zero below bit i, and nothing above bit w − 1 survives), 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 a riscv64gc-unknown-linux-musl build of this same code; onboard_compiler_lock holds 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 FabricTarget seam.
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_body correct 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 that soft_core_scalar.v executes, so a REAL .lg program 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_grid modelled 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_config accepts 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 on run_soft_core_typed), returning the Show sequence. This is the differential ORACLE the whole spatial-interpreter campaign checks against: compile_to_full_words -> run_soft_core_typed must equal compile::vm_outcome for every program, and the iverilog testbenches agree with it. Lifted here (from rtl.rs’s test module) so both the in-crate RTL tests and the logicaffeine_tests integration 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 from super::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; and render, the picture the screen’s frames are held to. The board build reads the emitted files (board_files) from benchmarks/silicon/, where fabric_terminal --emit writes 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 by user_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 own psram_cache, the caches sharing the edge through a psram_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 whole ProgramCfgFabric — multiple basic blocks with branch conditions (Select cells), a register file that survives block reconfiguration, and a block-walk terminator (Jump / Branch / Return) — the RTL of run_program_cfg_on_grid driven 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§

SvaAssertionKind
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”