<?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 Nandakumar on Medium]]></title>
        <description><![CDATA[Stories by Nandakumar on Medium]]></description>
        <link>https://medium.com/@siliconscript?source=rss-93d6df53064b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zFH2M0gTi-kN8Jgpky6UGg.png</url>
            <title>Stories by Nandakumar on Medium</title>
            <link>https://medium.com/@siliconscript?source=rss-93d6df53064b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:44:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@siliconscript/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[Formal Verification in Digital Design]]></title>
            <link>https://siliconscript.medium.com/formal-verification-in-digital-design-aaf562d4f138?source=rss-93d6df53064b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaf562d4f138</guid>
            <category><![CDATA[cdc]]></category>
            <category><![CDATA[cadence]]></category>
            <category><![CDATA[formal-verification]]></category>
            <category><![CDATA[lint]]></category>
            <category><![CDATA[digital-design]]></category>
            <dc:creator><![CDATA[Nandakumar]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 12:28:38 GMT</pubDate>
            <atom:updated>2026-06-21T12:28:38.690Z</atom:updated>
            <content:encoded><![CDATA[<p>Clearing Lint, CDC, X-Prop, and RDC the Right Way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*-YFRc16koPPdtrQ3" /></figure><h3>Why formal verification matters</h3><p>Formal verification is one of the fastest ways to catch deep design bugs before silicon. Formal flows help you prove that a design obeys a property, or show a counterexample when it does not. In real SoC projects, the same static signoff mindset is often extended across lint, CDC, RDC, and X-propagation checks because these issues can survive traditional simulation and appear later in silicon.</p><p>The most common setback is not the tool itself, but unclear intent in RTL or constraints. A violation can be real, a false positive, or a design issue that needs an architectural change, so the first job is to classify it correctly. Another common problem is trying to “fix the report” instead of fixing the root cause, which often leads to new violations elsewhere.</p><h3>What is a Lint violation</h3><p>Lint finds structural and coding issues such as unintended latches, unconnected signals, simulation-synthesis mismatches, FSM problems, and bad clock/reset usage. A clean lint flow usually starts with reviewing coding style, then checking whether the warning is truly a design bug or just a waiver-worthy style choice.</p><h3>How to clear lint step by step</h3><ol><li>Read the message carefully and identify whether it is style, synthesis, or functional risk.</li><li>Check if the issue comes from missing assignments, incomplete sensitivity lists, or bad always block usage.</li><li>Fix the RTL if the behavior is unintended, especially for latches, combinational loops, and undriven nets.</li><li>If the behavior is intentional, document the reason and apply a controlled waiver only after review.</li><li>Re-run lint and confirm that the fix did not create new warnings in nearby logic.</li></ol><p><strong>For example: unintended latch</strong></p><p>A typical lint warning appears when a combinational always block does not assign every output in every branch. For example, an if statement without an else may infer a latch, even though the designer intended pure combinational logic.</p><p><strong>How to fix it:</strong></p><ol><li>Identify the missing assignment path.</li><li>Add a default assignment at the top of the block.</li><li>Or complete every if and case branch.</li><li>Re-run lint to confirm the latch warning is gone.</li></ol><h3>CDC violations</h3><p>CDC analysis flags signals that cross between asynchronous clock domains without proper synchronization. The most common root causes are missing synchronizers, unsafe multi-bit transfers, reconvergence problems, and incorrect assumptions about pulse width or data stability.</p><h3>How to clear CDC step by step</h3><ol><li>Identify the crossing type: single-bit control, pulse, multi-bit data, FIFO, handshake, or reset-related crossing.</li><li>For single-bit control signals, use a proper two-flop or equivalent synchronizer.</li><li>For multi-bit data, use Gray coding, handshake protocols, or asynchronous FIFO structures instead of independent bit synchronization.</li><li>Mark the clocks correctly in the CDC tool and distinguish real crossings from false paths or intentionally synchronized paths.</li><li>If the tool reports a questionable path, validate the intent with assertions or a small formal model before waiving it.</li><li>Re-run CDC after the RTL fix and check for reconvergence, fanout, and reset interaction issues.</li></ol><p><strong>For example: unsynchronized pulse crossing</strong></p><p>A common CDC violation happens when a one-cycle pulse from clk_a is directly sampled by logic in clk_b. The pulse may be missed entirely if it is shorter than the destination clock period, or it may create metastability if it is sampled near an edge.</p><p><strong>How to fix it:</strong></p><ol><li>Classify the crossing as a pulse, not a level signal.</li><li>Convert the pulse to a toggle-based handshake or stretch it.</li><li>Pass the signal through a proper two-flop synchronizer if it is single-bit.</li><li>Re-check for fanout or reconvergence problems.</li></ol><p><strong>Example 2: asynchronous FIFO pointer issue</strong></p><p>In an asynchronous FIFO, if the write pointer is transferred without Gray coding, multiple bits can change at once and the destination domain may sample an invalid value. That can break full/empty detection and cause overflow or underflow.</p><p><strong>How to fix it:</strong></p><ol><li>Keep pointers in binary locally for memory addressing.</li><li>Convert pointers to Gray code before crossing domains.</li><li>Synchronize the Gray-coded pointer with two flip-flops.</li><li>Verify full/empty logic against the synchronized pointer only</li></ol><h3>X-prop violations</h3><p>X-propagation issues happen when unknown values spread through the design and hide reset, initialization, or control-flow problems. Formal X-check flows are useful because they can trace X sources and show how unknowns reach critical logic.</p><h3>How to clear X-prop step by step</h3><ol><li>Find the first X source, usually an unreset flop, incomplete case statement, or gated control signal.</li><li>Check reset behavior and confirm that all state-holding elements reach a known value after reset.</li><li>Look for optimism and pessimism mismatches between RTL and gate-level behavior.</li><li>Add safe default assignments, full-case handling, or reset logic where the design truly needs a known startup state.</li><li>Re-run formal X-prop checks to make sure the fix removes the source rather than masking the symptom.</li></ol><p><strong>Example: reset not initialized</strong></p><p>A common X-propagation issue occurs when a state register is never reset, so simulation starts with X and the unknown value spreads into compare logic or FSM outputs. This often shows up as a “works in RTL, fails in gate-level” problem.</p><p><strong>How to fix it:</strong></p><ol><li>Find the first register that can power up unknown.</li><li>Add a proper reset or initialization path.</li><li>Check whether the FSM has a safe default state.</li><li>Re-run X-prop analysis to make sure the source is removed, not just masked.</li></ol><h3>RDC violations</h3><p>RDC checks focus on reset signals crossing between reset domains, where one flop may leave reset before another. These are easy to miss because they often look harmless in RTL but can create silicon failures during power-up or reset sequencing.</p><h3>How to clear RDC step by step</h3><ol><li>Identify the reset source, destination, and whether the reset is synchronous or asynchronous.</li><li>Check whether the reset release order is guaranteed for both launch and capture flops.</li><li>If the reset crosses domains, synchronize the deassertion or redesign the reset scheme so both sides come out of reset safely.</li><li>Avoid using reset as a data path or combining unrelated resets without explicit control logic.</li><li>Re-run RDC and confirm that the reset tree connectivity is correct and no hidden reset paths remain.</li></ol><p><strong>Example: reset deasserted unsafely</strong></p><p>A reset-domain crossing issue appears when a reset is released asynchronously into a destination clock domain and different flops come out of reset at different times. This can leave part of the logic active while the rest is still reset, creating an illegal intermediate state.</p><p><strong>How to fix it:</strong></p><ol><li>Identify the reset source and destination domain.</li><li>Use a reset synchronizer so deassertion happens synchronously.</li><li>Avoid multiple independent synchronizations of the same reset unless the architecture explicitly supports it.</li><li>Apply the proper false-path or async clock constraints to the reset path.</li></ol><h4><strong>WHAT TO DO WHEN GOT STUCK AT THIS STAGE</strong></h4><p>Start by understanding the intent of the path, then decide whether the violation is a real bug, a missing constraint, or a tool limitation. The best teams also keep a tight feedback loop between RTL, verification, and physical signoff so that the same bug does not reappear in another form.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaf562d4f138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stuck in the Middle of a SoC Design?]]></title>
            <link>https://siliconscript.medium.com/stuck-in-the-middle-of-a-soc-design-788ba305cc1f?source=rss-93d6df53064b------2</link>
            <guid isPermaLink="false">https://medium.com/p/788ba305cc1f</guid>
            <category><![CDATA[vlsi-design]]></category>
            <category><![CDATA[digital-design]]></category>
            <category><![CDATA[vlsi]]></category>
            <category><![CDATA[system-on-chip]]></category>
            <dc:creator><![CDATA[Nandakumar]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 15:05:36 GMT</pubDate>
            <atom:updated>2026-06-15T15:05:36.160Z</atom:updated>
            <content:encoded><![CDATA[<h4>Every chip engineer hits a wall. The best ones know how to climb it. I’ll tell you how to survive</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*ThAL0v7ZkxTFBouL.gif" /></figure><p>You’re deep in a System-on-Chip design. The RTL is synthesized, floorplan is laid out, and then — <em>nothing works the way it should</em>. Timing violations won’t close. The simulation is passing but silicon fails. A mysterious X is propagating through your design. The clock just… won’t lock.</p><p>Welcome to the reality of SoC design. Getting stuck isn’t a sign of failure. It’s a rite of passage. Always know <em>what to do next.</em></p><h3>First: Understand Why SoC Design Gets Hard</h3><p>A SoC isn’t just one design — it’s dozens of IP blocks, multiple clock domains, power rails, memory subsystems, and interfaces all talking to each other simultaneously. The problems you hit aren’t random. They almost always fall into one of these buckets :</p><ul><li><strong>Functional/simulation mismatches</strong> — RTL passes, gate-level fails</li><li><strong>Timing closure failures</strong> — setup/hold violations that won’t go away</li><li><strong>Clock domain crossing (CDC) issues</strong> — metastability or data corruption</li><li><strong>Power domain problems</strong> — signals crossing voltage islands incorrectly</li><li><strong>Interconnect/NoC deadlocks</strong> — AXI/NoCQ stalls, arbitration bugs</li><li><strong>Physical congestion</strong> — routing can’t complete, DRCs won’t clear</li></ul><h3><strong>HOW TO SOLVE :</strong></h3><h4><strong>Step 1: Stop, Isolate, and Divide -</strong></h4><p>When you’re stuck, the worst thing you can do is keep iterating blindly. <strong>ALWAYS</strong> <strong>DIVIDE AND CONQUER.</strong></p><ul><li>Break the problem down to the smallest reproducible case</li><li>Use <strong>hierarchical design</strong> — treat each IP block as an independent unit and validate it before integrating</li><li>If your full-chip simulation fails, determine <em>which block</em> or <em>which interface</em> is the source</li><li>Grey-box immature blocks during early exploration so you can focus on chip-level issues without being blocked by unfinished IPs</li></ul><h4>Step 2: Timing Won’t Close? Work Methodically</h4><p>Timing closure is one of the most time-consuming parts of any SoC design. But it’s not random — it’s solvable if you approach it systematically.</p><p><strong>Immediate checks:</strong></p><ul><li>Review your SDC constraints — Define your clocks correctly. Are multicycle paths and false paths properly annotated?</li><li>Run a <strong>Shmoo plot analysis</strong> (VDD vs. Frequency) to identify at what margin the design starts failing</li><li>Look for <strong>setup violations</strong>: reduce logic depth, insert pipeline stages, or resize critical cells</li><li>Look for <strong>hold violations</strong>: add buffers on short paths, avoid aggressive hold fixes that create setup issues elsewhere</li></ul><p><strong>ALWAYS USE :</strong></p><ul><li><strong>Multi-Mode Multi-Corner (MMMC)</strong> constraints to ensure timing is met across all operating conditions</li><li>set_clock_groups to properly isolate asynchronous clock domains and prevent false cross-domain timing checks</li><li>set_multicycle_path when data legitimately takes more than one clock cycle — without this, the tool will flag valid paths as violations</li></ul><h4>Step 3: Simulation Passes, But Something’s Still Wrong?</h4><p>This is one of the most frustrating scenarios — your testbench shows green, but behavior is wrong in gate-level or on silicon. Check out these in Formal Verification :</p><ul><li><strong>X-propagation issues</strong>: Uninitialized registers or unknown states after reset are a common culprit. Check reset sequencing</li><li><strong>Clock gating and power gating behavior</strong>: Misconfigured isolation cells or level-shifters between power domains cause functional failures that RTL simulation never catches</li><li><strong>CDC violations</strong>: Signals crossing asynchronous clock domains without proper synchronizers lead to metastability. Use CDC analysis tools early</li><li><strong>Boot and configuration flow</strong>: Misconfigured straps, ROM boot sequences, or firmware initialization errors often surface as late-stage failures</li></ul><p>If your design still fails at a specific voltage or frequency but passes otherwise, think parasitics, IR drop, and timing margins —do not just stick to the logic/simulation. Not all problems noticeable during simulation</p><h4>Step 3: Interconnect and Memory Issues</h4><p>SoC integration is where many bugs hide mainly in AXI buses, NoC fabrics, and memory subsystems which are complex.</p><ul><li>Check <strong>address decoding</strong> — is each master reaching the correct slave address space?</li><li>Look for <strong>arbitration deadlocks</strong>: when two masters are waiting for each other, the whole interconnect stalls</li><li>Validate <strong>cache coherency</strong> — data corruption often originates from incorrect coherency policies between CPU cores and DMA engines</li><li>For DDR: verify <strong>PHY training, calibration sequences, and timing margins</strong> under stress</li></ul><h4>Step 5: Physical Design Congestion</h4><p>If your place-and-route tool is reporting hotspots, DRC errors, or the router simply can’t complete:</p><ul><li>Go back to your <strong>floorplan</strong> — congestion usually traces back to poor macro placement or insufficient routing channels</li><li>Check your <strong>power mesh</strong> — an underpowered domain or missing decoupling capacitors can cause IR drop failures</li><li>Separate high-speed paths and wide buses from dense logic clusters to reduce routing pressure</li><li>Use <strong>early floorplan prototypes</strong> to spot routing and congestion issues before they become blocking problems</li></ul><h4>Step 6: Use the Right Debug Infrastructure</h4><p>One of the smartest things you can do before getting stuck is to <strong>design for debuggability from day one</strong>. Always be ready to test your IP at any stage.</p><ul><li>Insert <strong>JTAG/TAP</strong> access points for every major IP block</li><li>Use <strong>trace buffers and on-chip debug (OCD)</strong> to capture real-time transaction state</li><li>Include <strong>scan chains, MBIST</strong> (Memory Built-In Self Test), and BIST for datapaths so failures on silicon can be isolated quickly</li><li>Plan for <strong>UVM verbosity levels</strong> in simulation — being able to turn on fine-grained logging when something breaks saves hours</li></ul><h4>Step 7: When All Else Fails — Reuse and Collaborate</h4><p>SoC design is a team sport. When you’re genuinely stuck:</p><ul><li><strong>Reuse silicon-proven IPs</strong> wherever possible instead of re-inventing — mature IPs come with validated timing models and known behavior</li><li>Talk to your <strong>physical design team early</strong> — front-end and back-end engineers often see different symptoms of the same problem</li><li>Involve <strong>test and DFT engineers</strong> during RTL — not after tape-out</li><li>Use <strong>FPGA emulation or virtual platforms</strong> to validate software bring-up and firmware before first silicon</li></ul><h3>The Mental Model: Think in Layers</h3><p>When stuck, think about which <em>layer</em> of the design the problem lives in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNzFTCBPRcWX1OIJ5KB3tA.png" /></figure><p>Remember this , every engineer who has shipped a chip has a story about the three days they lost to a single X in a waveform, or the week they spent chasing a timing violation that turned out to be a wrong SDC constraint. Getting stuck means you&#39;re working on a problem complex enough to matter.</p><p>The difference between an engineer who spirals and one who recovers is method. Always do — Isolate. Divide. Verify assumptions. Use your debug infrastructure. Ask for help. Talk with experts who are already in the industry.</p><p>The chip will close. It always does.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=788ba305cc1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>