{"id":2014,"date":"2016-11-23T10:27:33","date_gmt":"2016-11-23T10:27:33","guid":{"rendered":"http:\/\/www.tina.com\/blog\/?p=2014"},"modified":"2020-06-05T13:55:04","modified_gmt":"2020-06-05T13:55:04","slug":"creating-macros-from-verilog","status":"publish","type":"post","link":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/","title":{"rendered":"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog"},"content":{"rendered":"<p>Creating Macros from Verilog<\/p>\n<p>Hardware Description Languages (HDL) are powerful tools to describe and simulate complex electronic devices.<\/p>\n<h6>In this <span style=\"color: #3366ff;\"><a style=\"color: #3366ff;\" href=\"https:\/\/www.youtube.com\/watch?v=OdoIMkl2_tI\"><strong>tutorial video<\/strong> <\/a><\/span><\/h6>\n<p>we will show how you can create a macro from a Verilog (.v) code and use \u00a0 \u00a0 \u00a0 in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way.<\/p>\n<p>Watch our\u00a0<span style=\"color: #3366ff;\"><a style=\"color: #3366ff;\" href=\"https:\/\/www.youtube.com\/watch?v=OdoIMkl2_tI\"><strong>tutorial video\u00a0<\/strong><\/a><\/span>to\u00a0see how \u00a0you can create a macro from a Verilog (.v) code\u00a0and use\u00a0 in TINA.<\/p>\n<p style=\"text-align: center;\">\u00a0<a href=\"https:\/\/www.youtube.com\/watch?v=OdoIMkl2_tI\"><img decoding=\"async\" class=\"alignnone wp-image-2017 size-full\" src=\"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png\" alt=\"usinghardwaredescriptionlanguagesintinapart2-voiceover-yt\" width=\"948\" height=\"531\" srcset=\"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png 948w, https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT-300x168.png 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>Download the FREE trial demo of TINA Design Suite and\u00a0get:<\/p>\n<ol>\n<li>One year free access to TINACloud (the cloud-based, multi-language, installation-free online version of TINA now running in your browser anywhere in the world.)<\/li>\n<li>An immediate 20% discount from the offline version of TINA<\/li>\n<li>Free license for your second computer, laptop etc.<\/li>\n<\/ol>\n<div>\n<div><span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.tina.com\/demo.php\" target=\"_blank\" rel=\"noopener\"><strong><span style=\"color: #3366ff; text-decoration: underline;\">Click\u00a0here<\/span>\u00a0<\/strong><\/a><\/span>to download the FREE trial demo of TINA.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><strong><a style=\"color: #3366ff;\" href=\"http:\/\/www.tina.com\/\">www.tina.com<\/a><\/strong><\/span><\/p>\n<\/div>\n<h6><span style=\"color: #993366;\"><strong>You can also find below the script of the video:\u00a0<\/strong><\/span><\/h6>\n<p style=\"text-align: center;\"><span style=\"color: #993366;\">Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog<\/span><\/p>\n<p><span style=\"color: #993366;\"><span style=\"font-weight: 400;\">In this tutorial video we will show how you can create a macro from a<\/span> <span style=\"font-weight: 400;\">Verilog (.v) code and use in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way.<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">For example consider the following Verilog interface:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">module half_add (A, B, S, C); \u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">input A, B; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">output S, C; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">In this case the A,B ports will appear on the left side and the S,C ports will appear on the right side of the macro shape.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Let&#8217;s see how to make a macro from the following Verilog code (a half adder):<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">module half_add(A, B, S, C); \u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">input A, B; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">output S, C; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">assign S = A ^ B; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">assign C = A &amp; B; <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">endmodule<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Note that this Verilog code is much simpler than the equivalent VHDL code. This is one of the great advantages of Verilog.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The essential Verilog code of the half adder is 2 lines long only.<\/span><\/p>\n<h6><span style=\"font-weight: 400; color: #993366;\">Let&#8217;s demonstrate the details.<\/span><\/h6>\n<p><span style=\"font-weight: 400; color: #993366;\">Open TINA<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Tools menu<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select New Macro Wizard<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Type a name for the new macro In our case: Half adder Verilog<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Change the Settings from Current circuit to From file <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Open icon<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Change the file type to .v<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select TINA examples<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select Examples<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Verilog folder<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click Open<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select the Half adder Verilog.v file and press Open<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Press the Next button to save the macro,<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">and save the macro into the default Macrolib folder.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Now you can insert the Macro by pressing the Insert button or you can select the &#8220;Insert\/Macro&#8230;&#8221; from the menu.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Insert button<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The macro will be attached to your cursor. Place it wherever you wish on the workspace.<\/span><\/p>\n<p><span style=\"color: #993366;\"><span style=\"font-weight: 400;\">To see the content of the macro double-click on it and press the <\/span><span style=\"font-weight: 400;\">Enter Macro button<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The content of the macro appears.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Close the TINA HDL Editor window<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Let\u2019s test our newly created macro in TINA\u2019s Digital interactive mode along with the previously created VHDL macro<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">(See Using Hardware Description languages in TINA, part 1)<\/span><\/p>\n<h6><span style=\"font-weight: 400; color: #993366;\">Let&#8217;s open our previously created Half_ Adder VHDL macro.TSC circuit.<\/span><\/h6>\n<p><span style=\"font-weight: 400; color: #993366;\">Here is the circuit with two High-Low digital switches, one for each of the A,B inputs, and two logic indicators. We will copy the circuit, then we will change the macro into the Half adder Verilog macro<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">To select the circuit click at the corner of the area to be selected, hold down the left mouse button then move the mouse and release the left mouse button at the opposite corner. <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Copy then the Paste button on the toolbar. Your circuit will be attached to your cursor. \u00a0Position it by moving the mouse to the required position and press the left mouse button.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Deselect the circuit by clicking an empty spot.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Half adder VHDL macro to be selected then delete it by pressing the Del key on the keyboard.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Click the Insert menu<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select Macro <\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select User Macros<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Select the Half adder Verilog.TSM, then click Open<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The Verilog macro will be attached to your cursor, you can move and insert it into the place of the deleted VHDL macro.<\/span><\/p>\n<h6><span style=\"font-weight: 400; color: #993366;\">Let&#8217;s test the 2 circuits<\/span><\/h6>\n<p><span style=\"color: #993366;\">Select the Digital interactive mode with the narrow &#8220;Select Interactive mode&#8221; button on the Toolbar<\/span><\/p>\n<p><span style=\"color: #993366;\">Press the Dig \u00a0button<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The logic levels of the nodes appear, Red for High. Blue for Low.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">The logic indicators will also show the logic level of the outputs in a Red square for High, and empty square for Low.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #993366;\">Both Half_adder circuits work as required.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Macros from Verilog Hardware Description Languages (HDL) are powerful tools to describe and simulate complex electronic devices. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use \u00a0 \u00a0 \u00a0 in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a &hellip; <a href=\"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[285],"tags":[],"class_list":["post-2014","post","type-post","status-publish","format-standard","hentry","category-using-hardware-description-languages-in-tina"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating Macros from Verilog<\/title>\n<meta name=\"description\" content=\"Creating Macros from Verilog. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way. For example consider the following Verilog interface:\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog, now with English voice-over\" \/>\n<meta property=\"og:description\" content=\"Hardware Description Languages (HDL) are powerful tools to describe and simulate complex electronic devices. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/\" \/>\n<meta property=\"og:site_name\" content=\"The Circuit Design Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tinadesignsuite\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-23T10:27:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-05T13:55:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-FB.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"262\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Michael Koltai\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Koltai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/\"},\"author\":{\"name\":\"Michael Koltai\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#\\\/schema\\\/person\\\/bb1f5800a993ca0eadc86a47d55cfae7\"},\"headline\":\"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog\",\"datePublished\":\"2016-11-23T10:27:33+00:00\",\"dateModified\":\"2020-06-05T13:55:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/\"},\"wordCount\":765,\"publisher\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png\",\"articleSection\":[\"Using Hardware Description Languages in TINA\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/\",\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/\",\"name\":\"Creating Macros from Verilog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png\",\"datePublished\":\"2016-11-23T10:27:33+00:00\",\"dateModified\":\"2020-06-05T13:55:04+00:00\",\"description\":\"Creating Macros from Verilog. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way. For example consider the following Verilog interface:\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png\",\"contentUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-verilog\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/\",\"name\":\"The Circuit Design Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#organization\",\"name\":\"The Circuit Design Blog\",\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cropped-TINA_logo8.png\",\"contentUrl\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cropped-TINA_logo8.png\",\"width\":240,\"height\":64,\"caption\":\"The Circuit Design Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/tinadesignsuite\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#\\\/schema\\\/person\\\/bb1f5800a993ca0eadc86a47d55cfae7\",\"name\":\"Michael Koltai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g\",\"caption\":\"Michael Koltai\"},\"sameAs\":[\"https:\\\/\\\/www.tina.com\"],\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/author\\\/michael\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating Macros from Verilog","description":"Creating Macros from Verilog. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way. For example consider the following Verilog interface:","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/","og_locale":"en_US","og_type":"article","og_title":"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog, now with English voice-over","og_description":"Hardware Description Languages (HDL) are powerful tools to describe and simulate complex electronic devices. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA.","og_url":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/","og_site_name":"The Circuit Design Blog","article_publisher":"https:\/\/www.facebook.com\/tinadesignsuite\/","article_published_time":"2016-11-23T10:27:33+00:00","article_modified_time":"2020-06-05T13:55:04+00:00","og_image":[{"width":470,"height":262,"url":"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-FB.png","type":"image\/png"}],"author":"Michael Koltai","twitter_misc":{"Written by":"Michael Koltai","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#article","isPartOf":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/"},"author":{"name":"Michael Koltai","@id":"https:\/\/www.tina.com\/blog\/#\/schema\/person\/bb1f5800a993ca0eadc86a47d55cfae7"},"headline":"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog","datePublished":"2016-11-23T10:27:33+00:00","dateModified":"2020-06-05T13:55:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/"},"wordCount":765,"publisher":{"@id":"https:\/\/www.tina.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#primaryimage"},"thumbnailUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png","articleSection":["Using Hardware Description Languages in TINA"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/","url":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/","name":"Creating Macros from Verilog","isPartOf":{"@id":"https:\/\/www.tina.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#primaryimage"},"image":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#primaryimage"},"thumbnailUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png","datePublished":"2016-11-23T10:27:33+00:00","dateModified":"2020-06-05T13:55:04+00:00","description":"Creating Macros from Verilog. In this tutorial video we will show how you can create a macro from a Verilog (.v) code and use in TINA. You can create macros from VHDL, Verilog-A and Verilog-AMS files in a similar way. For example consider the following Verilog interface:","breadcrumb":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#primaryimage","url":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png","contentUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart2-voiceover-YT.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-verilog\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tina.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Hardware Description Languages in TINA, Part 2: Creating Macros from Verilog"}]},{"@type":"WebSite","@id":"https:\/\/www.tina.com\/blog\/#website","url":"https:\/\/www.tina.com\/blog\/","name":"The Circuit Design Blog","description":"","publisher":{"@id":"https:\/\/www.tina.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tina.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tina.com\/blog\/#organization","name":"The Circuit Design Blog","url":"https:\/\/www.tina.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tina.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2018\/07\/cropped-TINA_logo8.png","contentUrl":"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2018\/07\/cropped-TINA_logo8.png","width":240,"height":64,"caption":"The Circuit Design Blog"},"image":{"@id":"https:\/\/www.tina.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tinadesignsuite\/"]},{"@type":"Person","@id":"https:\/\/www.tina.com\/blog\/#\/schema\/person\/bb1f5800a993ca0eadc86a47d55cfae7","name":"Michael Koltai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55ee279c69da09aa4b6d88bb27161d315e44c8687f8b45bde393391d2302673c?s=96&d=blank&r=g","caption":"Michael Koltai"},"sameAs":["https:\/\/www.tina.com"],"url":"https:\/\/www.tina.com\/blog\/author\/michael\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts\/2014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/comments?post=2014"}],"version-history":[{"count":13,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts\/2014\/revisions"}],"predecessor-version":[{"id":3054,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts\/2014\/revisions\/3054"}],"wp:attachment":[{"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/media?parent=2014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/categories?post=2014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/tags?post=2014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}