1. AHB环境配置
1) 基础配置
作为master或者slave使用时,对应的is_active = 1
只作为监测(monitor)使用时,对应的is_active =0
2. testbench声明
3. interface连接
1)active 端口连接(slave为例)
2)passive 端口连接
passive模式相对active需要修改两个地方:
cfg文件中的active配置
bind连接
4. 环境例化
如需要使用reg_model需要增加如下内容
5. 端口连接
monitor采样端口连接
好好学习,天天向上!
领取专属 10元无门槛券
私享最新 技术干货