I extended my testbench scripts with Active-HDL support. Active-HDL behaves mostly like QuestaSim or ModelSim, even the command line arguments are similar.
I have an Active-HDL Student Edition and Active-HDL Lattice Edition from Lattice Diamond 3.7 installed. I'm currently using the latter one, because this version is shipped with a full vsimsa (vsim standalone) environment.
My scripts processes the selected testbench in 3 steps:
- It creates all necessary VHDL libraries with
vlib.exe
(alib) - It compiles all VHDL source files with
vcom.exe
(acom) - It launches
vsimsa.exe
with a TCL command:
asim -lib test arith_prng_tb; run -all; bye
The simulation runs and shows a good output:
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.
As one can see, asim creates a wave.asdb
file, which can be loaded from the GUI, but it's empty (no signals).
So my questions are:
- How can I trace signals into that waveform database file?
- How can I open this file from command line in the GUI?