例子中dut和环境见上篇low power-upf-vcsnlp(二)
3.create_power_domain 命令
-elements 添加实例列表. (elements和subdomains只能使用一个)
-supply 指定电压域的supply_set_handle.
-available_supplies 设置在此电压域内的power cell可以使用的其他supply_set列表。
-update 如果电压域已被定义,可以加上此项来更新这个电压域的定义。
(1)添加power domain
对于上面的dut,可以定义一个power domain如下(写在test.upf中),下面代码中的-include_scope在当前版本(IEEE1801-2015)中是没有的,不用也可以,set_design_top用于设置power的顶层(set_design_top使用的是instance的层次路径,也可以在makefile vcs命令中加上 -power_top选项来指定,但是此选项后面跟的是module name。注意这两者同时只能使用一种方式[1]):
set_design_top top/dut_u
create_power_domain PD_TOP -include_scope
运行结果:
verdi结果中,在full power map窗口中可以看见只有一个电压域被定义,并且其power和ground都还没有定义: