Add features to build a TyVcd
with additional artifact scopes
#7
Labels
enhancement
New feature or request
TyVcd
with additional artifact scopes
#7
Sometimes simulation tools may create additional scopes in a testbench that wrap the
dut
. An example isChiselSim
for chisel which creates 2 additional scopes in the output trace file (TOP
andsvsimTestbench
) in the testbench and instantiates the module asdut
. On the other hand,firtool
generates thehgldd
file without that knowledge, therefore a tool should know how these additional scopes are linked to thehgldd
.To fix this, it should be possible to provide a function that, given a sequence of
top_scope_names
to be added and thetop_module_name
, produces a newHgldd
with update scopes, like the following:And it would generate a new Hgldd with the following hierarchy of scopes:
TOP -> svsmiTb -> dut -> others...
and thedut
replacestop_module_names
.To avoid the name replacement of the top module, one can specify that name as last entry of the list
extra_modules
. In this way the solution should cover 2 cases (allowing to replace or not the top module name).The text was updated successfully, but these errors were encountered: