{"action":"created","issue":{"url":"https://api.github.com/repos/VUnit/vunit/issues/328","repository_url":"https://api.github.com/repos/VUnit/vunit","labels_url":"https://api.github.com/repos/VUnit/vunit/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/VUnit/vunit/issues/328/comments","events_url":"https://api.github.com/repos/VUnit/vunit/issues/328/events","html_url":"https://github.com/VUnit/vunit/issues/328","id":316344331,"number":328,"title":"UVM support: allow SV testbenches to specify tests in different approaches","user":{"login":"krishnan-gopal","id":35524929,"avatar_url":"https://avatars3.githubusercontent.com/u/35524929?v=4","gravatar_id":"","url":"https://api.github.com/users/krishnan-gopal","html_url":"https://github.com/krishnan-gopal","followers_url":"https://api.github.com/users/krishnan-gopal/followers","following_url":"https://api.github.com/users/krishnan-gopal/following{/other_user}","gists_url":"https://api.github.com/users/krishnan-gopal/gists{/gist_id}","starred_url":"https://api.github.com/users/krishnan-gopal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishnan-gopal/subscriptions","organizations_url":"https://api.github.com/users/krishnan-gopal/orgs","repos_url":"https://api.github.com/users/krishnan-gopal/repos","events_url":"https://api.github.com/users/krishnan-gopal/events{/privacy}","received_events_url":"https://api.github.com/users/krishnan-gopal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2018-04-20T17:06:10Z","updated_at":"2018-05-09T13:00:00Z","closed_at":null,"author_association":"NONE","body":"UVM testbenches are widely used for verification, and Vunit could be used as a flow-controller for such methodologies, if some adaptations are made.\r\n\r\nUVM testbenches have a top-level SystemVerilog module which has a slightly different style than a Vunit-based SystemVerilog testbench. Nevertheless, it would be nice to add the support for this style either using SystemVerilog or Python-based adaptations.\r\nHere are the differences:\r\n\r\n- The toplevel module which is passed to the simulator command calls a run_test (from the UVM base), which dynamically creates the class-based testbench hierarchy. The argument for this function is specified at run-time using the simulator argument +UVM_TESTNAME=<testcase>. Testcases/testsuites are not declared within the top-module in the SystemVerilog world.\r\n- Constrained-randomization based testbenches require a seed value to be passed from the simulation command-line at run-time. This cannot be specified within the SystemVerilog/HDL code, and therefore need to come from the Python world\r\n- The simulation stop command is issued by a $finish task deep in the UVM base-classes. So, a testcase run actually ends the simulation without returning control back to the Vunit runner. Therefore, the Vunit runner assumes that the test simulation just stopped unexpectedly\r\n- UVM has its own messaging/logging/verbosity. A pass/fail test result is decided by parsing the UVM_ERROR and UVM_FATAL messages within the simulation transcript/log\r\n- a test-suite description contains the testcase name, along with the number of random seeds it has to be simulated with. The list of seeds may also be specified with fixed values. The testcase along with the seed can be seen as a test-configuration in Vunit terms. This would ideally be in the Python world (for example in a UVM TB specific run.py file). \r\n- UVM has an internal timeout mechanism, which triggers a UVM_ERROR message, and then exits the simulation. This timeout value can be either set in the testbench code, or using the simulation command-line option +UVM_TIMEOUT=<>/. This should be supported by all simulators. It allows the user to extend the timeout for specific tests which may run longer than a default timeout. \r\n- the UVM messaging mechanism also comes its own verbosity handling. All messages of type UVM_INFO are affected by the verbosity level set for that particular message or that scope. The verbosity level is specified by the simulation command-line option +UVM_VERBOSITY=<>. All messages of type UVM_WARNING, UVM_ERROR and UVM_FATAL are displayed regardless of the verbosity level."},"comment":{"url":"https://api.github.com/repos/VUnit/vunit/issues/comments/387730168","html_url":"https://github.com/VUnit/vunit/issues/328#issuecomment-387730168","issue_url":"https://api.github.com/repos/VUnit/vunit/issues/328","id":387730168,"user":{"login":"LarsAsplund","id":6681689,"avatar_url":"https://avatars3.githubusercontent.com/u/6681689?v=4","gravatar_id":"","url":"https://api.github.com/users/LarsAsplund","html_url":"https://github.com/LarsAsplund","followers_url":"https://api.github.com/users/LarsAsplund/followers","following_url":"https://api.github.com/users/LarsAsplund/following{/other_user}","gists_url":"https://api.github.com/users/LarsAsplund/gists{/gist_id}","starred_url":"https://api.github.com/users/LarsAsplund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarsAsplund/subscriptions","organizations_url":"https://api.github.com/users/LarsAsplund/orgs","repos_url":"https://api.github.com/users/LarsAsplund/repos","events_url":"https://api.github.com/users/LarsAsplund/events{/privacy}","received_events_url":"https://api.github.com/users/LarsAsplund/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T13:00:00Z","updated_at":"2018-05-09T13:00:00Z","author_association":"COLLABORATOR","body":"@krishnan-gopal That was a bit of quick fix to get forward. However, the ability to run a test suite without test cases is a change that we need."}}
{"actor":{"display_login":"LarsAsplund"}}