<?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 Sri Rahul Challagulla on Medium]]></title>
        <description><![CDATA[Stories by Sri Rahul Challagulla on Medium]]></description>
        <link>https://medium.com/@srirahulc?source=rss-60ac6b1e8aee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Sri Rahul Challagulla on Medium</title>
            <link>https://medium.com/@srirahulc?source=rss-60ac6b1e8aee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:36:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@srirahulc/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[RTL Agents Don’t Need More Context. They Need State.]]></title>
            <link>https://medium.com/@srirahulc/rtl-agents-dont-need-more-context-they-need-state-b29ac14c7c4f?source=rss-60ac6b1e8aee------2</link>
            <guid isPermaLink="false">https://medium.com/p/b29ac14c7c4f</guid>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[hardware-design]]></category>
            <category><![CDATA[ai-chip-design]]></category>
            <dc:creator><![CDATA[Sri Rahul Challagulla]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 17:31:30 GMT</pubDate>
            <atom:updated>2026-11-05T17:31:30.266Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why handing an LLM raw Verilog gives you a blindfolded policy, and what to give it instead.</em></p><p><em>4 min read · RTL · AI agents</em></p><p>I have built somewhere between 30 and 40 agents for RTL work. The ones that fail share a pattern, and it is rarely the model. The agent is acting on a picture of the design that is too thin to act on.</p><h3>Every agent is a loop</h3><p>Strip away the framework and an agent is the reinforcement learning loop. It observes, it picks an action, the environment changes, and it observes again. A policy is only as good as what it sees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*swibKFokEfqM_m1tSHBtjg.png" /><figcaption>Figure 1. The design has a full state. The agent sees a slice of text. Whatever the slice leaves out is invisible to the policy</figcaption></figure><p>In RL terms this is a partially observable problem. The observation is not the state, and the policy can only be as good as the picture it builds from observations. Most RTL agents I see feed the model whatever text fits, then hope it reconstructs the rest. When it reconstructs wrongly, every later decision inherits the error.</p><h3>Why raw Verilog is the wrong observation</h3><p>Accuracy, consistency and cost are the three pillars I judge an agent on. Raw text hurts all three.</p><p><strong>Accuracy.</strong> More text does not mean more understanding. Research on long contexts finds that position matters: models use relevant text best at the start or end of a long input and worst in the middle.1 A 2025 study across 18 models found reliability dropping as input length grew, even on simple tasks.2 The fix is less context, as long as it is the right context.</p><p><strong>Cost.</strong> Tokens scale with the size of the files you paste in. A question about one port should not cost the same as a question about a whole subsystem.</p><p><strong>Consistency.</strong> Ask a model to work out connectivity from text, run it N times, and you can get N answers. Temperature 0 does not fix this. Reported analyses trace much of the remaining variation to inference kernels whose results depend on batch size.3</p><blockquote><strong>Use the LLM for judgment. Use deterministic code for facts.</strong></blockquote><h3>Put a representation between the code and the model</h3><p>Connectivity, hierarchy and parameter values are not matters of opinion. A parser can compute them once, the same way every time. So build an intermediate representation of the design, and let the agent query it through task-specific tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9i5WQ0tSoyFSZPbCWYzBQ.png" /><figcaption>Figure 2. The model never sees the whole design. It asks a question, receives a small, task-shaped answer, and decides what to do next</figcaption></figure><p>The tools are where task-specific observation lives. A lint-fix agent and a CDC-review agent need different views of the same design. Each gets its own query tools over the same graph, so each observation is small and exact. For example, “who drives rst_n in this instance, and through which ports&quot; is a lookup that returns a few lines. It is not a reading comprehension test.</p><p>This is the structure I use in my own pipeline: staged passes for hierarchy, signals, boundaries and connections, merged into one graph that the agents query. The graph is built once, and any number of agents can reuse it.</p><h3>What changes across the four pillars</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzXHqnIhBIKVN2yi2ae-qA.png" /></figure><p>Speed is the one pillar where the tools are not a clear win, and I am deliberately setting it aside for now. It matters once the designs get large.</p><h3>The open problem</h3><p>The hard part is the representation itself. It has to cover every way engineers write ports, parameters, generate blocks and instances, or the facts it reports are wrong, and wrong facts are worse than none. Designing that representation well is the main work in RTL agents. The model is the easy part.</p><p>Sources</p><ol><li>Liu et al., <a href="https://arxiv.org/abs/2307.03172">Lost in the Middle: How Language Models Use Long Contexts</a>, TACL 2024.</li><li>Hong, Troynikov, Huber, <a href="https://research.trychroma.com/context-rot">Context Rot: How Increasing Input Tokens Impacts LLM Performance</a>, Chroma, July 2025.</li><li>Thinking Machines, <a href="https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/">Defeating Nondeterminism in LLM Inference</a>, September 2025.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b29ac14c7c4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>