<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DetermRTL</title>
    <description>The latest articles on DEV Community by DetermRTL (@determrtl).</description>
    <link>https://dev.to/determrtl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4254707%2Fc22a2705-e43f-4a57-99d7-918eb237c4a4.jpeg</url>
      <title>DEV Community: DetermRTL</title>
      <link>https://dev.to/determrtl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/determrtl"/>
    <language>en</language>
    <item>
      <title>Achieving 52.47 Gbps Post-P&amp;R with Zero BRAMs on Lattice ECP5 using Open-Source EDA (Yosys/nextpnr) and Formal Verification</title>
      <dc:creator>DetermRTL</dc:creator>
      <pubDate>Fri, 20 Nov 2026 02:24:23 +0000</pubDate>
      <link>https://dev.to/determrtl/achieving-5247-gbps-post-pr-with-zero-brams-on-lattice-ecp5-using-open-source-eda-yosysnextpnr-3dg8</link>
      <guid>https://dev.to/determrtl/achieving-5247-gbps-post-pr-with-zero-brams-on-lattice-ecp5-using-open-source-eda-yosysnextpnr-3dg8</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In low-latency networking, SmartNIC pipelines, and custom SoC datapaths, inline packet filtering is typically one of the first operations performed on incoming traffic. However, conventional FPGA packet filters often suffer from two major bottlenecks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Block RAM (BRAM) Exhaustion &amp;amp; Read Latency&lt;/strong&gt;: Storing match rules in on-chip SRAM macros consumes scarce memory resources needed for DMA descriptors and packet FIFOs, while introducing fixed read latencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traffic Stalls During Rule Updates&lt;/strong&gt;: Updating filter rules dynamically often forces the pipeline to backpressure (&lt;code&gt;TREADY = 0&lt;/code&gt;) or flush in-flight frames to avoid mid-packet rule tearing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve both problems, I developed &lt;strong&gt;&lt;code&gt;gen1_axis-inline-filter&lt;/code&gt;&lt;/strong&gt; (DetermRTL)—a deterministic, zero-BRAM AXI4-Stream inline packet filter IP core—and just published the evaluation SDK, post-P&amp;amp;R PPA benchmarks, datasheet, and a zero-dependency C99/C++11 host HAL driver.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Evaluation Repository &amp;amp; Datasheet&lt;/strong&gt;: &lt;a href="https://github.com/DetermRTL/gen1_axis-inline-filter-eval" rel="noopener noreferrer"&gt;DetermRTL/gen1_axis-inline-filter-eval&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key Architectural Highlights
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Zero Block RAM (&lt;code&gt;0 DP16KD&lt;/code&gt;) Architecture
&lt;/h3&gt;

&lt;p&gt;Instead of relying on Block RAM primitives, the core uses a pure LUT4 + Flip-Flop register-based architecture across &lt;strong&gt;64-bit, 256-bit, and 512-bit&lt;/strong&gt; AXI4-Stream datapaths.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Eliminates BRAM read latency completely.&lt;/li&gt;
&lt;li&gt;Leaves 100% of on-chip BRAM/SRAM blocks free for downstream packet buffers and DMA rings.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Dual Pipeline Modes (&lt;code&gt;PIPELINE_MODE&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Depending on whether your design prioritizes minimum wire-to-wire latency or maximum line rate, the core supports two compile-time pipeline modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PIPELINE_MODE = 0&lt;/code&gt; (Ultra-Low Latency)&lt;/strong&gt;: Single-cycle combinational parse and match path for minimum deterministic latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PIPELINE_MODE = 1&lt;/code&gt; (High-Throughput)&lt;/strong&gt;: Inserts a registered pipeline stage to break critical comparator paths, achieving &lt;strong&gt;146.37 MHz (9.37 Gbps @ 64-bit)&lt;/strong&gt; and &lt;strong&gt;102.48 MHz (52.47 Gbps @ 512-bit)&lt;/strong&gt; post-P&amp;amp;R on a &lt;strong&gt;Lattice ECP5-85F (Speed Grade 8)&lt;/strong&gt; using 100% open-source EDA tools (&lt;strong&gt;Yosys + nextpnr-ecp5&lt;/strong&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Hitless Atomic Rule Updates
&lt;/h3&gt;

&lt;p&gt;Rules are configured over an AXI4-Lite control plane into shadow registers. When firmware asserts the commit bit, the hardware waits for the exact &lt;strong&gt;&lt;code&gt;TVALID &amp;amp;&amp;amp; TREADY &amp;amp;&amp;amp; TLAST&lt;/code&gt;&lt;/strong&gt; frame boundary to swap the active rule set atomically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zero mid-packet rule tearing.&lt;/li&gt;
&lt;li&gt;Zero backpressure stalls or dropped frames during live reconfiguration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Zero-Dependency C99/C++11 HAL &amp;amp; Hardware Self-Discovery
&lt;/h3&gt;

&lt;p&gt;For bare-metal, RTOS, or Linux UIO/mmap host software, the SDK includes a single-header/source HAL (&lt;code&gt;determ_filter.h&lt;/code&gt; / &lt;code&gt;example_main.c&lt;/code&gt;) with zero dynamic allocation. At initialization, the driver reads a read-only capability register (&lt;code&gt;0x004&lt;/code&gt;) to dynamically discover &lt;code&gt;DATA_WIDTH&lt;/code&gt;, &lt;code&gt;PIPELINE_MODE&lt;/code&gt;, and &lt;code&gt;NUM_RULES&lt;/code&gt; directly from the silicon—preventing firmware/bitstream version mismatches.&lt;/p&gt;




&lt;h2&gt;
  
  
  Open-Source Formal Verification &amp;amp; CI
&lt;/h2&gt;

&lt;p&gt;Beyond directed and randomized Verilator simulations (&lt;code&gt;-Wall -Wextra&lt;/code&gt; clean), the RTL is formally verified in CI using open-source formal tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SymbiYosys (BMC)&lt;/strong&gt;: Formally proves AXI4-Stream protocol invariants (&lt;code&gt;TVALID&lt;/code&gt; and payload stability under arbitrary &lt;code&gt;TREADY&lt;/code&gt; backpressure stalls), zero packet drops or duplication, and exact atomic rule-commit timing on frame boundaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Yosys LEC&lt;/strong&gt;: Performs Logic Equivalence Checking across synthesis configurations.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It Out &amp;amp; Feedback
&lt;/h2&gt;

&lt;p&gt;The full datasheet, post-P&amp;amp;R resource/timing tables, and C99/C++11 HAL examples are available on GitHub:&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://github.com/DetermRTL/gen1_axis-inline-filter-eval" rel="noopener noreferrer"&gt;https://github.com/DetermRTL/gen1_axis-inline-filter-eval&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you’re working on AXI4-Stream datapaths, open-source FPGA flows (Yosys/nextpnr), or formal verification with SymbiYosys, I’d love to hear your thoughts and feedback in the comments!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1jso84gus2435ue33vo.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1jso84gus2435ue33vo.jpeg" alt=" " width="800" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>fpga</category>
      <category>verilog</category>
      <category>embedded</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
