{"id":622,"date":"2013-08-06T18:28:36","date_gmt":"2013-08-06T18:28:36","guid":{"rendered":"http:\/\/retroramblings.net\/?p=622"},"modified":"2013-08-06T18:28:36","modified_gmt":"2013-08-06T18:28:36","slug":"learn-something-new-every-day","status":"publish","type":"post","link":"https:\/\/retroramblings.net\/?p=622","title":{"rendered":"Learn something new every day&#8230;"},"content":{"rendered":"<p>So while I&#8217;m experimenting with FPGA boards I generally upload a design into them at runtime via a USB-Blaster JTAG cable, and only rarely do I store a design permanently in a board&#8217;s configuration device.<\/p>\n<p>Some of the boards I use have two separate connectors for the USB Blaster &#8211; one for direct programming of the FPGA and the other for Active Serial programming of an EPCS series flash device.\u00a0 Others have an onboard microcontroller which handle configuration &#8211; and then there&#8217;s the Vampire 500 board.\u00a0 This has a single JTAG connector and an EPCS4 configuration device, but no immediately obvious means of programming the EPCS4.<!--more--><\/p>\n<p>With no direct access to the configuration device, programming has to be done from within the FPGA itself.\u00a0 It&#8217;s easy to find examples or descriptions of programming an EPCS with a NIOS II SoPC component, but as I discovered a short while ago,\u00a0<a href=\" http:\/\/fpga4u.epfl.ch\/wiki\/EPCS_Loader\">there are simpler methods<\/a>:<\/p>\n<p>(Copied-and-pasted here for convenience, and instructions changed to suit the Vampire board&#8230;)<\/p>\n<ul>\n<li>Open your Quartus project and compile it.<\/li>\n<li>Select &#8220;File&gt;Convert Programming Files&#8230;&#8221;.<\/li>\n<li>Select &#8220;JTAG Indirect Configuration File (.jic)&#8221; as type of programming file.<\/li>\n<li>Select &#8220;EPCS4&#8221; in the &#8220;Configuration Device&#8221; list.<\/li>\n<li>By default, it will generate a &#8220;output_file.jic&#8221; in your project folder. You can modify it in the &#8220;File name&#8221; field.<\/li>\n<li>In the bottom list, select &#8220;Flash Loader&#8221; and press on the &#8220;Add Device&#8230;&#8221; button on the right.\n<ul>\n<li>Select Cyclone II and EP2C8, and press &#8220;OK&#8221;.<\/li>\n<\/ul>\n<\/li>\n<li>Now select &#8220;Sof Data&#8221; and press on the &#8220;Add File&#8230;&#8221; button on the right.\n<ul>\n<li>Select the .sof file of your project and press &#8220;Open&#8221;.<\/li>\n<\/ul>\n<\/li>\n<li>Press on the &#8220;Generate&#8221; button.<\/li>\n<li>Now, open the Programmer (Tools&gt;Programmer).<\/li>\n<li>Select the generated .jic file instead of the .sof file.<\/li>\n<li>Tick &#8220;Program\/Configure&#8221; and press &#8220;Start&#8221;.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So while I&#8217;m experimenting with FPGA boards I generally upload a design into them at runtime via a USB-Blaster JTAG cable, and only rarely do I store a design permanently in a board&#8217;s configuration device. Some of the boards I &hellip; <a href=\"https:\/\/retroramblings.net\/?p=622\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[],"class_list":["post-622","post","type-post","status-publish","format-standard","hentry","category-fpga","category-hardware"],"_links":{"self":[{"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/posts\/622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/retroramblings.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=622"}],"version-history":[{"count":3,"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/posts\/622\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/retroramblings.net\/index.php?rest_route=\/wp\/v2\/posts\/622\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/retroramblings.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/retroramblings.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/retroramblings.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}