感谢大佬解惑,tree instance_hierarchical_name depth [x|z|0|1|random| random seed_value] 是的语法上说的确实是depth,之前理解错是因为两个条目在一起(如下),第一个是初始化成0,第二个是初始化成x,所以ug上解释才说的的从o到x,我给当成单独第二条是从0到x了。我看深度depth在ug上面给的例子都是0,从tree的instance到下面所有,如果是1呢,这个depth 设置1有代表什么呢,还有最后一个层次结构不初始化么?还请指教,谢谢。
tree top 0 0
tree top.d1 0 x
The first entry initializes all variables, registers, and memories in the design to value 0. The second entry changes the initial values from 0 to x for the variables, registers and memories in thetop.d1 instance and all instances beneath top.d1, namely top.d1.g1 and top.d1.g2.
是我自己文档没看清楚。感谢大佬了。
depth 0 代表 Initialize all levels down the sub-hierarchy to the leaf level instances
depth 1 代表 Initialize only the specified instance
depth 2。。。 代表 Initialize the specified number of levels down the sub-hierarchy from the specified instance