{"action":"closed","issue":{"url":"https://api.github.com/repos/LarsAsplund/vunit/issues/86","labels_url":"https://api.github.com/repos/LarsAsplund/vunit/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/LarsAsplund/vunit/issues/86/comments","events_url":"https://api.github.com/repos/LarsAsplund/vunit/issues/86/events","html_url":"https://github.com/LarsAsplund/vunit/issues/86","id":117524955,"number":86,"title":"Is is possible to set generics of type \"TIME\"?","user":{"login":"gunnarstjernberg","id":12126131,"avatar_url":"https://avatars.githubusercontent.com/u/12126131?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarstjernberg","html_url":"https://github.com/gunnarstjernberg","followers_url":"https://api.github.com/users/gunnarstjernberg/followers","following_url":"https://api.github.com/users/gunnarstjernberg/following{/other_user}","gists_url":"https://api.github.com/users/gunnarstjernberg/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarstjernberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarstjernberg/subscriptions","organizations_url":"https://api.github.com/users/gunnarstjernberg/orgs","repos_url":"https://api.github.com/users/gunnarstjernberg/repos","events_url":"https://api.github.com/users/gunnarstjernberg/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarstjernberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T06:44:02Z","updated_at":"2015-11-21T12:15:56Z","closed_at":"2015-11-21T12:15:56Z","body":"If I use a generic of type TIME in my testbench, it seems I cannot alter the value of said generic from the python script.\r\n\r\nExample:\r\n\r\nDefintiion at the TB top level design\r\ng_clk_axi                         : TIME   := 4 ns; \r\n\r\nThe python script statement:\r\ntc_debug_0.set_generic(\"g_clk_axi\", \"4ns\")\r\n\r\nvsim message:\r\n# ** Warning: (vsim-3351) Invalid value \"\"4ns\"\" for generic \"g_clk_axi\".  Not using this value.\r\n\r\nThe normal vsim use would be -gg_clk_axi=4ns but as vuint parses the above to -gg_clk_axi=\"4ns\" it does not work.\r\n\r\nIs tere any other way of controlling the TIME generic?\r\n\r\n\r\n"}}