Post 5: Beyond the Log File: Triggering C++ and Cocotb from SVA
Introduction: Why Connect SVA to Software? Seeing an error message in a terminal is fine for a human, but a self-checking testbench needs to know programmatically when an assertion fails. By using the Direct Programming Interface (DPI), we can call a C++ function directly from an SVA “Action Block.” The Action Block: The Trigger Every assertion has two hidden slots called Action Blocks: the “pass” block and the “fail” block. ...