IC回归测试脚本
IC回归测试脚本
参考git上的
https://github.com/zhajio1988/YASA
参考的例子
https://github.com/zhajio1988/YasaUvk
作者自己的介绍文章
https://blog.csdn.net/zhajio/article/details/88943669
依赖关系
python 3.6
configobj
argparse
vcs or incisive simulator
常用用法
show help doc
%> python3 yasaTop.py -h
show YASA doc file and copyright
%> python3 yasaTop.py -doc
show YASA version
%> python3 yasaTop.py -version
compile only, build candy_lover, unique_sim mode
%> python3 yasaTop.py -b candy_lover -co -u
compile only, testcase sanity1
%> python3 yasaTop.py -t sanity1 -co
running testcase sanity1, 5 times,each time with random seed
%> python3 yasaTop.py -t sanity1 -r 5
running testcase sanity1 with seed 352938188
%> python3 yasaTop.py -t sanity1 -seed 352938188
running testcase sanity1 with seed 352938188, sim only
%> python3 yasaTop.py -t sanity1 -seed 352938188 -so
compile only, group top_smoke
%> python3 yasaTop.py -g top_smoke -co
running group top_smoke, use 5 threads
%> python3 yasaTop.py -g top_smoke -p 5
Help
%> python3 yasaTop.py -h
usage: yasaTop.py [-h] [-g GROUP] [-show {test,group,build}] [-so] [-co][-b BUILD] [-test_prefix TESTPREFIX] [-r REPEAT] [-c][-fail-fast] [-o OUTPUT_PATH] [-x [XUNIT_XML]][-xunit-xml-format {jenkins,bamboo}] [-exit-0][-dont-catch-exceptions] [-v] [-q] [-no-color][-log-level {info,error,warning,debug}] [-p NUM_THREADS][-u] [-version] [-doc] [-t TEST] [-w [{vpd,fsdb,gui}]][-cov [COV]] [-seed SEED] [-vh] [-prof][-wave_name WAVE_NAME] [-pre_comp_option PRE_COMP_OPTION][-comp_option COMP_OPTION][-post_comp_option POST_COMP_OPTION][-pre_sim_option PRE_SIM_OPTION] [-sim_option SIM_OPTION][-post_sim_option POST_SIM_OPTION]{lsf} ...Yet another simulation architecture® top scriptspositional arguments:{lsf}optional arguments:-h, --help show this help message and exit-g GROUP, -group GROUPassign test group name-show {test,group,build}show test list, group list or build list-so, -simonly Only run simulation without compile step-co, -componly Only compile without running tests-b BUILD, -build BUILDassign a specific build-test_prefix TESTPREFIXadd testcase prefix-r REPEAT, -repeat REPEATtestcase will random run in given repeat round-c, -clean Remove output build dir-fail-fast Stop immediately on first failing test-o OUTPUT_PATH, -output-path OUTPUT_PATHOutput path for compilation and simulation artifacts-x [XUNIT_XML], -xunit-xml [XUNIT_XML]Xunit test report .xml file-xunit-xml-format {jenkins,bamboo}Only valid with --xunit-xml argument. Defines where inthe XML file the simulator output is stored on afailure. "jenkins" = Output stored in ,"bamboo" = Output stored in .-exit-0 Exit with code 0 even if a test failed. Still exitswith code 1 on fatal errors such as compilationfailure-dont-catch-exceptionsLet exceptions bubble up all the way. Useful whenrunning with "python -m pdb".-v, -verbose Print test output immediately and not only whenfailure-q, --quiet Do not print test output even in the case of failure-no-color Do not color output-log-level {info,error,warning,debug}Log level of Yasa internal python logging. Used fordebugging-p NUM_THREADS, -num-threads NUM_THREADSNumber of tests to run in parallel. Test output is notcontinuously written in verbose mode with p > 1-u, -unique_sim Do not re-use the same simulator process for runningdifferent test cases (slower)-version show program's version number and exit-doc print doc file-t TEST, -test TEST assign test name-w [{vpd,fsdb,gui}], -wave [{vpd,fsdb,gui}]dump waveform(vpd or fsdb), default fsdb-cov [COV] collect code coverage, default all kindscollect(line+cond+fsm+tgl+branch+assert-seed SEED set testcase ntb random seed-vh set verbosity to UVM_HIGH-prof user defined option-wave_name WAVE_NAME set fsdb waveform name-pre_comp_option PRE_COMP_OPTIONprevious compile option-comp_option COMP_OPTIONcompile option-post_comp_option POST_COMP_OPTIONpost compile option-pre_sim_option PRE_SIM_OPTIONprevious sim option-sim_option SIM_OPTIONsim_option-post_sim_option POST_SIM_OPTIONpost sim option
Doc
%> python3 yasaTop.py -doc
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
