223 lines
13 KiB
HTML
223 lines
13 KiB
HTML
<!DOCTYPE html>
|
||
<html class="writer-html5" lang="en" >
|
||
<head>
|
||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>Cologne Chip notes — openFPGALoader: universal utility for programming FPGA latest documentation</title>
|
||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||
<!--[if lt IE 9]>
|
||
<script src="../_static/js/html5shiv.min.js"></script>
|
||
<![endif]-->
|
||
|
||
<script src="../_static/documentation_options.js?v=c6e86fd7"></script>
|
||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||
<script src="../_static/js/theme.js"></script>
|
||
<link rel="index" title="Index" href="../genindex.html" />
|
||
<link rel="search" title="Search" href="../search.html" />
|
||
<link rel="next" title="Efinix notes" href="efinix.html" />
|
||
<link rel="prev" title="Anlogic notes" href="anlogic.html" />
|
||
</head>
|
||
|
||
<body class="wy-body-for-nav">
|
||
<div class="wy-grid-for-nav">
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||
<div class="wy-side-scroll">
|
||
<div class="wy-side-nav-search" >
|
||
<a href="../index.html" class="icon icon-home"> openFPGALoader: universal utility for programming FPGA
|
||
</a>
|
||
<div class="version">
|
||
latest
|
||
</div>
|
||
<div role="search">
|
||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||
<input type="text" name="q" placeholder="Search docs" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
</div>
|
||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
||
<p class="caption" role="heading"><span class="caption-text">User Guide</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../guide/first-steps.html">First steps with openFPGALoader</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../guide/install.html">Installing openFPGALoader</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../guide/troubleshooting.html">Troubleshooting</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../guide/advanced.html">Advanced usage of openFPGALoader</a></li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Compatibility</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../compatibility/fpga.html">FPGAs</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../compatibility/board.html">Boards</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="../compatibility/cable.html">Cables</a></li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Vendors</span></p>
|
||
<ul class="current">
|
||
<li class="toctree-l1"><a class="reference internal" href="anlogic.html">Anlogic notes</a></li>
|
||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Cologne Chip notes</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="#supported-boards-cables">Supported Boards/Cables</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#programming-modes">Programming Modes</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="#jtag-configuration">JTAG Configuration</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="#spi-configuration">SPI Configuration</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="#jtag-flash-access">JTAG Flash Access</a></li>
|
||
<li class="toctree-l3"><a class="reference internal" href="#spi-flash-access">SPI Flash Access</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="efinix.html">Efinix notes</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="gowin.html">Gowin notes</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="intel.html">Intel notes</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="lattice.html">Lattice notes</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="xilinx.html">Xilinx notes</a></li>
|
||
</ul>
|
||
<p class="caption" role="heading"><span class="caption-text">Development</span></p>
|
||
<ul>
|
||
<li class="toctree-l1"><a class="reference internal" href="../todo.html">To Do</a></li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||
<a href="../index.html">openFPGALoader: universal utility for programming FPGA</a>
|
||
</nav>
|
||
|
||
<div class="wy-nav-content">
|
||
<div class="rst-content">
|
||
|
||
|
||
<div role="navigation" aria-label="Page navigation">
|
||
<ul class="wy-breadcrumbs">
|
||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||
<li>Cologne Chip notes</li>
|
||
<li class="wy-breadcrumbs-aside">
|
||
<a href="https://github.com/trabucayre/openFPGALoader/blob/master/doc/vendors/colognechip.rst" class="fa fa-github"> Edit on GitHub</a>
|
||
</li>
|
||
</ul>
|
||
<hr/>
|
||
</div>
|
||
|
||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||
<div itemprop="articleBody">
|
||
|
||
<section id="cologne-chip-notes">
|
||
<span id="colognechip"></span><h1>Cologne Chip notes<a class="headerlink" href="#cologne-chip-notes" title="Link to this heading">¶</a></h1>
|
||
<section id="supported-boards-cables">
|
||
<h2>Supported Boards/Cables<a class="headerlink" href="#supported-boards-cables" title="Link to this heading">¶</a></h2>
|
||
<ul class="simple">
|
||
<li><p>GateMate Evaluation Board using board parameters <code class="docutils literal notranslate"><span class="pre">-b</span> <span class="pre">gatemate_evb_jtag</span></code> or <code class="docutils literal notranslate"><span class="pre">-b</span> <span class="pre">gatemate_evb_spi</span></code></p></li>
|
||
<li><p>GateMate Programmer using cable parameter <code class="docutils literal notranslate"><span class="pre">-c</span> <span class="pre">gatemate_pgm</span></code></p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="programming-modes">
|
||
<h2>Programming Modes<a class="headerlink" href="#programming-modes" title="Link to this heading">¶</a></h2>
|
||
<p>Supported configuration files are bitfiles <code class="docutils literal notranslate"><span class="pre">*.bit</span></code> and it’s ASCII equivalents <code class="docutils literal notranslate"><span class="pre">*.cfg</span></code>.</p>
|
||
<section id="jtag-configuration">
|
||
<h3>JTAG Configuration<a class="headerlink" href="#jtag-configuration" title="Link to this heading">¶</a></h3>
|
||
<p>Performs an active hardware reset and writes the configuration into the FPGA latches via JTAG. The configuration mode pins <code class="docutils literal notranslate"><span class="pre">CFG_MD[3:0]</span></code> must be set to 0xC (JTAG).</p>
|
||
<ol class="arabic simple">
|
||
<li><p>Program using Evaluation Board:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_jtag<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<ol class="arabic simple" start="2">
|
||
<li><p>Program using Programmer Cable:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-c<span class="w"> </span>gatemate_pgm<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
<section id="spi-configuration">
|
||
<h3>SPI Configuration<a class="headerlink" href="#spi-configuration" title="Link to this heading">¶</a></h3>
|
||
<p>Performs an active hardware reset and writes the configuration into the FPGA latches via SPI. The configuration mode pins <code class="docutils literal notranslate"><span class="pre">CFG_MD[3:0]</span></code> must be set to 0x4 (SPI passive).</p>
|
||
<ol class="arabic simple">
|
||
<li><p>Program using Evaluation Board:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_spi<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<ol class="arabic simple" start="2">
|
||
<li><p>Program using Programmer Cable:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_pgm_spi<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
<section id="jtag-flash-access">
|
||
<h3>JTAG Flash Access<a class="headerlink" href="#jtag-flash-access" title="Link to this heading">¶</a></h3>
|
||
<p>It is possible to access external flashes via the internal JTAG-SPI-bypass. The configuration mode pins <code class="docutils literal notranslate"><span class="pre">CFG_MD[3:0]</span></code> must be set to 0xC (JTAG). Note that the FPGA will not start automatically.</p>
|
||
<ol class="arabic simple">
|
||
<li><p>Write to flash using Evaluation Board:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_jtag<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<ol class="arabic simple" start="2">
|
||
<li><p>Write to flash using Programmer Cable:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-c<span class="w"> </span>gatemate_pgm<span class="w"> </span>-f<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<p>The <cite>offset</cite> parameter can be used to store data at any point in the flash, e.g.:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_jtag<span class="w"> </span>-o<span class="w"> </span><offset><span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
<section id="spi-flash-access">
|
||
<h3>SPI Flash Access<a class="headerlink" href="#spi-flash-access" title="Link to this heading">¶</a></h3>
|
||
<p>If the programming device and FPGA share the same SPI signals, it is possible to hold the FPGA in reset and write data to the flash. The configuration mode can be set as desired. If the FPGA should start from the external memory after reset, the configuration mode pins <code class="docutils literal notranslate"><span class="pre">CFG_MD[3:0]</span></code> set to 0x0 (SPI active).</p>
|
||
<ol class="arabic simple">
|
||
<li><p>Write to flash using Evaluation Board:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_spi<span class="w"> </span>-f<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<ol class="arabic simple" start="2">
|
||
<li><p>Write to flash using Programmer Cable:</p></li>
|
||
</ol>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_pgm_spi<span class="w"> </span>-f<span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
<p>The <cite>offset</cite> parameter can be used to store data at any point in the flash, e.g.:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>openFPGALoader<span class="w"> </span>-b<span class="w"> </span>gatemate_evb_spi<span class="w"> </span>-o<span class="w"> </span><offset><span class="w"> </span><bitfile>.cfg.bit
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
</section>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||
<a href="anlogic.html" class="btn btn-neutral float-left" title="Anlogic notes" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||
<a href="efinix.html" class="btn btn-neutral float-right" title="Efinix notes" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||
</div>
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>© Copyright 2019-2022, Gwenhael Goavec-Merou and contributors.</p>
|
||
</div>Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a
|
||
<a href="https://github.com/buildthedocs/sphinx.theme">theme</a>
|
||
provided by <a href="https://buildthedocs.github.io">Build the Docs</a>.
|
||
|
||
|
||
</footer>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
<script>
|
||
jQuery(function () {
|
||
SphinxRtdTheme.Navigation.enable(true);
|
||
});
|
||
</script>
|
||
|
||
</body>
|
||
</html> |