首先我们知道uvm_top是uvm_root的唯一实例,声明在uvm_root中 于是就可以在uvm_root中找到print_topology()是定义如下图 分析上面的源代码可知,print_topology本质上是把uvm_root树形结构下的所有的树叶(m_children)遍历执行printer里的print_object()函数,接下来我们来看看printer和print_object()都做了什么。 printer...
可以在外部设置uvm_root.enable_print_topology = 1来调print_topology(). 如何添加uvm_top.enable_print_topology = 1这句话的位置?(uvm_top是uvm_root类型的全局变量) end_of_elaboration_phase之前,如果是放在之后,比如说run_phase,并不能够打印出层级。 build_phase之后,因为UVM 树,要有uvm_top的树根。 ...
当然你的实际的环境不能修改源代码。可以在外部设置uvm_root.enable_print_topology = 1来调print_topology(). 如何添加uvm_top.enable_print_topology = 1这句话的位置? end_of_elaboration_phase之前,如果是放在之后,比如说run_phase,并不能够打印出层级。 build_phase之后,因为UVM 树,要有uvm_top的树根。 ...
在扩展自uvm_test的base_test类的start_of_simulation_phase里(在build之后run_phase之前): base_test.png 在仿真用例(扩展自base_test类)的build_phase里set即可
UVM / OVM Other Libraries Enable TL-Verilog Enable Easier UVM Enable VUnit Libraries Top entity Enable VUnit Specman Libraries Tools & Simulators Compile Options Run Options Compile Options Run Options Use run.bash shell script Run custom file Custom File Compile Options Run Options...