There is a set of system functions that can be used to determine the properties of an array. Implementing this functions should also help with checking if packed array support is implemented correctly. The next functions are tested in the example:
Use the example code from: https://github.com/jeras/ivtest/tree/test_sv
iverilog -g2009 ivltests/array_packed_sysfunct.v && vvp a.out
or the attached file.
Log in to post a comment.