vpiScope
- vpiScope 推荐度:
- 相关推荐
vpiScope
在LRM中vpiScope的含义是 containing scope object,这点不太好理解,做了一点实验,用于说明它的含义
在iverilog里面:
vpiScope iterator on vpiScope objects.
In the VPI, the normal way to iterate over vpiScope objects
contained within a vpiScope object, is the vpiInternalScope
iterator. Icarus Verilog adds support for the vpiScope
iterator of a vpiScope object, that iterates over *everything*
the is contained in the current scope. This is useful in cases
where one wants to iterate over all the objects in a scope
without iterating over all the contained types explicitly.
iverilog对vpiScope做了扩展,即可以通过vpi_iterate获取某个scope下的subscope,比如可以这样。
vpiHandle iter = vpi_iterate(vpiScope, item);vpiHandle sub;while(NULL != (sub = vpi_scan(iter))){fprintf(stderr, "name:%s\n", vpi_get_str(vpiFullName, sub));}
同时,可以通过vpi_handle(vpiScope, item) 获取上一级的scope
vpiHandle scope = vpi_handle(vpiScope, item);
标准LRM
这时,可以通过vpi_handle(vpiScope,item) 获取上一级的scope,通过
vpi_iterate(vpiInternalScope, item) 来获取本scope里面的scope
iverilog 获取hierarchy tree_yuexiangallan的博客-CSDN博客
- Driller源码阅读笔记(二)
- Oracle中rowid的用法(全面)
- Hibernate Annotation
- 注解
- 【时间复杂度】你还在担心时间复杂度太高吗?
- 梯度下降法和最速下降法区别
- skip connections
- 职场之路
- 回溯法(算法分析与设计)
- AT24C02驱动程序,【I2C串行总线】的组成及工作原理
- ext2ext3 结构分析
- 积累的VC编程小技巧之打印相关
- Mysql与Postgresql常用命令比较
- 2009奥巴马的秋季开学演讲稿
- CLion破解注册
- Idea 精准到类的打包方式:Artifacts 打包
- 线性内插interp1函数用法
- 微信小程序60秒倒计时
- 前端必备:五大css自动化生成网站(稀有级别!)
- curl命令详解 (实例使用方法)