我用Active-HDL支持扩展了我的testbench脚本。Active-HDL的行为大多类似于QuestaSim或ModelSim,甚至命令行参数也是相似的。
我有一个Active-HDL学生版和Active-HDL格子版,从格子钻石3.7安装.我目前正在使用后一个版本,因为这个版本附带了一个完整的vsimsa (vsim独立的)环境。
我的脚本分三个步骤处理所选的testbench:
vlib.exe (alib)创建所有必需的VHDL库。vcom.exe (acom)编译所有VHDL源文件vsimsa.exe:
asim -lib test arith_prng_tb; run -all; bye模拟运行并显示了一个很好的输出:
VHDL/Verilog/EDIF/SystemC Simulator 10.2.3312.5682.02
(c) 1997-2015 Aldec, Inc. All rights reserved.
VSIMSA: Configuration files: `D:\git\PoC\temp\activehdl\library.cfg', `D:\Lattice\diamond\3.7_x64\active-hdl\BIN\vsimsa.cfg'
Welcome to VSIMSA!
This message was printed from `startup.do' macro file.
asim -lib test arith_prng_tb; run -all; bye
VSIM: Selected architecture `tb' of entity `arith_prng_tb' from library `test'.
....
....
KERNEL: ASDB file was created in location D:\git\PoC\temp\activehdl\wave.asdb
========================================
POC TESTBENCH REPORT
========================================
Tests 2
-1: Default test
0: Test setup for BITS=8; SEED=0x12
Overall
Assertions 256
failed 0
Processes 3
active 0
Runtime 2.6 us
========================================
SIMULATION RESULT = PASSED
========================================
Simulation has finished. There are no more test vectors to simulate.可以看到,asim创建了一个wave.asdb文件,该文件可以从GUI加载,但它是空的(没有信号)。
所以我的问题是:
发布于 2016-04-04 14:37:26
必须使用trace或log命令来指定要登录到模拟数据库中的信号(请注意,根据调用Active HDL的方式,在不同情况下支持这些命令)。
例如:
log -ports UUT/*跟踪UUT设计区域中声明的所有端口。
log -mem -rec UUT/*递归跟踪UUT设计区域中声明的所有信号(包括Verilog内存)。
log CLK RST跟踪来自当前区域的CLK和RST信号。
您可能需要更改编译优化选项,以便跟踪所有感兴趣的信号。
要回答第二个问题,可以使用wave命令向当前波形显示中添加波形。
https://stackoverflow.com/questions/36403122
复制相似问题