Wiki / SystemVerilog
SystemVerilog
Design-subset SV — types, always_comb/ff, interfaces, and packages.
This section is the synthesizable SV design subset plus the verification-language notes (classes, CRV, SVA) that sit under the UVM cards and the Learn SV track.
Topics in this section
See also
Simulate this in the Verilog IDE
SystemVerilog is easier to trust after a simulation than on a diagram alone. RTL Studio is a browser Verilog and SystemVerilog IDE: edit the RTL, lint with Slang, run the Verilator simulator, and read the VCD waveform in the same tab. Yosys synthesis is there when the code is structural RTL.
Open the Verilog IDE · Verilator simulation guide · Yosys synthesis guide
Topics
typedef, enum, and struct
ready
Named types for FSM states and packed protocol fields.
Packed vs unpacked
ready
How array layout changes slicing, width, and RAM inference.
always_comb and always_ff
ready
Explicit combo vs flop processes that lint can check.
Interfaces and modports
ready
Bundle a bus once; modports name master vs slave directions.
string and formatting
ready
SV string variables and $sformatf for readable simulation logs.
Dynamic arrays
ready
Runtime-sized arrays with new[] for testbench buffers.
Packages
ready
Shared types and constants with import, without textual macros.
Queues
ready
Ordered TB buffers with push_back and pop_front.
Associative arrays
ready
Sparse maps keyed by index type for TB memory models.
Classes and handles
ready
OOP objects for verification — new, handles, local and static.
Inheritance and virtual methods
ready
extends for reuse; virtual methods for polymorphism.
Clocking blocks
ready
Synchronize TB stimulus to a DUT clock and avoid races.
Mailbox and semaphore
ready
Thread rendezvous — mailbox put/get, semaphore keys.
Constrained random
ready
rand fields, randomize(), and constraint blocks for legal stimulus.
Functional coverage
ready
Coverpoints and bins — including Verilator-friendly manual bins.
Concurrent SVA
ready
Clocked properties for request–acknowledge and handshake protocols.