mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-24 13:57:19 -04:00
Assert macros in prim_assert.sv report the asserted property as part of the error message if the assertion fails. Doing that requires us to stringify the property. If the property is multi-line in the source code, this produces a multi-line string. According to the SystemVerilog standard, a multi-line string requires a backslash (`\`) at the end of a line. Adding this backslash through a macro is not possible (at least to my knowledge), giving us no way to produce a standards-compliant implementation of the `ASSERT` macros that report the property as string. This commit therefore removes the property from the error message if an assertion fails. It makes these messages less useful, but the information can still be recovered in a less convenient way through the name of the assertion, and the file and line numbers. File and line number were missing from the non-UVM code path before, this commit adds them there as well. Fixes #669 |
||
---|---|---|
.. | ||
rtl | ||
fpga_xilinx.core | ||
prim_assert.core | ||
sim_shared.core |