LarsAsplund on vunit_event
Added string decoration functio… Make check result function an a… Added event mechanism. and 12 more (compare)
eine on master
readme: update shield syntax (b… (compare)
Hi guys
for a student project about verification I wanted to do some tests of a DUT using vunit. My goal is to perform the results of the stimulation with a testbench with the measurement results of a LogicAnalyser of the same system. For this I am looking for a way to generate some kind of result table with the corresponding states and timings of my variables when testing with vunit. Does anyone have an idea ?
I hope I have formulated my problem halfway clearly. I am still completely new in the area of HDL and testing, should I say something wrong please excuse me :)
Translated with www.DeepL.com/Translator (free version)
@vruizescribano The "bound check failure" is coming from ghdl, not vunit. Usually means some math operation you're doing is overflowing.
You are right. It looks like I am having an issue with GHDL because even a simple std_logic_vector is giving me a metadata value. This code was run using Modelsim previously without having any issue. I had big expectation with GHDL but Modelsim makes things easier. I will give a second try to GHDL if someone points out what it could be, otherwise I will switch back to Modelsim after Xmas time. Thanks!
SystemExit
which does work. Use case is for prototyping the design I have a software model of it and want to swap out software functions with running a vunit sim as a "function" with returned data. Ideally for me it would just take the place of the post_run
and return the Result
s as it does now.
C:\Projects\vunit\vunit-master\examples\vhdl\user_guide>python run.py
Compiling into vunit_lib: ............\Users\vpallichadath\AppData\Roaming\Python\Python310\site-packages\vunit\vhdl\string_ops\src\string_ops.vhd failed
=== Command used: ===
"C:\Program Files (x86)\Ghdl\bin\ghdl" -a --workdir=C:\Projects\vunit\vunit-master\examples\vhdl\user_guide\vunit_out\ghdl\libraries\vunit_lib --work=vunit_lib --std=08 -PC:\Projects\vunit\vunit-master\examples\vhdl\user_guide\vunit_out\ghdl\libraries\vunit_lib -PC:\Projects\vunit\vunit-master\examples\vhdl\user_guide\vunit_out\ghdl\libraries\lib C:\Users\vpallichadath\AppData\Roaming\Python\Python310\site-packages\vunit\vhdl\string_ops\src\string_ops.vhd
=== Command output: ===
C:\Program Files (x86)\Ghdl\bin\ghdl.exe:command-line: cannot find "std" library
Compile failed
Hi,
I get a lot of output whenever a check fails, namely:
# Stack trace result from 'tb' command
# C:/Python/Python39/Lib/site-packages/vunit/vhdl/core/src/core_pkg.vhd 84 return [address 0xff135acf] Subprogram core_failure
# called from C:/Python/Python39/Lib/site-packages/vunit/vhdl/logging/src/logger_pkg-body.vhd 1238 return [address 0xff1426ce] Subprogram final_log_check
# called from C:/Python/Python39/Lib/site-packages/vunit/vhdl/run/src/run.vhd 119 return [address 0xff4bd3c6] Subprogram test_runner_cleanup
# called from C:/Users/nisse/adesign/testbenches/tb_some_module/tb_some_module.vhd 100 return [address 0xff4c213b] Process main
#
#
# Surrounding code from 'see' command
# 79 : begin
# 80 : if core_failure_is_mocked then
# 81 : set(core_failure_mock_state, core_failure_called_idx, 1);
# 82 : reallocate(to_string_ptr(get(core_failure_mock_state, core_failure_message_idx)), msg);
# 83 : else
# ->84 : report msg severity failure;
# 85 : end if;
# 86 : end;
# 87 :
# 88 : procedure check_core_failure(msg : string := "") is
#
I think this makes it hard to read the output or logs and see what test actually failed.
Is there a way to turn this particular output off?