SystemVerilog验证教程(二)--SystemVerilog Interface 和 Timing Region

转载请标明出处:
原文发布于:浅尝辄止,未尝不可的博客
https://blog.csdn.net/qq_31019565

SystemVerilog验证教程(二)–SystemVerilog Interface 和 Timing Region

一、Interface

我们在做验证平台的时候呢,需要将我们的验证平台和DUT进行一个连接。在Verilog环境下,会有两个module进行连接。但是Verilog有很大的冗余和局限性,因此就产生了SV interface。首先,我们可以看一下,下面的这个环境。我们在搭建环境的时候,第一步就应该考虑,要验证的DUT和TestBench如何进行连接。在这里插入图片描述

Verilog形式的两个module的连接

在这里插入图片描述
通过一个简易的Verilog连接图可以看到,在传统的module连接情况下,需要定义两个module port。然后再通过一个顶层的文件,将连个module进行例化,然后进行连接。

module driver(
		output driver_out1,
		output driver_out2
);
...
endmodule

module slave(
		input slave_in1,
		input slave_in2
);
...
endmodule

module top(
		wire driver_to_slave1,
		wire driver_to_slave2
);
driver driver_i
  • 3
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值