
{"id":694,"date":"2019-03-25T09:17:19","date_gmt":"2019-03-25T09:17:19","guid":{"rendered":"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/?p=694"},"modified":"2019-03-25T09:18:18","modified_gmt":"2019-03-25T09:18:18","slug":"setting-up-quartus-to-run-modelsim","status":"publish","type":"post","link":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/2019\/03\/25\/setting-up-quartus-to-run-modelsim\/","title":{"rendered":"Setting up Quartus to run ModelSim"},"content":{"rendered":"<p>Quartus uses ModelSim (Altera Edition) to perform simulation. ModelSim is even used for Vector Waveform files. ModelSim and Quartus are two entirely separate applications that loosely communicate with each other.<\/p>\n<p>You typically invoke ModelSim from Quartus via the Tools -&gt; Run Simulation Tool -&gt; RTL Simulation menu<\/p>\n<figure id=\"attachment_696\" aria-describedby=\"caption-attachment-696\" style=\"width: 484px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-696\" src=\"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusFunctionalSim.jpg\" alt=\"\" width=\"484\" height=\"198\" srcset=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusFunctionalSim.jpg 484w, https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusFunctionalSim-300x123.jpg 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><figcaption id=\"caption-attachment-696\" class=\"wp-caption-text\">Invoking ModelSim from within Quartus<\/figcaption><\/figure>\n<p>However, if you&#8217;ve every tried to run ModelSim without having set it up, you might have encountered the following error:<\/p>\n<figure id=\"attachment_695\" aria-describedby=\"caption-attachment-695\" style=\"width: 501px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-695\" src=\"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusError.jpg\" alt=\"\" width=\"501\" height=\"141\" srcset=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusError.jpg 501w, https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusError-300x84.jpg 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><figcaption id=\"caption-attachment-695\" class=\"wp-caption-text\">Error Dialog when trying to run ModelSim from Quartus<\/figcaption><\/figure>\n<p>This is indicating that Quartus does not know which version of ModelSim to run and where it resides on your disk. I am assuming you are using ModelSim ASE (Altera Starter Edition). There is also a licensed version that is not free.<\/p>\n<div class=\"mceTemp\"><\/div>\n<p>The good news is that to resolve this is a one-off task. Open the Quartus Options dialog box by selecting the Tools -&gt; Options menu<\/p>\n<figure id=\"attachment_697\" aria-describedby=\"caption-attachment-697\" style=\"width: 286px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-697\" src=\"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusToolsOptions.jpg\" alt=\"\" width=\"286\" height=\"729\" srcset=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusToolsOptions.jpg 286w, https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusToolsOptions-118x300.jpg 118w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><figcaption id=\"caption-attachment-697\" class=\"wp-caption-text\">Accessing the Options Dialog<\/figcaption><\/figure>\n<p>You should now see a dialog box similar to that below. Expand the general category and click <strong>EDA Tool Options<\/strong>.<\/p>\n<figure id=\"attachment_698\" aria-describedby=\"caption-attachment-698\" style=\"width: 763px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-698\" src=\"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusOptionsDialog.jpg\" alt=\"\" width=\"763\" height=\"750\" srcset=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusOptionsDialog.jpg 763w, https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusOptionsDialog-300x295.jpg 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><figcaption id=\"caption-attachment-698\" class=\"wp-caption-text\">Quartus Options Dialog<\/figcaption><\/figure>\n<p>In the Model-Sim Altera box, you need to add the path to the folder that contains ModelSim ASE. For Windows, the location of this is:<\/p>\n<blockquote><p>[Quartus Root Folder]\\modelsim_ase\\win32aloem<\/p><\/blockquote>\n<p>Examples:<\/p>\n<ul>\n<li>For my machine, it is\u00a0<code>C:\\intelFPGA\\16.1\\modelsim_ase\\win32aloem<\/code><\/li>\n<li>For the lite version of Quartus, it is probably <code>C:\\intelFPGA_lite\\16.1\\modelsim_ase\\win32aloem<\/code><\/li>\n<\/ul>\n<figure id=\"attachment_699\" aria-describedby=\"caption-attachment-699\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-699\" src=\"http:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusEDAToolOptions.jpg\" alt=\"\" width=\"500\" height=\"301\" srcset=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusEDAToolOptions.jpg 500w, https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-content\/uploads\/sites\/94\/2019\/03\/QuartusEDAToolOptions-300x181.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption id=\"caption-attachment-699\" class=\"wp-caption-text\">My own EDA Tools Options &#8211; yours may vary<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>You should not be able to launch ModelSim from within Quartus and use vector waveforms.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quartus uses ModelSim (Altera Edition) to perform simulation. ModelSim is even used for Vector Waveform files. ModelSim and Quartus are two entirely separate applications that loosely communicate with each other. You typically invoke ModelSim from Quartus via the Tools -&gt; Run Simulation Tool -&gt; RTL Simulation menu However, if you&#8217;ve every tried to run ModelSim&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/2019\/03\/25\/setting-up-quartus-to-run-modelsim\/\">Continue reading <span class=\"screen-reader-text\">Setting up Quartus to run ModelSim<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-694","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/posts\/694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/comments?post=694"}],"version-history":[{"count":2,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/posts\/694\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/posts\/694\/revisions\/701"}],"wp:attachment":[{"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/media?parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/categories?post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.plymouth.ac.uk\/embedded-systems\/wp-json\/wp\/v2\/tags?post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}