摘要
硬件电路设计的验证工作是设计的重要一环,通过高级语言来编写测试模块,可显著地提升测试验证的效率。Python丰富的代码库,与其它语言的接口多等特点,使得通过Python这一高级语言进行硬件电路设计的验证工作变得更重要,测试工作的可重用性明显提高。本文提供了一种全Python的网络测试环境方案,它以DjangoWeb服务框架为基础,测试核心是Cocotb协同测试环境,只需要少量的代码就能完成网络测试系统的建设。通过测试用例说明了建立和运行的一般过程。
The verification of hardware circuit design is an important part of the design. The efficiency of test verification can be significantly improved by writing test module with high-level language. Python is rich in code libraries and has many interfaces with other languages, which makes the verification of hardware circuit design more important and the reusability of test significantly improved. This paper provides a network test environment scheme of all python, which is based on Django web service framework. The core of the test is cocotb collaborative test environment. It only needs a small amount of code to complete the construction of network test system. The general process of establishment and operation is illustrated by test cases.
作者
李长春
Li Changchun(Balinyouqi State Owned Capital Operation Co.,Ltd.,Chifeng Inner Mongolia,025150)
出处
《电子测试》
2020年第5期82-84,共3页
Electronic Test