<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by airtl on Medium]]></title>
        <description><![CDATA[Stories by airtl on Medium]]></description>
        <link>https://medium.com/@yuyetobc?source=rss-721a9283589b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-ynqk14lV7FUElo_</url>
            <title>Stories by airtl on Medium</title>
            <link>https://medium.com/@yuyetobc?source=rss-721a9283589b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:18:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuyetobc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a 10 GSPS ADC -FPGA Data Path with AI: Architecture and Pin Isolation]]></title>
            <link>https://medium.com/@yuyetobc/building-a-10-gsps-adc-fpga-data-path-with-ai-architecture-and-pin-isolation-2411bc794aee?source=rss-721a9283589b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2411bc794aee</guid>
            <category><![CDATA[verilog]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[fpga]]></category>
            <dc:creator><![CDATA[airtl]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 16:38:54 GMT</pubDate>
            <atom:updated>2026-10-24T16:38:54.220Z</atom:updated>
            <content:encoded><![CDATA[<h4>KU15P and ADC12DJ5200 Integration into a 200 Gbps Aurora Pipeline (Part 1)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0VzoqSrLqIG1tn1lAkam7w.jpeg" /><figcaption>hardware</figcaption></figure><p>We recently completed a 200 Gbps acquisition and direct-to-disk storage system on an AMD Xilinx Kintex UltraScale+ FPGA (specifically the xcku15p-ffve1517–2-i device) in Vivado 2020.2. The system captures two 8-lane JESD204B streams from an upstream ADC12DJ5200 front-end, unpacks and recombines the samples across clock domains into an 8-lane 200 Gbps Aurora transmit pipeline, and streams data into a downstream solid-state disk array in fixed 8 KiB packets.</p><p>The underlying building blocks — including the JESD204B receiver for the ADC, the 200 Gbps Aurora transmit pipeline, and the embedded MicroBlaze drivers — had previously been validated in hardware, providing a clear grasp of the physical implementation details. The primary objective here was integrating the cross-clock-domain bridging and protocol glue logic. With the core datapaths already proven, delegating repetitive structural tasks — such as bus width concatenation and wiring the asynchronous FIFO — to an AI coding assistant saved considerable routine implementation time, allowing engineering focus to remain on clock-domain-crossing flow control and physical boundary validation.</p><p>At the front end, two 8-lane JESD204B links operate at 320 MHz. Unpacking and aggregating the dual streams yields a 480-bit sample payload, zero-padded in the upper 32 bits to form a 512-bit word, delivering an effective ingestion throughput of 163.84 Gbps. The output path comprises an 8-lane Aurora 64B/66B interface driven by 25 Gbps GTY transceivers, aggregating 200 Gbps across the eight physical lanes. This transmit pipeline operates with a 512-bit datapath clocked at 390.625 MHz, corresponding to a clock period of 2.56 ns. An asynchronous FIFO with a depth of 2048 words and an almost-full threshold of 2032 words bridges the two clock domains across a 512-bit bus. The downstream solid-state disk array ingests data in fixed 8 KiB packets, requiring a single-cycle assertion of tlast every 128 successful handshake beats. On the control plane, an embedded MicroBlaze soft core configures the ADC, JESD core, and RF front-end while monitoring hardware telemetry over an AXI interconnect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJ1YuLqk40i_2bn2J8omGw.png" /><figcaption>architecture</figcaption></figure><h3>Initial Architecture Evaluation and Trade-offs</h3><p>We began by reviewing both reference designs against the system requirements. Before writing integration RTL, we established the physical board constraints, clock relationships, and interface contracts. Resolving these boundaries early reduced the risk of structural rework during integration.</p><h3>Front-End Ingestion Flow Control</h3><p>The first flow-control review exposed a misleading interface assumption. The JESD204 core used AXI4-Stream signal names, prompting an initial proposal to apply conventional tvalid and tready handshaking. The same proposal treated a link-reset indication as a cycle-by-cycle sample-valid flag and used capture start and stop commands to hard-reset the asynchronous FIFO. Each choice needed to be checked against the behavior of the physical sampling source.</p><p>These approaches do not hold up under physical hardware constraints. An ADC represents a continuous physical sampling source without backpressure. At 320 MHz, digitized samples arrive deterministically on every clock cycle, leaving no mechanism to pause the converter during downstream backpressure. A reset indicator reflects transceiver link status rather than cycle-accurate data validity. Asynchronous FIFOs rely on Gray-code pointer cross-domain synchronization and disciplined reset recovery sequences. Asserting a hard reset on the FIFO with every capture trigger risks pointer desynchronization and first-word data loss.</p><p>The flow control architecture was therefore defined as unidirectional gating. The host asserts a capture enable pulse through a 100 MHz VIO core, which is synchronized into the 320 MHz clock domain via a double-register synchronizer. The FIFO write enable is generated by gating this synchronized enable with the FIFO prog-full flag. If the downstream disk array encounters backpressure or the operator halts capture, the ingestion logic quietly discards incoming samples without backpressuring the ADC. Residual samples in the FIFO are drained normally by the 390.625 MHz read domain into the Aurora transmit pipeline, while the packet counter remains monotonically incrementing across start and stop transitions rather than resetting to zero.</p><h3>Pin Allocation</h3><p>Before synthesis, a cross-audit of the two baseline constraint sets exposed a conflict on package balls A3 and A4. The ADC project assigned them to SPI chip-select signals, while the Aurora reference design used them for low-speed reset and control of the QSFP optical transceiver module. Merging the XDC files unchanged would create conflicting package-pin assignments. Deleting the SPI controllers appeared to offer a quick way to release the pins, but their firmware dependencies had to be checked first.</p><p>I ruled out deleting the SPI controllers until we had checked their firmware dependencies. The absence of external top-level ports did not mean the peripherals were unused. Tracing the Vitis drivers showed that MicroBlaze managed the dual-channel LMH6401 RF variable gain amplifiers through these SPI peripherals, with their base addresses already defined in the generated board support package headers. Removing the controllers would leave firmware accessing unmapped addresses, risking bus exceptions and a stalled processor.</p><p>The solution had to preserve the firmware-visible peripherals while releasing their physical pins. Both SPI controllers and their AXI base addresses remained in the Block Design. Only the external connections were isolated at the top-level RTL, with the relevant tie-offs held at logic constants. The channel configuration routines were changed to return disabled status codes before issuing AXI reads or writes. This coordinated hardware and firmware change released balls A3 and A4 for optical transceiver control. Six associated pins — D1, D2, E1, E3, E4, and E5 — were also removed from the revised constraint file.</p><h3>Secondary Port Conflicts and Framing Rules</h3><p>The constraint audit also exposed conflicting UART assignments: N15 and K14 in the ADC project, versus E8 and D10 in the DAC reference design. I resolved the choice from the board schematics. The on-board USB Type-C bridge routed to E8 and D10; N15 and K14 led to an unpopulated expansion header. Adding a second UART would introduce port-enumeration ambiguity in a multi-board bench setup. We therefore consolidated interactive console I/O and telemetry on E8 and D10 at 115200 baud (8N1), and removed the unused N15 and K14 constraints.</p><p>The packet format required a similar decision. With 40 unpacked 12-bit samples per cycle, the options included padding each sample to 16 bits or adding timestamps and channel headers. I kept the output as raw samples because the downstream storage interface expected fixed-length payloads without additional headers. The 40 samples were interleaved into a 480-bit payload, then padded with 32 zeros in the most significant bits to form a 512-bit beat without byte reordering. Packet counting also had to follow transferred data rather than elapsed clock cycles. The initial free-running counter was replaced with logic that increments only when both tvalid and tready are asserted, driving tlast on the 128th successful handshake beat.</p><h3>Simulation Verification and Initial Timing Closure Bottlenecks</h3><p>With the flow-control rules, interface contracts, and pin-isolation boundaries established, an AI coding assistant helped assemble the 512-bit bus concatenation, asynchronous FIFO glue logic, and MicroBlaze driver bypass routines within hours. I reviewed the architecture and board-specific decisions, then checked the integration through simulation and implementation reports. A targeted Vivado testbench ran for 330 beats without errors, showing monotonic packet-count progression, correct FIFO pointer synchronization, and tlast assertion on the 128th valid beat.</p><p>Following behavioral simulation sign-off, I launched place-and-route in Vivado. The implementation timing report showed setup slack of -2.242 ns at 390.625 MHz (a 2.56 ns clock period), with placement setup violations peaking at -2.513 ns. Vivado also flagged four Critical Warnings on GTY transceiver constraints inherited from the reference design. Tool-parameter experiments did not replace the need to inspect the violated paths and their underlying logic.</p><p>We set out to methodically resolve these timing violations. In Part 2, we resolve this timing bottleneck, dissect carry chain propagation delays along the critical path, refactor the embedded driver to invert SerDes lane polarity via firmware registers, and complete benchtop hardware verification on the physical board.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2411bc794aee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Airtl: A Lightweight RTL Visualizer & Navigation Tool for FPGA Developers]]></title>
            <link>https://medium.com/@yuyetobc/introducing-airtl-a-lightweight-rtl-visualizer-navigation-tool-for-fpga-developers-7c3225a230de?source=rss-721a9283589b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c3225a230de</guid>
            <category><![CDATA[fpga]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devtools]]></category>
            <dc:creator><![CDATA[airtl]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 06:33:28 GMT</pubDate>
            <atom:updated>2026-10-18T06:33:28.031Z</atom:updated>
            <content:encoded><![CDATA[<p>Bringing modern IDE ergonomics, pure RTL schematics, and context-aware AI review to digital hardware design.</p><p>“As someone who spends their days jumping between embedded systems and FPGA hardware design, whenever I switch over to RTL, I can’t help but feel a little jealous of the modern software stack. Software developers enjoy fluid IDEs, instant language servers, and intelligent assistance, while FPGA workflows often still feel stuck in the 90s — spending half the day tracing signal connections and untangling module hierarchies by hand.</p><p>I built Airtl to scratch that exact itch: a lightweight, developer-first tool designed to make navigating, visualizing, and reviewing RTL designs as painless and intuitive as possible.”</p><p>WHAT IS AIRTL?</p><p>Airtl was created with a clear goal: bring modern IDE ergonomics, instant visual feedback, and practical AI assistance into the daily digital design workflow.</p><p>In the current 1.0 Preview, Airtl delivers:</p><p>• Instant Schematics from Handwritten Code: Turn raw Verilog / SystemVerilog into clean, interactive Block View diagrams — no .bd files, IP Integrator, or sluggish synthesis runs required.<br>• Bi-Directional Code &amp; Schematic Sync: Click any block or pin in the schematic to jump straight to its instantiation line in the source code, and vice versa.<br>• Recursive Hierarchy &amp; Instant Navigation: A complete, interactive module tree with one-click navigation directly to instance definitions.<br>• Context-Aware AI Review: Understand complex state machines, decipher unfamiliar legacy modules, or scaffold testbenches without copying and pasting across windows.<br>• Integrated Toolchain Hooks: Launch Vivado simulations, synthesis passes, implementation runs, and bitstream generation directly from the interface.</p><p>THE DAILY PAIN POINTS AIRTL ADDRESSES</p><p>If you write digital logic or FPGA designs for a living, you’ve likely hit these friction points:</p><p>1. Handwritten RTL rarely has a good schematic view<br>Vendor block diagram tools (like Vivado IP Integrator / .bd) only really shine if you build designs with graphical IP blocks. If you write clean, modular top-level Verilog or SystemVerilog, there hasn’t been a quick, lightweight way to inspect interconnects visually without firing up a heavyweight EDA suite and running an elaboration pass.</p><p>2. FPGA tools are isolated from modern AI workflows<br>Traditional hardware IDEs operate in silos. Asking an LLM to explain a tricky state machine, document an unfamiliar handshake, or write a testbench usually means an endless loop of copy-pasting code snippets across windows, losing all design context.</p><p>3. Onboarding to complex legacy codebases is painful<br>Opening an unfamiliar, multi-thousand-line hardware repository usually starts with hours of manual grep-ing just to map out who instantiates whom, where clock domains cross, and how major buses route across subsystems.</p><p>4. Connecting instances to their definitions is tedious<br>Jumping between module declarations, port maps, and parameter overrides in deeply nested hierarchies often devolves into endless Ctrl+Shift+F global searches.</p><p>CORE FEATURES IN AIRTL 1.0 PREVIEW</p><p>1. Automatic Workspace &amp; Source Discovery</p><p>Open your workspace folder, and Airtl quickly scans for project files, HDL source trees, and custom Tcl build scripts in the background, populating them in the Project Sources view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*SMV6YRypmI8X5qeBSm_JuQ.png" /></figure><p>• Parallel Workspace Scanning: Automatically detects Vivado .xpr project files, HDL source trees, and custom Tcl build scripts.<br>• Seamless Active Project Switching: Easily switch between multiple FPGA designs or verification scripts with a single click.</p><p>2. Visual Hierarchy Tree &amp; Component Badges</p><p>Select a project, and Airtl’s C++ parser recursively analyzes module instantiation trees, rendering an intuitive hierarchy view inside the Block Design Tree panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*wm3p83CvC8cYQZRZ79dUGw.png" /></figure><p>Every node in the tree is labeled with a clear visual badge:<br>• [Primitives]: Dedicated hardware primitives (IBUF, OBUF, BUFG, DSP48, RAMB, etc.).<br>• [Generated IP]: IP catalog wrappers (.xci / .xcix).<br>• [Encrypted / Blackbox]: Commercial or encrypted IP blocks lacking accessible source.<br>• [Source Files]: Handwritten Verilog and SystemVerilog modules.</p><p>Each node displays both the instance name and definition name, alongside sub-instance counts.</p><p>3. Bi-Directional Code &amp; Hierarchy Navigation</p><p>Navigating between high-level architectural blocks and line-by-line RTL implementation is completely seamless:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlULlFV1g2lo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FlULlFV1g2lo%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlULlFV1g2lo%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9371cac7d536406e4dfcea3620d8446d/href">https://medium.com/media/9371cac7d536406e4dfcea3620d8446d/href</a></iframe><p>• Clicking any intermediate module or leaf node in the Block Design Tree immediately opens the editor and highlights the exact line where that module is instantiated in the parent.<br>• Inspect and review complex designs top-down without losing your place in the code.</p><p>4. Pure RTL Native Block View Schematics</p><p>This is where we’ve spent the bulk of our engineering effort:<br>You don’t need Vivado running in the background, and you don’t need an IP Integrator .bd file. Airtl directly parses your Verilog / SystemVerilog source and renders a responsive, interactive schematic right inside your editor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPrNjEBoRVrs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FPrNjEBoRVrs%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPrNjEBoRVrs%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1cc5f997d183a7ad3abaa5f1fabe838/href">https://medium.com/media/b1cc5f997d183a7ad3abaa5f1fabe838/href</a></iframe><p>Key Highlights:<br>• Right-Click Source Navigation: Right-click any block in the schematic and select ‘Go to instantiation (open source)’ to instantly split-screen jump to the exact Verilog instantiation line, or open its module definition.<br>• Topological Auto-Layout: Automatically calculates bus trajectories and block spacing to minimize crossed lines and spaghetti routing.<br>• AXI Bus Folding &amp; Bundling: Collapse wide, multi-signal AXI channels into tidy bus bundles to dramatically declutter the canvas.<br>• Real-Time Net Tracing: Click any pin or wire to highlight the entire net across all connected blocks, making signal flow obvious at a glance.<br>• Vector Net Labeling: Signal names remain crisp and legible at any zoom level.<br>• Hierarchical Drill-Down: Double-click any sub-module block to step inside its internal sub-schematic.</p><p>5. Practical AI Integration</p><p>Airtl integrates with harness (our automated AI testing and execution framework) to assist with repetitive hardware analysis tasks:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMjnbjLjPTHY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FMjnbjLjPTHY%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMjnbjLjPTHY%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c024dae46a4582d5978b51d63a3fae55/href">https://medium.com/media/c024dae46a4582d5978b51d63a3fae55/href</a></iframe><p>• Context-Aware Code Explanation: Select a module or bus logic block and let AI break down state machine transitions, handshake protocols, or observation counters.<br>• Automated Testbench Scaffolding &amp; Simulation: Trigger initial simulation runs for specific sub-modules right from the interface.<br>• EDA Toolchain Bridges: Built-in interfaces for Vivado simulation, synthesis/implementation passes, and bitstream generation.</p><p>HOW TO INSTALL AIRTL (LESS THAN 2 MB)</p><p>Getting started takes less than a minute:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FBwV7FNm_fT0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FBwV7FNm_fT0%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBwV7FNm_fT0%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0c4eff4ac930047a54d205abcbf805c/href">https://medium.com/media/c0c4eff4ac930047a54d205abcbf805c/href</a></iframe><p>1. Download the extension package (airtl-0.0.1.vsix) — the package is around 1.86MB.<br>2. Open your editor (VS Code, Trae, or Cursor).<br>3. Open the Extensions pane (Ctrl+Shift+X), click the ‘…’ menu, and select ‘Install from VSIX…’.<br>4. Open any folder containing FPGA projects or Verilog sources. Airtl will automatically detect your project files and start parsing your design tree.</p><p>AVAILABILITY &amp; LICENSING</p><p>Core parsing and visualization components of Airtl are open source on GitHub.<br>The public preview requires an internet connection and is currently free for everyone to test.</p><p>(Note: The public release does not include custom AI assistant skills out of the box — users can configure their own skills and prompts. If your organization requires dedicated AI skills, managed AI environments, or offline/on-premise deployment, please reach out to the Airtl team directly).</p><p>GitHub Repository: <a href="https://github.com/yuairtl/Airtl">https://github.com/yuairtl/Airtl</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c3225a230de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[# Zynq’s PS–PL Connections: From EMIO and JTAG to a First Step Towards AXI]]></title>
            <link>https://medium.com/@yuyetobc/zynqs-ps-pl-connections-from-emio-and-jtag-to-a-first-step-towards-axi-b8afae390ac7?source=rss-721a9283589b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8afae390ac7</guid>
            <category><![CDATA[zynq]]></category>
            <category><![CDATA[zynq-7000]]></category>
            <category><![CDATA[axis]]></category>
            <dc:creator><![CDATA[airtl]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 15:23:57 GMT</pubDate>
            <atom:updated>2026-10-05T15:23:57.927Z</atom:updated>
            <content:encoded><![CDATA[<p><strong># Zynq’s PS–PL Connections: From EMIO and JTAG to a First Step Towards AXI</strong></p><p>A Zynq device combines an ARM processor with FPGA logic. Whether you think of it as an FPGA with an ARM processor or an ARM processor with an FPGA depends on which side you work with most. In practice, the useful part is having both — and knowing how they communicate.</p><p>This guide starts with a few PS–PL interfaces that are easy to overlook, then uses a simple C pointer example to set the scene for AXI. It is an introduction to the connection, not a full account of the AXI protocol.</p><p>The processing system (PS) and programmable logic (PL) need ways to exchange signals, debug information, configuration data and memory transactions. The main interfaces are EMIO, PJTAG CoreSight, PCAP and AXI:</p><p>```mermaid</p><p>flowchart LR</p><p>subgraph PS[Processing System (PS)]</p><p>ARM[ARM processor]</p><p>PERIPH[PS peripherals\nUART · GPIO · I²C · Ethernet]</p><p>GP_M[M_AXI_GP ×2\n32-bit AXI masters]</p><p>GP_S[S_AXI_GP ×2\n32-bit AXI slaves]</p><p>ACP[S_AXI_ACP\n64-bit coherent slave]</p><p>HP[S_AXI_HP ×4\n32/64-bit data slaves]</p><p>PCAP[PCAP processor configuration port]</p><p>end</p><p>subgraph PL[Programmable Logic (PL)]</p><p>GPIO[PL logic and GPIO]</p><p>AXI_S[AXI slave interfaces]</p><p>AXI_M[AXI master interfaces]</p><p>JTAG[PJTAG / CoreSight\ntrace in/out · cross-trigger]</p><p>FPGA[FPGA configuration]</p><p>end</p><p>PERIPH →|EMIO signals| GPIO</p><p>GP_M →|PS to PL| AXI_S</p><p>AXI_M →|PL to PS| GP_S</p><p>AXI_M →|high-performance path| HP</p><p>AXI_M →|coherent path| ACP</p><p>ARM ←&gt;|PJTAG / CoreSight| JTAG</p><p>ARM → PCAP → FPGA</p><p>```</p><p><strong>## EMIO: Routing PS Peripherals Through the PL</strong></p><p>FPGAs generally let you assign signals to available I/O pins, while the bank voltage sets the electrical level those pins use. That flexibility can make board routing easier — and may even rescue a design if the original pin assignment was wrong.</p><p><em>*Hardware engineer: “Brilliant. No need to own up to that pin mix-up!”*</em></p><p>EMIO makes that flexibility available to the PS. It routes peripheral signals — UART, GPIO, I²C or Ethernet, for example — through the PL, where you can connect them to FPGA I/O pins. A GPIO connection follows this path:</p><p>```mermaid</p><p>flowchart LR</p><p>PS[PS GPIO controller] →|EMIO signals| PL[PL logic]</p><p>PL →|I/O assignment| PIN[FPGA package pins]</p><p>```</p><p><strong>## PJTAG CoreSight: One Debugger, Two Devices</strong></p><p>Connect a single JTAG programming cable and the scan can find two devices. In the example, they appear as `arm_dap_0 (0)` and `xc7z020_1 (1)`; the FPGA entry also contains an XADC system monitor.</p><p>```text</p><p>JTAG scan</p><p>├── arm_dap_0 (0) Status: N/A</p><p>└── xc7z020_1 (1) Status: Not programmed</p><p>└── XADC (System Monitor)</p><p>```</p><p>That isn’t a “buy one, get one free” offer from Xilinx. The devices are arranged in a JTAG daisy chain, allowing one debugger to communicate with several devices connected in series. The chain carries TDI and TDO from one device to the next, while TCK and TMS are shared:</p><p>```mermaid</p><p>flowchart LR</p><p>PROBE[JTAG controller] →|TDI| D2[JTAG Device #2]</p><p>D2 →|TDO to TDI| D1[JTAG Device #1]</p><p>D1 →|TDO to TDI| D0[JTAG Device #0]</p><p>D0 →|TDO return| PROBE</p><p>PROBE -. shared TCK and TMS .-&gt; D2</p><p>PROBE -. shared TCK and TMS .-&gt; D1</p><p>PROBE -. shared TCK and TMS .-&gt; D0</p><p>```</p><p>PJTAG CoreSight connects the ARM and FPGA debug interfaces internally. In the configuration described here, MIO2 is set low for the usual cascaded JTAG arrangement. MIO2 also selects between cascade and independent routing:</p><p>| MIO2 / `BOOT_MODE[3]` | JTAG chain routing |</p><p>| — -:| — -|</p><p>| 0 | Cascade mode (the most common) |</p><p>| 1 | Independent mode |</p><p>That covers the JTAG basics. A later article will show how to use Zynq to build a virtual JTAG debugger.</p><p><strong>## PCAP: Updating the FPGA from the ARM Processor</strong></p><p>The PCAP interface lets the ARM processor load a new configuration into the FPGA. I haven’t used it myself. In my own Zynq projects, I keep the `.bit` and `boot.bin` files separate and replace the `.bit` file directly under Linux.</p><p>EMIO, PJTAG and PCAP each have a specific job. AXI is the main route for moving data between the PS and PL. Before looking at its interfaces, it helps to follow what the processor does when software reads or writes an address. C pointers give us a straightforward place to start.</p><p><strong>## From C Pointers to ARM Assembly</strong></p><p>In driver and kernel development, C is useful because it gives you direct access to memory and hardware registers. Pointers are central to that work — and a source of headaches for beginners and experienced developers alike.</p><p>Here is the basic pointer operation from the example:</p><p>```c</p><p>#include &lt;stdint.h&gt;</p><p>volatile uint32_t g_TestInt = 10;</p><p>void ptr_test(volatile uint32_t *p_addr)</p><p>{</p><p>*p_addr = 20;</p><p>}</p><p>int main(void)</p><p>{</p><p>ptr_test(&amp;g_TestInt);</p><p>}</p><p>```</p><p>The function `ptr_test` writes `20` to the variable at the address held in `p_addr`. In C, that is a single line; the assembly shows what the processor has to do underneath.</p><p>To follow a transaction from the ARM processor into the FPGA, it helps to take those layers one at a time. Here is the relevant part of the generated assembly:</p><p>```asm</p><p>ldr r3, [fp, #-8] @ Load the pointer value into r3</p><p>mov r2, #20 @ Put the value 20 into r2</p><p>str r2, [r3] @ Store 20 at the address held in r3</p><p>```</p><p>The labels `r0`, `r2`, `r3`, `fp` and `lr` are ARM registers. They are a little like the `reg` variables used in FPGA design. As a rough analogy, think of a register as a small storage location the processor can access quickly.</p><p>The surrounding instructions handle the function’s prologue and epilogue. These three show the key operations, in order:</p><p>- <strong>**`ldr r3, [fp, #-8]` uses register-offset addressing.**</strong> Starting from the base address in `fp`, the processor applies an offset of `-8` and loads the value at that location into `r3`.</p><p>- <strong>**`mov r2, #20` uses immediate addressing.**</strong> It places the number `20` directly into `r2`.</p><p>- <strong>**`str r2, [r3]` uses register-indirect addressing.**</strong> The address in `r3` tells the processor where to store the value held in `r2`.</p><p>A bit abstract? Here’s a way to picture it.</p><p>Your wife gives you some spending money each month. You squirrel a little away in different rooms around the house, and keep a notebook so you can remember which room holds each stash.</p><p>This month, she gives you 20 yuan. You put the cash in a bag (`r2`), which corresponds to:</p><p>```asm</p><p>mov r2, #20</p><p>```</p><p>To hide some of it, you check your notebook (`fp`). On page 8, you find the entry for room 10 and hold that room number in your head (`r3`). That is what this instruction does:</p><p>```asm</p><p>ldr r3, [fp, #-8]</p><p>```</p><p>Later, when your wife goes out, you take the cash from the bag (`r2`) and hide it in the room identified by `r3`. The store instruction is:</p><p>```asm</p><p>str r2, [r3]</p><p>```</p><p>Once the cash is hidden, the bag can go back where it was. The processor can reuse `r2` and `r3` for something else. Job done.</p><p><strong>## Why Pointers Matter for AXI</strong></p><p>The point is to trace an application-level operation down to the processor, especially the way it handles addresses and data. Whatever high-level language you use, the CPU ultimately performs a small set of basic operations: moving data, arithmetic and conditional branching.</p><p>“But hang on — we still haven’t got to the AXI bus!”</p><p>Quite right. We have not looked at AXI itself yet. The point is to follow the path downwards, one layer at a time. ARM processors can also be implemented in FPGA logic; understanding what the processor does with addresses and data gives us a starting point for understanding how the PS communicates with the PL.</p><p>The next instalment will cover the AXI interfaces and how buses work in an SoC. That foundation will also be useful when we look at accessing PL registers with a debugger, building a virtual debugger with XVC, and giving the PS access to 10 Gigabit Ethernet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8afae390ac7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring JESD204 PHY Lane Polarity over AXI4-Lite with AI Assistance]]></title>
            <link>https://medium.com/@yuyetobc/configuring-jesd204-phy-lane-polarity-over-axi4-lite-with-ai-assistance-b423cae0d1f0?source=rss-721a9283589b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b423cae0d1f0</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[jesd]]></category>
            <dc:creator><![CDATA[airtl]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 15:49:57 GMT</pubDate>
            <atom:updated>2026-10-03T15:49:57.123Z</atom:updated>
            <content:encoded><![CDATA[<p>During a migration from a Xilinx KU040 to a KU15P in a design using the adc12dj5200, the pin map showed that several MGT connections had their P and N pins swapped. The JESD204 PHY supports per-lane polarity configuration, so the goal was to correct the affected lanes through AXI4-Lite without changing the board pin assignments or XDC constraints.</p><p>I used a 300B-parameter AI model to investigate the configuration, generate a C driver, and trace the lane mapping. It helped with parts of the work, but also made unsupported suggestions and missed a register-address bug. This article covers the AXI4-Lite configuration flow and what happened while implementing and validating it.</p><h3>Finding the configuration path</h3><p>I gave the AI model the pin-mapping spreadsheet and asked how to handle the reversed connections. Instead of proposing a configuration approach, it ran a script to identify the reversed lanes, even though the spreadsheet already listed them.</p><p>After I clarified that the spreadsheet was the source of truth, the model recommended GT polarity inversion. But when I asked where the setting was configured, it claimed there was a GUI option. It later suggested an XDC constraint using RX_POLARITY, but could not find a valid cell to apply it to.</p><p>Those suggestions were incorrect. For this design, polarity is configured through the JESD204 PHY’s AXI4-Lite Management Interface.</p><p><strong>AI’s role:</strong> The model identified polarity inversion as the right general approach, but initially ignored the provided lane list and guessed at configuration methods it could not verify.</p><h3>The AXI4-Lite configuration flow</h3><p>I asked the model to consult the official documentation and provide a source for each configuration step. Based on <strong>PG198 v4.0, <em>JESD204 PHY LogiCORE IP Product Guide</em></strong>, it outlined this sequence:</p><ol><li>Enable the AXI4-Lite Management Interface in the IP.</li><li>Connect the AXI4-Lite slave interface to an AXI master.</li><li>Identify the PHY lane to configure.</li><li>Write the GT Interface Selector to select that lane.</li><li>Write the polarity register.</li><li>Optionally read back the setting.</li><li>Apply the configuration at the appropriate point in the PHY initialization sequence.</li></ol><p>The key operation is per-lane: select a PHY lane through the management registers, then program its polarity.</p><p><strong>AI’s role:</strong> Once directed to PG198, the model produced the relevant AXI4-Lite sequence. The answer became useful when it was grounded in the vendor guide rather than the model’s memory.</p><h3>Checking register permissions and addresses</h3><p>Before generating the driver, I asked the model to confirm that the relevant registers were writable. It extracted the register information from PG198 and checked the access types. It concluded that the registers used for polarity configuration were read/write.</p><p>A second review surfaced an inconsistency in the guide for address 0x024: the register summary marks it read-only, while Table 2-25 and the accompanying text describe writing a lane index to it. Since lane selection requires programming the selector, these descriptions conflict. Verify the behavior against the IP and on the target hardware.</p><p><strong>AI’s role:</strong> The model checked the documented access types and pointed out the inconsistency. However, it later failed to catch an address error in the generated code.</p><h3>Generating the C driver</h3><p>I asked the model to implement the configuration in C. Its first version supported RX and TX, optional readback, configurable lanes, and included a main() function. I then narrowed the interface to what the design needed: RX only, no main(), and a single base-address argument.</p><p>The resulting API was:</p><pre>jesd204_phy_config_polarity(JESD204_PHY_BASE);</pre><p><strong>AI’s role:</strong> The model generated the initial driver and revised it to match the requested API. I set the scope and removed the unused TX and test-program code.</p><h3>Tracing lanes and debugging the board</h3><p>The first hardware test failed: SYNC never went high. I asked the model to explain why the driver used lane indices {2, 4, 5, 6} and to trace them back to the reversed MGT connections.</p><p>It mapped the connections through the package pins and GT sites to the PHY lanes. The indices were correct. They are logical PHY lane indices, not channel numbers within a GT quad; the IP handles the internal mapping to the GT resources.</p><p>The failure had a different cause. Manual review found that the driver used an incorrect register address. The model had already been asked to verify the addresses, but missed the error. After the address was corrected, the design worked.</p><p><strong>AI’s role:</strong> The model correctly traced the lane mapping, but did not catch the register-address bug. Code review and board testing were necessary to find it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ufc-gqoSbjYCnNiOQj088A.png" /></figure><h3>Takeaways</h3><p>The AXI4-Lite flow provides a way to configure polarity per PHY lane: select the lane, write its polarity setting, and verify the result. The AI model helped locate this flow in PG198, generate and refine the C driver, and trace the affected connections to the correct PHY lane indices.</p><p>It also ran an unnecessary script, invented configuration options, and missed an address error despite being asked to check it. For this hardware task, the model was most useful when guided by a clear source of truth and asked to produce verifiable work.</p><p><strong>AI can help implement the configuration. The engineer still needs to verify the register map and test the result on hardware.</strong></p><h3>References</h3><ul><li>AMD/Xilinx, <em>JESD204 PHY LogiCORE IP Product Guide</em>, PG198 v4.0, April 8, 2021</li><li>AMD/Xilinx, <em>JESD204 PHY Product Guide</em>, PG066 v7.2</li></ul><p>#JESD204 #AXI4Lite #Xilinx #FPGA #ADC12DJ5200 #HardwareDebugging #AIassistedDevelopment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b423cae0d1f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>