LarsAsplund on issue-833-type-generic-dict
Added generic type support to d… (compare)
LarsAsplund on issue-833-type-generic-dict
WIP: Added generic type support… (compare)
LarsAsplund on issue-833-type-generic-dict
WIP: Added generic type support… (compare)
eine on master
docs/about: fixed typo from "GD… (compare)
py run.py '<library_name_set>.<testbench_name_set>.<test-case-name_set>' -v
You can pass the dictionary as string or as the path to a file. Optionally, you can encode the string:
TB.get_tests("stringified*")[0].set_generic("tb_cfg", JSON_STR)
TB.get_tests("b16encoded stringified*")[0].set_generic("tb_cfg", b16encode(JSON_STR))
TB.get_tests("JSON file*")[0].set_generic("tb_cfg", JSON_FILE)
TB.get_tests("b16encoded JSON file*")[0].set_generic("tb_cfg", b16encode(str(TEST_PATH / JSON_FILE)))
You only need one of those. The four of them are used in the example for illustration.
Q> While running simulation using ModelSim, I am always getting the warning: " Warning: There is an 'U'|'X'|'W'|'Z'|'-' in an arithmetic operand, the result will be 'X'(es)." and I want to get rid of this warning. How can I do it?
What I did and is not working>
Is there any other things I can try out from run.py?
@dpaul24 You're using
allow_empty=True
. Is that because it didn't find any testbenches? Note that the sim option only applies to testbenches added before the sim option was set.
Well I did not give it much thought, I just think it would be safe to use the TRUE setting. btw - All my TBs are loaded I use vu_prj.set_sim_option("disable_ieee_warnings", True, allow_empty=True)
Like so?
constant master_axi_stream : axi_stream_master_t := new_axi_stream_master(
data_length => data_width
user_length => 1
);
user_length
and all other parameters.