{"id":2006,"date":"2016-11-15T11:51:26","date_gmt":"2016-11-15T11:51:26","guid":{"rendered":"http:\/\/www.tina.com\/blog\/?p=2006"},"modified":"2020-06-05T13:55:10","modified_gmt":"2020-06-05T13:55:10","slug":"creating-macros-from-a-vhdl-code","status":"publish","type":"post","link":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/","title":{"rendered":"Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code"},"content":{"rendered":"<p>Creating Macros from a VHDL code<\/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=vw9K_adE9k4\"> <strong>tutorial video<\/strong><\/a><\/span><\/h6>\n<p>we will show how you can create a macro from a VHDL (.vhd) code and use \u00a0 \u00a0 in TINA. You can create macros from Verilog, 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=vw9K_adE9k4\"><strong>tutorial video\u00a0<\/strong><\/a><\/span>to\u00a0see how \u00a0you can create a macro from a VHDL (.vhd) code and use \u00a0 \u00a0 \u00a0 \u00a0 in TINA.<\/p>\n<p style=\"text-align: center;\">\u00a0<a href=\"https:\/\/www.youtube.com\/watch?v=vw9K_adE9k4\"><img decoding=\"async\" class=\"alignnone wp-image-2009 size-full\" src=\"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png\" alt=\"usinghardwaredescriptionlanguagesintinapart1-voiceover-yt\" width=\"946\" height=\"531\" srcset=\"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png 946w, https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-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><a href=\"http:\/\/www.tina.com\/demo.php\" target=\"_blank\" rel=\"noopener\"><strong>Click\u00a0here\u00a0<\/strong><\/a>to download the FREE trial demo of TINA<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<p><strong><a href=\"http:\/\/www.tina.com\/\">www.tina.com<\/a><\/strong><\/p>\n<h6><strong><span style=\"color: #993366;\">You can also find below the script of the video:<\/span><\/strong><\/h6>\n<p style=\"text-align: center;\"><span style=\"color: #993366;\">Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code<\/span><\/p>\n<p><span style=\"color: #993366;\">Hardware Description Languages 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 VHDL code and use in TINA. You can create macros from Verilog, Verilog-A and Verilog-AMS files in a similar way.<\/span><\/p>\n<p><span style=\"color: #993366;\">You can create a macro from any .vhd , .v , .va, .vams file that contains an entity (interface to the outside world) with its architecture (description of the hardware).<\/span><\/p>\n<p><span style=\"color: #993366;\">The meaning of the file extensions is as follows:<\/span><\/p>\n<p><span style=\"color: #993366;\">Files with .vhd extension are VHDL files,<\/span><\/p>\n<p><span style=\"color: #993366;\">with .v extension are Verilog files,<\/span><\/p>\n<p><span style=\"color: #993366;\">With .va extension are Verilog-A files and<\/span><\/p>\n<p><span style=\"color: #993366;\">with .vams extension are Verilog-AMS files.<\/span><\/p>\n<p><span style=\"color: #993366;\">The ports declared in the interface part will automatically appear in the macro symbol (shape). By default, the input ports of the interface will appear on the left side of the generated macro shape and the output ports of the interface will appear on the right side, but by editing the generated macro you can change this arrangement.<\/span><\/p>\n<p><span style=\"color: #993366;\">For example consider the following VHDL interface:<\/span><\/p>\n<p><span style=\"color: #993366;\">ENTITY e_Half_add_entity IS PORT(<\/span><\/p>\n<p><span style=\"color: #993366;\">A : IN std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">S : OUT std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">C : OUT std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">B : IN std_logic );<\/span><\/p>\n<p><span style=\"color: #993366;\">END e_Half_add_entity;<\/span><\/p>\n<p><span style=\"color: #993366;\">In this case the A,B ports will appear on the left side<\/span><\/p>\n<p><span style=\"color: #993366;\">and the S,C ports will appear on the right side of the macro shape.<\/span><\/p>\n<p><span style=\"color: #993366;\">Now let&#8217;s see how to make a macro from the following VHDL code (a half adder):<\/span><\/p>\n<p><span style=\"color: #993366;\">LIBRARY ieee, tina;<\/span><\/p>\n<p><span style=\"color: #993366;\">use ieee.std_logic_1164.all;<\/span><\/p>\n<p><span style=\"color: #993366;\">use std.textio.all;<\/span><\/p>\n<p><span style=\"color: #993366;\">USE tina.primitives.all;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; entity section<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">ENTITY e_Half_add_entity IS PORT(<\/span><\/p>\n<p><span style=\"color: #993366;\">A : IN std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">S : OUT std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">C : OUT std_logic;<\/span><\/p>\n<p><span style=\"color: #993366;\">B : IN std_logic );<\/span><\/p>\n<p><span style=\"color: #993366;\">END e_Half_add_entity;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; architecture section<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">ARCHITECTURE a_Half_add_arch of e_Half_add_entity IS<\/span><\/p>\n<p><span style=\"color: #993366;\">constant delay : time := 20 ns;<\/span><\/p>\n<p><span style=\"color: #993366;\">BEGIN<\/span><\/p>\n<p><span style=\"color: #993366;\">S&lt; = (A xor B) after delay;<\/span><\/p>\n<p><span style=\"color: #993366;\">C&lt; = (A and B) after delay;<\/span><\/p>\n<p><span style=\"color: #993366;\">END a_Half_add_arch;<\/span><\/p>\n<p><span style=\"color: #993366;\">Note that the essential code of the half adder is 2 lines long only<\/span><\/p>\n<p><span style=\"color: #993366;\">Open TINA<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the Tools menu<\/span><\/p>\n<p><span style=\"color: #993366;\">Select New Macro Wizard<\/span><\/p>\n<p><span style=\"color: #993366;\">Type a name for the new macro<\/span><\/p>\n<p><span style=\"color: #993366;\">In our case: Half_adder_VHDL<\/span><\/p>\n<p><span style=\"color: #993366;\">Change the Settings from Current circuit to From file<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the Open icon<\/span><\/p>\n<p><span style=\"color: #993366;\">Change the file type to VHDL<\/span><\/p>\n<p><span style=\"color: #993366;\">From the TINA program folder<\/span><\/p>\n<p><span style=\"color: #993366;\">Select Examples<\/span><\/p>\n<p><span style=\"color: #993366;\">Open the VHDL folder<\/span><\/p>\n<p><span style=\"color: #993366;\">Select the Half_adder_VHDL.vhd file and press Open<\/span><\/p>\n<p><span style=\"color: #993366;\">Press the Next button to save the macro and save the macro into the default Macrolib folder.<\/span><\/p>\n<p><span style=\"color: #993366;\">You can insert the Macro by pressing the Insert button or you can select the &#8220;Insert\/Macro&#8221; from the menu.<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the Insert button<\/span><\/p>\n<p><span style=\"color: #993366;\">To see the content of the macro double-click on it and press the Enter\u00a0Macro button<\/span><\/p>\n<p><span style=\"color: #993366;\">The content of the macro appears<\/span><\/p>\n<p><span style=\"color: #993366;\">Let\u2019s test our newly created macro in TINA\u2019s Digital interactive mode.<\/span><\/p>\n<p><span style=\"color: #993366;\">To do this, place two High-Low digital switches from the Switches toolbar, one for each of the A,B inputs, and two logic indicators.<\/span><\/p>\n<p><span style=\"color: #993366;\">Now 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;\">then press the\u00a0 Dig\u00a0\u00a0 button<\/span><\/p>\n<p><span style=\"color: #993366;\">The logic levels of the nodes appears, Red for High. Blue for Low.<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the switches to change the input states.<\/span><\/p>\n<p><span style=\"color: #993366;\">The logic indicators will also show the logic level of the outputs in a<\/span><\/p>\n<p><span style=\"color: #993366;\">Red square for High, and empty square for Low.<\/span><\/p>\n<p><span style=\"color: #993366;\">The Half adder circuit works as required.<\/span><\/p>\n<p><span style=\"color: #993366;\">In our example so far the terminals or pins of the macro were placed automatically.<\/span><\/p>\n<p><span style=\"color: #993366;\">You can change the automatic pin arrangement of an automatically generated macro by editing its header.<\/span><\/p>\n<p><span style=\"color: #993366;\">For example the header in the previous example is<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; TINA HDL Macro Description Begin<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; entity_name:e_half_add_entity;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; arch_name:ignored;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; ports:a,b;s,c;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; Mode:VHDLTyp;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212; TINA HDL Macro Description End<\/span><\/p>\n<p><span style=\"color: #993366;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/p>\n<p><span style=\"color: #993366;\">The pin arrangement is determined by the following line:<\/span><\/p>\n<p><span style=\"color: #993366;\">ports:A,B;S,C;<\/span><\/p>\n<p><span style=\"color: #993366;\">the ports before the first semicolon (;) are placed on the left while the rest are<\/span><\/p>\n<p><span style=\"color: #993366;\">placed on the right side of the macro box.<\/span><\/p>\n<p><span style=\"color: #993366;\">If you change the port line to Ports as follows:<\/span><\/p>\n<p><span style=\"color: #993366;\">A,B,S;C<\/span><\/p>\n<p><span style=\"color: #993366;\">A, B, S will be placed on the left side and C on the right side of the macro box.<\/span><\/p>\n<p><span style=\"color: #993366;\">You can also change the vertical order of the pins by changing the order of the pins in the list.<\/span><\/p>\n<p><span style=\"color: #993366;\">Let&#8217;s see how to convert the previous Macro:<\/span><\/p>\n<p><span style=\"color: #993366;\">Half_adder_VHDL into a new Macro called: Half_adder_VHDL_modified<\/span><\/p>\n<p><span style=\"color: #993366;\">Double-click the macro and press the Enter Macro button<\/span><\/p>\n<p><span style=\"color: #993366;\">Let&#8217;s change the ports line to as follows:<\/span><\/p>\n<p><span style=\"color: #993366;\">ports:A,B,S;C;<\/span><\/p>\n<p><span style=\"color: #993366;\">Select File<\/span><\/p>\n<p><span style=\"color: #993366;\">Select Save as<\/span><\/p>\n<p><span style=\"color: #993366;\">Save the modified code. We will save it under the name: Half_adder_VHDL_modified.vhd<\/span><\/p>\n<p><span style=\"color: #993366;\">Close the TINA HDL Editor<\/span><\/p>\n<p><span style=\"color: #993366;\">In the pop-up window the following message appears:<\/span><\/p>\n<p><span style=\"color: #993366;\">Macro has been modified. Confirm changes?<\/span><\/p>\n<p><span style=\"color: #993366;\">Click No<\/span><\/p>\n<p><span style=\"color: #993366;\">Let&#8217;s create a new macro with the modified pin arrangement<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the Tools menu<\/span><\/p>\n<p><span style=\"color: #993366;\">Select New Macro Wizard Enter the name of the new macro:In our case: Half_adder_VHDL_modified<\/span><\/p>\n<p><span style=\"color: #993366;\">Change the Settings from Current circuit to From file<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the\u00a0 Open icon<\/span><\/p>\n<p><span style=\"color: #993366;\">Invoke the place where your newly created macro is saved. In our case the Downloads folder<\/span><\/p>\n<p><span style=\"color: #993366;\">Change the file type to VHDL<\/span><\/p>\n<p><span style=\"color: #993366;\">Select the Half_adder_VHDL_modified file, then click Open<\/span><\/p>\n<p><span style=\"color: #993366;\">Press the Next button to save the macro,<\/span><\/p>\n<p><span style=\"color: #993366;\">and save the .TSM file into the default Macrolib folder.<\/span><\/p>\n<p><span style=\"color: #993366;\">Click the Insert button<\/span><\/p>\n<p><span style=\"color: #993366;\">The modified macro with the revised pinout version will be attached to your cursor and you can place it anywhere on the workspace<\/span><\/p>\n<p><span style=\"color: #993366;\">By double-clicking the modified Macro, then pressing the Enter Macro button you can see the content of the macro with the revised pin arrangement<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Macros from a VHDL code 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 VHDL (.vhd) code and use \u00a0 \u00a0 in TINA. You can create macros from Verilog, Verilog-A and Verilog-AMS files in &hellip; <a href=\"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code&#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-2006","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 a VHDL code<\/title>\n<meta name=\"description\" content=\"Using Hardware Description Languages in TINA, part 1: Creating Macros from a VHDL code. In this tutorial video we will show how you can create a macro from a VHDL code and use in TINA.\" \/>\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-a-vhdl-code\/\" \/>\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 1: Creating Macros from a VHDL code\" \/>\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 VHDL (.vhd) code and use in TINA.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/\" \/>\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-15T11:51:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-05T13:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-FB.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"263\" \/>\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=\"6 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-a-vhdl-code\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/\"},\"author\":{\"name\":\"Michael Koltai\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#\\\/schema\\\/person\\\/bb1f5800a993ca0eadc86a47d55cfae7\"},\"headline\":\"Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code\",\"datePublished\":\"2016-11-15T11:51:26+00:00\",\"dateModified\":\"2020-06-05T13:55:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/\"},\"wordCount\":1165,\"publisher\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png\",\"articleSection\":[\"Using Hardware Description Languages in TINA\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/\",\"url\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/\",\"name\":\"Creating Macros from a VHDL code\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png\",\"datePublished\":\"2016-11-15T11:51:26+00:00\",\"dateModified\":\"2020-06-05T13:55:10+00:00\",\"description\":\"Using Hardware Description Languages in TINA, part 1: Creating Macros from a VHDL code. In this tutorial video we will show how you can create a macro from a VHDL code and use in TINA.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png\",\"contentUrl\":\"http:\\\/\\\/www.tina.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tina.com\\\/blog\\\/creating-macros-from-a-vhdl-code\\\/#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 1: Creating Macros from a VHDL code\"}]},{\"@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 a VHDL code","description":"Using Hardware Description Languages in TINA, part 1: Creating Macros from a VHDL code. In this tutorial video we will show how you can create a macro from a VHDL code and use in TINA.","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-a-vhdl-code\/","og_locale":"en_US","og_type":"article","og_title":"Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code","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 VHDL (.vhd) code and use in TINA.","og_url":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/","og_site_name":"The Circuit Design Blog","article_publisher":"https:\/\/www.facebook.com\/tinadesignsuite\/","article_published_time":"2016-11-15T11:51:26+00:00","article_modified_time":"2020-06-05T13:55:10+00:00","og_image":[{"width":470,"height":263,"url":"https:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-FB.png","type":"image\/png"}],"author":"Michael Koltai","twitter_misc":{"Written by":"Michael Koltai","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#article","isPartOf":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/"},"author":{"name":"Michael Koltai","@id":"https:\/\/www.tina.com\/blog\/#\/schema\/person\/bb1f5800a993ca0eadc86a47d55cfae7"},"headline":"Using Hardware Description Languages in TINA, Part 1: Creating Macros from a VHDL code","datePublished":"2016-11-15T11:51:26+00:00","dateModified":"2020-06-05T13:55:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/"},"wordCount":1165,"publisher":{"@id":"https:\/\/www.tina.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#primaryimage"},"thumbnailUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png","articleSection":["Using Hardware Description Languages in TINA"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/","url":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/","name":"Creating Macros from a VHDL code","isPartOf":{"@id":"https:\/\/www.tina.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#primaryimage"},"image":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#primaryimage"},"thumbnailUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png","datePublished":"2016-11-15T11:51:26+00:00","dateModified":"2020-06-05T13:55:10+00:00","description":"Using Hardware Description Languages in TINA, part 1: Creating Macros from a VHDL code. In this tutorial video we will show how you can create a macro from a VHDL code and use in TINA.","breadcrumb":{"@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#primaryimage","url":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png","contentUrl":"http:\/\/www.tina.com\/blog\/wp-content\/uploads\/2016\/11\/UsinghardwaredescriptionlanguagesinTINApart1-voiceover-YT.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tina.com\/blog\/creating-macros-from-a-vhdl-code\/#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 1: Creating Macros from a VHDL code"}]},{"@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\/2006","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=2006"}],"version-history":[{"count":7,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":3046,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions\/3046"}],"wp:attachment":[{"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/media?parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/categories?post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tina.com\/blog\/wp-json\/wp\/v2\/tags?post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}