In reply to dave_59:
In reply to enbiya.h:
That code snippit is not legal - within any procedural block of code, all declarations must precede any statements. If you can post a link to where you saw this, I can try to get it fixed,
Hi Dave,
I saw it on the example “Complete block level testbench example for a simple SPI DUT”. Below is the download link for the example and the path for the code snippet.
Block Level Testbench - Complete block level testbench example for a simple SPI DUT.
Download link block level testbench example
…\tb_build\block_level_tbs\spi_tb\test\spi_test.svh Line:50