数字IC学习

设计文件与testbench区别

设计文件属于硬件描述,即采用verilog语言描述器件完整功能,testbench为模拟器件运行状态,对器件进行仿真。

器件描述/设计文件

module

接口定义:input

output

定义寄存器位数

always

endmodule

testbench:

timescale **ns/**ns

module

接口定义:reg or wire

例化端口与接口

initial

endmodule

一、重点

1,在always连续赋值语句中,被赋值的变量必须定义为reg型。

2,被例化的模块要设置名字。

3,Nativelink Error

Error: Can't launch the ModelSim-Altera software -- the path to the location of the executables for the ModelSim-Altera software were not specified or the executables were not found at specified path.

Error: You can specify the path inthe EDA Tool Options page of the Options dialog box or using the Tcl command set_user_option.

Error: NativeLink simulation flow was NOT successful

解决办法:是因为quartusII不知道你安装的modelSim软件的具体路径,所以需要设置ModelSim的具体路径即可。步骤如下(以ModelSim为例,不是ModelSim Altere):Tools -> Options -> General -> EDA Tool Options:将选项中的ModelSim设为你安装ModelSim的具体路径即可。如下图:

4,tb文件中需定义时间精度,系统时间延时,代码中引用时间延时时,需加“`”(键盘左上角)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值