Clause-by-clause status of the SystemVerilog standard in RyuSim v2.
RyuSim v2 runs the SystemVerilog testbench language natively, without VPI: classes, constrained randomization, covergroups, assertions, checkers, clocking and program blocks, process control and interprocess synchronization. Clauses 29–33 and 39–41 are not yet implemented and are scheduled for v2.x releases. Clauses 6, 7, 11, 12, 19, 28, 35 and 36–38 and Annexes D and E are partial. The table below covers every clause of IEEE 1800-2023; each Partial row names what is missing. The rows were checked against RyuSim 2.1.16; the clause 10, 28 and 36–39 rows describe the next release.
| Status | Meaning |
|---|---|
| Supported | The clause is implemented in the current release. |
| Partial | Part of the clause is implemented. The status cell names what is missing, and the notes say how RyuSim handles it. |
| Not yet (v2.x) | Not implemented in the current release. Scheduled for a v2.x release. |
Most missing constructs are rejected at compile time by the
unsupported-construct gate (--unsupported, default
error), with a message that starts
error: unsupported construct:. The exceptions are listed under
Accepted without a diagnostic.
| Clause | Topic | Status | Notes |
|---|---|---|---|
| 1–3 | Overview, references, building blocks | Supported | Slang-based frontend. |
| 4 | Scheduling semantics (stratified regions) | Supported | New in v2: the 17-region stratified event scheduler replaces the v1
settle loop. Since v2.1.11 the RTL part of a design runs as one
statically ordered pass per time slot, triggered by the signals that
changed. Combinational cycles are reported at compile time
(warning: combinational cycle through …) and run
as bounded loops, and always @* retriggers itself as
9.4.2.2 requires. Behavioral processes stay on the region queue. VPI
reads return current values. |
| 5 | Lexical conventions | Supported | Slang-based frontend. |
| 6 | Data types (nets, 4-state, strings, event, nettypes, lifetimes) |
Partial: trireg, user-defined nettypes |
The two missing kinds are rejected at compile time and are
scheduled for v2.x. Generic interconnect nets
(6.6.8) take the type of the nets their ports merge them with;
an interconnect with a net delay, a part-select or a primitive
terminal, or one whose merged net types have no single
dominating type, is rejected at compile time. v1 covered nets,
logic and strings; the event type and
variable lifetimes are new in v2. |
| 7 | Aggregate types (arrays, queues, associative arrays, structs, unions) | Partial: writes through a tagged union member outside a procedural assignment | Tagged unions (7.3.2) are supported, with the run-time tag check
on every member read and procedural assignment. A write through
a tagged member in a continuous assignment, a
force, ++/-- or an
output or ref argument, and a member of a call
result, are rejected at compile time. New in v2: queues, dynamic
arrays, associative arrays and the clause 7.12 array methods. v1
had unpacked arrays and flat structs only. |
| 8 | Classes | Supported | New in v2, including inheritance, parameterized and nested classes, and $cast. |
| 9 | Processes (always*/initial/final, fork/join, process control) |
Supported | v1 ran always* blocks to completion; the fork/join family, disable and std::process are new in v2. |
| 10 | Assignment statements (incl. intra-assignment timing) | Supported | Intra-assignment timing controls are new in v2. Delays on
continuous assignments and net declarations
(assign #5 y = a;, wire #5 y = a;) are
inertial (10.3.3), with rise, fall and turn-off delays. A
delay that is not constant is evaluated each time a change is
scheduled, and an x or z delay is 0. A min:typ:max delay uses the
typical value. force/release on a net
part-select works. |
| 11 | Operators and expressions | Partial: an assignment in expression position (11.3.6) where the expression is not evaluated exactly once before its statement | Assignments in expression position (11.3.6) and tagged-union
expressions (11.9) are supported. An assignment nested in a
$monitor/$strobe argument, a
wait condition, a case item expression, a
with clause or a static initializer is rejected at
compile time. The rest of the operator and expression set
shipped in v1 and moved onto the v2 typed IR. Streaming
concatenations (11.4.14) pack and unpack queues, dynamic
arrays, fixed-size arrays, strings and unpacked structs of
packed members, with the with range clause
(11.4.14.4) in both directions; a class object, an associative
array or a union as a stream item, and a nonblocking assignment
to a streaming target that has an unpacked item, are rejected
at compile time. A stream that does not fit its target at run
time stops the simulation with an error. |
| 12 | Procedural statements | Partial: pattern matching (12.6) with a non-integral constant pattern | Pattern matching (case … matches,
if … matches and the conditional operator,
12.6) is supported; a non-integral constant pattern, and a
conditional-operator pattern whose subject contains a call, are
rejected at compile time. Procedural statements, loops,
case/casez/casex,
case … inside (12.5.4) and randcase
(new in v2) are supported. |
| 13 | Tasks and functions | Supported | Timing controls inside tasks are new in v2. |
| 14 | Clocking blocks | Supported | New in v2, including clause 14.14 global clocking. |
| 15 | Interprocess synchronization: semaphores, mailboxes, named events | Supported | New in v2. |
| 16 | Assertions (immediate + concurrent SVA) | Supported | New in v2. Assertions evaluate by default; --assertions=off disables them. |
| 17 | Checkers | Supported | New in v2. |
| 18 | Constrained random (rand, constraint, randomize) |
Supported | New in v2. An analytic layer and an embedded solver share the work, and the same seed gives the same stimulus. |
| 19 | Functional coverage (covergroups) | Partial: covergroup variables declared inside a procedural block | A covergroup handle declared at module scope works. Declared as a
local inside an initial block, it stops the compile
with an internal error (Error: typed codegen failed for
module …) instead of the unsupported-construct gate.
New in v2. This is separate from RyuSim's line, branch and toggle code coverage, which shipped in v1. |
| 20 | Utility system tasks and functions | Supported | Completed in v2. |
| 21 | I/O system tasks ($display family, file I/O, $dump*) |
Supported | v1 ran these only over the VPI path. v2 runs them in the design, file I/O included. |
| 22 | Compiler directives | Supported | `timescale is honored throughout, including the timescale written to waveform files. |
| 23 | Modules and hierarchy | Supported | Shipped in v1; moved onto the v2 typed IR. |
| 24 | Programs | Supported | New in v2, with Reactive-region scheduling and the implicit $finish. |
| 25 | Interfaces (incl. virtual interfaces) | Supported | Interfaces shipped in v1; virtual interfaces are new in v2. |
| 26 | Packages | Supported | Shipped in v1; moved onto the v2 typed IR. |
| 27 | Generate constructs | Supported | Shipped in v1; moved onto the v2 typed IR. |
| 28 | Gate-level and switch-level modeling | Partial: tran, rtran, tranif0/tranif1, rtranif0/rtranif1; trireg charge storage |
Gate primitives and MOS, CMOS and resistive switches compute
values and strengths. Gate delays use the rise, fall and
turn-off selection of Table 28-9, and a delayed three-state
output keeps its strength. Drive and pull strengths resolve per
28.12: a pull1 driver against a strong0
driver gives 0. %v prints the strength
(21.2.1.4), and $countdrivers counts every driver of
the net. The bidirectional pass switches and trireg
charge storage are rejected at compile time (#523). |
| 29 | User-defined primitives (UDPs) | Not yet (v2.x) | Rejected at compile time
(error: unsupported construct: primitive). |
| 30 | Specify blocks | Not yet (v2.x) | Rejected at compile time with the location:
error: unsupported construct: specify-module-path(#527)
for module path delays such as (a => y) = 5, and
specify-pulse-style(#527) for
pulsestyle_*/showcancelled.
specparams are constants and work, inside a specify
block or outside one. |
| 31 | Timing checks | Not yet (v2.x) | Rejected at compile time with the location
(error: unsupported construct: timing-check(#527))
for every timing check, $setup through
$nochange. |
| 32 | SDF back-annotation | Not yet (v2.x) | Rejected at compile time with the location
(error: unsupported construct: sdf-annotate(#527)). |
| 33 | Design configurations | Partial: library mapping (#529) | --top <config> elaborates through the
configuration: its design cells become the roots and
its instance/cell use rules
bind the definitions. Every source compiles into the one library
work; a liblist entry or a library-qualified cell
that names another library is rejected
(config-library(#529)). A configuration that is not
selected is named in a Note:. |
| 34 | Protected envelopes (IEEE 1735) | Supported | Shipped in v1 and carried into v2. See the IP protection guide. |
| 35 | DPI (Direct Programming Interface) | Partial: scope functions, real arguments, packed-vector and aggregate arguments, c_identifier aliases, svGetTime* |
Imports, exports and the Annex-I svdpi.h header work
for integral scalar arguments; the UVM DPI helpers are new in v2.
Calling an import with no C definition linked is a run-time fatal
error naming the import and its declaration line. Known limits:
svGetScope() and
svGetScopeFromName() return NULL;
real/shortreal arguments are mistyped;
packed vectors are passed by value instead of as
svBitVecVal*; unpacked-array, struct and output
string arguments fail in the C++ compiler rather than
at the unsupported-construct gate; an export in a module with two
instances runs in the last instance; the c_identifier
alias is ignored; svGetTime* and the deprecated svdpi
functions are missing. The DPI guide covers
each limit. |
| 36–38 | VPI overview, object model and routines | Partial: vpi_get_delays, vpi_put_delays (#524); vpi_handle_multi (#527); vpi_get_data, vpi_put_data (#526) |
The simulation library exports every routine of the Annex K
vpi_user.h, including vpi_get64,
vpi_get_value_array, vpi_put_value_array
and vpi_handle_by_multi_index.
vpi_compare_objects, vpi_get_userdata and
vpi_put_userdata are new in v2. The five routines
listed as missing return an error: vpi_chk_error
reports RYUSIM-UNSUPPORTED, and one stderr line names
the issue. cocotb runs on this set. |
| 39 | Assertion API | Not yet (v2.x) | This row is the VPI assertion API. The assertion language (clauses 16–17) is supported. vpi_register_assertion_cb is exported and returns an error (RYUSIM-UNSUPPORTED, #525). |
| 40 | Coverage control API | Not yet (v2.x) | This row is the VPI coverage control API. Covergroups in the language are clause 19; see that row for their status. |
| 41 | Data read API | Not yet (v2.x) | |
| Annex D/E | Optional system tasks and compiler directives | Partial: most Annex D system tasks | $countdrivers runs. $getpattern,
$input, $key/$nokey,
$list, $log/$nolog,
$reset, $save/$incsave/$restart,
$scope, $showscopes,
$showvars and $sreadmemh are rejected at
compile time. Of the Annex E directives, `delay_mode_*
apply per module; `default_decay_time and
`default_trireg_strength only affect
trireg nets, which are not supported, and are
rejected at compile time (#523). |
With the default --unsupported=error, a construct RyuSim
does not simulate as IEEE 1800-2023 specifies is rejected at compile time
with its location, never accepted silently. With
--unsupported=warn it is a warning instead, and
ryusim-route.json lists it under gate_hits.
No construct is accepted without its effect. The last one,
`unconnected_drive pull0/pull1 (22.9), is now
modelled: unconnected input ports of the modules it covers are pulled.
This is the complete list of what is not yet implemented:
trireg (clause 6); the clause 7, 11 and 12 forms named in their rows; covergroups declared in procedural blocks (19); the DPI limits (35)trireg charge storage (clause 28, #523), UDPs (29), specify blocks (30), timing checks (31), SDF back-annotation (32) (#527) and design configurations (33)This matrix describes the current release. The roadmap gives the order of upcoming work and the features page gives an overview.