mirror of
https://github.com/verilator/verilator.git
synced 2026-08-22 14:06:52 +02:00
Commentary (#3351)
This commit is contained in:
@@ -257,7 +257,9 @@ with respect to that top level module, then the scope could be set with
|
|||||||
|
|
||||||
#include "svdpi.h"
|
#include "svdpi.h"
|
||||||
...
|
...
|
||||||
svSetScope(svGetScopeFromName("TOP.dut"));
|
const svScope scope = svGetScopeFromName("TOP.dut");
|
||||||
|
assert(scope); // Check for nullptr if scope not found
|
||||||
|
svSetScope(scope);
|
||||||
|
|
||||||
(Remember that Verilator adds a "TOP" to the top of the module hierarchy.)
|
(Remember that Verilator adds a "TOP" to the top of the module hierarchy.)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user