SystemVerilog Implementation and Verification

SV Implementation

The SystemVerilog implementation can be found in

hwdesign/demos/fixp/piecewise.sv

Verification against the Python Golden model

You can see that there is a natural mapping from the python model to the SystemVerilog code.

The testbench is in:

hwdesign/demos/fixp/tb_piecewise.sv

The function reads the testbench vectors generated from the python code and compares the results with the SV model.

You can run the testbench with:

sv_sim --source piecewise.sv --tb piecewise_tb.sv

You should see that all the results pass


This site uses Just the Docs, a documentation theme for Jekyll.