如何使用 SVUnit?
How SVUnit has been used?
我正在寻找在我的项目中使用 SVUnit 的原因。作为一名软件工程师,我过去常常在生产代码之前编写测试。但是,我没有看到很多人采用此计划。为什么?值得吗?
任何编程语言都可以通过直接编程接口连接到 SystemVerilog。
引用 IEEE 1800 - 2012 第 35.2 节中的引述是可能的,但将其采用到环境中是基于程序员对语言的调用和例程的理解。
DPI is an interface between SystemVerilog and a foreign programming
language. It consists of two separate layers: the SystemVerilog layer
and a foreign language layer. Both sides of DPI are fully isolated.
Which programming language is actually used as the foreign language is
transparent and irrelevant for the SystemVerilog side of this
interface.
既然你提到你曾经是一名软件工程师,我想你不需要被教导为什么单元测试很好或者为什么 TDD 有意义。由于测试平台与软件非常相似,这意味着许多软件开发最佳实践可以转移到测试平台开发中,单元测试就是其中之一。
它还没有被广泛采用这一事实不应该成为不使用某些东西的理由。
我在这里写过关于 SVUnit 的文章:http://blog.verificationgentleman.com/2014/05/a-quick-look-at-svunit.html
我正在寻找在我的项目中使用 SVUnit 的原因。作为一名软件工程师,我过去常常在生产代码之前编写测试。但是,我没有看到很多人采用此计划。为什么?值得吗?
任何编程语言都可以通过直接编程接口连接到 SystemVerilog。
引用 IEEE 1800 - 2012 第 35.2 节中的引述是可能的,但将其采用到环境中是基于程序员对语言的调用和例程的理解。
DPI is an interface between SystemVerilog and a foreign programming language. It consists of two separate layers: the SystemVerilog layer and a foreign language layer. Both sides of DPI are fully isolated. Which programming language is actually used as the foreign language is transparent and irrelevant for the SystemVerilog side of this interface.
既然你提到你曾经是一名软件工程师,我想你不需要被教导为什么单元测试很好或者为什么 TDD 有意义。由于测试平台与软件非常相似,这意味着许多软件开发最佳实践可以转移到测试平台开发中,单元测试就是其中之一。
它还没有被广泛采用这一事实不应该成为不使用某些东西的理由。
我在这里写过关于 SVUnit 的文章:http://blog.verificationgentleman.com/2014/05/a-quick-look-at-svunit.html