马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
一篇非常详细的关于verilog文件读写的文章,包括各种文件读写函数的说明,还有例程,word格式,22页。
对于写有关文件操作的testbench比较实用,希望能帮助到大家。
下面给出文件简要说明,以免大家误下浪费信元
This describes how you can read and write files in a Verilog model using a set of user functions, based on the C stdio package. With these functions you can perform file input and output directly in Verilog models without having to learn C or the PLI. This code works with VCS, MTI, Verilog-XL, and NC-Verilog (see $fread for one restriction). Note that Synopsys' VCS 6.1, NC-Verilog 3.3, and MTI's ModelSim 5.5 offer native support for the IEEE-1364 2001 standard. Verilog-XL does not support these tasks except through this PLI application. - Copyright
- Overview
- Differences between fileio and IEEE-1364 Verilog-2001 standard
- File Input Functions
- Restrictions and Caveats
- Reading pattern files
- Comparing outputs with expected results
- Reading script files
- Reading data files into memories
- Linking with VCS
- Linking with Verilog-XL
- Linking with MTI
Linking with NC-Verilog |