mirror of
https://github.com/verilator/verilator.git
synced 2026-08-22 05:57:29 +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"
|
||||
...
|
||||
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.)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user