<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10948316</id><updated>2026-11-30T21:56:00.127+05:30</updated><category term="Tutorials"/><category term="Interview Questions"/><category term="News"/><category term="RTL Design"/><category term="Verification"/><category term="Books and Resources"/><category term="Semiconductor Industry"/><category term="Digital Logic"/><category term="Static Timing Analysis"/><category term="Semiconductor Business"/><category term="ASIC Design"/><category term="Processors"/><category term="EDA Tools"/><category term="Mobile and Telecom"/><category term="Verilog"/><category term="AI Hardware"/><category term="Intel"/><category term="Physical Design"/><category term="Low Power Design"/><category term="Interfaces and Protocols"/><category term="DFT and Test"/><category term="Automotive"/><category term="Computer Architecture"/><category term="Process Technology"/><category term="Clocking and CDC"/><category term="Semiconductor Manufacturing"/><category term="SoC Design"/><category term="FPGA"/><category term="Embedded Systems"/><category term="Memory"/><category term="Opinion"/><category term="Simulation"/><category term="Career Advice"/><category term="Consumer Electronics"/><category term="HotTopic"/><category term="Events and Webinars"/><category term="Synthesis"/><category term="SystemVerilog"/><category term="AI"/><category term="Advanced Packaging"/><category term="Analog and Mixed-Signal"/><category term="RF and Wireless"/><category term="FIFO Series"/><category term="India Semiconductors"/><category term="VHDL"/><category term="Video"/><category term="Top10"/><category term="Chiplets"/><category term="Market Reports"/><category term="Power Electronics"/><category term="SerDes"/><category term="Geopolitics and Supply Chain"/><category term="Jobs"/><category term="Reliability"/><category term="GPUs and Accelerators"/><category term="ADAS and Autonomous Driving"/><category term="Special Reports"/><category term="Apple"/><category term="Technology"/><category term="Formal Verification"/><category term="Design for Debug"/><category term="Infineon"/><category term="Signal Processing"/><category term="Photonics"/><category term="AI Infrastructure"/><category term="Emerging Technology"/><category term="Puzzles"/><category term="Sponsored"/><category term="Top 50"/><category term="Chip Security"/><category term="HBM"/><category term="AMD"/><category term="Google"/><category term="NVIDIA"/><category term="Reading Real Reports"/><category term="AI in Chip Design"/><category term="AMBA"/><category term="Materials"/><category term="Network on Chip"/><category term="PCIe and CXL"/><category term="TSMC"/><category term="AI Accelerators"/><category term="First Silicon Back"/><category term="GaN"/><category term="Nokia"/><category term="RISC-V"/><category term="Advanced Nodes"/><category term="Innovation"/><category term="Interconnects"/><category term="Texas Instruments"/><category term="Yield"/><category term="Analog Devices"/><category term="Burn-In"/><category term="Co-Packaged Optics"/><category term="Corporate Governance"/><category term="Lithography"/><category term="Metastability"/><category term="Post-Quantum Cryptography"/><category term="Qualcomm"/><category term="Quantum Computing"/><category term="Root of Trust"/><category term="Samsung"/><category term="SiC"/><category term="SoC Architecture"/><category term="UCIe"/><category term="3D IC"/><category term="BEOL"/><category term="CFET"/><category term="Cache Coherency"/><category term="Custom Silicon"/><category term="Data Centre Networking"/><category term="Export Controls"/><category term="FMEDA"/><category term="Functional Safety"/><category term="Glass Substrates"/><category term="High-NA EUV"/><category term="Hybrid Bonding"/><category term="Hyperscalers"/><category term="ISO 26262"/><category term="Liquid Cooling"/><category term="NVLink"/><category term="On-Chip Monitors"/><category term="Reset Domain Crossing"/><category term="Scale-Up Ethernet"/><category term="Self-Heating"/><category term="Silicon Lifecycle Management"/><category term="Standard Cells"/><category term="Thermal Management"/><category term="Through-Glass Vias"/><category term="UALink"/><category term="Wafer Cost"/><title type='text'>The Digital Electronics Blog</title><subtitle type='html'>Technology blog on Semiconductors, Electronics and Innovation by Murugavel Ganesan</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>The Editor&#39;s Desk</name><uri>http://www.blogger.com/profile/10045427348665141592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJCojeSzTBxM8iGrP_RUzC-tITjux_Psy2lh2L-rMoOdeVFy9dBKlc_tdZ0-mwMXAZlYOgFjFkVbxxSEcgJLuD0yDod1yHJ64OvSfW7Clzu3PgcaBAq_WHMrIPjgI4-z5yLzDMgGFobRfr7VGodClrKsmJm79E-hsXvJyK4XyoiM5sYzI/s1600/NTmxK.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>844</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10948316.post-5782440749549439103</id><published>2026-11-30T21:56:00.000+05:30</published><updated>2026-11-30T21:56:00.122+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI in Chip Design"/><category scheme="http://www.blogger.com/atom/ns#" term="EDA Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Physical Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Seven Gates Before You Act on an AI Result in Chip Design</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;A chip layout crossed by seven glowing gates, with a stream of light narrowing through each gate&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyAcJ-x5TJd3Bz_xD9a99uBW4muwAt8-dM9E0E5UcZ03zFCi7NthgMvw8918qyogZzigviF_rHa_w4qL9-Wr4NUNcHDH-5k6_czGJUTxDmkhcJOgM3YMy6JatTV3h5PEUUmJtMaLvf4n2WQdhYlrrGzZSRU3InqJEWNylIW9rjmIL9z_j46g9dxw/s1600/t125.jpg&quot; title=&quot;A chip layout crossed by seven glowing gates, with a stream of light narrowing through each gate&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;On testcase 13 of a public IR drop benchmark, the first-place model from the ICCAD 2023 contest had a mean absolute error of 0.21 mV. In the same run it failed to locate the hotspot at all, with an F1 score of 0, and its worst point was 7.23 mV out on a circuit whose peak drop is 10.57 mV. A later model cut that worst error to 2.13 mV, still about 20% of the peak. All of these are measured against HSPICE in an ICCAD 2024 paper.&lt;/p&gt;
&lt;p&gt;Those figures do not show that AI models are useless. They show that an average can look fine while the error sits where the chip fails. This post sets out seven gates for AI output in chip design: what to check, when to check it, and what a pass allows you to do next. It includes a small audit budget, and every project number in that budget is illustrative.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Read worst-case and per-design results. Means hide the cases that matter, because IR drop hotspots in the benchmark above cover well under 1% of each map.&lt;/li&gt;
&lt;li&gt;Retest on every new node or kit. In one DAC 2024 study, simply merging 130 nm and 7 nm training data gave an average R² of -3.407 on 7 nm designs.&lt;/li&gt;
&lt;li&gt;A clean audit gives a bound, not a proof. Even 300 clean samples only limit the escape rate to about 1%.&lt;/li&gt;
&lt;li&gt;Foundry-qualified sign-off stays at tape-out. Faster models change how often you reach it and how often it fails, not whether you run it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;why-solver&quot;&gt;Why the solver still decides&lt;/h2&gt;
&lt;p&gt;Part of the answer is commercial. In an invited paper, Jiang Hu of Texas A&amp;amp;M and Andrew Kahng of UC San Diego describe sign-off as the foundry-qualified analysis at the hand-off to manufacturing, and they note that product owners and the fabless-foundry framework require those tools at tape-out. They also note that models make inference errors, can be hard to diagnose, and may not carry over to new designs.&lt;/p&gt;
&lt;p&gt;The same authors still call AI in closure and sign-off inevitable. They describe a fast, imperfect model that filters likely violations and passes them to the sign-off tool. They add that such prediction cannot replace the final run across all modes and corners.&lt;/p&gt;
&lt;p&gt;Vendors take a similar public position. Siemens says its agents check each decision against its own deterministic physics-based engines before moving on, and a Siemens executive writes that sign-off should rest on a deterministic core with AI layered above it. Siemens sells those engines, and neither article gives a benchmark method, so read them as stated positions rather than evidence.&lt;/p&gt;

&lt;h2 id=&quot;sort-output&quot;&gt;First, sort the output&lt;/h2&gt;
&lt;p&gt;This sorting is our own, and it decides how much checking you owe.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Output type&lt;/th&gt;&lt;th&gt;Examples&lt;/th&gt;&lt;th&gt;What a wrong answer costs&lt;/th&gt;&lt;th&gt;Gates that matter most&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Hint or ranking&lt;/td&gt;&lt;td&gt;Violation triage, corner selection, run-time prediction&lt;/td&gt;&lt;td&gt;Wasted effort, or a problem left unchecked until late&lt;/td&gt;&lt;td&gt;2, 4, 5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Estimate&lt;/td&gt;&lt;td&gt;Predicted IR drop, slack, parasitics, temperature, device currents&lt;/td&gt;&lt;td&gt;A design decision built on a false number&lt;/td&gt;&lt;td&gt;2, 3, 4, 5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Generated artefact&lt;/td&gt;&lt;td&gt;RTL, constraints, scripts, masks, layout&lt;/td&gt;&lt;td&gt;The artefact itself carries the fault forward&lt;/td&gt;&lt;td&gt;1, 4, 5&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Gates 6 and 7 apply to the finished design, whichever tools helped to build it.&lt;/p&gt;

&lt;h2 id=&quot;gate-list&quot;&gt;The gate list&lt;/h2&gt;
&lt;p&gt;The gates below are our own synthesis of the sources, not a published standard. Your foundry&#39;s requirements and your company&#39;s sign-off checklist take precedence. The &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc&quot;&gt;SoC lifecycle on The Semiconductor Hub&lt;/a&gt; shows where these stages sit in a programme.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Gate&lt;/th&gt;&lt;th&gt;When&lt;/th&gt;&lt;th&gt;What to check&lt;/th&gt;&lt;th&gt;A pass allows&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;1. Tool check&lt;/td&gt;&lt;td&gt;Every output, at once&lt;/td&gt;&lt;td&gt;It compiles, elaborates, synthesises or passes its rule deck&lt;/td&gt;&lt;td&gt;Spending engineer time on it&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2. Domain check&lt;/td&gt;&lt;td&gt;First use, and each new node, kit version or design class&lt;/td&gt;&lt;td&gt;Results on held-out designs from your own domain&lt;/td&gt;&lt;td&gt;Using the model on this project&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3. Physical-law check&lt;/td&gt;&lt;td&gt;Before a model enters a simulator or optimiser&lt;/td&gt;&lt;td&gt;Symmetry, conservation, sensible trends, smooth derivatives&lt;/td&gt;&lt;td&gt;Connecting it to a loop&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4. Tail check&lt;/td&gt;&lt;td&gt;At acceptance and after each retrain&lt;/td&gt;&lt;td&gt;Worst-case error, hotspot location, per-design spread, repeatability&lt;/td&gt;&lt;td&gt;Letting it guide decisions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5. Solver audit&lt;/td&gt;&lt;td&gt;Throughout closure, on a schedule&lt;/td&gt;&lt;td&gt;A random sample of results, including items marked safe, rerun in the reference tool&lt;/td&gt;&lt;td&gt;Skipping the rest during closure&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;6. Full sign-off&lt;/td&gt;&lt;td&gt;Before tape-out&lt;/td&gt;&lt;td&gt;All foundry-required analyses, modes and corners, with no AI substitute&lt;/td&gt;&lt;td&gt;Releasing the design&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;7. Silicon correlation&lt;/td&gt;&lt;td&gt;When first silicon returns&lt;/td&gt;&lt;td&gt;Measured results against both the sign-off tools and the model&lt;/td&gt;&lt;td&gt;Reusing the model on the next project&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;gate-1&quot;&gt;Gate 1: run the cheap tools first&lt;/h2&gt;
&lt;p&gt;A generated file should meet a deterministic tool before it meets a person. Simulation alone is not enough for RTL. A 2026 paper from Fu et al., accepted at GLSVLSI 2026, tested 32 language models on 202 Verilog tasks, with five attempts each, and reported 195 attempts that passed the Icarus Verilog parser and then failed in Yosys. Across the models, the best-of-five pass rate ran 7.5 points above the paper&#39;s synthesis-based quality index, which the authors put down to designs that pass simulation yet fail synthesis or cost more area or delay than an expert reference. So compile, elaborate and synthesise, and compare with a reference where one exists.&lt;/p&gt;
&lt;p&gt;This gate proves little about function. Passing it only earns a proper review, which for logic means simulation or properties. Our guide to &lt;a href=&quot;/2023/08/what-is-formal-verification-in.html&quot;&gt;how formal verification works&lt;/a&gt; explains why a proof is only as good as its properties and constraints.&lt;/p&gt;

&lt;h2 id=&quot;gate-2&quot;&gt;Gate 2: test the model where you will use it&lt;/h2&gt;
&lt;p&gt;Zhang et al. at DAC 2024 give a clear example. They trained a pre-routing timing predictor on four 130 nm netlists and one 7 nm netlist, then tested on five other 7 nm designs. R² is 1 for a perfect fit and 0 for a model no better than predicting the average, and negative values are worse than that.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;7 nm test design&lt;/th&gt;&lt;th&gt;7 nm data only&lt;/th&gt;&lt;th&gt;Simple merge of 130 nm and 7 nm&lt;/th&gt;&lt;th&gt;Pretrain, then fine-tune&lt;/th&gt;&lt;th&gt;Paper&#39;s method (AdaTimer)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;arm9&lt;/td&gt;&lt;td&gt;0.603&lt;/td&gt;&lt;td&gt;-2.069&lt;/td&gt;&lt;td&gt;0.837&lt;/td&gt;&lt;td&gt;0.864&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;or1200&lt;/td&gt;&lt;td&gt;0.156&lt;/td&gt;&lt;td&gt;-6.037&lt;/td&gt;&lt;td&gt;0.209&lt;/td&gt;&lt;td&gt;0.682&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average of five&lt;/td&gt;&lt;td&gt;0.396&lt;/td&gt;&lt;td&gt;-3.407&lt;/td&gt;&lt;td&gt;0.575&lt;/td&gt;&lt;td&gt;0.810&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;More data from the wrong domain made results far worse, not better. And the spread between designs is large: pretrain-then-fine-tune is strong on arm9 and weak on or1200, while even the best method moves from 0.682 to 0.890 across the five designs. These figures use the paper&#39;s own baselines and data, so do not set them beside R² values from other papers.&lt;/p&gt;
&lt;p&gt;Domain means more than the node. A &lt;a href=&quot;/2025/09/what-is-pdk-and-why-its-silent-backbone.html&quot;&gt;process design kit&lt;/a&gt; matures through its releases, so record the kit version a model was trained on and treat a new version as a reason to retest.&lt;/p&gt;
&lt;p&gt;A confidence display will not do this job for you. Of its own confidence score, the Ansys SimAI user guide says &quot;It is not a proxy to estimate the quantitative error of the model.&quot; The guide calibrates the score against the training set and warns against treating a high score as proof. SimAI is a general simulation product rather than a chip sign-off tool, but the point carries over.&lt;/p&gt;

&lt;h2 id=&quot;gate-3&quot;&gt;Gate 3: ask the model to obey the physics&lt;/h2&gt;
&lt;p&gt;A model can fit its training points and still break laws a circuit simulator relies on. An ASP-DAC 2025 paper by Choi et al. states that neural network compact models lack physical consistency and the sub-models circuit simulation needs. Its authors build on a physics-based model with two networks, implement it in Verilog-A, and run a Gummel symmetry test and SPICE simulations. They report over 98.5% accuracy for current and gate capacitances on 3 nm nanosheet FETs. That reference is TCAD simulation, not silicon, which is a point we return to at the end.&lt;/p&gt;
&lt;p&gt;You can write simple tests for any estimator. These are our suggestions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Zero test.&lt;/strong&gt; With no load current, predicted IR drop should be close to zero.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Trend test.&lt;/strong&gt; Raise the load and the drop should not fall. Raise the power and the temperature should not fall.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Symmetry test.&lt;/strong&gt; Swap source and drain, or mirror a symmetric layout, and the answer should change as the physics says it should.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Smoothness test.&lt;/strong&gt; Sweep an input finely. Kinks in a value or its derivative can upset a simulator&#39;s convergence.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Passing all four does not make a model accurate. Failing one, however, is cheap and early evidence that it should not enter a loop.&lt;/p&gt;

&lt;h2 id=&quot;gate-4&quot;&gt;Gate 4: read the tails, not the mean&lt;/h2&gt;
&lt;p&gt;Here is the data behind the opening, from Liu et al. at ICCAD 2024. The contest benchmark trains on synthetic circuits and tests on ten real ones, and a hotspot is the region above 90% of a test case&#39;s worst drop. All values use HSPICE as the reference, and the contest winner&#39;s figures are as the authors ran them.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Test case&lt;/th&gt;&lt;th&gt;HSPICE peak drop (mV)&lt;/th&gt;&lt;th&gt;Contest winner: mean error, max error (mV), F1&lt;/th&gt;&lt;th&gt;CFIRSTNET: mean error, max error (mV), F1&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;testcase10&lt;/td&gt;&lt;td&gt;4.53&lt;/td&gt;&lt;td&gt;0.066, 0.855, 0.532&lt;/td&gt;&lt;td&gt;0.046, 0.574, 0.464&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;testcase13&lt;/td&gt;&lt;td&gt;10.57&lt;/td&gt;&lt;td&gt;0.207, 7.234, 0&lt;/td&gt;&lt;td&gt;0.077, 2.130, 0.680&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average of ten&lt;/td&gt;&lt;td&gt;5.87&lt;/td&gt;&lt;td&gt;0.135, 2.414, 0.455&lt;/td&gt;&lt;td&gt;0.053, 0.828, 0.723&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The newer model&#39;s average max error is more than 15 times its average mean error, and the contest winner&#39;s is nearly 18 times. On testcase10, the newer model has the lower errors yet the lower F1 score, so a single metric would mislead in either direction. The paper&#39;s table shows hotspots covering no more than 0.535% of a map on these cases, which is why the mean barely notices them.&lt;/p&gt;
&lt;p&gt;Now set the errors against a budget. The authors say an IR drop limit normally falls between 1% and 2.5% of VDD, which at their 1.1 V supply is 11 mV to 27.5 mV by our arithmetic. The newer model&#39;s largest error, 2.13 mV, is therefore about 8% to 19% of that budget. That may be fine for guiding fixes, but it is not a margin you could waive. The benchmark is also NanGate 45 nm throughout, with real test circuits that HSPICE solves in about 3 to 23 seconds. The reported 13 to 39 times speed-up is measured, but it saves seconds here, so test on your own block sizes before building a business case.&lt;/p&gt;
&lt;p&gt;Generated artefacts need the same per-case reading. Jiang et al.&#39;s Neural-ILT paper (ICCAD 2020) compares mask optimisation methods on ten benchmark cases:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Average of ten cases&lt;/th&gt;&lt;th&gt;Conventional ILT&lt;/th&gt;&lt;th&gt;PGAN-OPC&lt;/th&gt;&lt;th&gt;Neural-ILT&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Turnaround (s)&lt;/td&gt;&lt;td&gt;788.5&lt;/td&gt;&lt;td&gt;371.3&lt;/td&gt;&lt;td&gt;11.18&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Squared L2 error (nm²)&lt;/td&gt;&lt;td&gt;44,012.7&lt;/td&gt;&lt;td&gt;39,948.9&lt;/td&gt;&lt;td&gt;38,504&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Process variation band (nm²)&lt;/td&gt;&lt;td&gt;50,899.5&lt;/td&gt;&lt;td&gt;49,957.2&lt;/td&gt;&lt;td&gt;53,338&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The average is a strong result: about 70 times faster than conventional ILT with 12.5% lower L2 error. Beneath it, the variation band is 4.8% larger on average, and on case 3 the L2 error is about 17% higher than conventional ILT, even though the band is smaller there. The authors also report about 1% variation across 50 rounds and suggest a possible source of non-determinism in the software. So add repeatability to the gate: run the same input twice and compare.&lt;/p&gt;
&lt;p&gt;The authors note that machine learning results in lithography usually need further rigorous refinement, and their answer places a lithography model inside the network&#39;s correction step. Where you can, keep the physics in the loop rather than checking only at the end.&lt;/p&gt;

&lt;h2 id=&quot;gate-5&quot;&gt;Gate 5: audit the pile you are not checking&lt;/h2&gt;
&lt;p&gt;A filter&#39;s risk sits in what it clears. If you never check items marked safe, you have no measure of what the model misses. So run the reference tool on a random sample of them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;All the project numbers below are illustrative, not data from any tool or paper.&lt;/strong&gt; Assume 2,000 analysis items at 2 hours of compute each, or 4,000 hours in total. A model marks 200 at risk and 1,800 safe. You run all 200, plus a random audit of the safe pile, and the audit finds no escapes. If the true escape rate were p, the chance of n clean samples would be (1 - p)&lt;sup&gt;n&lt;/sup&gt;. Setting that to 5% gives an approximate 95% upper bound of 1 - 0.05&lt;sup&gt;1/n&lt;/sup&gt;.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Clean audit samples&lt;/th&gt;&lt;th&gt;Total runs&lt;/th&gt;&lt;th&gt;Compute (hours)&lt;/th&gt;&lt;th&gt;Saved against 4,000 h&lt;/th&gt;&lt;th&gt;95% upper bound on escape rate&lt;/th&gt;&lt;th&gt;Possible escapes left in unaudited items&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;30&lt;/td&gt;&lt;td&gt;230&lt;/td&gt;&lt;td&gt;460&lt;/td&gt;&lt;td&gt;88.5%&lt;/td&gt;&lt;td&gt;9.50%&lt;/td&gt;&lt;td&gt;168&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;59&lt;/td&gt;&lt;td&gt;259&lt;/td&gt;&lt;td&gt;518&lt;/td&gt;&lt;td&gt;87.1%&lt;/td&gt;&lt;td&gt;4.95%&lt;/td&gt;&lt;td&gt;86&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;100&lt;/td&gt;&lt;td&gt;300&lt;/td&gt;&lt;td&gt;600&lt;/td&gt;&lt;td&gt;85.0%&lt;/td&gt;&lt;td&gt;2.95%&lt;/td&gt;&lt;td&gt;50&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;300&lt;/td&gt;&lt;td&gt;500&lt;/td&gt;&lt;td&gt;1,000&lt;/td&gt;&lt;td&gt;75.0%&lt;/td&gt;&lt;td&gt;0.99%&lt;/td&gt;&lt;td&gt;15&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The useful shortcut is that the bound is close to 3/n. Read the last column carefully: after a spotless audit of 300, this data still allows about 15 escapes among the remaining 1,500 items. That is good enough to steer closure, and nowhere near good enough to stop checking. A single escape in 300 samples moves the bound to about 1.57%, or roughly 24 items, and gives you a real failure to study.&lt;/p&gt;
&lt;p&gt;The calculation assumes random, independent samples drawn from the same population. Real escapes tend to cluster, so also split the sample by block, corner and structure type, and draw more where failure would cost most.&lt;/p&gt;

&lt;h2 id=&quot;gates-6-7&quot;&gt;Gates 6 and 7: sign-off, then silicon&lt;/h2&gt;
&lt;p&gt;Gate 6 is simple to state: run what the foundry requires, across all required modes and corners, however the design was produced. AI can reduce the surprises that arrive here, but it does not change what the stage is for. If a corner was dropped during closure on a model&#39;s advice, it returns here.&lt;/p&gt;
&lt;p&gt;Gate 7 closes the loop. When silicon returns, compare measurements with the sign-off prediction and the model&#39;s prediction, and keep the three apart. A model that agrees with the solver and disagrees with silicon has learned the solver&#39;s error. Do not carry it to the next project without working out why.&lt;/p&gt;

&lt;h2 id=&quot;physics-limits&quot;&gt;What physics does not settle&lt;/h2&gt;
&lt;p&gt;A solver is also a model, with inputs that can be wrong. Our &lt;a href=&quot;/2026/11/backside-power-delivery-design-rules.html&quot;&gt;post on backside power delivery&lt;/a&gt; covers an example. In an imec-led study accepted for ESSERC 2025, Chen et al. report that uniform power assumptions substantially underestimate peak temperatures, and that backside delivery can look beneficial in a 3D stack under uniform power yet shows clear thermal penalties under localised workloads. The conclusion turned on the power input given to the analysis.&lt;/p&gt;
&lt;p&gt;This has a direct bearing on AI. The IR drop models above were scored against HSPICE, and the nanosheet model against TCAD. Agreement with those references tells you the model matches the reference, and nothing more. Where the same tool also generates the training data, the check cannot reveal an error they share. That is why the inputs deserve review and why gate 7 is on this list.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Liu, Cheng, Wu and Chen, &quot;&lt;a href=&quot;https://doi.org/10.1145/3676536.3676756&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;CFIRSTNET: Comprehensive Features for Static IR Drop Estimation with Neural Network&lt;/a&gt;&quot;, ICCAD 2024. Tables 2 and 3.&lt;/li&gt;
&lt;li&gt;Zhang et al., &quot;&lt;a href=&quot;https://doi.org/10.1145/3649329.3656251&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Disentangle, Align and Generalize: Learning A Timing Predictor from Different Technology Nodes&lt;/a&gt;&quot;, DAC 2024. Table 2.&lt;/li&gt;
&lt;li&gt;Jiang, Liu, Ma, Zhang, Yu and Young, &quot;&lt;a href=&quot;https://doi.org/10.1145/3400302.3415704&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Neural-ILT: Migrating ILT to Neural Networks for Mask Printability and Complexity Co-optimization&lt;/a&gt;&quot;, ICCAD 2020. Table 1.&lt;/li&gt;
&lt;li&gt;Choi, Jeong, Kong and Kim, &quot;&lt;a href=&quot;https://doi.org/10.1145/3658617.3697611&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Hybrid Compact Modeling Strategy: A Fully-Automated and Accurate Compact Model with Physical Consistency&lt;/a&gt;&quot;, ASP-DAC 2025. Abstract.&lt;/li&gt;
&lt;li&gt;Chen et al., &quot;&lt;a href=&quot;https://arxiv.org/abs/2508.02284&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Thermal Implications of Non-Uniform Power in BSPDN-Enabled 2.5D/3D Chiplet-based Systems-in-Package using Nanosheet Technology&lt;/a&gt;&quot;, arXiv:2508.02284, August 2025, accepted for ESSERC 2025. Abstract.&lt;/li&gt;
&lt;li&gt;Hu and Kahng, &quot;Invited Paper: &lt;a href=&quot;https://vlsicad.ucsd.edu/Publications/Conferences/399/c399.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;The Inevitability of AI Infusion Into Design Closure and Signoff&lt;/a&gt;&quot;, UC San Diego publications archive, file dated February 2025.&lt;/li&gt;
&lt;li&gt;Fu et al., &quot;&lt;a href=&quot;https://arxiv.org/abs/2603.11287&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Synthesis-in-the-Loop Evaluation of LLMs for RTL Generation: Quality, Reliability, and Failure Modes&lt;/a&gt;&quot;, arXiv:2603.11287, March 2026, revised May 2026. Accepted at GLSVLSI 2026.&lt;/li&gt;
&lt;li&gt;Ansys, &quot;Confidence Score&quot;, Ansys SimAI User&#39;s Guide, undated, copyright 2026. Vendor document.&lt;/li&gt;
&lt;li&gt;Crozier, &quot;&lt;a href=&quot;https://blogs.sw.siemens.com/cicv/2026/07/29/self-verifying-eda-ai-agents/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Self-verifying, long-running EDA AI agents that engineers can trust&lt;/a&gt;&quot;, Siemens EDA blog, 29 July 2026. Vendor claim.&lt;/li&gt;
&lt;li&gt;Rey, &quot;&lt;a href=&quot;https://bits-chips.com/article/trustworthy-ai-for-ic-sign-off-and-manufacturing/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Trustworthy AI for IC sign-off and manufacturing&lt;/a&gt;&quot;, Bits&amp;amp;Chips, 1 October 2026. Vendor executive&#39;s opinion.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The audit budget uses illustrative inputs. Ratios and percentages not stated in a paper are our arithmetic from its tables. The gate list is our own synthesis, and vendor statements are the companies&#39; own positions as published on the dates shown.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/5782440749549439103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/seven-gates-before-you-act-on-ai-result.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/5782440749549439103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/5782440749549439103'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/seven-gates-before-you-act-on-ai-result.html' title='Seven Gates Before You Act on an AI Result in Chip Design'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyAcJ-x5TJd3Bz_xD9a99uBW4muwAt8-dM9E0E5UcZ03zFCi7NthgMvw8918qyogZzigviF_rHa_w4qL9-Wr4NUNcHDH-5k6_czGJUTxDmkhcJOgM3YMy6JatTV3h5PEUUmJtMaLvf4n2WQdhYlrrGzZSRU3InqJEWNylIW9rjmIL9z_j46g9dxw/s72-c/t125.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-1074833800107166707</id><published>2026-11-30T17:00:00.000+05:30</published><updated>2026-11-30T17:00:00.120+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Reliability"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>ECC-Protected FIFO Design: SECDED Encoding and Decoding at Full Throughput (FIFO Series, Part 27)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 27, ECC-Protected FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4RFrBwsSzCCohYeggKQq0uNBz96WPIBa9LRUI4X-OAx6vUGwJYbtmbppwiMOe3phYPagutSELnNnUkGIBp8_p192Hm97XKtdRoRc-ACXlP1mAinEQW-R2jOu_ir8SPP2g1hrGKtLF6Hc2TQH0OytjJFzEk7Iw1mm0f9Pmktn721OrRGXWaXIvFw/s1600/fifo-27-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 27, ECC-Protected FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A FIFO that holds data for only a few cycles still holds it in storage that can be upset. A particle strike, a marginal SRAM cell at low voltage, or a weak flop at a corner can flip a bit between the push and the pop. In a chip that must not return wrong data silently, such as a server memory path, an automotive controller or a network switch, every FIFO on the data path is part of the error budget.&lt;/p&gt;
&lt;p&gt;This part adds SECDED protection to a FIFO: single-error correction and double-error detection, a Hamming code with one extra parity bit, the scheme widely used for server memory. The goal is to do it at full throughput, one push and one pop every cycle, and to keep the encoder and decoder off the paths that already set the FIFO&#39;s clock rate.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Encode on the way in and decode on the way out. The storage holds codewords, so 32 data bits become 39 stored bits and 64 become 72.&lt;/li&gt;
&lt;li&gt;The decoder is three XOR trees and a small decoder: the syndrome, an overall parity bit, and a one-hot correction. A single flipped bit is corrected, two flipped bits are flagged.&lt;/li&gt;
&lt;li&gt;Put the decode after the registered read, or in its own pipeline stage. The encoder usually fits in the write cycle.&lt;/li&gt;
&lt;li&gt;Three or more flipped bits are always flagged by this decoder, but can be miscorrected and reported as a single error. That is the limit of SECDED, not a bug.&lt;/li&gt;
&lt;li&gt;Verify with an error injection port, an exhaustive sweep of every single and double error, and a scoreboard that knows how many bits were flipped in each entry.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem it solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#uarch&quot;&gt;Micro-architecture: the SECDED code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem it solves&lt;/h2&gt;
&lt;p&gt;A parity bit per entry detects one flipped bit but cannot fix it, so the system must retry or report a fatal error. Deep in a data path, with no copy upstream, a retry may not be possible.&lt;/p&gt;
&lt;p&gt;SECDED fixes the common case and flags the rare one. A single upset, the most likely event in a small structure, is corrected in line and counted. A double upset is reported, so the data can be poisoned instead of passed on silently. The cost is a few bits per entry and XOR logic at each end.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn block diagram of an ECC-protected FIFO: wdata passes through a SECDED encoder into a storage array of 39-bit codewords, and the read side passes the registered codeword through a syndrome decoder and correction to rdata, with sbe and dbe flags.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY2S62uWYpR5LGsdoeHWMu0bgOuTdngGFV_BJNVWp8xJYj0CFt0q0YaBfgosdAmFjuBONjAn1QmcfgQpub3BoZybNPggf_jC67uqLLVTBTxUqXaKfdbr45UK45RbNTrHWmyCCIeY8JoU42BL4lftPluU3Omy2y6bNrUIYiIrhbVcIkIq7-f10gQA/s1600/fifo-27-block.jpg&quot; title=&quot;Hand-drawn block diagram of an ECC-protected FIFO: wdata passes through a SECDED encoder into a storage array of 39-bit codewords, and the read side passes the registered codeword through a syndrome decoder and correction to rdata, with sbe and dbe flags.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The data interface is unchanged from Part 1: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt;, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt;. Three outputs and one test input are added:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sbe&lt;/code&gt;: the data on &lt;code&gt;rdata&lt;/code&gt; had one flipped bit, which has been corrected.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dbe&lt;/code&gt;: the data on &lt;code&gt;rdata&lt;/code&gt; is uncorrectable. Treat it as poisoned.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sbe_cnt&lt;/code&gt; and &lt;code&gt;dbe_seen&lt;/code&gt;: a saturating count of corrected errors and a sticky uncorrectable flag, for software or a safety monitor to read.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;inj_mask&lt;/code&gt;: an error injection mask XORed into the codeword on the write path. It is tied to zero in mission mode and driven by tests and by built-in self-test.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The flags arrive with the data, one cycle after the pop, qualified by a read-valid bit.&lt;/p&gt;

&lt;h2 id=&quot;uarch&quot;&gt;Micro-architecture: the SECDED code&lt;/h2&gt;
&lt;p&gt;Number the codeword bits from 1. The positions that are powers of two, 1, 2, 4, 8 and so on, hold check bits. Every other position holds a data bit, in order. Check bit &lt;em&gt;p&lt;/em&gt; is the XOR of every position whose index has bit &lt;em&gt;p&lt;/em&gt; set. Bit 0 holds one more parity bit over the whole word.&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn layout of a SECDED codeword: check bits at positions 1, 2, 4, 8, 16 and 32, data bits in the other positions, overall parity at position 0, and a decision table for syndrome and overall parity.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFsUx7dWx5qYUi7a4akYY8rw1RoNbD3vbAGZ5baAwWY4UYfgU_oLGBuohGIECCnE60pcdcRb9HTFnKKPPo-no_IV4h5QvfBHpT8OLwHGfBm7uV7cSRLGcd5aZ2NeXf3-Rz8Vx1LaaEGkmdL2UV4znO4UU6bNvXWgk5hN2orXvd9SlFfmaJAt1Jnw/s1600/fifo-27-code.jpg&quot; title=&quot;Hand-drawn layout of a SECDED codeword: check bits at positions 1, 2, 4, 8, 16 and 32, data bits in the other positions, overall parity at position 0, and a decision table for syndrome and overall parity.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;On the read side, XOR together the indices of every bit that is set. For a clean codeword this syndrome is zero. If exactly one bit flipped, the syndrome is the index of that bit, and the overall parity is odd. That gives a four-way decision:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Syndrome zero, parity even.&lt;/strong&gt; No error.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parity odd, syndrome points inside the word.&lt;/strong&gt; One error. Flip the bit the syndrome names. A zero syndrome with odd parity means the overall parity bit itself flipped.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parity even, syndrome non-zero.&lt;/strong&gt; Two errors. Flag &lt;code&gt;dbe&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parity odd, syndrome outside the word.&lt;/strong&gt; An odd number of errors, at least three. Flag &lt;code&gt;dbe&lt;/code&gt;. This happens when the code is shortened, as it is for 32 data bits: six check bits can name 63 positions, but only 38 exist.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The number of check bits is the smallest P with 2 to the power P at least W + P + 1. For W of 4 or more, &lt;code&gt;$clog2(W + $clog2(W) + 1)&lt;/code&gt; gives it, which the model checks for every width from 4 to 1024.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;p&gt;Encoder and decoder as loops that synthesis unrolls into XOR trees, around the flip-flop FIFO from Part 1:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;module ecc_fifo #(
  parameter int W     = 32,
  parameter int DEPTH = 16,                   // power of two
  localparam int AW   = $clog2(DEPTH),
  localparam int P    = $clog2(W + $clog2(W) + 1),
  localparam int CW   = W + P + 1             // 39 for W = 32
) (
  input  logic          clk, rst_n,
  input  logic          push,
  input  logic [W-1:0]  wdata,
  input  logic [CW-1:0] inj_mask,             // tie to 0 in mission mode
  output logic          full,
  input  logic          pop,
  output logic [W-1:0]  rdata,
  output logic          sbe, dbe,             // valid with rdata
  output logic [7:0]    sbe_cnt,
  output logic          dbe_seen,
  output logic          empty
);
  function automatic logic [CW-1:0] enc(input logic [W-1:0] d);
    int k = 0;
    enc = &#39;0;
    for (int pos = 1; pos &amp;lt; CW; pos++)
      if ((pos &amp;amp; (pos - 1)) != 0) begin enc[pos] = d[k]; k++; end
    for (int p = 0; p &amp;lt; P; p++)
      for (int pos = 1; pos &amp;lt; CW; pos++)
        if (((pos &amp;gt;&amp;gt; p) &amp;amp; 1) &amp;amp;&amp;amp; ((pos &amp;amp; (pos - 1)) != 0))
          enc[1 &amp;lt;&amp;lt; p] ^= enc[pos];
    enc[0] = ^enc[CW-1:1];
  endfunction

  logic [CW-1:0] mem [DEPTH];
  logic [AW:0]   wptr, rptr;
  logic [CW-1:0] rcw;                         // registered codeword
  logic          rvalid;

  assign empty = (wptr == rptr);
  assign full  = (wptr[AW-1:0] == rptr[AW-1:0]) &amp;amp;&amp;amp; (wptr[AW] != rptr[AW]);
  wire do_pop  = pop  &amp;amp;&amp;amp; !empty;
  wire do_push = push &amp;amp;&amp;amp; (!full || do_pop);

  // decode the registered codeword
  logic [P-1:0]  syn;
  logic          par;
  logic [CW-1:0] cc;
  always_comb begin
    int k;
    k   = 0;
    syn = &#39;0;
    for (int pos = 1; pos &amp;lt; CW; pos++)
      if (rcw[pos]) syn ^= P&#39;(pos);
    par = ^rcw;
    cc  = rcw;
    if (par &amp;amp;&amp;amp; syn &amp;lt; CW) cc[syn] = ~cc[syn];
    for (int pos = 1; pos &amp;lt; CW; pos++)
      if ((pos &amp;amp; (pos - 1)) != 0) begin rdata[k] = cc[pos]; k++; end
    sbe = rvalid &amp;amp;&amp;amp; par &amp;amp;&amp;amp; (syn &amp;lt; CW);
    dbe = rvalid &amp;amp;&amp;amp; (par ? (syn &amp;gt;= CW) : (syn != 0));
  end

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr &amp;lt;= &#39;0;  rptr &amp;lt;= &#39;0;  rvalid &amp;lt;= 1&#39;b0;
      sbe_cnt &amp;lt;= &#39;0;  dbe_seen &amp;lt;= 1&#39;b0;
    end else begin
      if (do_push) wptr &amp;lt;= wptr + 1&#39;b1;
      if (do_pop)  rptr &amp;lt;= rptr + 1&#39;b1;
      rvalid &amp;lt;= do_pop;
      if (sbe &amp;amp;&amp;amp; sbe_cnt != 8&#39;hFF) sbe_cnt &amp;lt;= sbe_cnt + 1&#39;b1;
      if (dbe) dbe_seen &amp;lt;= 1&#39;b1;
    end

  always_ff @(posedge clk) begin
    if (do_push) mem[wptr[AW-1:0]] &amp;lt;= enc(wdata) ^ inj_mask;
    if (do_pop)  rcw &amp;lt;= mem[rptr[AW-1:0]];
  end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that &lt;code&gt;rdata&lt;/code&gt; holds its value between pops, as in Part 1, because &lt;code&gt;rcw&lt;/code&gt; only loads on a pop. The flags drop after one cycle because &lt;code&gt;rvalid&lt;/code&gt; does. The sketch was checked with a Python model that mirrors it line for line: every single and double error at widths 8, 32 and 64, and 600,000 random FIFO cycles with 0 to 3 bits injected per entry, against a reference queue. Single errors were always corrected, double errors always flagged, and no three-bit error was ever silent.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Error in a check bit.&lt;/strong&gt; The data is already correct. The decoder still flips the check bit and reports &lt;code&gt;sbe&lt;/code&gt;, which is right: the stored word did have an error, and the count should reflect it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error in the overall parity bit.&lt;/strong&gt; Syndrome zero, parity odd. Report a single error; the data needs no change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Three or more errors.&lt;/strong&gt; With odd parity and a syndrome inside the word, the decoder flips a wrong bit and reports &lt;code&gt;sbe&lt;/code&gt;. Nothing in a SECDED code can tell this from a true single error. If the system cannot tolerate that risk, use a stronger code or add a separate check such as a CRC on the packet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uninitialized storage.&lt;/strong&gt; The array has no reset, so an entry that was never written decodes to garbage. That is harmless as long as nothing reads it, and the empty flag guarantees that. Do not run a decoder on idle reads, or &lt;code&gt;dbe&lt;/code&gt; will fire on power-up junk; the &lt;code&gt;rvalid&lt;/code&gt; qualifier handles it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pointers and flags.&lt;/strong&gt; ECC on the data does nothing for an upset in a pointer register. A flipped pointer bit reorders or loses data with no flag. Safety designs protect pointers with parity or duplication and compare, which costs little because pointers are small.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn pipeline options for an ECC-protected FIFO: decoding in the same cycle as the registered read, or adding a decode stage that costs one cycle of latency but keeps full throughput.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeR_VIp8fG2Z6U6t-zUnGv5auG98VbnMe5fVDrERaX1Rw9sAyfk2F1OX9bIhbybf_Y95nM__Ffckt_iSVcWOK6GYAmCE2Xm9JjBilh3xdn9nzf28DB0mH_wvNyXTeiRhViv-_mbFwD6GEWAmIw_Tv1dQTGw-VJLFXrXRAIbJRB8Gsa7NUgEVOWJQ/s1600/fifo-27-pipeline.jpg&quot; title=&quot;Hand-drawn pipeline options for an ECC-protected FIFO: decoding in the same cycle as the registered read, or adding a decode stage that costs one cycle of latency but keeps full throughput.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Encoder.&lt;/strong&gt; Each check bit is an XOR of roughly half the data bits, so a tree of depth about log2 of W. It sits between &lt;code&gt;wdata&lt;/code&gt; and the array. If &lt;code&gt;wdata&lt;/code&gt; arrives late, register it first and encode in the next cycle, at the cost of one cycle of latency on the push side.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decoder.&lt;/strong&gt; Syndrome trees in parallel with the overall parity tree, then a P-to-CW one-hot decode, then one XOR per data bit. That is longer than the encoder. Doing it after the read register is usually fine for a FIFO; at high clock rates add a register after the decoder. Throughput stays at one entry per cycle either way; only latency grows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Area.&lt;/strong&gt; 7 extra bits on 32 is about 22 percent more storage, 8 on 64 is 12.5 percent. Wider words are cheaper per bit, which is one reason buses protect 64-bit or wider words.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; Load the decoder input register only on &lt;code&gt;do_pop&lt;/code&gt;, as the sketch does, so idle cycles do not toggle the XOR trees.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bypass paths.&lt;/strong&gt; A first-word fall-through FIFO with a bypass from &lt;code&gt;wdata&lt;/code&gt; to &lt;code&gt;rdata&lt;/code&gt; skips the storage, so the bypass data needs no decode. Mux after the decoder, not before, so the bypass path is not slowed down.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;An exhaustive unit test of the codec: for many random data words, every single-bit flip must correct with &lt;code&gt;sbe&lt;/code&gt;, and every pair must flag &lt;code&gt;dbe&lt;/code&gt; with no &lt;code&gt;sbe&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A scoreboard that records, for each push, the data and how many bits were injected. On the pop, zero flips must give clean data, one must give corrected data and &lt;code&gt;sbe&lt;/code&gt;, two must give &lt;code&gt;dbe&lt;/code&gt;, and three or more must raise at least one flag.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_flags_excl: assert property (@(posedge clk) disable iff (!rst_n)
                !(sbe &amp;amp;&amp;amp; dbe));
a_flags_qual: assert property (@(posedge clk) disable iff (!rst_n)
                (sbe || dbe) |-&amp;gt; rvalid);
a_no_inj:     assert property (@(posedge clk) disable iff (!rst_n)
                mission_mode |-&amp;gt; inj_mask == &#39;0);&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: an error in every bit position, including each check bit and the overall parity bit; double errors that hit two check bits; errors at the full boundary with push and pop in the same cycle; and the counter saturating.&lt;/li&gt;
&lt;li&gt;Formal suits the codec alone: prove single correction and double detection for all data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. How many check bits does SECDED need for 64 data bits, and why?&lt;/h3&gt;
&lt;p&gt;A strong answer derives seven Hamming bits from 2 to the power P at least W + P + 1, adds one overall parity bit for double detection, and arrives at 72 bits.&lt;/p&gt;
&lt;h3&gt;2. Walk through the decoder&#39;s decision table.&lt;/h3&gt;
&lt;p&gt;A strong answer covers all four cases of syndrome and overall parity, including the zero syndrome with odd parity and the syndrome that points outside a shortened word.&lt;/p&gt;
&lt;h3&gt;3. Where do you put the decoder in a FIFO running at a high clock rate?&lt;/h3&gt;
&lt;p&gt;A strong answer places it after the registered read and adds a pipeline stage if needed, stating that throughput is unchanged and only latency grows.&lt;/p&gt;
&lt;h3&gt;4. What does SECDED not protect you from in this FIFO?&lt;/h3&gt;
&lt;p&gt;A strong answer names miscorrected triple errors and upsets in the pointers, and proposes parity or duplication on the pointers.&lt;/p&gt;
&lt;h3&gt;5. How do you verify ECC when the simulator never flips bits on its own?&lt;/h3&gt;
&lt;p&gt;A strong answer describes an injection mask on the write path, a scoreboard that tracks the injected flip count, an exhaustive codec test, and formal proofs on the codec.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;ECC-protected FIFOs sit in memory controller read and write queues, in the data buffers of PCIe and CXL controllers, in NoC routers on chips with reliability targets, and in the staging buffers of DMA engines and accelerators that move large data sets. In safety-related designs they usually come with pointer protection and an error reporting path to a central fault collector.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 26 covered the checkpointed FIFO, which saves the write pointer at each guess and restores it on a misprediction.&lt;/p&gt;
&lt;p&gt;Part 28 turns to power: a low-power FIFO with clock gating and bank gating that never loses data or throughput.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/1074833800107166707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/ecc-protected-fifo-design-secded.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/1074833800107166707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/1074833800107166707'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/ecc-protected-fifo-design-secded.html' title='ECC-Protected FIFO Design: SECDED Encoding and Decoding at Full Throughput (FIFO Series, Part 27)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4RFrBwsSzCCohYeggKQq0uNBz96WPIBa9LRUI4X-OAx6vUGwJYbtmbppwiMOe3phYPagutSELnNnUkGIBp8_p192Hm97XKtdRoRc-ACXlP1mAinEQW-R2jOu_ir8SPP2g1hrGKtLF6Hc2TQH0OytjJFzEk7Iw1mm0f9Pmktn721OrRGXWaXIvFw/s72-c/fifo-27-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-6286840980688165027</id><published>2026-11-30T15:00:00.000+05:30</published><updated>2026-11-30T15:00:00.111+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advanced Packaging"/><category scheme="http://www.blogger.com/atom/ns#" term="AI Hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="HBM"/><category scheme="http://www.blogger.com/atom/ns#" term="Semiconductor Manufacturing"/><category scheme="http://www.blogger.com/atom/ns#" term="Special Reports"/><title type='text'>Three Supplies, One Accelerator: Why Packaging Caps AI Chip Output in 2026</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;A large AI accelerator package with two logic dies and eight HBM stacks on an interposer, above a tray, with an interposer wafer behind it.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsJUeHrnu6wg6kneEg68AGD9cl5jbyqs3UaWc56o9caOUJv-WPbjRC4flQ6Q6JFrr0UE2HoMoPjKiH5qMgkObEivVEDnvxv4H0AFSwg3XeqDMJ2o4_BCCVgEeZCULQAX5S74b3RrrJcNyknRFgExq-FdhfYaYGSlLuuKpYb8J1SB_9tUDYvVhAIw/s1600/tr01-packaging-bottleneck.jpg&quot; title=&quot;A large AI accelerator package with two logic dies and eight HBM stacks on an interposer, above a tray, with an interposer wafer behind it.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Ask how many AI accelerators the industry can ship in a month, and the natural place to look is the leading-edge wafer: how many 3 nm or 2 nm starts a foundry can run. For large accelerators in 2026, that is often the wrong place. Each part also needs an interposer that can be more than three times the size of a lithography reticle, several stacks of high-bandwidth memory (HBM), and an assembly line that joins them with good yield. When any one of those runs short, finished wafers wait in a warehouse.&lt;/p&gt;
&lt;p&gt;This special report sets out why the back end, not the transistor node, so often sets the count, using what TSMC, SK hynix and Intel said publicly up to Nov 26, 2026. It then works through a scripted example that counts accelerators per month from three separate supplies. &lt;strong&gt;The example&#39;s inputs are illustrative, not data from any company&lt;/strong&gt;, and its headline result, that packaging binds first and that fixing it moves the limit to memory or logic, depends on those inputs. The last sections cover what design teams can do about it.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A large AI accelerator draws on three supplies at once: logic wafers, CoWoS-class interposer and assembly capacity, and HBM stacks. Output is set by whichever runs out first.&lt;/li&gt;
&lt;li&gt;A silicon interposer several reticles in size uses a whole 300 mm wafer to make only a handful of package sites. In our illustrative case, 100,000 packages need about 4,900 logic wafers but about 6,900 interposer wafers.&lt;/li&gt;
&lt;li&gt;TSMC said on its Oct 15, 2026 earnings call that it was in volume production of 5x reticle-size advanced packaging with good yield, and working toward 9x and 14x. Its CFO said tool supply was tight.&lt;/li&gt;
&lt;li&gt;SK hynix said on Oct 28, 2026 that long-term agreements already cover more than half of its total production capacity for 2027 and 2028, and that it expects demand to exceed supply through 2030.&lt;/li&gt;
&lt;li&gt;Design choices move the limit. In our example, a smaller interposer with six HBM stacks instead of eight raises monthly output by about 18%, at the cost of 25% less memory per part, and the limit then moves to logic wafers.&lt;/li&gt;
&lt;li&gt;Bridges, organic interposers and panel-level processing all add capacity in different ways. None of them removes the HBM limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;two-factories&quot;&gt;Two factories, one product&lt;/h2&gt;
&lt;p&gt;A modern AI accelerator is built in two very different factories. The front end makes the compute dies on a leading-edge logic process. The back end, which for this class of part is a high-precision wafer-level process rather than classic assembly, builds an interposer, places the compute dies and HBM stacks on it, bonds them, fills the gaps, attaches the result to an organic substrate and tests it. TSMC&#39;s name for its family of these processes is CoWoS, short for chip on wafer on substrate. Our explainer on &lt;a href=&quot;/2025/11/silicon-interposers-explained-hidden.html&quot;&gt;silicon interposers and 2.5D packaging&lt;/a&gt; covers how the interposer works, so this report concentrates on capacity.&lt;/p&gt;
&lt;p&gt;Three facts make the back end a capacity problem rather than a footnote.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The interposer is bigger than any die.&lt;/strong&gt; A lithography field is about 26 mm by 33 mm, or 858 mm². Compute dies are kept under that limit. Interposers are not, because they must also hold the memory. TSMC said in its Apr 22, 2026 symposium release that it was producing 5.5-reticle CoWoS, and that a 14-reticle version able to carry about 10 large compute dies and 20 HBM stacks was slated for production in 2028.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every part needs several HBM stacks.&lt;/strong&gt; HBM is made by memory companies on DRAM wafers, stacked and tested before it reaches the packaging line. The packaging line can only build as many accelerators as it has memory stacks to place.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Yield compounds at assembly.&lt;/strong&gt; A package carries dies that were each tested on their own. A fault introduced during bonding can scrap a part worth far more than the interposer. So the back end runs slowly and conservatively, with heavy test.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;None of this means logic wafers are plentiful. TSMC&#39;s chief executive said on Oct 15, 2026 that the gap between demand and supply was still quite big. The point is narrower: for large multi-die parts, a wafer of interposers yields far fewer finished products than a wafer of compute dies, so packaging capacity often runs out first.&lt;/p&gt;

&lt;h2 id=&quot;public-record&quot;&gt;What the companies have said&lt;/h2&gt;
&lt;p&gt;Capacity figures for CoWoS are not published by TSMC, and the numbers that circulate come from analysts and the trade press. We have kept to what the companies themselves said, with the date of each statement. The companies define their products and periods differently, so these points should be read side by side, not added together.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Company and date&lt;/th&gt;&lt;th&gt;What it said&lt;/th&gt;&lt;th&gt;Why it matters for output&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;TSMC, symposium release, Apr 22, 2026&lt;/td&gt;&lt;td&gt;Producing 5.5-reticle CoWoS. A 14-reticle version with about 10 compute dies and 20 HBM stacks slated for 2028, larger sizes in 2029, and a 40-reticle SoW-X system-on-wafer expected in 2029&lt;/td&gt;&lt;td&gt;Packages keep growing, so each interposer wafer yields fewer sites per generation&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;TSMC, Q3 2026 earnings call, Oct 15, 2026&lt;/td&gt;&lt;td&gt;Volume production at 5x reticle size with what the CEO called excellent yield. Work under way on 9x and 14x, and on CoPoS, its panel-based approach, for future cost reduction. The CEO acknowledged a competitor offers a very competitive solution&lt;/td&gt;&lt;td&gt;The leading supplier is still scaling size and looking to panels for cost&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;TSMC, same call&lt;/td&gt;&lt;td&gt;Building 13 leading-edge and advanced packaging fabs in Taiwan over the next several years. 2026 capital budget of USD 60 billion to 64 billion. CFO said tool supply is tight&lt;/td&gt;&lt;td&gt;New capacity is coming, but tool lead times govern how fast&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;TSMC, same call&lt;/td&gt;&lt;td&gt;2 nm contributed 8% of wafer revenue in Q3 2026, with 3 nm at 33% and 5 nm at 28%. N2 family capacity expected to more than double in 2027&lt;/td&gt;&lt;td&gt;Most leading-edge wafer revenue in Q3 2026 still came from 3 nm and 5 nm families&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;SK hynix, Q3 2026 results, Oct 28, 2026&lt;/td&gt;&lt;td&gt;Long-term agreements with 14 major customers cover more than 50% of total production capacity for 2027 and 2028. Demand expected to exceed supply through 2030&lt;/td&gt;&lt;td&gt;HBM is the third supply that can cap output&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Intel, newsroom feature, Jul 29, 2026&lt;/td&gt;&lt;td&gt;EMIB places small silicon bridges only where dies meet. EMIB-T adds power delivery through the bridge. Intel says it scales packages to 8x the industry standard reticle and aims for over 12x by 2028&lt;/td&gt;&lt;td&gt;A second source of large-package capability, built on a different structure&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two cautions apply. The 2 nm share is a share of TSMC&#39;s wafer revenue, not of AI accelerators, and TSMC does not break out which products use which node. And TSMC&#39;s 5x and Intel&#39;s 8x statements are each company&#39;s own description of its own process, measured in ways we cannot align, so they are not a ranking.&lt;/p&gt;

&lt;h2 id=&quot;why-back-end&quot;&gt;Why the back end binds before the wafer&lt;/h2&gt;
&lt;p&gt;Consider what a single 300 mm wafer buys you at each step.&lt;/p&gt;
&lt;p&gt;On the logic side, a compute die near the reticle limit fits several dozen times on a wafer. Even with a modest yield, one wafer supplies dies for many packages. On the packaging side, an interposer of three or more reticles fits only a dozen or so times, because it is large and because the round wafer edge wastes more of the area when the rectangles are big. Each site then has to survive interposer manufacture, die placement, bonding and test.&lt;/p&gt;
&lt;p&gt;The steps also run on different tool sets. Logic capacity is set by lithography, etch and deposition tools in the front-end fab. Interposer and assembly capacity is set by a different mix: through-silicon via formation, fine-pitch bonding, molding, thinning and the test floor. Adding one does not add the other, and TSMC&#39;s CFO noted on Oct 15, 2026 that tool supply was tight.&lt;/p&gt;
&lt;p&gt;Finally, HBM arrives from a third industry. A memory maker&#39;s own capacity plan, wafer starts and stacking yield decide how many stacks exist. SK hynix&#39;s statement that its long-term agreements cover more than half of its 2027 and 2028 capacity shows how far ahead that supply is committed. Our post on &lt;a href=&quot;/2026/11/the-ai-memory-squeeze-why-dram-prices.html&quot;&gt;the AI memory squeeze&lt;/a&gt; explains why HBM takes so much DRAM wafer area per bit.&lt;/p&gt;
&lt;p&gt;So output per month is the minimum of three numbers, and the question for any program is which of the three it is.&lt;/p&gt;

&lt;h2 id=&quot;worked-example&quot;&gt;A worked example: accelerators per month from three supplies&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Every input in this section is an illustrative assumption, not data from TSMC, SK hynix or any customer.&lt;/strong&gt; The aim is to show the method, so you can replace the inputs with your own. All the arithmetic was done by a short script, and site counts come from placing rectangles on a grid inside the usable wafer circle.&lt;/p&gt;
&lt;h3&gt;The assumed product&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Assumption&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Compute dies per package&lt;/td&gt;&lt;td&gt;2, each 28.0 mm by 28.6 mm (about 801 mm²)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;HBM stacks per package&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Interposer size&lt;/td&gt;&lt;td&gt;55 mm by 51.5 mm (about 2,833 mm², or 3.3 reticles)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Wafer&lt;/td&gt;&lt;td&gt;300 mm, 3 mm edge exclusion, 0.2 mm scribe lane&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Good compute die yield&lt;/td&gt;&lt;td&gt;60%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Interposer and assembly yield&lt;/td&gt;&lt;td&gt;90%&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;Per-wafer output&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Step&lt;/th&gt;&lt;th&gt;Sites per wafer&lt;/th&gt;&lt;th&gt;After yield&lt;/th&gt;&lt;th&gt;Packages per wafer&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Logic wafer (compute dies)&lt;/td&gt;&lt;td&gt;68&lt;/td&gt;&lt;td&gt;40.8 good dies&lt;/td&gt;&lt;td&gt;20.4 (two dies each)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Interposer wafer&lt;/td&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;14.4 good packages&lt;/td&gt;&lt;td&gt;14.4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;To build 100,000 packages you need about 4,902 logic wafers but about 6,944 interposer wafers, roughly 1.42 times as many. That ratio is the core of the argument. Even before HBM enters, the same product consumes more wafers in packaging than in logic.&lt;/p&gt;
&lt;h3&gt;Monthly supply&lt;/h3&gt;
&lt;p&gt;Now assume a program has secured the following each month: 10,000 logic wafers, 12,000 CoWoS-class interposer wafers with matching assembly capacity, and 1.6 million HBM stacks.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Supply&lt;/th&gt;&lt;th&gt;Monthly allocation (illustrative)&lt;/th&gt;&lt;th&gt;Packages it can support&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Logic wafers&lt;/td&gt;&lt;td&gt;10,000&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Interposer and assembly&lt;/td&gt;&lt;td&gt;12,000 wafers&lt;/td&gt;&lt;td&gt;172,800&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;HBM&lt;/td&gt;&lt;td&gt;1,600,000 stacks&lt;/td&gt;&lt;td&gt;200,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Output (lowest of the three)&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;172,800&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;With these inputs, packaging caps output at 172,800 accelerators a month, and about 31,200 sets of good compute dies per month have nowhere to go. A foundry could add logic wafers and nothing would change. Buying more 2 nm capacity, in this case, would only add to the inventory of unpackaged dies.&lt;/p&gt;

&lt;h2 id=&quot;levers&quot;&gt;When the gate moves&lt;/h2&gt;
&lt;p&gt;The more useful exercise is to change one thing at a time and see where the limit goes. The same script gives these results, again with illustrative inputs.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Change&lt;/th&gt;&lt;th&gt;Packaging limit&lt;/th&gt;&lt;th&gt;HBM limit&lt;/th&gt;&lt;th&gt;Logic limit&lt;/th&gt;&lt;th&gt;Output&lt;/th&gt;&lt;th&gt;Change in output&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Baseline&lt;/td&gt;&lt;td&gt;172,800&lt;/td&gt;&lt;td&gt;200,000&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;td&gt;172,800&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A. Six HBM stacks and a 46 mm by 46.6 mm interposer (2.5 reticles, 21 sites per wafer)&lt;/td&gt;&lt;td&gt;226,800&lt;/td&gt;&lt;td&gt;266,667&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;td&gt;+18.1%, logic now binds&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;B. Interposer and assembly yield raised from 90% to 95%&lt;/td&gt;&lt;td&gt;182,400&lt;/td&gt;&lt;td&gt;200,000&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;td&gt;182,400&lt;/td&gt;&lt;td&gt;+5.6%, packaging still binds&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;C. Add 40,000 packages a month on a second, bridge-based line&lt;/td&gt;&lt;td&gt;212,800&lt;/td&gt;&lt;td&gt;200,000&lt;/td&gt;&lt;td&gt;204,000&lt;/td&gt;&lt;td&gt;200,000&lt;/td&gt;&lt;td&gt;+15.7%, HBM now binds&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Three lessons come out of this small table.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Removing one limit exposes the next.&lt;/strong&gt; In case C, a whole second packaging line adds less than its nameplate, because memory runs out at 200,000. In case A, logic becomes the limit. This is why capacity planning has to model all three supplies together.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Architecture is the strongest lever.&lt;/strong&gt; Case A changes the product, not the factory, and gains the most. Its cost is real: each part carries 25% less HBM capacity and bandwidth, which matters a great deal for inference on large models.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Yield work pays, but slowly.&lt;/strong&gt; Five points of assembly yield buy 5.6% more output. Worth doing, but it is not a substitute for capacity.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Change the inputs and the order changes too. A program with a smaller interposer, or one that bought HBM aggressively, may find logic is its limit. The method matters more than the answer.&lt;/p&gt;

&lt;h2 id=&quot;design-options&quot;&gt;What design teams can do&lt;/h2&gt;
&lt;p&gt;Most of the decisions that set a product&#39;s packaging demand are made at architecture time, long before anyone books capacity. These are the main options, each with its trade.&lt;/p&gt;
&lt;h3&gt;Bridges instead of a full silicon interposer&lt;/h3&gt;
&lt;p&gt;A full silicon interposer puts fine-pitch silicon wiring under every die, though dense wiring is only needed where dies meet. Bridge approaches embed small pieces of silicon only at those edges. Intel describes EMIB and EMIB-T this way, and TSMC&#39;s CoWoS-L, one of the three CoWoS variants TSMC lists, follows a similar idea with small silicon interconnect pieces inside a larger interposer, as our interposer explainer describes. The gain for capacity is that large bridged packages need much less silicon interposer area per package, and in Intel&#39;s case run on a different supplier&#39;s lines. The cost is a design that must respect bridge placement and the different electrical behavior of the organic regions. Our &lt;a href=&quot;/2025/11/cowos-vs-emib-2026-ppac-decision-guide.html&quot;&gt;CoWoS versus EMIB decision guide&lt;/a&gt; sets out the power, performance, area and cost trade in detail.&lt;/p&gt;
&lt;h3&gt;Organic interposers&lt;/h3&gt;
&lt;p&gt;An interposer built from polymer and copper redistribution layers, the approach behind TSMC&#39;s CoWoS-R variant, avoids the silicon interposer wafer entirely. It suits designs whose die-to-die links can live with coarser wiring than silicon offers. For HBM-heavy parts, the question is whether the memory interface can be routed at the available line and space without losing bandwidth or adding power.&lt;/p&gt;
&lt;h3&gt;Panel-level processing&lt;/h3&gt;
&lt;p&gt;A rectangular panel wastes less area on large rectangles than a round wafer does. In our illustrative geometry, a 510 mm by 515 mm panel with a 5 mm edge margin holds 81 sites for the 55 mm by 51.5 mm interposer, against 16 on a 300 mm wafer: 5.06 times as many from 3.72 times the raw area. The panel dimensions here are an assumption for the arithmetic, not any supplier&#39;s specification. TSMC said on Oct 15, 2026 that it was working on CoPoS to offer a reasonable cost reduction in the future, and gave no production date on that call. Panels bring their own problems with warpage, handling and fine-pitch lithography over a large area, so they are a capacity lever to plan around, not one to count on for a 2027 product.&lt;/p&gt;
&lt;h3&gt;Fewer, or different, memory stacks&lt;/h3&gt;
&lt;p&gt;Case A above shows how much leverage the stack count carries. Fewer stacks shrink the interposer, raise sites per wafer and stretch the HBM supply. The design team then has to recover bandwidth some other way: larger on-chip SRAM, better data reuse, compression, or a split between parts that need large memory and parts that do not. This is a product decision as much as a packaging one, and it should be taken with the software team in the room.&lt;/p&gt;
&lt;h3&gt;Partition for the package you can get&lt;/h3&gt;
&lt;p&gt;A design split into two compute dies has different options from one split into four smaller dies. Smaller dies raise logic yield and may suit a bridge-based package. They also add die-to-die links, which cost power and area, and more parts to place, which can lower assembly yield. The right split depends on which supply is scarce for your program, which is why the three-supply model is worth running before the partition is frozen.&lt;/p&gt;
&lt;h3&gt;Design for test and known good die&lt;/h3&gt;
&lt;p&gt;Because one bad die scraps a whole package, every percentage point of escaped defects at wafer sort costs far more after assembly. Investment in wafer-level test coverage for compute dies, and in testable die-to-die interfaces, shows up directly as packaging yield. Case B shows the scale of the gain.&lt;/p&gt;
&lt;h3&gt;Book the back end with the front end&lt;/h3&gt;
&lt;p&gt;Packaging capacity has to be reserved alongside wafer starts, and in many programs the two are negotiated separately. Treat the interposer and assembly plan, the HBM supply agreement and the wafer booking as one plan with one owner. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/chiplet&quot;&gt;chiplet lifecycle&lt;/a&gt; on The Semiconductor Hub shows where these decisions fall in a multi-die program.&lt;/p&gt;

&lt;h2 id=&quot;node-question&quot;&gt;What this means for the node decision&lt;/h2&gt;
&lt;p&gt;None of the above makes the logic node unimportant. A newer node packs more compute into each reticle-sized die, which raises the work done per package and so per unit of scarce packaging. In that sense, a move to 2 nm can relieve packaging pressure: the same number of packages ships more compute.&lt;/p&gt;
&lt;p&gt;The reverse also holds. A team that moves to a newer node but keeps the same package size and stack count will find its output still set by the back end. And a newer node, early in its ramp, may carry lower die yield, which shifts the balance back toward logic. TSMC reported that 2 nm was 8% of its wafer revenue in Q3 2026 and expects N2 family capacity to more than double in 2027, so the node mix for accelerators will keep changing. The practical rule is to rerun the three-supply model for each node option rather than assume the node decision settles output.&lt;/p&gt;

&lt;h2 id=&quot;beyond-packaging&quot;&gt;Where the limit goes next&lt;/h2&gt;
&lt;p&gt;Packaging is not the last limit. Our earlier post, &lt;a href=&quot;/2026/11/after-cowos-optics-where-ai-hardware.html&quot;&gt;After CoWoS, optics&lt;/a&gt;, argues that the pressure is spreading to the links between chips, boards and racks, and TSMC&#39;s Oct 15, 2026 call included an analyst question about laser supply for networking. Power delivery and cooling for kilowatt-class packages are another. For a design team the general lesson is the same as in the worked example: whatever is scarce sets the output, and the scarce thing moves.&lt;/p&gt;

&lt;h2 id=&quot;review-questions&quot;&gt;Questions for a program review&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Which of the three supplies limits us?&lt;/strong&gt; Write down monthly logic wafers, interposer and assembly capacity, and HBM stacks, and convert each to packages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What is our interposer size in reticles, and why?&lt;/strong&gt; Every extra half-reticle costs sites per wafer.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do we need every HBM stack on every part?&lt;/strong&gt; If not, a second package variant may raise output more than any capacity purchase.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is a bridge-based or second-source package qualified?&lt;/strong&gt; If the only path is one process at one supplier, the schedule belongs to that supplier.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What are our known-good-die escape rate and assembly yield?&lt;/strong&gt; Both multiply straight into output.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Who owns the joint plan?&lt;/strong&gt; Wafer, packaging and memory bookings should have one owner and one forecast.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;faq&quot;&gt;FAQ&lt;/h2&gt;
&lt;h3&gt;Is CoWoS capacity published anywhere?&lt;/h3&gt;
&lt;p&gt;Not by TSMC in the materials we read. Figures in circulation come from analysts and the trade press, and they differ in what they count. We have not used them here.&lt;/p&gt;
&lt;h3&gt;Does moving to 2 nm solve the shortage?&lt;/h3&gt;
&lt;p&gt;Only partly. It raises the compute per package, which helps, but if the interposer size and stack count stay the same, the back end still sets the count of finished parts.&lt;/p&gt;
&lt;h3&gt;Will panel-level packaging end the shortage?&lt;/h3&gt;
&lt;p&gt;It can raise sites per run substantially for large packages, as the geometry shows, but it is still being developed for this class of product. Plan with the capacity that is qualified for your product&#39;s dates.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;TSMC, &quot;TSMC Debuts A13 Technology at 2026 North America Technology Symposium&quot;, press release, Apr 22, 2026.&lt;/li&gt;
&lt;li&gt;TSMC, Q3 2026 earnings conference call transcript, Oct 15, 2026 (TSMC investor relations).&lt;/li&gt;
&lt;li&gt;SK hynix, Q3 2026 business results, SK hynix newsroom, Oct 28, 2026.&lt;/li&gt;
&lt;li&gt;Intel, &quot;Intel&#39;s U.S. Advanced Packaging Enables Next-Generation AI Semiconductors&quot;, Intel newsroom, Jul 29, 2026.&lt;/li&gt;
&lt;li&gt;TSMC, &quot;HPC Wafer Level System Integration&quot; technology page (CoWoS family, 5.5-reticle interposer qualification), as read on Nov 26, 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The worked example uses illustrative numbers computed by script, and its results depend on those inputs. Company statements are the companies&#39; own descriptions and plans, as published on the dates shown. This report is for engineering discussion and is not investment advice.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/6286840980688165027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/three-supplies-one-accelerator-why.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/6286840980688165027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/6286840980688165027'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/three-supplies-one-accelerator-why.html' title='Three Supplies, One Accelerator: Why Packaging Caps AI Chip Output in 2026'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsJUeHrnu6wg6kneEg68AGD9cl5jbyqs3UaWc56o9caOUJv-WPbjRC4flQ6Q6JFrr0UE2HoMoPjKiH5qMgkObEivVEDnvxv4H0AFSwg3XeqDMJ2o4_BCCVgEeZCULQAX5S74b3RrrJcNyknRFgExq-FdhfYaYGSlLuuKpYb8J1SB_9tUDYvVhAIw/s72-c/tr01-packaging-bottleneck.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-130451684341294655</id><published>2026-11-30T13:00:00.000+05:30</published><updated>2026-11-30T13:00:00.122+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Processors"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><title type='text'>Checkpointed FIFO Design: Saving and Restoring the Write Pointer on a Misprediction (FIFO Series, Part 26)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 26, Checkpointed FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzO0Clgm4pRaaF_PZ1IRkSLK9bbf49TaAip3drhDMD7M6tqVYU-keEaooCawjyG6-Lm3_69ePC7CWhF3qmdK_gPVU78Vad1A4dKttu9vY0AbfgS9js5usuX_TWlQd0dZ8qk6sSz_UGZOXBWndiK2KV_mOwJ8zVFy3fu_3ZJxjIosnbnE1adeefQ/s1600/fifo-26-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 26, Checkpointed FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A speculative producer writes into a FIFO before it knows whether the work is real. A branch predictor fills an instruction queue down the predicted path, a prefetcher queues requests it may cancel, a decoder pushes micro-ops past an instruction that might fault. When the guess turns out wrong, everything written after the guess has to go, and everything written before it has to stay, in order, ready for the reader.&lt;/p&gt;
&lt;p&gt;Part 25 handled one speculative region with a commit point and a single rollback. Real producers keep several guesses in flight at once, and any one of them can be wrong. This part builds a checkpointed FIFO: the write pointer is saved at every guess, and a misprediction restores the FIFO to exactly the state it had at that guess, even while the reader keeps popping.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A checkpoint is just a saved copy of the write pointer, taken when the producer makes a guess. Restoring it throws away every entry written after that guess in one cycle.&lt;/li&gt;
&lt;li&gt;Checkpoints are themselves kept in a small FIFO: allocated in order, released in order when guesses are confirmed, and truncated on a restore.&lt;/li&gt;
&lt;li&gt;The hard case is a reader that has already popped past the checkpoint. A sticky &quot;passed&quot; bit per checkpoint turns that restore into an empty FIFO instead of a corrupted one.&lt;/li&gt;
&lt;li&gt;The passed bit must also include a pop in the restore cycle itself. Leaving that term out breaks the pointers, and a random model finds it within a hundred cycles.&lt;/li&gt;
&lt;li&gt;Area is small: one pointer and one bit per checkpoint. The cost is in the restore mux on the write pointer and the compare per checkpoint on every pop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem it solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#uarch&quot;&gt;Micro-architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem it solves&lt;/h2&gt;
&lt;p&gt;Picture a fetch stage writing instructions into a queue that feeds decode. It predicts each branch and keeps going. Three branches later, the first one resolves as mispredicted. Everything fetched after that branch is on the wrong path; everything before it, including the branch, is correct and may still be in the queue.&lt;/p&gt;
&lt;p&gt;Flushing the whole queue on any misprediction works, but it throws away correct older entries that must be fetched again. A speculative FIFO with one commit pointer remembers only one point to roll back to. With several unresolved guesses in flight, you need one saved point per guess and a way to jump back to any of them.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn block diagram of a checkpointed FIFO: a data FIFO with write and read pointers, a small checkpoint table holding saved write pointers and passed bits, and a restore mux that loads a saved pointer into the write pointer.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXcHJrC6OzvKtouMLoOn8Hue_vR51Sw3UEeuhxAOX6m_beXCDaSW7GVyjSc6qoEWr6AGSgisnT8IYvZe_7GXqaf0T4L_4AYrxhrCsDl1ocNRcULM2e13YMH2lD-P6rthMgQlxuT5cA6Uo5w-NjEYfRM7VSrG65dKWY9vJtC916l7Fct_GjJlKoZg/s1600/fifo-26-block.jpg&quot; title=&quot;Hand-drawn block diagram of a checkpointed FIFO: a data FIFO with write and read pointers, a small checkpoint table holding saved write pointers and passed bits, and a restore mux that loads a saved pointer into the write pointer.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The data side is the FIFO from Part 1: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt; for the writer, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt; for the reader. The checkpoint side adds four controls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;take&lt;/code&gt;: save a checkpoint now. It returns &lt;code&gt;take_id&lt;/code&gt;, a small tag the producer keeps with the guess. The checkpoint includes any push in the same cycle, so the entry that carries the guess, such as the branch itself, is older than the checkpoint and survives a restore.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;release_ck&lt;/code&gt;: the oldest checkpoint is confirmed and can be freed. Release is in order, matching the in-order commit of the guesses.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;restore&lt;/code&gt; with &lt;code&gt;restore_id&lt;/code&gt;: the guess with this tag was wrong. Cut the FIFO back to that checkpoint and drop every younger checkpoint.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ck_full&lt;/code&gt;: no free checkpoint slots. The producer must stall before making another guess.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Guesses may resolve out of order, but checkpoints are released in order, which keeps the checkpoint table a simple ring.&lt;/p&gt;

&lt;h2 id=&quot;uarch&quot;&gt;Micro-architecture&lt;/h2&gt;
&lt;p&gt;There are two rings. The data ring holds the entries, with a write pointer and a read pointer that carry the extra wrap bit from Part 1. The checkpoint ring holds, for each live checkpoint, the saved write pointer and a single passed bit. It has its own head and tail pointers, also with a wrap bit, so &lt;code&gt;ck_full&lt;/code&gt; comes out the same way &lt;code&gt;full&lt;/code&gt; does.&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn pointer view of a checkpointed FIFO in two cases: a normal restore that moves the write pointer back to the saved checkpoint, and a restore after the reader has already passed the checkpoint, which leaves the FIFO empty.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhUfoG4lFfvkwmD87VJdcYyfGHrLDsajR1qZ1u3Kc-FhjTodZeQzC2BDYhO3LOd7wybEAExNgDHorwMNsi-KeFlVaB4dsO8xS_sXxjsJqzYjuZVNVDZByTjtHfjBbWnZTNKmNgPtbvKMANrCPQDBSdf5u99f76yiXOt5O1IGK5HoWLTNtO8na50Q/s1600/fifo-26-pointers.jpg&quot; title=&quot;Hand-drawn pointer view of a checkpointed FIFO in two cases: a normal restore that moves the write pointer back to the saved checkpoint, and a restore after the reader has already passed the checkpoint, which leaves the FIFO empty.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A restore has two outcomes, shown above:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reader still behind the checkpoint.&lt;/strong&gt; The saved pointer is loaded into the write pointer. Older entries stay, younger ones are gone, and the storage array is not touched.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reader already past the checkpoint.&lt;/strong&gt; Some wrong-path entries were already popped, and the consumer must discard them through its own flush. Loading the saved pointer would now give a negative count, so the write pointer is set to the next read pointer instead, leaving the FIFO empty.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A plain compare of the saved pointer with the read pointer is ambiguous once the pointers wrap. A sticky bit removes the doubt. When a pop happens with the read pointer equal to a checkpoint&#39;s saved pointer, the reader is popping the first entry younger than that checkpoint, and the passed bit is set. Before that point, the read pointer can only be between the saved pointer minus the depth and the saved pointer itself, so the equality cannot fire early.&lt;/p&gt;
&lt;p&gt;On a restore, the checkpoint ring tail is pulled back to just after the restored checkpoint. The restored checkpoint itself stays live: its guess is now resolved, and it is released in order like any other when it commits.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;p&gt;Power-of-two depth and checkpoint count, a flip-flop array with a registered read, and the full-boundary push from Part 1:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;module ckpt_fifo #(
  parameter int W     = 32,
  parameter int DEPTH = 16,               // power of two
  parameter int NCK   = 4,                // checkpoints, power of two
  localparam int AW   = $clog2(DEPTH),
  localparam int CW   = $clog2(NCK)
) (
  input  logic          clk, rst_n,
  input  logic          push,
  input  logic [W-1:0]  wdata,
  output logic          full,
  input  logic          take,             // checkpoint after this cycle&#39;s push
  output logic [CW-1:0] take_id,
  output logic          ck_full,
  input  logic          release_ck,       // oldest checkpoint confirmed
  input  logic          restore,          // misprediction
  input  logic [CW-1:0] restore_id,
  input  logic          pop,
  output logic [W-1:0]  rdata,
  output logic          empty
);
  logic [W-1:0] mem [DEPTH];
  logic [AW:0]  wptr, rptr;
  logic [AW:0]  ck_wptr   [NCK];
  logic         ck_passed [NCK];
  logic [CW:0]  ck_head, ck_tail;

  assign empty   = (wptr == rptr);
  assign full    = (wptr[AW-1:0] == rptr[AW-1:0]) &amp;amp;&amp;amp; (wptr[AW] != rptr[AW]);
  wire   ck_empty = (ck_head == ck_tail);
  assign ck_full = (ck_head[CW-1:0] == ck_tail[CW-1:0]) &amp;amp;&amp;amp; (ck_head[CW] != ck_tail[CW]);
  assign take_id = ck_tail[CW-1:0];

  wire do_pop  = pop &amp;amp;&amp;amp; !empty;
  wire do_push = push &amp;amp;&amp;amp; !restore &amp;amp;&amp;amp; (!full || do_pop);
  wire do_rel  = release_ck &amp;amp;&amp;amp; !ck_empty;
  wire do_take = take &amp;amp;&amp;amp; !restore &amp;amp;&amp;amp; (!ck_full || do_rel);

  wire [AW:0] rptr_n = rptr + do_pop;
  wire [AW:0] wptr_n = wptr + do_push;

  // restore target: passed now, or passed by this cycle&#39;s pop
  wire          r_passed = ck_passed[restore_id] ||
                           (do_pop &amp;amp;&amp;amp; rptr == ck_wptr[restore_id]);
  wire [AW:0]   r_wptr   = r_passed ? rptr_n : ck_wptr[restore_id];
  wire [CW-1:0] r_off    = restore_id - ck_head[CW-1:0];
  wire [CW:0]   r_tail   = ck_head + r_off + 1&#39;b1;

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr &amp;lt;= &#39;0;  rptr &amp;lt;= &#39;0;
      ck_head &amp;lt;= &#39;0;  ck_tail &amp;lt;= &#39;0;
    end else begin
      rptr &amp;lt;= rptr_n;
      wptr &amp;lt;= restore ? r_wptr : wptr_n;
      if (do_rel) ck_head &amp;lt;= ck_head + 1&#39;b1;
      if (restore)      ck_tail &amp;lt;= r_tail;
      else if (do_take) ck_tail &amp;lt;= ck_tail + 1&#39;b1;
    end

  always_ff @(posedge clk) begin
    if (do_push) mem[wptr[AW-1:0]] &amp;lt;= wdata;
    if (do_pop)  rdata &amp;lt;= mem[rptr[AW-1:0]];
    for (int i = 0; i &amp;lt; NCK; i++)
      if (do_pop &amp;amp;&amp;amp; rptr == ck_wptr[i]) ck_passed[i] &amp;lt;= 1&#39;b1;
    if (do_take) begin                    // later assignment wins
      ck_wptr[take_id]   &amp;lt;= wptr_n;
      ck_passed[take_id] &amp;lt;= 1&#39;b0;
    end
  end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Checkpoint slots have no reset: a slot is only read while live, and taking it writes both fields. Push and take are ignored in a restore cycle, because anything the producer presents then is from the wrong path.&lt;/p&gt;
&lt;p&gt;A cycle-accurate Python model of this sketch ran 600,000 random cycles at depths 4 to 16 with 2 to 8 checkpoints, against a reference queue with no wrap bits and no passed bits. Every pop and every restore matched. Removing the same-cycle term from &lt;code&gt;r_passed&lt;/code&gt; fails within a hundred cycles.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn timing diagram of a checkpointed FIFO: two checkpoints are taken, more entries are pushed, then a restore to the first checkpoint drops the count back while a pop in the same cycle continues normally.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmJWe73LVcq5SGGG2azau65CXXONzwbew25kuJgadu3YZfS4RfpQlrbMiMbB3kLSm651OXiqthBRNuPyX9uJAFOqE5SZYd2ns28cR5jZqUb1myGicpQozGTHBS5pzRx5yhahUWYTsSyM1AeuVcfF7Tuljc9FcWErHNtyn45Un3nCq-d4Gu-xbIKA/s1600/fifo-26-timing.jpg&quot; title=&quot;Hand-drawn timing diagram of a checkpointed FIFO: two checkpoints are taken, more entries are pushed, then a restore to the first checkpoint drops the count back while a pop in the same cycle continues normally.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pop in the restore cycle at the checkpoint boundary.&lt;/strong&gt; The read pointer equals the saved pointer and a pop is accepted, so the reader is taking the first wrong-path entry right now. The stored passed bit is still zero. Without the extra term, the write pointer would be set one behind the new read pointer. With it, the FIFO ends empty, as it should.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Take and release at a full checkpoint table.&lt;/strong&gt; The release frees the head slot in the same cycle, so the take is accepted, matching the push at full in Part 1. The new checkpoint lands in the slot just freed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Release and restore together.&lt;/strong&gt; Allowed when they name different checkpoints. The restore offset is computed from the old head, so the new tail is right either way. Releasing and restoring the head in the same cycle is a contradiction in the producer and should be an assertion.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Second restore to a passed checkpoint.&lt;/strong&gt; The saved pointer is stale, but the passed bit is set, so the stale value is never used.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Restore path.&lt;/strong&gt; The write pointer now has a three-way source: hold, increment, or a value chosen from the checkpoint table by &lt;code&gt;restore_id&lt;/code&gt;. The NCK-to-1 mux plus the passed select sits in front of the pointer flops and, through &lt;code&gt;full&lt;/code&gt;, in front of the next cycle&#39;s push enable. If the restore arrives late in the cycle, register it and apply it one cycle later, with push blocked for that cycle.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Passed compare.&lt;/strong&gt; Each checkpoint needs an equality compare against the read pointer on every pop. With 4 to 8 checkpoints and a 5-bit pointer this is small. With dozens of checkpoints, consider computing passed lazily: only the oldest few checkpoints can be passed, because the reader moves in order.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Area.&lt;/strong&gt; Each checkpoint is one pointer plus one bit. That is far cheaper than snapshotting data. The storage array is untouched by a restore.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power and sizing.&lt;/strong&gt; Checkpoint flops can be clock gated on take. Size the table from how many guesses are unresolved at once; too few stalls the producer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference model that keeps absolute positions for entries and checkpoints with no wrap. Restore sets the tail to the larger of the checkpoint position and the head. Compare every popped value and the count every cycle.&lt;/li&gt;
&lt;li&gt;Assertions on the producer contract:
&lt;pre&gt;&lt;code&gt;a_restore_live: assert property (@(posedge clk) disable iff (!rst_n)
                  restore |-&amp;gt; ck_live(restore_id));
a_no_rel_head:  assert property (@(posedge clk) disable iff (!rst_n)
                  !(restore &amp;amp;&amp;amp; release_ck &amp;amp;&amp;amp; restore_id == ck_head[CW-1:0]));
a_take_room:    assert property (@(posedge clk) disable iff (!rst_n)
                  !(take &amp;amp;&amp;amp; ck_full &amp;amp;&amp;amp; !release_ck));&lt;/code&gt;&lt;/pre&gt;
where &lt;code&gt;ck_live&lt;/code&gt; checks that the slot lies between head and tail.&lt;/li&gt;
&lt;li&gt;Coverage: restore of a passed checkpoint, restore with a same-cycle pass, restore of the oldest and the youngest live checkpoint, restore at full, take with release at a full table, and pointer wrap many times with checkpoints live.&lt;/li&gt;
&lt;li&gt;Traffic phases: a fast reader to hit the passed cases, and a fast writer to keep the FIFO full while restores land.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. What do you save at a checkpoint, and why not the data?&lt;/h3&gt;
&lt;p&gt;A strong answer says only the write pointer is needed, because entries older than the checkpoint are untouched and younger ones are simply overwritten later. It notes that a restore therefore costs one cycle regardless of how many entries are dropped.&lt;/p&gt;
&lt;h3&gt;2. The reader has already popped wrong-path entries when the misprediction arrives. What happens?&lt;/h3&gt;
&lt;p&gt;A strong answer explains that the FIFO cannot take back popped data, so it empties itself and the downstream stage flushes what it already took. It then explains how the FIFO knows: a sticky passed bit, because a plain pointer compare is ambiguous after wrap.&lt;/p&gt;
&lt;h3&gt;3. Why release checkpoints in order when branches resolve out of order?&lt;/h3&gt;
&lt;p&gt;A strong answer says in-order release keeps the table a ring, so allocation and truncation are pointer moves, and weighs a slot held a little longer against a free list and a harder restore.&lt;/p&gt;
&lt;h3&gt;4. Where is the critical path, and how do you fix it?&lt;/h3&gt;
&lt;p&gt;A strong answer names the restore mux into the write pointer and the passed logic that feeds it, and suggests registering the restore with a one-cycle push bubble, or precomputing the restore target for the oldest few checkpoints.&lt;/p&gt;
&lt;h3&gt;5. How would you find the same-cycle passed bug in verification?&lt;/h3&gt;
&lt;p&gt;A strong answer builds a reference without wrap bits or passed bits, drives a fast reader so the read pointer often sits on a checkpoint, and adds a cover point for a pop at the checkpoint boundary in the restore cycle.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;The most familiar home is the front end of a processor: fetch and instruction queues and branch history structures, all written past unresolved predictions. The same pattern appears in accelerators that run ahead of a condition, in DMA engines that queue descriptors before a chain decision is known, and in protocol engines that stage responses before a check completes.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 25 covered the speculative FIFO, with one commit point, rollback and flush.&lt;/p&gt;
&lt;p&gt;Part 27 protects the stored data itself: an ECC-protected FIFO with single-error correction and double-error detection at full throughput.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/130451684341294655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/checkpointed-fifo-design-saving-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/130451684341294655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/130451684341294655'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/checkpointed-fifo-design-saving-and.html' title='Checkpointed FIFO Design: Saving and Restoring the Write Pointer on a Misprediction (FIFO Series, Part 26)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyzO0Clgm4pRaaF_PZ1IRkSLK9bbf49TaAip3drhDMD7M6tqVYU-keEaooCawjyG6-Lm3_69ePC7CWhF3qmdK_gPVU78Vad1A4dKttu9vY0AbfgS9js5usuX_TWlQd0dZ8qk6sSz_UGZOXBWndiK2KV_mOwJ8zVFy3fu_3ZJxjIosnbnE1adeefQ/s72-c/fifo-26-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-2137288401520843277</id><published>2026-11-30T11:00:00.000+05:30</published><updated>2026-11-30T11:00:00.137+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DFT and Test"/><category scheme="http://www.blogger.com/atom/ns#" term="First Silicon Back"/><category scheme="http://www.blogger.com/atom/ns#" term="SoC Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>First Silicon Back, Part 4: Test Program Readiness, or Getting ATE Patterns Converted and Debugged Before Wafers Arrive</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Terminal-style test time budget per die listing continuity, leakage, scan, ATPG and memory BIST times that add up to 1.177 seconds.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhQ3M2yponPLOWvjgDtV13Q5zmyQN4dqAbMJ8KIqZ-0aaWLLbiw6el76N4hrRig_Qih3x1FZDr2wM9bAwILyyL5PsFPKGEjfet3_gTzkVg4s7ouYFMeLzTpZWJOs-ECDvXue3wTjRWbzFwPf09Hjn9rid1RZdfkLx8XcaMCTkV6x0rB3u1GgpjEA/s1600/fsb-04-test-program-readiness.jpg&quot; title=&quot;Terminal-style test time budget per die listing continuity, leakage, scan, ATPG and memory BIST times that add up to 1.177 seconds.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;When the first wafers reach the test floor, two things get tested at once: the chip and the test program. If the program has never run before, every failing die raises the same question. Is the silicon wrong, or is the pattern wrong? A team that has to answer that question die by die loses its first week to the tester instead of the chip.&lt;/p&gt;
&lt;p&gt;This is Part 4 of First Silicon Back. Part 3 covered the bring-up board. Today: how to get production test patterns converted, loaded and debugged on the tester side before the wafers arrive, so that a fail on day one means something about the silicon.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Patterns from the design flow do not run on a tester as written. They must be converted, mapped to tester pins, given timing and levels, and debugged.&lt;/li&gt;
&lt;li&gt;Many pattern errors come from the conversion and the test bench, not from the chip. Find them in simulation before silicon, not on the first wafer.&lt;/li&gt;
&lt;li&gt;Order the program so that the cheapest, most basic tests run first: continuity, then power and leakage, then scan chains, then everything else.&lt;/li&gt;
&lt;li&gt;Run first silicon at relaxed settings, such as a slow scan shift clock, and tighten them once the basics pass.&lt;/li&gt;
&lt;li&gt;Know your test time per die before wafers arrive. It shapes how many parts you can sort in the first days.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#from-design-to-tester&quot;&gt;From design patterns to a tester program&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#where-errors-come-from&quot;&gt;Where pattern errors come from&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#program-order&quot;&gt;The order of tests in a first program&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#before-silicon&quot;&gt;What you can debug before silicon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#tracker&quot;&gt;An illustrative pattern readiness tracker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked example: test time per die&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Test program readiness checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;from-design-to-tester&quot;&gt;From design patterns to a tester program&lt;/h2&gt;
&lt;p&gt;Scan, memory BIST and functional patterns are written by the DFT and verification teams in tools that know nothing about a particular tester. They are usually handed over in STIL, the IEEE 1450 language, which the working group describes as a tester-neutral way to move digital test patterns between simulation, ATPG, BIST and ATE, including timing tables, waveforms and serial scan data (&lt;a href=&quot;https://grouper.ieee.org/groups/1450/Flyer_frame.html#intro&quot;&gt;IEEE 1450 overview&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;A tester program needs more than the patterns. It needs a pin map from chip signals to tester channels, timing sets that say where each edge and strobe sits in a cycle, levels for drive and compare voltages, power supply settings, the order of tests, limits and bins. Converting the patterns is one job; building and debugging everything around them is the larger one. In our Hub lifecycle this work belongs to the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/packaging-test&quot;&gt;Packaging and Test stage&lt;/a&gt;, which the Hub describes as covering ATE test program development and execution, and it starts from the patterns signed off at the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/gates/dft-signoff&quot;&gt;DFT insertion sign-off gate&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;where-errors-come-from&quot;&gt;Where pattern errors come from&lt;/h2&gt;
&lt;p&gt;The problem is old and well documented. A 1998 Electronic Design article by Nat Reeves describes translated test vectors being checked for the first time on prototype silicon, with days or weeks then spent debugging the patterns. It sorts the errors it found into four groups: test bench omissions, timing errors, bus contention and nonfunctional patterns, and notes that some errors start in the designer&#39;s test bench rather than in translation (&lt;a href=&quot;https://www.electronicdesign.com/home/article/21200218/using-virtual-testers-for-test-vector-verification&quot;&gt;Using Virtual Testers for Test-Vector Verification&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Scripts are a second source. A 2013 Arm community guest post from TSSI describes teams editing STIL files with Perl before chip-level use, and warns that script upkeep can come to take more time than the conversion itself. It lists errors such as duplicate signal names and reserved words that may only show up once the patterns reach the ATE (&lt;a href=&quot;https://developer.arm.com/community/arm-community-blogs/b/soc-design-and-simulation-blog/posts/core-pattern-conversion-for-soc-test-beware-of-the-poison-perl&quot;&gt;Core Pattern Conversion for SoC Test&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Patterns also keep changing. A 2014 Silicon Semiconductor report on a Teradyne and Test Insight tie-up says test vectors can be fully regenerated 10 to 20 times during early ramp (&lt;a href=&quot;https://siliconsemiconductor.net/article/80077/Teradyne_and_Test_Insight_to_quicken_IC_development&quot;&gt;Teradyne and Test Insight to quicken IC development&lt;/a&gt;). If each conversion is a manual job, that is 10 to 20 chances to get it wrong.&lt;/p&gt;
&lt;p&gt;Finally, the tester tells you little. A 2022 Teradyne sponsor blog on Semiconductor Engineering points out that ATE reports pass or fail with no reason, so test engineers must turn data logs into a form designers can read, and says getting the right set of tests can take weeks or months (&lt;a href=&quot;https://semiengineering.com/simplifying-the-path-from-design-to-test&quot;&gt;Simplifying The Path From Design To Test&lt;/a&gt;). It is a vendor piece, but the pain it describes is the one every first-silicon test team knows.&lt;/p&gt;

&lt;h2 id=&quot;program-order&quot;&gt;The order of tests in a first program&lt;/h2&gt;
&lt;p&gt;A production program is ordered for speed. A first-silicon program is ordered for diagnosis: each test assumes the ones before it passed.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Continuity.&lt;/strong&gt; Check that every pin is connected to the tester. Marvin Test describes the usual method: force a small current with the tester&#39;s parametric unit and measure the voltage across the pin&#39;s ESD diode. An open gives no normal diode drop, and a shorted diode reads near zero volts (&lt;a href=&quot;https://www.marvintest.com/KnowledgeBase/KBArticle.aspx?ID=223&quot;&gt;Semiconductor Continuity Test&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power and leakage.&lt;/strong&gt; Supply currents at power-up and pin leakage. A die that draws far too much current stops here.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scan chain test.&lt;/strong&gt; Shift a simple pattern through each chain and check it comes out intact. If chains are broken, every ATPG pattern after this will fail for the same reason.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ATPG patterns.&lt;/strong&gt; Stuck-at first, then at-speed transition patterns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Memory BIST, then functional and analog tests.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Keep each group in its own test with its own bin, so a wafer map tells you at a glance where dies are failing.&lt;/p&gt;

&lt;h2 id=&quot;before-silicon&quot;&gt;What you can debug before silicon&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Simulate the converted patterns.&lt;/strong&gt; Take the tester-format patterns back into a simulator against the gate-level netlist, with the tester&#39;s timing. Reeves&#39;s article shows the idea with a Verilog model of the tester; his team found pattern errors this way before parts existed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check the program offline.&lt;/strong&gt; Compile and check the program in the tester software with no device, if your tester allows it. Pin map, timing and level errors show up here.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check the hardware.&lt;/strong&gt; Load board and probe card continuity, with no device, on the real tester.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Agree the loop with design.&lt;/strong&gt; Decide how a failing pattern goes back to the DFT team (which pattern, which cycle, which pin) and how a fixed pattern comes back.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Final patterns arrive the week wafers do.&lt;/strong&gt; Ask for an early set to build the flow, then swap in final patterns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Production speed on day one.&lt;/strong&gt; Start with relaxed timing and slower shift; speed up once chains pass.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One big functional test.&lt;/strong&gt; When it fails, you learn nothing. Split patterns into small, named tests.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nobody owns the conversion scripts.&lt;/strong&gt; They break on the tenth regeneration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a sample tracker, the arithmetic for test time per die, the red flags and a checklist. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;tracker&quot;&gt;An illustrative pattern readiness tracker&lt;/h3&gt;
&lt;p&gt;The tracker below is &lt;strong&gt;illustrative&lt;/strong&gt;, for a small SoC two weeks before wafers are due. Every count is invented for this post. The useful habit is the columns: a pattern set is not &quot;ready&quot; until it has been converted, simulated in tester format and loaded into a program that compiles.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Pattern set&lt;/th&gt;&lt;th&gt;Patterns&lt;/th&gt;&lt;th&gt;Converted&lt;/th&gt;&lt;th&gt;Passes tester-format simulation&lt;/th&gt;&lt;th&gt;In compiled program&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Continuity and leakage (DC)&lt;/td&gt;&lt;td&gt;n/a&lt;/td&gt;&lt;td&gt;n/a&lt;/td&gt;&lt;td&gt;n/a&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Scan chain test&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Stuck-at ATPG&lt;/td&gt;&lt;td&gt;4,000&lt;/td&gt;&lt;td&gt;4,000&lt;/td&gt;&lt;td&gt;3,996&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Transition ATPG&lt;/td&gt;&lt;td&gt;6,000&lt;/td&gt;&lt;td&gt;6,000&lt;/td&gt;&lt;td&gt;5,880&lt;/td&gt;&lt;td&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Memory BIST&lt;/td&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;JTAG IDCODE and boundary scan&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Reading it: 4 stuck-at patterns and 120 transition patterns (2 percent of 6,000) fail in simulation. That is a pattern or timing problem, found before silicon. The boundary scan pattern that fails is a classic test bench omission: a pin the test bench never drove.&lt;/p&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked example: test time per die&lt;/h3&gt;
&lt;p&gt;Scan test time is mostly shift time. With the unload of one pattern overlapped with the load of the next, the cycle count is roughly:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cycles = N x (L + c) + L&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;where N is the number of patterns, L is the longest scan chain in flops and c is the capture cycles per pattern. Take &lt;strong&gt;illustrative&lt;/strong&gt; values: L = 2,000, c = 4, shift clock 25 MHz.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stuck-at, N = 4,000: 4,000 x 2,004 + 2,000 = 8,018,000 cycles; at 25 MHz that is 8,018,000 / 25,000,000 = 0.321 s.&lt;/li&gt;
&lt;li&gt;Transition, N = 6,000: 6,000 x 2,004 + 2,000 = 12,026,000 cycles; 12,026,000 / 25,000,000 = 0.481 s.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Test&lt;/th&gt;&lt;th&gt;Time per die at 25 MHz shift (s)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Continuity&lt;/td&gt;&lt;td&gt;0.020&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Supply current and leakage&lt;/td&gt;&lt;td&gt;0.150&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Scan chain test&lt;/td&gt;&lt;td&gt;0.005&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Stuck-at ATPG&lt;/td&gt;&lt;td&gt;0.321&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Transition ATPG&lt;/td&gt;&lt;td&gt;0.481&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Memory BIST&lt;/td&gt;&lt;td&gt;0.200&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;1.177&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Check the total: 0.020 + 0.150 + 0.005 + 0.321 + 0.481 + 0.200 = 1.177 s.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First silicon runs slower.&lt;/strong&gt; Suppose you drop the shift clock to 10 MHz for the first wafers, to keep timing out of the question. The two ATPG rows grow by 25 / 10 = 2.5 times: (0.321 + 0.481) x 2.5 = 0.802 x 2.5 = 2.005 s. The other rows stay at 0.020 + 0.150 + 0.005 + 0.200 = 0.375 s, so a die now takes 0.375 + 2.005 = 2.380 s, about twice as long.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What that means for a wafer.&lt;/strong&gt; With an &lt;strong&gt;illustrative&lt;/strong&gt; 600 dies per wafer tested one at a time, 600 x 2.380 = 1,428 s, about 24 minutes of test time per wafer before stepping and indexing. That is fine for a few wafers. It is a number to know when someone asks for every wafer of every corner sorted by Friday. All values here are &lt;strong&gt;illustrative&lt;/strong&gt;.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Patterns never simulated in tester format&lt;/td&gt;&lt;td&gt;Conversion and timing errors surface on silicon&lt;/td&gt;&lt;td&gt;Which pattern sets passed a tester-format simulation?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Conversion done by hand-edited scripts&lt;/td&gt;&lt;td&gt;Every regeneration is a new chance for error&lt;/td&gt;&lt;td&gt;Who owns the scripts, and how is a conversion checked?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Program never compiled or run on the tester&lt;/td&gt;&lt;td&gt;Pin map, timing and level errors wait for day one&lt;/td&gt;&lt;td&gt;When did the program last load on the real tester?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No continuity or scan chain test at the start&lt;/td&gt;&lt;td&gt;Contact faults and broken chains look like logic fails&lt;/td&gt;&lt;td&gt;What runs before the first ATPG pattern?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;All patterns in one test and one bin&lt;/td&gt;&lt;td&gt;A wafer map cannot show where dies fail&lt;/td&gt;&lt;td&gt;Can each pattern group have its own test and bin?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No agreed fail data format for design&lt;/td&gt;&lt;td&gt;Fails wait days for translation&lt;/td&gt;&lt;td&gt;What does the DFT team receive for each failing pattern?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Test time per die unknown&lt;/td&gt;&lt;td&gt;Sort plans for the first days are guesses&lt;/td&gt;&lt;td&gt;What is the time per die at first-silicon settings?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Test program readiness checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Early pattern set received, flow built; final patterns swapped in and reconverted.&lt;/li&gt;
&lt;li&gt;Conversion scripted, versioned and owned; every conversion checked by tester-format simulation.&lt;/li&gt;
&lt;li&gt;Pin map, timing sets and levels reviewed against the pin list and I/O specs.&lt;/li&gt;
&lt;li&gt;Program compiles; offline checks clean; loads on the real tester.&lt;/li&gt;
&lt;li&gt;Test order: continuity, supply current and leakage, scan chain, ATPG, BIST, functional; each with its own bin.&lt;/li&gt;
&lt;li&gt;Relaxed first-silicon settings ready (slow shift, wide limits) alongside production settings.&lt;/li&gt;
&lt;li&gt;Load board and probe card continuity checked with no device.&lt;/li&gt;
&lt;li&gt;Fail data format and turnaround agreed with the DFT team; test time per die computed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;further-reading&quot;&gt;Further reading&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ni.github.io/semi-test-library-dotnet/SemiconductorTestLibrary.TestStandSteps/NationalInstruments.SemiconductorTestLibrary.TestStandSteps.CommonSteps.ContinuityTest.html&quot;&gt;NI Semiconductor Test Library: Continuity Test step&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/full-chip-dft&quot;&gt;The Semiconductor Hub: SoC lifecycle, Full-Chip DFT stage&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Corner Lots and Split Lots and Why You Asked the Fab for Skewed Wafers.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/2137288401520843277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-4-test-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2137288401520843277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2137288401520843277'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-4-test-program.html' title='First Silicon Back, Part 4: Test Program Readiness, or Getting ATE Patterns Converted and Debugged Before Wafers Arrive'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhQ3M2yponPLOWvjgDtV13Q5zmyQN4dqAbMJ8KIqZ-0aaWLLbiw6el76N4hrRig_Qih3x1FZDr2wM9bAwILyyL5PsFPKGEjfet3_gTzkVg4s7ouYFMeLzTpZWJOs-ECDvXue3wTjRWbzFwPf09Hjn9rid1RZdfkLx8XcaMCTkV6x0rB3u1GgpjEA/s72-c/fsb-04-test-program-readiness.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-3123086976440966079</id><published>2026-11-30T09:00:00.000+05:30</published><updated>2026-11-30T09:00:00.220+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EDA Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Reading Real Reports"/><category scheme="http://www.blogger.com/atom/ns#" term="Static Timing Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Reading Real Reports, Part 6: Unconstrained Paths and the check_timing Report Nobody Reads Until Silicon Fails</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;OpenSTA-style check_setup warnings about unclocked pins, unconstrained endpoints and a disconnected generated clock, and an unconstrained path footer.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZMFhGe4Rz_kLn4QO1ffjGIW-HGcVYKwayo3sH2_P4ygOf4OiZiaWertGEHzW3mfqzmv0QcOIHISEudGP0PatZ-zdhQYFuzp-TpbZCYnnuLWCNVvRrGuy8hg6LV9jvsKEX9IYa1CVCsoyvo_RJFUD7XTzR98D2qsWyGa4jpWVGA-NfUIppZzJirw/s1600/rr-06-unconstrained-paths-check-timing.jpg&quot; title=&quot;OpenSTA-style check_setup warnings about unclocked pins, unconstrained endpoints and a disconnected generated clock, and an unconstrained path footer.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A timing report with zero violations has two possible meanings. Either every path was checked and passed, or some paths were never checked at all. The violators list from Part 5 cannot tell the two apart, because a path with no requirement has no slack, and a path with no slack can never fail. The report that tells them apart is short, easy to skip, and the one most often missing from a sign-off package.&lt;/p&gt;
&lt;p&gt;This is Part 6 of Reading Real Reports. Commercial timers usually call this report &lt;code&gt;check_timing&lt;/code&gt;. In OpenSTA and OpenROAD it is &lt;code&gt;check_setup&lt;/code&gt;, and it has a partner: the unconstrained path report. Today we read both and work out what a silent path would have shown if it had been constrained.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;An unconstrained path has no required time, so it never appears as a violation. &quot;No violations&quot; says nothing about it.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;check_setup&lt;/code&gt; prints nothing when every check passes. A missing log section and a clean result look the same, so save the command&#39;s return value too.&lt;/li&gt;
&lt;li&gt;Inputs without &lt;code&gt;set_input_delay&lt;/code&gt; are not just unconstrained in OpenSTA. Their paths are not reported at all unless you change a variable.&lt;/li&gt;
&lt;li&gt;One bad clock definition can leave flops unclocked, and every path into them unconstrained. Read the warnings for a shared cause.&lt;/li&gt;
&lt;li&gt;Every unconstrained item needs a reason in writing: constrained now, deliberately unconstrained, or not a real path.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what-it-is&quot;&gt;What &quot;unconstrained&quot; means&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#when-you-see-it&quot;&gt;When you see it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#senior-checks&quot;&gt;What a senior checks first&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sample&quot;&gt;The illustrative sample&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#walk-through&quot;&gt;Line-by-line walk-through&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked arithmetic check&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Sign-off checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-it-is&quot;&gt;What &quot;unconstrained&quot; means&lt;/h2&gt;
&lt;p&gt;A timing check needs two things: a time when data arrives, and a time when it is required. Data arrival needs a clock or an input delay at the start of the path. The required time needs a clocked check at the end: a flop&#39;s setup check, or an output delay on a port. Take either away and the timer can still add up delays, but it has nothing to compare them with.&lt;/p&gt;
&lt;p&gt;OpenSTA&#39;s &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#check_setup&quot;&gt;check_setup&lt;/a&gt; runs sanity checks for the usual causes: inputs without &lt;code&gt;set_input_delay&lt;/code&gt;, outputs without &lt;code&gt;set_output_delay&lt;/code&gt;, clock pins with no clock or with several clocks, unconstrained endpoints, combinational loops, and generated clocks whose source is not a clock. The reference adds two details that matter for review. Failed checks are reported as warnings, and if no checks fail, nothing is reported. The command also returns 1 when there are no warnings, so a script can stop on it.&lt;/p&gt;

&lt;h2 id=&quot;when-you-see-it&quot;&gt;When you see it&lt;/h2&gt;
&lt;p&gt;Run it every time the constraints or the netlist change, before you read any slack. Its partner is &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-report_checks-unconstrained&quot;&gt;report_checks -unconstrained&lt;/a&gt;; the reference states the unconstrained path group is not reported without this option. The OpenROAD-flow-scripts metrics script includes a &lt;code&gt;report_checks -unconstrained&lt;/code&gt; section in each stage&#39;s report (&lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/master/flow/scripts/report_metrics.tcl&quot;&gt;report_metrics.tcl&lt;/a&gt;), so in that flow the data is already on disk. The question is whether anyone reads it.&lt;/p&gt;

&lt;h2 id=&quot;senior-checks&quot;&gt;What a senior checks first&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Did it run, and what did it return?&lt;/strong&gt; An empty section is only good news if the command is in the log.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unclocked pins.&lt;/strong&gt; A flop with no clock makes every path into it unconstrained. These come first because they hide the most.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Generated clocks.&lt;/strong&gt; A generated clock whose source is not a clock is the usual reason for unclocked flops.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ports.&lt;/strong&gt; Missing input and output delays, port by port. Each needs a budget or a written reason.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Constants.&lt;/strong&gt; &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_case_analysis&quot;&gt;set_case_analysis&lt;/a&gt; stops paths from propagating through constant pins. &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_disabled_edges&quot;&gt;report_disabled_edges&lt;/a&gt; lists the arcs disabled by constants, loops or constraints.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Expecting the unconstrained report to show everything.&lt;/strong&gt; The &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_input_delay&quot;&gt;set_input_delay&lt;/a&gt; reference says paths from inputs with no input delay are not reported, unless the &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Variables/#sta_input_port_default_clock&quot;&gt;sta_input_port_default_clock&lt;/a&gt; variable is set to 1. Only &lt;code&gt;check_setup&lt;/code&gt; catches them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Grepping for &quot;Error&quot;.&lt;/strong&gt; The findings are warnings. A log filter for errors will pass them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Accepting &quot;it is only debug&quot;.&lt;/strong&gt; Debug and test pins reach real pads. If they are deliberately unconstrained, write that down with a reason.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fixing with a false path.&lt;/strong&gt; Silencing a warning with an exception moves the problem out of view. Part 7 shows how to spot that in an SDC file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a sample session, a reading of each warning, the arithmetic for a path that was never checked, and the checklists. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;sample&quot;&gt;The illustrative sample&lt;/h3&gt;
&lt;p&gt;The session below is an &lt;strong&gt;illustrative sample in the style of OpenSTA/OpenROAD output&lt;/strong&gt;, written for this post. Names and numbers are invented. The warning wording follows the current OpenSTA source &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/CheckTiming.cc&quot;&gt;CheckTiming.cc&lt;/a&gt;; the indentation of the pin lists is our guess. The &lt;code&gt;unconstrained&lt;/code&gt; group name and the closing line of the path report follow &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/include/sta/PathGroup.hh&quot;&gt;PathGroup.hh&lt;/a&gt; and &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ReportPath.cc&quot;&gt;ReportPath.cc&lt;/a&gt;. Units are nanoseconds; the core clock period is 2.00 ns.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openroad&amp;gt; check_setup -verbose
Warning: There is 1 input port missing set_input_delay.
 irq_ext
Warning: There are 3 output ports missing set_output_delay.
 dbg_out[0]
 dbg_out[1]
 dbg_out[2]
Warning: There are 2 unclocked register/latch pins.
 u_dbg/cap_reg_0_/CK
 u_dbg/cap_reg_1_/CK
Warning: There are 5 unconstrained endpoints.
 dbg_out[0]
 dbg_out[1]
 dbg_out[2]
 u_dbg/cap_reg_0_/D
 u_dbg/cap_reg_1_/D
Warning: There is 1 generated clock not connected to a clock source.
 clk_dbg
openroad&amp;gt; llength [get_fanout -from [get_ports irq_ext] -endpoints_only -flat]
37
openroad&amp;gt; report_checks -unconstrained -path_group unconstrained
Startpoint: u_core/status_reg_2_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: dbg_out[2] (output port)
Path Group: unconstrained
Path Type: max

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.48    0.48   clock network delay (propagated)
   0.00    0.48 ^ u_core/status_reg_2_/CK (DFF_X1)
   0.22    0.70 ^ u_core/status_reg_2_/Q (DFF_X1)
   0.61    1.31 ^ u_dbg/U12/Z (MUX2_X1)
   0.79    2.10 ^ u_io/obuf_dbg_2/Z (BUF_X8)
   0.33    2.43 ^ dbg_out[2] (out)
           2.43   data arrival time
---------------------------------------------------------
(Path is unconstrained)&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;walk-through&quot;&gt;Line-by-line walk-through&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Input port missing set_input_delay.&lt;/strong&gt; One port, &lt;code&gt;irq_ext&lt;/code&gt;. Per the &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-check_setup-no_input_delay&quot;&gt;-no_input_delay&lt;/a&gt; check, this lists inputs with no input delay. The &lt;code&gt;get_fanout&lt;/code&gt; line counts what sits behind it: 37 endpoints. None of the paths from this port will show up in any slack report, including the unconstrained one. Clock ports are not listed, and our reading of &lt;code&gt;CheckTiming.cc&lt;/code&gt; is that ports held constant are skipped as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Output ports missing set_output_delay.&lt;/strong&gt; The three &lt;code&gt;dbg_out&lt;/code&gt; bits. Without an output delay there is no check at the port, so these also appear in the unconstrained endpoint list below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unclocked register/latch pins.&lt;/strong&gt; Two capture flops in &lt;code&gt;u_dbg&lt;/code&gt; have no clock arriving at their clock pins. Per the &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-check_setup-no_clock&quot;&gt;-no_clock&lt;/a&gt; check, this looks at register and latch clock pins. A flop with no clock cannot launch or capture, so its D pins become unconstrained endpoints and its Q pins start no timed paths.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unconstrained endpoints.&lt;/strong&gt; Five pins: the three output ports and the two D pins. Per &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-check_setup-unconstrained_endpoints&quot;&gt;-unconstrained_endpoints&lt;/a&gt;, an endpoint is constrained by a timing check or a &lt;code&gt;set_output_delay&lt;/code&gt;. This list is a consequence of the two warnings above it, not new information.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Generated clock not connected to a clock source.&lt;/strong&gt; &lt;code&gt;clk_dbg&lt;/code&gt; was defined with &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#create_generated_clock&quot;&gt;create_generated_clock&lt;/a&gt;, but its &lt;code&gt;-source&lt;/code&gt; pin has no clock on it (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-check_setup-generated_clocks&quot;&gt;-generated_clocks&lt;/a&gt;). In this sample it is the clock meant for &lt;code&gt;u_dbg/cap_reg_*&lt;/code&gt;. One wrong pin name in the SDC explains the unclocked pins and two of the five unconstrained endpoints.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The unconstrained path.&lt;/strong&gt; It looks like any other report until the end: a data arrival time of 2.43 ns, then &lt;code&gt;(Path is unconstrained)&lt;/code&gt; where the required time and slack would be. The &lt;code&gt;Path Group: unconstrained&lt;/code&gt; header is the only other sign.&lt;/p&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked arithmetic check&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;What the silent path would have shown.&lt;/strong&gt; Suppose &lt;code&gt;dbg_out[2]&lt;/code&gt; is given the same budget as the other outputs: an output delay of 20 percent of the period on a virtual I/O clock, the style used in the OpenROAD-flow-scripts example &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/master/flow/designs/nangate45/gcd/constraint.sdc&quot;&gt;gcd constraint.sdc&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;output delay   = 0.20 x 2.00            = 0.40
required (virtual clock, no latency)
               = 2.00 - 0.40            = 1.60
slack          = 1.60 - 2.43            = -0.83  (VIOLATED)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the virtual clock is given the same 0.48 ns latency as the internal clock, the required time becomes 2.00 + 0.48 - 0.40 = 2.08 ns and the slack -0.35 ns. Either way, a path that showed nothing would fail. The two answers also show why the latency assumption for the I/O clock has to be agreed and written down.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What the warnings cover.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;endpoints with no check (check_setup)          = 5
endpoints behind irq_ext (never reported)      = 37
endpoints hidden in total                      = 42&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Against a block with, say, 4,800 timing endpoints, 42 is under 1 percent. It is still 42 places where the chip can fail with a clean report.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One fix, several warnings.&lt;/strong&gt; Correcting the &lt;code&gt;-source&lt;/code&gt; pin of &lt;code&gt;clk_dbg&lt;/code&gt; should clear two warnings outright, the generated clock and the two unclocked pins, and remove two of the five unconstrained endpoints from the third. The remaining work is one input delay and three output delays, each needing a number from the interface owner.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;No &lt;code&gt;check_setup&lt;/code&gt; output in the log&lt;/td&gt;&lt;td&gt;Clean and not run look the same&lt;/td&gt;&lt;td&gt;Where is the command and its return value?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Unclocked register pins&lt;/td&gt;&lt;td&gt;Whole groups of paths are untimed&lt;/td&gt;&lt;td&gt;Which clock should reach them, and why does it not?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Generated clock not connected&lt;/td&gt;&lt;td&gt;Its flops lose their clock&lt;/td&gt;&lt;td&gt;Is the &lt;code&gt;-source&lt;/code&gt; pin on the master clock&#39;s path?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Input missing input delay&lt;/td&gt;&lt;td&gt;Its paths are not reported anywhere&lt;/td&gt;&lt;td&gt;How many endpoints sit behind it?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Unconstrained count went up since last run&lt;/td&gt;&lt;td&gt;A constraint was lost or a block was added&lt;/td&gt;&lt;td&gt;Which SDC or netlist change caused it?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Many arcs disabled by constants&lt;/td&gt;&lt;td&gt;Case analysis may remove real paths&lt;/td&gt;&lt;td&gt;Is each &lt;code&gt;set_case_analysis&lt;/code&gt; right for this mode?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Sign-off checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;check_setup -verbose&lt;/code&gt; run on the final netlist and SDC, with its output and return value saved.&lt;/li&gt;
&lt;li&gt;Zero unclocked register or latch pins, or each one explained.&lt;/li&gt;
&lt;li&gt;Every generated clock connected to its master.&lt;/li&gt;
&lt;li&gt;Every input and output port either constrained or listed as deliberately unconstrained, with a reason and an owner.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;report_checks -unconstrained&lt;/code&gt; saved and read, not only generated.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;report_disabled_edges&lt;/code&gt; reviewed for each mode&#39;s case analysis.&lt;/li&gt;
&lt;li&gt;Unconstrained counts compared with the previous run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Reading an SDC File as a Reviewer, from create_clock to set_false_path.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/3123086976440966079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3123086976440966079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3123086976440966079'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-6.html' title='Reading Real Reports, Part 6: Unconstrained Paths and the check_timing Report Nobody Reads Until Silicon Fails'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZMFhGe4Rz_kLn4QO1ffjGIW-HGcVYKwayo3sH2_P4ygOf4OiZiaWertGEHzW3mfqzmv0QcOIHISEudGP0PatZ-zdhQYFuzp-TpbZCYnnuLWCNVvRrGuy8hg6LV9jvsKEX9IYa1CVCsoyvo_RJFUD7XTzR98D2qsWyGa4jpWVGA-NfUIppZzJirw/s72-c/rr-06-unconstrained-paths-check-timing.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-6826219586888947913</id><published>2026-11-30T06:41:00.000+05:30</published><updated>2026-11-30T06:41:00.228+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI Hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="Embedded Systems"/><category scheme="http://www.blogger.com/atom/ns#" term="FPGA"/><category scheme="http://www.blogger.com/atom/ns#" term="Interfaces and Protocols"/><category scheme="http://www.blogger.com/atom/ns#" term="Special Reports"/><title type='text'>Companion FPGAs at the Edge: Camera Bridging, I/O, Always-On AI and Root of Trust Beside the Main SoC</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;A small FPGA package on an embedded vision board between camera connectors and a larger application processor.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZZkRngHg4czUnIwLk10I_nEOzPptM6ShjLLne_J40nKOIL2I1M1gy-1hYipqL04RU_u3_aIbmTyi075gm43qzJm_nUM99rKwZEYoy4j6fBMbsHPtajQgJYkt-j3p1ZcpZjgcqVWmww6zXLkTXRdPju5nYwClZio35PMXaRpOW-Yj4gOtkOSHudQ/s1600/sr-fpga-companion.jpg&quot; title=&quot;A small FPGA package on an embedded vision board between camera connectors and a larger application processor.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Most edge products are built around one main chip: an application processor, a vision SoC or a microcontroller. Next to it, more and more boards carry a second, much smaller programmable device that does the jobs the main chip was not designed for. It merges camera streams, converts one sensor interface into another, adds pins the processor does not have, trims data before it reaches memory, runs a tiny neural network while the processor sleeps, or checks firmware before anything else is allowed to boot.&lt;/p&gt;
&lt;p&gt;This special report looks at that companion role for low-power FPGAs. It sets out the five jobs companions do, the device features each job needs as published by Lattice, AMD, Altera, Microchip, Efinix, Gowin and QuickLogic, a worked camera hub example with the arithmetic shown, and the cases where a companion FPGA is the wrong choice. Vendor figures are vendor claims, read from their own pages as of Nov 26, 2026, and the worked numbers are illustrative.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A companion FPGA earns its place where the main chip runs out of something fixed: camera ports, lanes, pins, voltages, always-on power budget or a trusted boot path.&lt;/li&gt;
&lt;li&gt;The five common roles are camera bridging, I/O expansion and board control, pre-processing, small always-on inference, and platform security. Each needs a different feature mix.&lt;/li&gt;
&lt;li&gt;Low-power FPGAs fit because they are small, start fast, have low static current and, in some families, hard MIPI D-PHY blocks, configuration flash or security engines. These are vendor claims.&lt;/li&gt;
&lt;li&gt;In our illustrative camera hub, four 8 MP RAW12 cameras need about 14.9 Gb/s, more than one 4-lane D-PHY port at 2.5 Gb/s per lane. Binning three streams in a companion cuts that to about 6.5 Gb/s.&lt;/li&gt;
&lt;li&gt;With our assumed costs, a custom bridge ASIC only beats the FPGA companion above roughly 444,000 units. The inputs are illustrative; the method is the point.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-is-a-companion&quot;&gt;What a companion chip is, and why the role has grown&lt;/h2&gt;
&lt;p&gt;A companion chip sits beside the main processor and handles work that is awkward, wasteful or impossible for it. Glue logic and CPLDs for power sequencing have been on boards for decades. What has changed is the main chip: modern application processors and vision SoCs have a fixed number of camera inputs, a fixed set of I/O voltages and a boot flow designed for a reference board, while product teams want to reuse them across variants with different sensor counts, legacy buses and security rules. A small programmable device lets the main chip stay the same while the companion absorbs the differences. Electronic Design published a contributed article on Nov 25, 2026, &quot;FPGAs: Co-Processors of the Future for Edge AI?&quot;, written by a Lattice segment marketing director, which describes an automotive arrangement in which an FPGA sits between the central SoC and a safety microcontroller to aggregate and monitor sensors. That is one example of the pattern. The rest of this report builds the case from vendor documents, standards pages and published research, and keeps vendor claims labeled as such.&lt;/p&gt;
&lt;p&gt;A companion is not an FPGA accelerator. An accelerator exists to run compute faster than a CPU; a companion exists to make a system fit together, usually with thousands to tens of thousands of logic cells rather than millions.&lt;/p&gt;

&lt;h2 id=&quot;bridging&quot;&gt;Role 1: Sensor and camera bridging&lt;/h2&gt;
&lt;p&gt;Cameras are the most common reason to add a companion. Image sensors and processors both speak MIPI CSI-2 in most embedded designs, but they do not always speak it in the same shape.&lt;/p&gt;

&lt;h3 id=&quot;csi2-basics&quot;&gt;What the standards provide&lt;/h3&gt;
&lt;p&gt;The MIPI Alliance describes CSI-2 as the protocol that carries still and video frames from image sensors to application processors, first introduced in 2005. Its page lists CSI-2 v4.2, adopted on Dec 15, 2025, as the latest version, with support for up to 32 virtual channels. CSI-2 is lane-scalable and normally runs over the D-PHY or C-PHY physical layers for short links, or over A-PHY for long-reach links of up to 15 m.&lt;/p&gt;
&lt;p&gt;The D-PHY page lists v3.6 of September 2025 as the latest version and says v3.0 raised the standard channel to 9 Gb/s and the short channel to 11 Gb/s. The rates in small FPGAs are far lower than those ceilings, which matters when you size a bridge. Virtual channels are what make aggregation possible: one link can carry several cameras, each tagged with its own channel, as long as the combined rate fits.&lt;/p&gt;

&lt;h3 id=&quot;bridge-patterns&quot;&gt;Four bridge patterns&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Aggregation.&lt;/strong&gt; More cameras than the processor has ports; several CSI-2 inputs merge onto fewer outputs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Splitting.&lt;/strong&gt; One sensor feeding two consumers, such as a vision processor and a recorder.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Conversion.&lt;/strong&gt; A sensor with a different interface. Lattice&#39;s CSI-2 transmit bridge reference design converts a parallel pixel bus such as subLVDS or HiSPI into CSI-2 with up to four lanes at up to about 900 Mb/s per lane, and lists typical power of 20 mW for two lanes and 32 mW for four lanes at 700 Mb/s, without stating the device or conditions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transport.&lt;/strong&gt; Moving camera data over another medium. NVIDIA&#39;s Holoscan Sensor Bridge documentation (version 3.0) describes an open-source reference design on a Lattice CertusPro-NX that takes up to two 4-lane CSI-2 inputs and sends the data to a host over 10 GbE, with the FPGA also handling I2C and GPIO.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;hard-vs-soft&quot;&gt;Hard and soft D-PHY&lt;/h3&gt;
&lt;p&gt;A hardened D-PHY block handles the analog front end and deserialization at higher rates and lower power; a soft D-PHY uses general-purpose differential I/O, costs fabric and usually tops out lower. Vendors document both:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lattice lists up to two hardened 4-lane D-PHY blocks on CrossLink-NX devices at 2.5 Gb/s per lane, 10 Gb/s per PHY. The LIFCL-17 and LIFCL-40 have two hard D-PHY quads; the LIFCL-33 and LIFCL-33U have none.&lt;/li&gt;
&lt;li&gt;Efinix lists D-PHY support for CSI-2 and DSI at 1.5 Gb/s on all Titanium parts, with hardened 2.5 Gb/s D-PHY (four transmit and four receive) on the Ti90, Ti120 and Ti180.&lt;/li&gt;
&lt;li&gt;Gowin lists hard D-PHY at 2.5 Gb/s per lane and hard C-PHY at 2.5 Gsps per lane on its GW5AT-15 and GW5AT-60, with lower rates when MIPI runs on general-purpose I/O.&lt;/li&gt;
&lt;li&gt;AMD lists up to 3.2 Gb/s of MIPI performance for Spartan UltraScale+, with MIPI IP and reference designs, and LVDS support for protocols such as SLVS-EC used by CMOS image sensors.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Read the per-part tables, not the family headline: MIPI support, and the higher rate, may exist only on certain densities or packages. For how camera counts grew in vehicles, see our post on &lt;a href=&quot;/2026/10/automotive-camera-evolution-adas-sensor-fusion.html&quot;&gt;cameras in ADAS and sensor fusion&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;io-expansion&quot;&gt;Role 2: I/O expansion and board control&lt;/h2&gt;
&lt;p&gt;Application processors are pin-limited and voltage-limited, with little room for the odd interfaces industrial and server boards still carry. A companion can add pins, translate voltages and implement missing buses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AMD&#39;s Spartan UltraScale+ product page claims the highest I/O-to-logic-cell ratio among FPGAs built in 28 nm and lower nodes, and its product table runs from 304 maximum I/O on the SU10P, with about 11,000 system logic cells, to 572 on the SU200P. AMD names board management control and I/O expansion as target uses, including server boards.&lt;/li&gt;
&lt;li&gt;Lattice&#39;s Certus-NX page lists up to 380 programmable I/O (its package tables top out at 371), two 12-bit, 1 MSPS ADCs, one PCIe lane at 5 Gb/s and two 1 Gb/s Ethernet lanes, with I/O configuring in 3 ms and the full device as fast as 8 ms.&lt;/li&gt;
&lt;li&gt;Lattice&#39;s MachXO5-NX page lists up to 378 I/O at 1.0 V to 3.3 V, up to 55 Mb of user flash with on-chip multi-boot, and positions the family for system control and management, including PCIe-based control aggregation and SFP monitoring in network switches.&lt;/li&gt;
&lt;li&gt;Microchip&#39;s FPGA overview says its flash-based families operate immediately at power-up, draw minimal in-rush current and have much lower leakage than SRAM-based FPGAs. IGLOO2 is built on a 65 nm low-power flash process and PolarFire on a 28 nm SONOS flash process.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Board control, meaning power sequencing, resets, fans, rail monitoring and buttons, needs logic that is alive before the main processor and after it. That favors non-volatile parts or parts that configure in milliseconds.&lt;/p&gt;

&lt;h2 id=&quot;pre-processing&quot;&gt;Role 3: Pre-processing next to the sensor&lt;/h2&gt;
&lt;p&gt;Pre-processing means simple, regular work on the stream before it reaches the main chip&#39;s memory. The reason is bandwidth and power, not compute: every byte that crosses into the SoC&#39;s DRAM costs both. Typical jobs are cropping to a region of interest, binning or scaling; cutting bit depth, for example RAW12 to RAW10; time-stamping and synchronizing several sensors; simple pixel corrections and exposure statistics; and filtering or decimating microphone and ADC data.&lt;/p&gt;
&lt;p&gt;These are streaming operations with fixed latency and small line buffers, so memory matters more than logic. Lattice lists up to about 3 Mb of internal RAM on CrossLink-NX, and up to 7.3 Mb on CertusPro-NX, which also supports external LPDDR4. A line buffer for one row of a 3,840-pixel RAW12 image is about 46 kilobits, so a few rows for each of several cameras fit comfortably, but full frame buffers do not. If the design needs whole frames, it needs external memory, and the companion stops being small.&lt;/p&gt;
&lt;p&gt;AMD&#39;s Spartan UltraScale+ page lists hard LPDDR4X/5 memory controllers on its larger devices (two on the SU65P and above), and Altera lists a hardened LPDDR4 controller on Agilex 3, which is built on Intel 7 according to Altera&#39;s device overview and offers a dual-core Arm Cortex-A55 processor system on SoC variants, per Altera&#39;s product highlight on DigiKey. Those parts sit at the larger end of the companion range.&lt;/p&gt;

&lt;h2 id=&quot;always-on-ai&quot;&gt;Role 4: Small always-on inference&lt;/h2&gt;
&lt;p&gt;The main processor is expensive to keep awake, and a smart camera or appliance spends most of its life waiting. If a small device watches a low-resolution image or a microphone and wakes the processor only when a person appears or a phrase is spoken, average power drops sharply. Lattice&#39;s iCE40 UltraPlus page lists 2,800 or 5,280 lookup tables, 1 Mb of single-port RAM, four or eight DSP blocks, static current as low as 75 µA and active current of 1 to 10 mA for most applications. It claims key phrase detection at less than 1 mW of average power, and human face detection at under 1 mW of active power with an always-on image sensor. These are vendor claims for specific demonstration designs.&lt;/p&gt;
&lt;p&gt;Larger companions run bigger networks. Lattice&#39;s sensAI page lists CNN accelerator IP for CrossLink-NX, Certus-NX and CertusPro-NX, an Advanced CNN Accelerator for CertusPro-NX and Avant, and use cases such as face detection, object recognition, gesture control, driver state analysis and defect detection. Its document list includes a sensAI 8.0 brochure dated Apr 4, 2025. At the top of the range, Lattice&#39;s Avant-E page lists up to 7,200 INT8 multipliers (from 1,800 fracturable 18 by 18 multipliers) and up to about 36 Mb of embedded memory on a 16 nm FinFET process, with no throughput figure given. Efinix lists hardened quad-core RISC-V processors on some Titanium parts, which lets a companion run control code beside its fabric.&lt;/p&gt;
&lt;p&gt;Small FPGAs hold small models, mostly quantized convolutional networks for detection or wake decisions, not large transformer models. The question is whether a wake decision is accurate enough with the memory and multipliers on hand. Our explainer on &lt;a href=&quot;/2023/12/fpga-based-machine-learning-inference.html&quot;&gt;FPGA based machine learning inference&lt;/a&gt; covers the flow from trained model to quantized FPGA design.&lt;/p&gt;

&lt;h2 id=&quot;security&quot;&gt;Role 5: Root of trust and platform security&lt;/h2&gt;
&lt;p&gt;A root of trust is the first component to run and the one that checks everything else. An FPGA suits the role when it powers up first, holds its configuration in protected flash, and sits between the processor and its boot flash, checking images and recovering a known good copy after tampering. Published features include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lattice positions MachXO3D as a hardware root of trust with an immutable embedded security block, the first device on and the last device off. Its page says the security functions follow NIST SP 800-193 guidance for protecting, detecting and recovering platform firmware, lists ECDSA, ECIES, AES, SHA, HMAC and a true random number generator, and cites NIST CAVP certificate C998.&lt;/li&gt;
&lt;li&gt;Lattice&#39;s MachXO5-NX page lists AES-256 bitstream encryption, ECDSA-256/384/521 bitstream authentication, and post-quantum algorithms on its TDQ variants, naming XMSS/LMS, ML-DSA and ML-KEM, and claiming support for the full CNSA 2.0 suite.&lt;/li&gt;
&lt;li&gt;AMD&#39;s Spartan UltraScale+ page lists NIST-approved post-quantum cryptography, device identity through a physically unclonable function, a permanent tamper penalty, differential power analysis countermeasures and AES-GCM decryption.&lt;/li&gt;
&lt;li&gt;Lattice&#39;s Certus-NX page lists ECDSA bitstream authentication and AES-256 encryption; Efinix lists bitstream authentication and encryption on Titanium; Microchip describes security built around confidentiality, integrity and authenticity, with tamper and reverse-engineering resistance.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Post-quantum support matters because firmware signatures must stay trustworthy for a product life that can pass a decade. Whether a device&#39;s hardened crypto covers the algorithms a customer requires is a question for the datasheet and certification records. The companion is also a security boundary itself: an unauthenticated bitstream or open debug port makes it the weakest link in the chain it anchors.&lt;/p&gt;

&lt;h2 id=&quot;why-low-power&quot;&gt;Why low-power FPGAs fit these roles&lt;/h2&gt;
&lt;p&gt;Five properties recur in vendor material, and each maps to a companion job.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Low static power.&lt;/strong&gt; A companion is often always on. Lattice lists under 70 µA typical standby for CrossLink-NX, and for its 28 nm FD-SOI Nexus platform claims 75% lower circuit-level power than bulk process, with programmable back bias. AMD claims up to 30% lower total power for smaller Spartan UltraScale+ devices against its previous 28 nm devices. Microchip claims up to 50% lower total power than competing FPGAs. All of these use different baselines, so they cannot be compared with each other.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fast or instant start.&lt;/strong&gt; Flash-based parts start at power-up; SRAM-based parts need configuration, which Lattice gives as 3 ms for I/O and 8 ms for a full Certus-NX.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Small packages.&lt;/strong&gt; Lattice lists CrossLink-NX from a 4 mm by 4 mm wafer-level package and iCE40 UltraPlus at about 2.15 by 2.55 mm; Efinix lists a 3.5 by 3.4 mm WLCSP and Gowin a 4.0 by 5.3 mm WLCSP for its GW5AT-15. On a camera module, millimeters count.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hard interface blocks.&lt;/strong&gt; Hard D-PHY, PCIe, Ethernet and memory controllers do the costly part of an interface at lower power than soft logic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Soft error resilience.&lt;/strong&gt; Lattice claims a 100 times lower soft error rate for its FD-SOI families than bulk process devices. Efinix lists single event upset detection on Titanium and correction on Titanium Edge. For a device that may hold a safety monitor or a boot check, configuration upsets matter.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The research record explains why small jobs suit FPGAs better than big ones. Kuon and Rose, in &quot;Measuring the Gap Between FPGAs and ASICs&quot; (IEEE Transactions on Computer-Aided Design, February 2007), measured a 90 nm FPGA against 90 nm standard cells. For logic and flip-flops alone, the FPGA needed on average 35 times the silicon area; hard multipliers and memories cut that to as little as 18 on their benchmarks. Critical path delay was roughly three to four times longer, and dynamic power about 14 times higher. The numbers are old and the gap shifts with each generation, but the shape holds: programmable logic is expensive per gate, so it pays when the gate count is small and flexibility is valuable. That is the companion case. Heavy compute stays in the SoC, and the FPGA keeps the irregular, changeable parts.&lt;/p&gt;

&lt;h2 id=&quot;comparison&quot;&gt;Comparison: companion roles and the features they need&lt;/h2&gt;
&lt;p&gt;Every figure below is a vendor claim from the vendor&#39;s own page, read on Nov 26, 2026. Families are examples, not a ranking; a vendor missing from a row means we found no figure, not that it lacks the capability.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Companion role&lt;/th&gt;&lt;th&gt;Features that matter&lt;/th&gt;&lt;th&gt;Published examples (vendor claims)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Camera bridging and aggregation&lt;/td&gt;&lt;td&gt;Hard D-PHY or C-PHY receive and transmit, lane rate, number of ports, line buffer memory, small package&lt;/td&gt;&lt;td&gt;Lattice CrossLink-NX: up to two hard 4-lane D-PHY at 2.5 Gb/s per lane, from 4 mm by 4 mm. Efinix Titanium: 1.5 Gb/s D-PHY on all parts, hard 2.5 Gb/s on Ti90 to Ti180. Gowin GW5AT-15/60: hard D-PHY 2.5 Gb/s per lane, hard C-PHY 2.5 Gsps per lane. AMD Spartan UltraScale+: up to 3.2 Gb/s MIPI.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Transport to Ethernet or PCIe&lt;/td&gt;&lt;td&gt;Transceivers, hard PCIe, Ethernet MAC or SGMII, packet buffers&lt;/td&gt;&lt;td&gt;Lattice CertusPro-NX: up to eight lanes at up to 10.3 Gb/s, used in NVIDIA&#39;s Holoscan Sensor Bridge reference design with 10 GbE. AMD Spartan UltraScale+: up to eight transceivers, PCIe Gen4. Gowin GW5AT: transceivers to 12.5 Gb/s and hard PCIe 3.0.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;I/O expansion and board control&lt;/td&gt;&lt;td&gt;I/O count, voltage range, instant-on or fast configuration, ADCs, user flash&lt;/td&gt;&lt;td&gt;AMD Spartan UltraScale+: 304 to 572 maximum I/O. Lattice Certus-NX: up to 380 I/O, two 12-bit 1 MSPS ADCs, 3 ms I/O configuration. Lattice MachXO5-NX: up to 378 I/O at 1.0 V to 3.3 V, up to 55 Mb user flash. Microchip flash families: operate at power-up.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Pre-processing&lt;/td&gt;&lt;td&gt;Embedded RAM, DSP multipliers, external memory controller when frames must be stored&lt;/td&gt;&lt;td&gt;Lattice CrossLink-NX: up to about 3 Mb RAM; CertusPro-NX: up to 7.3 Mb plus LPDDR4. AMD Spartan UltraScale+: hard LPDDR4X/5 controllers on larger parts. Altera Agilex 3: hardened LPDDR4 controller.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Always-on inference&lt;/td&gt;&lt;td&gt;Static current, RAM for weights, multipliers, model tools&lt;/td&gt;&lt;td&gt;Lattice iCE40 UltraPlus: 75 µA static, under 1 mW for its key phrase and face detection demos. Lattice sensAI: CNN IP on Nexus devices. Lattice Avant-E: up to 7,200 INT8 multipliers.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Root of trust and secure boot&lt;/td&gt;&lt;td&gt;Non-volatile configuration, crypto engines, certified algorithms, PUF, tamper response, post-quantum support&lt;/td&gt;&lt;td&gt;Lattice MachXO3D: NIST SP 800-193 aligned, CAVP certificate C998. Lattice MachXO5-NX: ML-DSA, ML-KEM, XMSS/LMS on TDQ parts. AMD Spartan UltraScale+: NIST-approved PQC, PUF, DPA countermeasures.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Some pages disagree with themselves: Lattice&#39;s Certus-NX page gives both 380 and 371 maximum I/O, and its CrossLink-NX page both 4 by 4 mm and 3.7 by 4.1 mm for the smallest package. Use the datasheet for the exact part.&lt;/p&gt;

&lt;h2 id=&quot;worked-example&quot;&gt;Worked decision example: a four-camera hub (illustrative)&lt;/h2&gt;
&lt;p&gt;Every input below is an illustrative assumption, not a real product or quote; the arithmetic was computed with a short script.&lt;/p&gt;

&lt;h3 id=&quot;example-setup&quot;&gt;The setup&lt;/h3&gt;
&lt;p&gt;An edge vision box needs four cameras. Its SoC has one 4-lane CSI-2 receive port at 2.5 Gb/s per lane, 10 Gb/s in all. We add 25% to raw pixel data for blanking and packet overhead, a planning assumption, not a CSI-2 figure.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Camera configuration (illustrative)&lt;/th&gt;&lt;th&gt;Per camera, with 25% allowance&lt;/th&gt;&lt;th&gt;Four cameras&lt;/th&gt;&lt;th&gt;Fits one 10 Gb/s port?&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;1920 by 1080, RAW12, 30 frames per second&lt;/td&gt;&lt;td&gt;0.93 Gb/s&lt;/td&gt;&lt;td&gt;3.73 Gb/s&lt;/td&gt;&lt;td&gt;Yes, about 37% of the port&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3840 by 2160, RAW10, 30 frames per second&lt;/td&gt;&lt;td&gt;3.11 Gb/s&lt;/td&gt;&lt;td&gt;12.44 Gb/s&lt;/td&gt;&lt;td&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3840 by 2160, RAW12, 30 frames per second&lt;/td&gt;&lt;td&gt;3.73 Gb/s&lt;/td&gt;&lt;td&gt;14.93 Gb/s&lt;/td&gt;&lt;td&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;With four 2 MP cameras, the companion only aggregates, each stream on its own virtual channel. With four 8 MP RAW12 cameras, each needs about 1.49 lanes at 2.5 Gb/s, so two lanes each and eight in total, twice what the SoC port offers. RAW10 still leaves 12.4 Gb/s, so bit depth alone does not solve it.&lt;/p&gt;

&lt;h3 id=&quot;example-preprocess&quot;&gt;What pre-processing changes&lt;/h3&gt;
&lt;p&gt;Suppose the application needs full resolution from one forward camera and only 1920 by 1080 from the other three. A companion that bins the three side cameras 2 by 2 sends one full stream at 3.73 Gb/s plus three binned streams at 0.93 Gb/s each, a total of about 6.53 Gb/s, or about 65% of the port. Two full-resolution cameras would be about 7.47 Gb/s, about 75%. The companion then needs enough hard and soft receive lanes to take eight lanes in, one 4-lane transmit port, line buffers and virtual channel tagging. That is the real result: it rules out parts with too few D-PHY blocks before price is considered.&lt;/p&gt;

&lt;h3 id=&quot;example-options&quot;&gt;Three ways to build it&lt;/h3&gt;
&lt;p&gt;The team compares three options. The cost inputs are assumptions for illustration only.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A. Keep the SoC and add a companion FPGA&lt;/strong&gt;, at an assumed $6 per unit for the FPGA and its support parts.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;B. Move to a larger SoC&lt;/strong&gt; with enough camera ports, at an assumed $8 more per unit than the current SoC, and a software port to the new chip.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;C. Design a custom bridge ASIC&lt;/strong&gt;, at an assumed $2 million of non-recurring engineering and $1.50 per unit.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Lifetime volume (illustrative)&lt;/th&gt;&lt;th&gt;A. FPGA companion&lt;/th&gt;&lt;th&gt;B. Larger SoC&lt;/th&gt;&lt;th&gt;C. Custom ASIC&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;10,000 units&lt;/td&gt;&lt;td&gt;$60,000&lt;/td&gt;&lt;td&gt;$80,000&lt;/td&gt;&lt;td&gt;$2,015,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;100,000 units&lt;/td&gt;&lt;td&gt;$600,000&lt;/td&gt;&lt;td&gt;$800,000&lt;/td&gt;&lt;td&gt;$2,150,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;1,000,000 units&lt;/td&gt;&lt;td&gt;$6,000,000&lt;/td&gt;&lt;td&gt;$8,000,000&lt;/td&gt;&lt;td&gt;$3,500,000&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;With these inputs the ASIC breaks even against the FPGA companion at $2,000,000 divided by $4.50, about 444,000 units, and against the larger SoC at $2,000,000 divided by $6.50, about 308,000 units. Below those volumes the FPGA companion costs least; above them the ASIC does, if the interfaces stay fixed and the schedule can absorb a tapeout. The larger SoC never wins on unit cost here, but may still be right if it removes a part and a toolchain, or if its extra compute is needed anyway.&lt;/p&gt;

&lt;h3 id=&quot;example-power&quot;&gt;The always-on angle&lt;/h3&gt;
&lt;p&gt;The same box may also need to wake on motion. Assume the SoC draws 3 W awake and 0.05 W asleep, and a companion detector draws 5 mW continuously, an assumption in the same range as the sub-milliwatt to milliwatt vendor claims for small FPGAs. Keeping the SoC awake all day uses 72 Wh. If the companion keeps the SoC asleep 95% of the time, the daily total falls to about 4.86 Wh, roughly 15 times less, and the companion itself is about 2.5% of that. The result depends mostly on the assumed duty cycle and SoC sleep power; how often the companion wakes the main chip matters more than its own power.&lt;/p&gt;

&lt;h2 id=&quot;wrong-answer&quot;&gt;When a companion FPGA is the wrong answer&lt;/h2&gt;
&lt;p&gt;A companion adds a part, a toolchain, a bitstream and a security surface. It is the wrong choice when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The main chip already does the job.&lt;/strong&gt; If a newer SoC in the same family has the ports or always-on island you need, a second device adds cost and risk for nothing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A fixed-function bridge exists.&lt;/strong&gt; If a standard part covers a conversion that will not change, it is usually smaller, cheaper and simpler to qualify.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Volume is high and requirements are frozen.&lt;/strong&gt; At high volume a custom ASIC wins on unit cost. Embedded FPGA IP sits between the two: QuickLogic&#39;s ArcticPro page lists eFPGA arrays from 8 by 8 to 64 by 64 logic cells on 65 nm and 40 nm processes, keeping some flexibility inside a custom chip.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The workload is large compute.&lt;/strong&gt; Kuon and Rose&#39;s ratios are the reason. A big network or a full image signal processor belongs in silicon built for it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The team cannot own an FPGA flow.&lt;/strong&gt; HDL, timing closure, bitstream signing and field updates need skills a team without them pays for in schedule.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The rates exceed the small parts.&lt;/strong&gt; Beyond low-power lane rates and counts, the companion becomes a mid-range part with transceivers and external memory, and the case changes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Certification is the long pole.&lt;/strong&gt; In safety or security-certified products, a programmable device adds analysis work, unless it is the point, as in an independent safety monitor.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;checklist&quot;&gt;A short selection checklist&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Name the mismatch the companion fixes. If you cannot, you may not need one.&lt;/li&gt;
&lt;li&gt;Compute data rates from real sensor modes, then pick parts by hard D-PHY count and lane rate per package.&lt;/li&gt;
&lt;li&gt;Budget memory: line buffers fit on chip, frame buffers usually do not.&lt;/li&gt;
&lt;li&gt;If the device must be alive before the processor, prefer non-volatile or fast-configuring parts.&lt;/li&gt;
&lt;li&gt;For security roles, confirm algorithms, key storage and certifications in the datasheet and certificate records.&lt;/li&gt;
&lt;li&gt;Run the vendor&#39;s power estimator with your own design; product page claims use the vendor&#39;s baseline.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The Semiconductor Hub&#39;s &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/fpga&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;FPGA-based product development lifecycle&lt;/a&gt; lays out the stages from requirements and device selection through design, verification and timing closure, a useful frame for planning a companion as its own small project. For how the main chip itself is put together, see our explainer on &lt;a href=&quot;/2025/06/system-on-chip-soc-heart-of-modern.html&quot;&gt;what is inside a system on chip&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Electronic Design, Hussein Osman (Lattice Semiconductor), &quot;FPGAs: Co-Processors of the Future for Edge AI?&quot;, Nov 25, 2026: &lt;a href=&quot;https://www.electronicdesign.com/technologies/embedded/article/55421667/lattice-semiconductor-fpgas-as-everywhere-companion-chips-for-edge-ai&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;electronicdesign.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;MIPI Alliance, &quot;MIPI Camera Serial Interface 2 (MIPI CSI-2)&quot; specification page, read Nov 26, 2026 (lists v4.2, adopted Dec 15, 2025): &lt;a href=&quot;https://www.mipi.org/specifications/csi-2&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;mipi.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;MIPI Alliance, &quot;MIPI D-PHY&quot; specification page, read Nov 26, 2026 (lists v3.6, September 2025): &lt;a href=&quot;https://www.mipi.org/specifications/d-phy&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;mipi.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, CrossLink-NX product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/CrossLink-NX&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, Certus-NX product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/Certus-NX&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, CertusPro-NX product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/CertusPro-NX&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, MachXO5-NX product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/MachXO5-NX&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, MachXO3D product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/MachXO3D&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, iCE40 UltraPlus product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/iCE40UltraPlus&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, Avant-E product page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Products/FPGAandCPLD/Avant-E&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, Lattice Nexus platform page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/LatticeNexus&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, sensAI solution stack page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/Solutions/Solutions/SolutionsDetails02/sensAI&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lattice Semiconductor, &quot;MIPI CSI-2 Transmit Bridge&quot; reference design page, read Nov 26, 2026: &lt;a href=&quot;https://www.latticesemi.com/products/designsoftwareandip/intellectualproperty/referencedesigns/referencedesign03/csi2tx&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;latticesemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;NVIDIA, Holoscan Sensor Bridge documentation, &quot;MIPI CPNX Reference Design&quot;, version 3.0, read Nov 26, 2026: &lt;a href=&quot;https://docs.nvidia.com/holoscan/sensor-bridge/reference-designs/mipi-cpnx-reference-design&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;docs.nvidia.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;AMD, Spartan UltraScale+ FPGA product page, read Nov 26, 2026: &lt;a href=&quot;https://www.amd.com/en/products/adaptive-socs-and-fpgas/fpga/spartan-ultrascale-plus.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;amd.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Altera, &quot;Agilex 3 FPGAs and SoCs Device Overview&quot; (document 817231), page dated Nov 12, 2026: &lt;a href=&quot;https://docs.altera.com/r/docs/817231/current/agilex-3-fpgas-and-socs-device-overview&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;docs.altera.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;DigiKey, &quot;Agilex 3 FPGAs and SoCs&quot; product highlight (Altera), published Apr 24, 2025, updated Apr 27, 2026: &lt;a href=&quot;https://www.digikey.com/en/product-highlight/a/altera/agilex-3-fpgas-and-socs&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;digikey.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Microchip Technology, &quot;Microchip FPGA Overview&quot;, online documentation, read Nov 26, 2026: &lt;a href=&quot;https://onlinedocs.microchip.com/oxy/GUID-A4E7650B-AAE4-440A-A626-D12A92072872-en-US-2/GUID-63B3B976-E4DF-4457-975E-4662AB6CD7B2.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;onlinedocs.microchip.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Efinix, Titanium FPGA family page, read Nov 26, 2026: &lt;a href=&quot;https://www.efinixinc.com/products-titanium.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;efinixinc.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;GOWIN Semiconductor, Arora V product page (GW5AT series), read Nov 26, 2026: &lt;a href=&quot;https://www.gowinsemi.com/en/product/detail/60/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;gowinsemi.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;QuickLogic, &quot;ArcticPro Ultra-Low Power Embedded FPGA (eFPGA) IP&quot; page, read Nov 26, 2026: &lt;a href=&quot;https://shop.quicklogic.com/products/efpga/arcticpro/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;quicklogic.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ian Kuon and Jonathan Rose, &quot;Measuring the Gap Between FPGAs and ASICs&quot;, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 26, no. 2, February 2007, author PDF: &lt;a href=&quot;https://www.eecg.utoronto.ca/~jayar/pubs/kuon/kuontcad06.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;eecg.utoronto.ca&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Device figures are as published by each vendor on the pages listed, read on Nov 26, 2026, and power, reliability and performance claims use each vendor&#39;s own baseline, so they are not directly comparable. The worked example uses assumed inputs to show a method and does not describe any real product or price. Mention of a vendor or product is not an endorsement, and this report is technical commentary, not investment advice.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/6826219586888947913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/companion-fpgas-at-edge-camera-bridging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/6826219586888947913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/6826219586888947913'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/companion-fpgas-at-edge-camera-bridging.html' title='Companion FPGAs at the Edge: Camera Bridging, I/O, Always-On AI and Root of Trust Beside the Main SoC'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZZkRngHg4czUnIwLk10I_nEOzPptM6ShjLLne_J40nKOIL2I1M1gy-1hYipqL04RU_u3_aIbmTyi075gm43qzJm_nUM99rKwZEYoy4j6fBMbsHPtajQgJYkt-j3p1ZcpZjgcqVWmww6zXLkTXRdPju5nYwClZio35PMXaRpOW-Yj4gOtkOSHudQ/s72-c/sr-fpga-companion.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-8309227483213860923</id><published>2026-11-29T21:44:00.000+05:30</published><updated>2026-11-29T21:44:00.207+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="AI Accelerators"/><category scheme="http://www.blogger.com/atom/ns#" term="AI Hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="HBM"/><category scheme="http://www.blogger.com/atom/ns#" term="Memory"/><title type='text'>Counting the Bytes Behind One LLM Token</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;Streams of data flowing from stacked memory dies into a compute die on an AI accelerator package.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipNoXcgbsWA1QmJUrz1M-9a4cWGhR6OxYbpkHV1vRAx15OxOumEsjqtva4kWFxyUrJ7h1YEJ5Xq2j3xxLw-c5Pg8YhpARHPjMNj2M-zDx98SIUCiu9WZlhFWy2hZ6G1BIErcB6EsTXy0Hkeb6E9iMXQpSfhjYGyTz2gb3xz-dry-yMjacqIoajpw/s1600/t091.jpg&quot; title=&quot;Streams of data flowing from stacked memory dies into a compute die on an AI accelerator package.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Run the sums on one decode step of a published model and compute barely registers. Take Llama 3.1 70B serving 32 users at a context of 8,192 tokens. With the assumptions labelled below, one step reads about 156 GB from memory and does about 5.1 trillion floating-point operations. At the peak ratings NVIDIA publishes for a Rubin GPU, that is about 8 ms of memory time and 0.15 ms of compute. These results depend on our illustrative inputs, and the post shows how far they move when the inputs change.&lt;/p&gt;
&lt;p&gt;The rest of this post splits the workload into three separate demands: bytes held, bytes moved and operations performed. Each one is worked out from published model shapes, then set against published chip figures to show which limit arrives first. The answer differs between prefill and decode, and it changes with batch size, context length and model type.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;three-demands&quot;&gt;Three demands, two phases&lt;/h2&gt;
&lt;p&gt;An LLM asks hardware for three things. &lt;strong&gt;Memory capacity&lt;/strong&gt; is the number of bytes that must be held, mainly weights and the key-value (KV) cache. &lt;strong&gt;Memory bandwidth&lt;/strong&gt; is the number of bytes that must be moved within the time allowed for a step. &lt;strong&gt;Compute&lt;/strong&gt; is the number of arithmetic operations in that step.&lt;/p&gt;
&lt;p&gt;Inference has two phases. Prefill processes the whole prompt at once, so it is parallel and resembles training. Decode then produces one token at a time, and each new token needs a fresh pass through the model. Xiaoyu Ma and David Patterson of Google describe prefill as often compute bound and decode as memory bound. The LLMCompass study reached a similar view through simulation: prefill gains from more compute and buffers, while decode barely does and responds to memory bandwidth instead.&lt;/p&gt;
&lt;p&gt;The KV cache joins the phases. For each token in the context, every layer stores attention keys and values so that they need not be recomputed. The cache saves arithmetic, but it has to be read again at every step.&lt;/p&gt;

&lt;h2 id=&quot;model-shapes&quot;&gt;What published model sizes tell you&lt;/h2&gt;
&lt;p&gt;Meta&#39;s llama-models repository lists the shape of each model. Rebuilding the parameter count from those arguments gives 70.55 billion for the 70B model and 405.85 billion for the 405B model. DeepSeek&#39;s technical report gives 671 billion parameters for V3, with 37 billion activated for each token, and its public configuration file gives the attention sizes.&lt;/p&gt;
&lt;p&gt;The DeepSeek-V2 paper sets out KV cache size per context token. For grouped-query attention, it is 2 times the KV heads, times the head size, times the layers. For DeepSeek&#39;s latent attention, it is the compressed dimension plus the RoPE head size, times the layers. The derived columns below are our arithmetic.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th&gt;Parameters&lt;/th&gt;&lt;th&gt;Active per token&lt;/th&gt;&lt;th&gt;Attention inputs&lt;/th&gt;&lt;th&gt;KV elements per context token&lt;/th&gt;&lt;th&gt;KV bytes at 2 bytes each&lt;/th&gt;&lt;th&gt;One user at 8,192 tokens&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 70B&lt;/td&gt;&lt;td&gt;70 B&lt;/td&gt;&lt;td&gt;All&lt;/td&gt;&lt;td&gt;80 layers, 8 KV heads, head size 128&lt;/td&gt;&lt;td&gt;163,840&lt;/td&gt;&lt;td&gt;328 KB&lt;/td&gt;&lt;td&gt;2.68 GB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 405B&lt;/td&gt;&lt;td&gt;405 B&lt;/td&gt;&lt;td&gt;All&lt;/td&gt;&lt;td&gt;126 layers, 8 KV heads, head size 128&lt;/td&gt;&lt;td&gt;258,048&lt;/td&gt;&lt;td&gt;516 KB&lt;/td&gt;&lt;td&gt;4.23 GB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;DeepSeek V3&lt;/td&gt;&lt;td&gt;671 B&lt;/td&gt;&lt;td&gt;37 B&lt;/td&gt;&lt;td&gt;61 layers, 512 plus 64 per layer&lt;/td&gt;&lt;td&gt;35,136&lt;/td&gt;&lt;td&gt;70 KB&lt;/td&gt;&lt;td&gt;0.58 GB&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Meta&#39;s list also has a 405B entry with 16 KV heads, which would double that row&#39;s cache. We use the 8-head entry. DeepSeek V3 has by far the most weights of the three and by far the smallest cache per token.&lt;/p&gt;

&lt;h2 id=&quot;decode-step&quot;&gt;A worked decode step&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;The model shapes above are published. Everything in this list is our assumption, chosen for clarity, and none of it describes a measured system.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Weights take 1 byte per parameter, as with 8-bit formats. KV elements take 2 bytes.&lt;/li&gt;
&lt;li&gt;Every active weight and every KV element for every user is read once per step from external memory. On-chip caching does not reduce this.&lt;/li&gt;
&lt;li&gt;Each user has 8,192 tokens of context. The batch is 32 users, all at that length.&lt;/li&gt;
&lt;li&gt;Each parameter in a linear layer costs one multiply-accumulate, counted as 2 FLOPs. The input embedding table is excluded.&lt;/li&gt;
&lt;li&gt;Each query head does one multiply-accumulate per head dimension per context token for keys, and the same for values.&lt;/li&gt;
&lt;li&gt;The time limit is 40 ms per token. MLCommons set that limit for its Llama 2 70B Interactive benchmark, and we borrow it as a yardstick.&lt;/li&gt;
&lt;li&gt;Network, scheduling and software overheads are left out for now.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Llama 3.1 70B, step by step&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;KV per context token:&lt;/strong&gt; 2 × 8 × 128 × 80 = 163,840 elements, or 327,680 bytes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;KV per user:&lt;/strong&gt; 327,680 × 8,192 = 2.68 GB.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;KV for the batch:&lt;/strong&gt; 2.68 GB × 32 = 85.9 GB.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bytes read per step:&lt;/strong&gt; 70 GB of weights plus 85.9 GB of KV = 155.9 GB. The cache is 55% of the traffic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bandwidth to finish in 40 ms:&lt;/strong&gt; 155.9 GB / 0.04 s = 3.90 TB/s.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Linear layer compute per user:&lt;/strong&gt; 69.5 billion parameters × 2 = 139 GFLOPs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Attention compute per user:&lt;/strong&gt; 64 query heads × 128 × 2 × 80 layers × 8,192 tokens × 2 FLOPs = 21.5 GFLOPs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Compute per step:&lt;/strong&gt; 160.5 GFLOPs × 32 = 5.14 TFLOPs, which needs 0.128 PFLOPS to finish in 40 ms.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Batching shares the weights but not the cache&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Illustrative case, 8,192-token context&lt;/th&gt;&lt;th&gt;Batch&lt;/th&gt;&lt;th&gt;Weights read&lt;/th&gt;&lt;th&gt;KV read&lt;/th&gt;&lt;th&gt;Total per step&lt;/th&gt;&lt;th&gt;Per output token&lt;/th&gt;&lt;th&gt;Bandwidth for 40 ms&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 70B&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;70 GB&lt;/td&gt;&lt;td&gt;2.7 GB&lt;/td&gt;&lt;td&gt;72.7 GB&lt;/td&gt;&lt;td&gt;72.7 GB&lt;/td&gt;&lt;td&gt;1.82 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 70B&lt;/td&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;70 GB&lt;/td&gt;&lt;td&gt;85.9 GB&lt;/td&gt;&lt;td&gt;155.9 GB&lt;/td&gt;&lt;td&gt;4.87 GB&lt;/td&gt;&lt;td&gt;3.90 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 405B&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;405 GB&lt;/td&gt;&lt;td&gt;4.2 GB&lt;/td&gt;&lt;td&gt;409.2 GB&lt;/td&gt;&lt;td&gt;409.2 GB&lt;/td&gt;&lt;td&gt;10.23 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Llama 3.1 405B&lt;/td&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;405 GB&lt;/td&gt;&lt;td&gt;135.3 GB&lt;/td&gt;&lt;td&gt;540.3 GB&lt;/td&gt;&lt;td&gt;16.88 GB&lt;/td&gt;&lt;td&gt;13.51 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;DeepSeek V3&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;37 GB&lt;/td&gt;&lt;td&gt;0.6 GB&lt;/td&gt;&lt;td&gt;37.6 GB&lt;/td&gt;&lt;td&gt;37.6 GB&lt;/td&gt;&lt;td&gt;0.94 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;DeepSeek V3&lt;/td&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;434 GB&lt;/td&gt;&lt;td&gt;18.4 GB&lt;/td&gt;&lt;td&gt;452.5 GB&lt;/td&gt;&lt;td&gt;14.14 GB&lt;/td&gt;&lt;td&gt;11.31 TB/s&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Batching does most of the work at this context length. Going from 1 user to 32 on the 70B model cuts bytes per output token about 15 times, because all 32 users share one read of the weights. The cache sets the floor, since each user&#39;s entries are private. No batch size takes the 70B case below 2.68 GB per token.&lt;/p&gt;
&lt;p&gt;The DeepSeek row at batch 32 rests on an extra assumption, explained below.&lt;/p&gt;

&lt;h2 id=&quot;balance&quot;&gt;Compute against bandwidth: a quick balance test&lt;/h2&gt;
&lt;p&gt;Dividing bytes by FLOPs gives a ratio you can compare directly with a chip&#39;s own ratio of memory bandwidth to peak compute. If the workload&#39;s ratio is higher than the chip&#39;s, memory finishes last.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Item&lt;/th&gt;&lt;th&gt;Bytes per 1,000 FLOPs&lt;/th&gt;&lt;th&gt;Basis&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;70B decode, batch 1, 8,192 tokens&lt;/td&gt;&lt;td&gt;453&lt;/td&gt;&lt;td&gt;Our assumptions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;70B decode, batch 32, 8,192 tokens&lt;/td&gt;&lt;td&gt;30&lt;/td&gt;&lt;td&gt;Our assumptions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;70B decode, batch 32, 131,072 tokens&lt;/td&gt;&lt;td&gt;94&lt;/td&gt;&lt;td&gt;Our assumptions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;70B prefill of one 8,192-token prompt&lt;/td&gt;&lt;td&gt;0.059&lt;/td&gt;&lt;td&gt;Our assumptions&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;NVIDIA Rubin GPU&lt;/td&gt;&lt;td&gt;0.55&lt;/td&gt;&lt;td&gt;19.2 TB/s and 35 PFLOPS NVFP4 dense, listed as a training figure&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Google TPU 8t&lt;/td&gt;&lt;td&gt;0.52&lt;/td&gt;&lt;td&gt;6,528 GB/s and 12.6 PFLOPs peak FP4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Google TPU 8i&lt;/td&gt;&lt;td&gt;0.85&lt;/td&gt;&lt;td&gt;8,601 GB/s and 10.1 PFLOPs peak FP4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The chip figures are the companies&#39; own and rest on different definitions, so this table does not rank them. All three are 4-bit ratings, while our example uses 8-bit weights, so real compute would be lower than these peaks suggest. NVIDIA&#39;s own dense FP8 figure for Rubin is half its NVFP4 one.&lt;/p&gt;
&lt;p&gt;Even so, the gap is wide. In the batch 32 case, the Rubin GPU takes 8.1 ms for memory and 0.15 ms for compute at peak. TPU 8i takes 18.1 ms and 0.51 ms. If compute sustained only a tenth of peak, those compute times would become 1.5 ms and 5.1 ms, and memory would still take longer. NVIDIA Research&#39;s LIMINAL paper points the same way, reporting tensor compute utilisation of 1% or less in low-batch decode on the designs it models.&lt;/p&gt;
&lt;p&gt;Prefill falls on the other side of the line. One 8,192-token prompt on the 70B model needs about 1.23 PFLOPs and about 72.7 GB of memory traffic, if the attention working set inside the pass stays on the chip. At peak, the Rubin GPU spends 35 ms on compute and 3.8 ms on memory. TPU 8i spends 121 ms and 8.5 ms. So compute matters most in the phase that sets time to first token. At a tenth of peak, those compute times become 350 ms and 1,215 ms, which you can compare with the 450 ms limit in the same MLCommons benchmark.&lt;/p&gt;

&lt;h2 id=&quot;which-wall&quot;&gt;Capacity or bandwidth: which arrives first?&lt;/h2&gt;
&lt;p&gt;Bandwidth is not always the first limit. In a dense model, almost everything held is also read at every step, which gives a simple test: divide a chip&#39;s memory capacity by its bandwidth. That gives the time to read the whole memory once. If the result is shorter than your per-token limit, you will run out of space before you run out of bandwidth.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;70B model, 8,192 tokens, one chip&lt;/th&gt;&lt;th&gt;Time to read all memory&lt;/th&gt;&lt;th&gt;Users that fit&lt;/th&gt;&lt;th&gt;Users within 40 ms at peak&lt;/th&gt;&lt;th&gt;Users within 40 ms at half of peak&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;NVIDIA Rubin GPU, 288 GB&lt;/td&gt;&lt;td&gt;15.0 ms&lt;/td&gt;&lt;td&gt;81&lt;/td&gt;&lt;td&gt;260&lt;/td&gt;&lt;td&gt;116&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Google TPU 8i, 288 GB&lt;/td&gt;&lt;td&gt;33.5 ms&lt;/td&gt;&lt;td&gt;81&lt;/td&gt;&lt;td&gt;102&lt;/td&gt;&lt;td&gt;38&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Google TPU 8t, 216 GB&lt;/td&gt;&lt;td&gt;33.1 ms&lt;/td&gt;&lt;td&gt;54&lt;/td&gt;&lt;td&gt;71&lt;/td&gt;&lt;td&gt;22&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;At peak bandwidth, capacity binds on all three. Halve the usable bandwidth and bandwidth binds on both TPUs, while capacity still binds on Rubin. A May 2026 preprint by Josef Chen, using batch 1 and a much smaller model, reports that an H100 reached only about 27% of its analytic memory floor, against about 81% on the slower L4. That suggests measuring what your own stack reaches.&lt;/p&gt;
&lt;p&gt;Long context changes the picture sharply. At 131,072 tokens, each 70B user needs 42.9 GB of cache under our assumptions, and only 5 users fit beside the weights on a 288 GB chip. Serving 32 users would take 1,444 GB, or six such chips, and 36 TB/s to meet 40 ms. LIMINAL lists 704 GB for this model at batch 32 and 128K context. The paper does not state its KV precision, but our own figure falls to 757 GB at 1 byte per element, so the two are close once that choice is aligned. At 1 byte per element, the 8,192-token batch 32 step also falls from 155.9 GB to 113 GB.&lt;/p&gt;
&lt;p&gt;SRAM helps as a tier but cannot hold all of this. The 2.68 GB for one 70B user at 8,192 tokens is about seven times TPU 8i&#39;s 384 MB of on-chip SRAM. Google says that SRAM lets a larger KV cache sit on silicon during long-context decoding.&lt;/p&gt;

&lt;h2 id=&quot;sparse-models&quot;&gt;Sparse models need less per user, less so per batch&lt;/h2&gt;
&lt;p&gt;Mixture-of-experts models look like a clean escape, since only a fraction of the weights is used per token. At batch 1, the published figures bear that out: DeepSeek V3 reads 37.6 GB per step, about 9% of the 405B model&#39;s 409.2 GB, under our assumptions.&lt;/p&gt;
&lt;p&gt;Batching shrinks that advantage, because different users activate different experts. We estimate the effect as follows, and &lt;strong&gt;this estimate is illustrative&lt;/strong&gt;. V3 has 256 routed experts per MoE layer and uses 8 per token. Assuming all experts are the same size, 671 B total and 37 B active imply about 2.56 B per routed expert and 16.5 B of other weights. If each user picks experts independently and uniformly, 32 users touch about 163 of the 256. That means about 434 GB of weights read per step, and 452.5 GB with the cache, which is about 84% of the 405B model&#39;s figure at the same batch.&lt;/p&gt;
&lt;p&gt;Real routing is not uniform, so this probably overstates the traffic. LIMINAL models the same effect with Monte Carlo simulation, and also finds active experts rising with batch. Weights held stay at 671 GB, so V3 still needs at least three 288 GB chips before any cache is counted. And we left latent attention compute out of the V3 count, because the published formula covers storage only. LIMINAL reports that V3 and Kimi K2 become compute bound as batch grows past 4 TB/s of bandwidth, because of that attention mechanism.&lt;/p&gt;

&lt;h2 id=&quot;left-out&quot;&gt;What the sums leave out&lt;/h2&gt;
&lt;p&gt;The largest omission is the network. Once weights span several chips, each step needs chip-to-chip exchanges, and those exchanges add latency that no amount of memory bandwidth removes. LIMINAL calls all-reduce below a microsecond across 128 chips essential if high memory bandwidth is to pay off, and it finds that about 8 times more bandwidth buys only 1.1 to 4.2 times more per-user throughput across six models. Ma and Patterson argue that latency matters more than bandwidth for these small, frequent messages. Our post on &lt;a href=&quot;/2026/11/after-cowos-optics-where-ai-hardware.html&quot;&gt;where the AI hardware bottleneck moves after CoWoS&lt;/a&gt; covers the links themselves.&lt;/p&gt;
&lt;p&gt;The other omissions cut in both directions. Quantisation below 8 bits shrinks the weight traffic, though Chen&#39;s preprint reports that some quantised paths on the L4 fell well short of the expected reduction in step time. On-chip storage would reduce external reads, and real batches have mixed lengths. LIMINAL and Ma and Patterson come from NVIDIA and Google staff respectively, so read their framing with their employers&#39; product lines in mind.&lt;/p&gt;

&lt;h2 id=&quot;what-it-asks&quot;&gt;What this asks of a chip team&lt;/h2&gt;
&lt;p&gt;This table is our reading of the sums and papers above, and each row is a tendency.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Demand&lt;/th&gt;&lt;th&gt;Grows with&lt;/th&gt;&lt;th&gt;Binds hardest in&lt;/th&gt;&lt;th&gt;Likely response&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Capacity&lt;/td&gt;&lt;td&gt;Total parameters, users, context length&lt;/td&gt;&lt;td&gt;Long context and MoE models&lt;/td&gt;&lt;td&gt;More memory per chip, more chips, cheaper or denser tiers&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Bandwidth&lt;/td&gt;&lt;td&gt;Active parameters, users, context length, token rate&lt;/td&gt;&lt;td&gt;Fast per-token targets and low batch&lt;/td&gt;&lt;td&gt;Faster HBM, more stacks, memory stacked on or placed near logic&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Compute&lt;/td&gt;&lt;td&gt;Prompt length for prefill, active parameters, attention cost&lt;/td&gt;&lt;td&gt;Prefill, and large batches on some attention designs&lt;/td&gt;&lt;td&gt;Usually adequate today, so check it against your prefill target before adding more&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The economics push the same way. Ma and Patterson report that NVIDIA GPU 64-bit FLOPS rose 80 times from 2012 to 2022 while memory bandwidth rose 17 times. They also show HBM cost per GB and per GB/s rising about 1.35 times from 2023 to 2025 while DDR4 costs fell. Their four research directions are high bandwidth flash, processing near memory, 3D memory-logic stacking and low-latency interconnect. Our posts on &lt;a href=&quot;/2026/08/in-memory-compute.html&quot;&gt;in-memory compute&lt;/a&gt; and on &lt;a href=&quot;/2026/11/the-ai-memory-squeeze-why-dram-prices.html&quot;&gt;the AI memory squeeze&lt;/a&gt; cover two related threads.&lt;/p&gt;
&lt;p&gt;Before settling an accelerator&#39;s memory plan, four numbers are worth writing down: your per-token limit, your typical context length, your batch size at that limit, and the bandwidth your software stack actually sustains. Where those decisions sit in a programme is shown in our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc&quot;&gt;SoC lifecycle&lt;/a&gt; on The Semiconductor Hub.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Meta, llama-models repository, &lt;a href=&quot;https://github.com/meta-llama/llama-models/blob/main/models/sku_list.py&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;models/sku_list.py&lt;/a&gt;, read 7 November 2026, for Llama 3.1 architecture arguments.&lt;/li&gt;
&lt;li&gt;DeepSeek-AI, &quot;&lt;a href=&quot;https://arxiv.org/abs/2412.19437&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;DeepSeek-V3 Technical Report&lt;/a&gt;&quot;, arXiv:2412.19437, version of 18 February 2025, and the &lt;a href=&quot;https://huggingface.co/deepseek-ai/DeepSeek-V3/blob/main/config.json&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;DeepSeek-V3 config.json on Hugging Face&lt;/a&gt;, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;DeepSeek-AI, &quot;&lt;a href=&quot;https://arxiv.org/abs/2405.04434&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model&lt;/a&gt;&quot;, arXiv:2405.04434, version of 19 June 2024.&lt;/li&gt;
&lt;li&gt;Xiaoyu Ma and David Patterson, &quot;&lt;a href=&quot;https://arxiv.org/abs/2601.05047&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Challenges and Research Directions for Large Language Model Inference Hardware&lt;/a&gt;&quot;, arXiv:2601.05047, January 2026, revised February 2026, accepted for publication in IEEE Computer.&lt;/li&gt;
&lt;li&gt;Davies, Crago, Sankaralingam and Kozyrakis (NVIDIA Research), &quot;&lt;a href=&quot;https://arxiv.org/abs/2507.14397&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;LIMINAL: Exploring The Frontiers of LLM Decode Performance&lt;/a&gt;&quot;, arXiv:2507.14397, version of 13 November 2025.&lt;/li&gt;
&lt;li&gt;Zhang, Ning, Prabhakar and Wentzlaff, &quot;&lt;a href=&quot;https://arxiv.org/abs/2312.03134&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A Hardware Evaluation Framework for Large Language Model Inference&lt;/a&gt;&quot;, arXiv:2312.03134, December 2023.&lt;/li&gt;
&lt;li&gt;Josef Chen, &quot;&lt;a href=&quot;https://arxiv.org/abs/2605.30571&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Memory-Bound but Not Bandwidth-Limited: The Physical AI Inference Gap in Batch-1 LLM Decode&lt;/a&gt;&quot;, arXiv:2605.30571, 28 May 2026 (preprint).&lt;/li&gt;
&lt;li&gt;MLCommons, &quot;&lt;a href=&quot;https://mlcommons.org/2025/04/llm-inference-v5/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;MLPerf Inference v5.0 Advances Language Model Capabilities for GenAI&lt;/a&gt;&quot;, 2 April 2025.&lt;/li&gt;
&lt;li&gt;NVIDIA, &lt;a href=&quot;https://www.nvidia.com/en-us/data-center/vera-rubin-nvl72/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Vera Rubin NVL72 product page&lt;/a&gt;, undated, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Google Cloud, &quot;&lt;a href=&quot;https://cloud.google.com/blog/products/compute/tpu-8t-and-tpu-8i-technical-deep-dive&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Inside the eighth-generation TPU: An architecture deep dive&lt;/a&gt;&quot;, 23 April 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Model shapes and chip figures are as published on the dates shown, and chip figures are the companies&#39; own claims. All byte, FLOP, time and user counts are our own illustrative arithmetic from the stated assumptions, and they are not measurements of any system. This post is technical commentary and is not investment advice.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/8309227483213860923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/counting-bytes-behind-one-llm-token.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8309227483213860923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8309227483213860923'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/counting-bytes-behind-one-llm-token.html' title='Counting the Bytes Behind One LLM Token'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipNoXcgbsWA1QmJUrz1M-9a4cWGhR6OxYbpkHV1vRAx15OxOumEsjqtva4kWFxyUrJ7h1YEJ5Xq2j3xxLw-c5Pg8YhpARHPjMNj2M-zDx98SIUCiu9WZlhFWy2hZ6G1BIErcB6EsTXy0Hkeb6E9iMXQpSfhjYGyTz2gb3xz-dry-yMjacqIoajpw/s72-c/t091.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-2624809939244835768</id><published>2026-11-29T17:00:00.000+05:30</published><updated>2026-11-29T17:00:00.213+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Speculative FIFO Design: Commit, Rollback and Flush (FIFO Series, Part 25)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 25, Speculative FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRdK4OC78dEiVbyMLDYUy7Tti8-U8G8ec-SqHA31vY1sduAciIG7ewNS3kdaJTe39_MJ-MX6oRgpNOb0toXjfd_huPa4CgrpEtUB6TaMqVUrfD0NPQWJulHyxeoJ0QSawIAhPsBrXBibh7ms6o8e-LPD3CvDbmyOnXfg_b_XNr0Ma2yuxsm56U3w/s1600/fifo-25-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 25, Speculative FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Sometimes a producer has to write before it knows whether the write should count. A packet is pushed beat by beat, and only the last beat&#39;s checksum says whether it is good. A processor issues work down a predicted branch before the branch resolves. A transaction writes several entries that must appear together or not at all. Waiting until the answer is known costs latency. Pushing early and taking it back if needed is faster, if the FIFO can take it back.&lt;/p&gt;
&lt;p&gt;This is Part 25 of the FIFO series, the speculative FIFO. It adds a commit line inside the queue: entries behind it are real and visible to the reader, entries ahead of it are tentative. Commit moves the line forward, rollback throws away everything past it, and flush throws away everything.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A speculative FIFO keeps two write pointers: a speculative one where pushes land, and a committed one that marks what the reader may see.&lt;/li&gt;
&lt;li&gt;The reader&#39;s empty flag uses the committed pointer. The writer&#39;s full flag uses the speculative pointer, because tentative entries still take space.&lt;/li&gt;
&lt;li&gt;Commit copies the speculative pointer into the committed pointer. Rollback copies it back. Both are a single pointer move, whatever the number of entries.&lt;/li&gt;
&lt;li&gt;Define the same-cycle rules: does a commit include a push in the same cycle, does a rollback discard one, and is commit with rollback legal?&lt;/li&gt;
&lt;li&gt;Speculative entries must never leak to the reader, even for one cycle. That is the main property to verify.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem a speculative FIFO solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pointers&quot;&gt;A commit line in the queue&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem a speculative FIFO solves&lt;/h2&gt;
&lt;p&gt;The plain answer to &quot;the producer might change its mind&quot; is a staging buffer: collect the entries somewhere else, check them, then copy them into the FIFO. That costs a second buffer and a copy, and the copy takes cycles. A speculative FIFO uses the queue itself as the staging area. Entries go straight into their final slots. Only the boundary that the reader respects moves when the decision is made.&lt;/p&gt;
&lt;p&gt;Three situations call for it. In store-and-forward packet handling, a packet that fails its check at the end must disappear as if it never arrived. In processors, work issued down a mispredicted path must be cancelled. In transactional interfaces, a group of entries must become visible together, so a reader never sees half a transaction. All three map to the same pair of operations: commit and rollback.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;p&gt;The write side has &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt;, plus three controls: &lt;code&gt;commit&lt;/code&gt;, &lt;code&gt;rollback&lt;/code&gt; and &lt;code&gt;flush&lt;/code&gt;. The read side is unchanged: &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt;, where empty means no committed entries. The reader needs to know nothing about speculation. That is the point of the design: the consumer is an ordinary FIFO consumer.&lt;/p&gt;

&lt;h2 id=&quot;pointers&quot;&gt;A commit line in the queue&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn eight-slot ring with three pointers: rptr at the reader&#39;s next entry A, cwptr at the commit line before D, and swptr at the next push slot; A to C are committed and visible, D and E are speculative and hidden.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM6szo-4P15pxAIb9PiaVCXvGJMdRF73SaKo3PoZ2Bv5TQwp__vYx7d29DJETozO96NeNyisZpG91Blc0JRKN_bc71T1RM8e2ljHjeNeWHglIvVNK3cCCmZ9owlxPTxSigNpWORL-5SR-BMQFPnxTNHbxUirtlLBUg6VB9zOMyART0SzleiXIO2Q/s1600/fifo-25-pointers.jpg&quot; title=&quot;Hand-drawn eight-slot ring with three pointers: rptr at the reader&#39;s next entry A, cwptr at the commit line before D, and swptr at the next push slot; A to C are committed and visible, D and E are speculative and hidden.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The read pointer &lt;code&gt;rptr&lt;/code&gt; is the reader&#39;s next entry. The committed write pointer &lt;code&gt;cwptr&lt;/code&gt; is the commit line. The speculative write pointer &lt;code&gt;swptr&lt;/code&gt; is where the next push lands. They stay in that order around the ring.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From &lt;code&gt;rptr&lt;/code&gt; to &lt;code&gt;cwptr&lt;/code&gt;: committed entries. The reader may pop them.&lt;/li&gt;
&lt;li&gt;From &lt;code&gt;cwptr&lt;/code&gt; to &lt;code&gt;swptr&lt;/code&gt;: speculative entries. Written, taking space, invisible to the reader.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Commit sets &lt;code&gt;cwptr&lt;/code&gt; to &lt;code&gt;swptr&lt;/code&gt;, and every speculative entry becomes visible at once. Rollback sets &lt;code&gt;swptr&lt;/code&gt; back to &lt;code&gt;cwptr&lt;/code&gt;, and every speculative entry is gone. Nothing in the storage changes in either case, so both are one-cycle operations for any number of entries. Flush sets all three pointers equal and empties the queue.&lt;/p&gt;
&lt;p&gt;The flags split across the two write pointers. &lt;code&gt;empty&lt;/code&gt; compares &lt;code&gt;rptr&lt;/code&gt; with &lt;code&gt;cwptr&lt;/code&gt;, so the reader stops at the commit line. &lt;code&gt;full&lt;/code&gt; compares &lt;code&gt;swptr&lt;/code&gt; with &lt;code&gt;rptr&lt;/code&gt;, because speculative entries occupy slots even though nobody can read them yet. A producer that speculates a lot can fill the queue with entries the reader cannot drain, which is a deadlock if the commit depends on the reader making progress. Size the depth so that the largest speculative group, plus the committed backlog, always fits.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;module spec_fifo #(
  parameter int W     = 32,
  parameter int DEPTH = 16,                // power of two
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic         clk,
  input  logic         rst_n,
  input  logic         push,
  input  logic [W-1:0] wdata,
  output logic         full,
  input  logic         commit,             // includes a same-cycle push
  input  logic         rollback,           // discards a same-cycle push too
  input  logic         flush,              // discards everything
  input  logic         pop,
  output logic [W-1:0] rdata,
  output logic         empty
);
  logic [W-1:0] mem [DEPTH];
  logic [AW:0]  swptr, cwptr, rptr;

  assign full  = ((swptr - rptr) == DEPTH);
  assign empty = (rptr == cwptr);           // reader stops at the commit line
  assign rdata = mem[rptr[AW-1:0]];

  wire        do_pop    = pop &amp;amp;&amp;amp; !empty;
  wire        do_push   = push &amp;amp;&amp;amp; (!full || do_pop);
  wire [AW:0] swptr_inc = swptr + do_push;

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      swptr &amp;lt;= &#39;0;
      cwptr &amp;lt;= &#39;0;
      rptr  &amp;lt;= &#39;0;
    end else if (flush) begin
      rptr  &amp;lt;= swptr;                       // same-cycle push dropped
      cwptr &amp;lt;= swptr;
    end else if (rollback) begin
      swptr &amp;lt;= cwptr;
      if (do_pop) rptr &amp;lt;= rptr + 1&#39;b1;
    end else begin
      swptr &amp;lt;= swptr_inc;
      if (commit) cwptr &amp;lt;= swptr_inc;
      if (do_pop) rptr  &amp;lt;= rptr + 1&#39;b1;
    end

  always_ff @(posedge clk)
    if (do_push) mem[swptr[AW-1:0]] &amp;lt;= wdata;  // harmless if rolled back
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The storage write is not gated by rollback or flush. A slot written in a cycle that also rolls back is outside the live region afterwards, so its contents do not matter. Leaving the enable alone keeps those control signals off the memory write path.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn timing diagram: A, B and C are pushed and committed in cycle 2 together with C&#39;s push; the reader pops them in cycles 3 to 5 while D and E are pushed; a rollback in cycle 5 moves the speculative pointer back to 3, so the reader never sees D or E.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUPn6Eq-h6DBRRWmmvkYYd8Cc7ffhRSwZFt-SdTZK-fWN3s7MPcmUvXpKDCavGKBZ0qC-AQl6nu5sQyMgOQ5Dbtx2UJ6IfOhz7g__Syum_GS4Au8thngWiKFFXuNKF1hNaEJKU8sKwJHg3LQRmG8whFGn1hNw0pynMmj-YJIlfISLtSWABrNSLzA/s1600/fifo-25-timing.jpg&quot; title=&quot;Hand-drawn timing diagram: A, B and C are pushed and committed in cycle 2 together with C&#39;s push; the reader pops them in cycles 3 to 5 while D and E are pushed; a rollback in cycle 5 moves the speculative pointer back to 3, so the reader never sees D or E.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Push and commit in the same cycle.&lt;/strong&gt; Cycle 2 in the diagram. The commit includes C, which is pushed in that cycle, because the commit uses the incremented pointer. This is the common case when commit comes with the last beat of a packet. The other choice, commit covering only earlier pushes, is also valid, but then the last beat needs a separate commit cycle.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Push and rollback in the same cycle.&lt;/strong&gt; The push is discarded with the rest. A producer that wants to start a new group in the same cycle it abandons the old one needs the opposite rule, so pick one and document it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Commit and rollback together.&lt;/strong&gt; Meaningless, so make it illegal and assert it. This RTL gives rollback priority, which is the safe direction: a wrong rollback loses data visibly, a wrong commit exposes bad data silently.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pop in the cycle of a rollback.&lt;/strong&gt; Allowed. The reader only ever touches committed entries, and rollback never moves the commit line backward.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flush with a pop.&lt;/strong&gt; Everything goes, including the entry being popped. The reader sees its data this cycle, so decide whether that pop counts. Here it does not matter for the pointers, because flush sets &lt;code&gt;rptr&lt;/code&gt; directly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Full of speculative entries.&lt;/strong&gt; The reader sees empty while the writer sees full. Legal, but it only resolves if the producer commits or rolls back without help from the reader.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cost over a plain FIFO.&lt;/strong&gt; One extra pointer of AW+1 bits, a few muxes on the pointer next-state logic, and a different compare for &lt;code&gt;empty&lt;/code&gt;. Storage is unchanged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Control paths.&lt;/strong&gt; &lt;code&gt;commit&lt;/code&gt;, &lt;code&gt;rollback&lt;/code&gt; and &lt;code&gt;flush&lt;/code&gt; feed only the pointer registers, not the memory enables. Keep it that way. If one of them arrives late, it lands on a small mux in front of a few flops.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Read-side speculation.&lt;/strong&gt; The mirror image is a speculative read pointer: pops advance it, a commit makes them final, a rollback restores the reader to the committed read pointer. Space is only freed on commit, so full must use the committed read pointer. Some designs need both sides at once.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Several outstanding groups.&lt;/strong&gt; One commit line supports one open group. If the producer can have several groups in flight and resolve them independently, keep a saved pointer per group. That is the checkpointed FIFO in Part 26.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; Rolled-back entries cost a write each, for nothing. In a design where rollbacks are frequent, that is wasted energy, and a sign that speculation is too eager.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference with two parts: a committed queue that the reader pops from, and a speculative list that commit appends to it and rollback clears. Check &lt;code&gt;rdata&lt;/code&gt;, &lt;code&gt;empty&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt; every cycle.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_excl:     assert property (@(posedge clk) disable iff (!rst_n)
              !(commit &amp;amp;&amp;amp; rollback));
a_order:    assert property (@(posedge clk) disable iff (!rst_n)
              (cwptr - rptr) &amp;lt;= (swptr - rptr));
a_rb_keeps: assert property (@(posedge clk) disable iff (!rst_n)
              rollback &amp;amp;&amp;amp; !flush |=&amp;gt; cwptr == $past(cwptr));&lt;/code&gt;&lt;/pre&gt;
The last says rollback never moves the commit line. The no-leak property itself belongs in the scoreboard: every popped value must have been committed before it pops.&lt;/li&gt;
&lt;li&gt;Coverage: push with commit, push with rollback, rollback of an empty group, rollback of a group that fills the queue, flush with entries on both sides of the line, and pop in the cycle of each control.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL ran 600,000 random cycles at depths 2 to 16 against the two-part reference, with thousands of commits, rollbacks and flushes hitting every same-cycle combination the protocol allows. It matched every cycle and reproduces the timing diagram above.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. How do you make a group of pushes invisible until they commit?&lt;/h3&gt;
&lt;p&gt;A strong answer adds a committed write pointer, uses it for the reader&#39;s empty flag, and keeps the speculative pointer for full.&lt;/p&gt;
&lt;h3&gt;2. Why does full use the speculative pointer but empty uses the committed one?&lt;/h3&gt;
&lt;p&gt;A strong answer says speculative entries occupy storage but must not be read, and points out the deadlock if speculation fills the queue and the commit depends on the reader.&lt;/p&gt;
&lt;h3&gt;3. A commit and a push arrive in the same cycle. Is the push committed?&lt;/h3&gt;
&lt;p&gt;A strong answer picks a rule, explains why including it suits a last-beat commit, and shows the one-line difference in the RTL.&lt;/p&gt;
&lt;h3&gt;4. How would you add read-side speculation?&lt;/h3&gt;
&lt;p&gt;A strong answer adds a speculative read pointer, frees space only on commit, restores on rollback, and moves full to the committed read pointer.&lt;/p&gt;
&lt;h3&gt;5. How do you prove speculative data never leaks?&lt;/h3&gt;
&lt;p&gt;A strong answer uses a scoreboard that only allows committed values to pop, plus assertions on pointer order, and covers rollback and flush in every combination with pop.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Speculative queues appear in packet buffers that drop bad packets after their checksum, in processor front ends and load and store queues that discard work on a misprediction, and in transactional interfaces that must expose a multi-beat write all at once. NoC network interfaces, DMA engines and accelerators use the same commit-line idea when a job can be cancelled after its first entries are queued, and PCIe and AXI receive paths use it to hold data until its integrity is confirmed.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 24 covered the replay FIFO, which keeps sent entries until they are acknowledged.&lt;/p&gt;
&lt;p&gt;Part 26 allows several speculative groups at once: the checkpointed FIFO, which saves pointers and restores the right one after a misprediction.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/2624809939244835768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/speculative-fifo-design-commit-rollback.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2624809939244835768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2624809939244835768'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/speculative-fifo-design-commit-rollback.html' title='Speculative FIFO Design: Commit, Rollback and Flush (FIFO Series, Part 25)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRdK4OC78dEiVbyMLDYUy7Tti8-U8G8ec-SqHA31vY1sduAciIG7ewNS3kdaJTe39_MJ-MX6oRgpNOb0toXjfd_huPa4CgrpEtUB6TaMqVUrfD0NPQWJulHyxeoJ0QSawIAhPsBrXBibh7ms6o8e-LPD3CvDbmyOnXfg_b_XNr0Ma2yuxsm56U3w/s72-c/fifo-25-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-3019566632166163960</id><published>2026-11-29T13:00:00.000+05:30</published><updated>2026-11-29T13:00:00.244+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="PCIe and CXL"/><category scheme="http://www.blogger.com/atom/ns#" term="Reliability"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Replay FIFO Design: Keep Until Acknowledged, Rewind to Resend (FIFO Series, Part 24)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 24, Replay FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizLCjp7_2b5elUnWQtJbkVH1zFi-3tv6G85EUPb6KHBObx8kdSbOgMFZe3CakzGpn27L2deLfJFyszMdeW6LAqkzzGBeUnhDumGkonpi1C4bmOx0B3jD6E6NeJ-8NkCptBU-CCUemAvMxKYKcIC8ygJuQJQnqTP_chR05VivWOhpqYx9twOzhUw/s1600/fifo-24-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 24, Replay FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A normal FIFO forgets an entry the moment it pops. On a reliable wire inside one block, that is fine. On a link that can corrupt or drop data, it is not. If the receiver reports that something went wrong, the sender has to send it again, and it can only do that if it still has a copy. A replay FIFO keeps every entry after it is sent, until the far side acknowledges it, and can rewind to resend.&lt;/p&gt;
&lt;p&gt;This is Part 24 of the FIFO series. It covers the three-pointer structure behind a replay buffer, cumulative acknowledgments, the replay itself, and the same-cycle cases where an ack, a replay and a send meet.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A replay FIFO has three pointers: write, send and acknowledge. Entries between the acknowledge and send pointers are sent but kept for replay.&lt;/li&gt;
&lt;li&gt;Space is only freed by acknowledgment, so full is measured from the acknowledge pointer, not from the send pointer.&lt;/li&gt;
&lt;li&gt;A cumulative ack frees every entry up to a sequence number. Check that the number names an entry that is sent and not yet acknowledged, and ignore stale ones.&lt;/li&gt;
&lt;li&gt;Replay rewinds the send pointer to the oldest unacknowledged entry. If an ack arrives in the same cycle, rewind to the pointer after the ack.&lt;/li&gt;
&lt;li&gt;The buffer must hold everything sent during one round trip of the ack, or the link stalls waiting for space.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem a replay FIFO solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pointers&quot;&gt;Three pointers, three regions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem a replay FIFO solves&lt;/h2&gt;
&lt;p&gt;Serial links between chips, and long links inside large chips, have a small but real error rate. A link layer protects each packet with a CRC and gives it a sequence number. The receiver checks both. If a packet arrives clean and in order, the receiver accepts it and, from time to time, sends back an acknowledgment carrying the latest good sequence number. If a packet is corrupt or missing, the receiver drops it and everything after it, and asks for a replay, or simply stays quiet until the sender&#39;s timer runs out.&lt;/p&gt;
&lt;p&gt;The sender needs a buffer that supports that protocol. It must keep sending new packets without waiting for each ack, which is what keeps the link busy, and it must keep a copy of every packet until the ack arrives. PCIe&#39;s data link layer is a well-known example of this scheme, with a replay buffer, sequence numbers, and ACK and NAK messages. The FIFO here is the generic version.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;p&gt;The write side is &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt;. The send side offers &lt;code&gt;send_valid&lt;/code&gt;, &lt;code&gt;send_data&lt;/code&gt; and &lt;code&gt;send_seq&lt;/code&gt;, and takes &lt;code&gt;send_ready&lt;/code&gt; from the link. The return side brings &lt;code&gt;ack_valid&lt;/code&gt; with &lt;code&gt;ack_seq&lt;/code&gt;, meaning every entry up to and including that sequence number arrived, and &lt;code&gt;replay&lt;/code&gt;, meaning resend everything not yet acknowledged. There is no pop. Entries leave when they are acknowledged.&lt;/p&gt;

&lt;h2 id=&quot;pointers&quot;&gt;Three pointers, three regions&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn eight-slot ring with three pointers: aptr at the oldest unacknowledged entry A, sptr at the next entry to send D, and wptr at the next free slot; A to C are sent and kept for replay, D and E wait to be sent.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3Q5S-HyOUGECob4JRRhAFQzGXlZdj7LV8h8Gwa9zr2otNmIPwkslCb3bRTTzVf-96EvEqJIuYGApntoCnvJ5W2jdQQ7JaKZhMOgtwB99Fk1MnR5Dwk-UaCRt686GOyUfKnDd3PBpEgZTML-elTH_kQgshjnLrFHUY3chB5xxi5kMT84wNKad8BA/s1600/fifo-24-pointers.jpg&quot; title=&quot;Hand-drawn eight-slot ring with three pointers: aptr at the oldest unacknowledged entry A, sptr at the next entry to send D, and wptr at the next free slot; A to C are sent and kept for replay, D and E wait to be sent.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The write pointer &lt;code&gt;wptr&lt;/code&gt; is the next free slot, as in every FIFO. The send pointer &lt;code&gt;sptr&lt;/code&gt; is the next entry to put on the link. The acknowledge pointer &lt;code&gt;aptr&lt;/code&gt; is the oldest entry the receiver has not yet confirmed. They always stay in that order around the ring: &lt;code&gt;aptr&lt;/code&gt;, then &lt;code&gt;sptr&lt;/code&gt;, then &lt;code&gt;wptr&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Entries from &lt;code&gt;aptr&lt;/code&gt; up to &lt;code&gt;sptr&lt;/code&gt; are sent and waiting for an ack. They cannot be overwritten.&lt;/li&gt;
&lt;li&gt;Entries from &lt;code&gt;sptr&lt;/code&gt; up to &lt;code&gt;wptr&lt;/code&gt; are pushed but not yet sent.&lt;/li&gt;
&lt;li&gt;Everything else is free.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Three operations move the pointers. A push moves &lt;code&gt;wptr&lt;/code&gt;. A send moves &lt;code&gt;sptr&lt;/code&gt;. An ack moves &lt;code&gt;aptr&lt;/code&gt; forward past the acknowledged entries, which frees them. A replay moves &lt;code&gt;sptr&lt;/code&gt; back to &lt;code&gt;aptr&lt;/code&gt;, so the next sends repeat the unacknowledged entries in their original order.&lt;/p&gt;
&lt;p&gt;Using the pointer itself as the sequence number keeps the hardware small: &lt;code&gt;send_seq&lt;/code&gt; is just &lt;code&gt;sptr&lt;/code&gt;, and an ack converts straight back into a pointer. Real link protocols usually use a wider sequence number than the buffer depth. The idea is the same: keep the low bits as the slot index and widen the rest.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;module replay_fifo #(
  parameter int W     = 64,
  parameter int DEPTH = 16,                // power of two
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic         clk,
  input  logic         rst_n,
  input  logic         push,
  input  logic [W-1:0] wdata,
  output logic         full,
  output logic         send_valid,
  output logic [W-1:0] send_data,
  output logic [AW:0]  send_seq,
  input  logic         send_ready,
  input  logic         ack_valid,
  input  logic [AW:0]  ack_seq,           // cumulative: all up to ack_seq arrived
  input  logic         replay
);
  logic [W-1:0] mem [DEPTH];
  logic [AW:0]  wptr, sptr, aptr;

  wire [AW:0] in_flight = sptr - aptr;              // sent, not yet acked
  wire [AW:0] ack_off   = ack_seq - aptr;
  wire        ack_ok    = ack_valid &amp;amp;&amp;amp; (ack_off &amp;lt; in_flight);
  wire [AW:0] aptr_n    = ack_ok ? ack_seq + 1&#39;b1 : aptr;

  assign full       = ((wptr - aptr) == DEPTH);
  assign send_valid = (sptr != wptr);
  assign send_data  = mem[sptr[AW-1:0]];
  assign send_seq   = sptr;

  wire do_push = push &amp;amp;&amp;amp; !full;
  wire do_send = send_valid &amp;amp;&amp;amp; send_ready;

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr &amp;lt;= &#39;0;
      sptr &amp;lt;= &#39;0;
      aptr &amp;lt;= &#39;0;
    end else begin
      if (do_push) wptr &amp;lt;= wptr + 1&#39;b1;
      aptr &amp;lt;= aptr_n;
      if (replay)       sptr &amp;lt;= aptr_n;            // rewind, after a same-cycle ack
      else if (do_send) sptr &amp;lt;= sptr + 1&#39;b1;
    end

  always_ff @(posedge clk)
    if (do_push) mem[wptr[AW-1:0]] &amp;lt;= wdata;
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The ack check is the same modular-distance test as the live-tag check in Part 18, applied to the sent window. An ack is accepted only if it names an entry between &lt;code&gt;aptr&lt;/code&gt; and &lt;code&gt;sptr&lt;/code&gt;. Duplicate and stale acks, which real links produce routinely, fall outside that window and are ignored.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn timing diagram: three entries are pushed and sent as sequence 0, 1 and 2; an ack of 0 frees the first; a replay in cycle 4 rewinds the send pointer to 1; entries 1 and 2 are sent again and an ack of 2 frees both.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4dXZXguR5cT5bze5-ybzRVGM66KEHwQaWP2YW5m2LR0lmK64IyYbojCjCfeOwML8HfeU2tpfOR0WmfIB8a1R9ZZUAPbaEBRTChF5_pIf7B9FxmnUkMzD02F30RpEuse5izcrm7nTbxNBPmQHffDIfni0DW6VRM-wy-LFpGJiT4lo-T6Kv7mN0Yw/s1600/fifo-24-timing.jpg&quot; title=&quot;Hand-drawn timing diagram: three entries are pushed and sent as sequence 0, 1 and 2; an ack of 0 frees the first; a replay in cycle 4 rewinds the send pointer to 1; entries 1 and 2 are sent again and an ack of 2 frees both.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ack and replay in the same cycle.&lt;/strong&gt; Apply the ack first, then rewind to the new &lt;code&gt;aptr&lt;/code&gt;. Rewinding to the old one would resend an entry the receiver already has. The receiver would drop it as a duplicate, so it is not wrong, but it wastes link time on every replay.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Replay in the same cycle as a send.&lt;/strong&gt; The send still goes out. The rewind wins over the pointer increment, so that entry is sent again after the replay. The receiver&#39;s sequence check handles the duplicate.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ack of an entry not yet sent.&lt;/strong&gt; Outside the window, so ignored. In practice it means a broken receiver, so also flag it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A corrupted ack that lands inside the window.&lt;/strong&gt; The buffer cannot tell it from a real one, and it would free entries the receiver never got. That is why acks carry their own CRC. Our model check found this the hard way: random junk acks injected by the test broke end-to-end delivery until the test stopped sending them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Full while acks are in flight.&lt;/strong&gt; Push stalls until an ack frees space. A push in the same cycle as a freeing ack is rejected here to keep &lt;code&gt;full&lt;/code&gt; purely registered. Accepting it adds the ack check to the push path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sequence number width.&lt;/strong&gt; Here the sequence number is the pointer, so it wraps every two laps of the buffer. A link whose acks can be delayed long enough to wrap past that needs a wider sequence number.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Depth.&lt;/strong&gt; The buffer must cover everything the sender can send between sending an entry and receiving its ack: the link latency both ways, the receiver&#39;s processing time and how often it sends acks. Fewer entries than that, and the sender stalls on &lt;code&gt;full&lt;/code&gt; even on a clean link. Work this out from the round trip, not from the traffic pattern.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storage.&lt;/strong&gt; Replay buffers are usually deep and wide, so they live in SRAM. The send side then reads with a cycle of latency, and a replay costs a cycle or two before the first resend appears. Pre-fetch the entry at &lt;code&gt;sptr&lt;/code&gt; into an output register, and on a replay re-fetch from &lt;code&gt;aptr&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The ack path.&lt;/strong&gt; A subtract and compare of AW+1 bits, then a mux into &lt;code&gt;aptr&lt;/code&gt;. If &lt;code&gt;replay&lt;/code&gt; also depends on it, the chain grows, so register acks once on arrival.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; Each entry is written once and read once per send, so a replay costs extra read energy. On a healthy link, replays are rare and the buffer is mostly idle storage, so the memory&#39;s leakage matters more than its dynamic power.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference list of unacknowledged entries and a count of how many of them are sent. Check &lt;code&gt;send_data&lt;/code&gt; and &lt;code&gt;send_seq&lt;/code&gt; against it every cycle.&lt;/li&gt;
&lt;li&gt;An end-to-end check through a lossy link model: drop and corrupt sends at random, have an in-order receiver accept only the expected sequence number, return delayed cumulative acks, and trigger replays at random. The delivered stream must equal the pushed stream exactly.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_order:  assert property (@(posedge clk) disable iff (!rst_n)
            (sptr - aptr) &amp;lt;= (wptr - aptr));
a_no_ovf: assert property (@(posedge clk) disable iff (!rst_n)
            (wptr - aptr) &amp;lt;= DEPTH);&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: ack and replay in one cycle, replay with a send in one cycle, stale and duplicate acks, an ack that frees the whole window, replay with nothing in flight, and full with an ack in flight.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL ran 600,000 cycles at depths 2 to 16 through a lossy link with random drops, delayed and duplicated acks, stale acks and random replays. The delivered stream matched the pushed stream in order every time, and the model reproduces the timing diagram above.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. Why does a replay FIFO need three pointers?&lt;/h3&gt;
&lt;p&gt;A strong answer separates &quot;pushed&quot;, &quot;sent&quot; and &quot;acknowledged&quot;, explains that only acknowledgment frees space, and derives full from the acknowledge pointer.&lt;/p&gt;
&lt;h3&gt;2. An ack and a replay arrive in the same cycle. Where does the send pointer go?&lt;/h3&gt;
&lt;p&gt;A strong answer applies the ack first and rewinds to the new acknowledge pointer, and explains that rewinding to the old one is safe but wastes link time.&lt;/p&gt;
&lt;h3&gt;3. How deep must the replay buffer be?&lt;/h3&gt;
&lt;p&gt;A strong answer sizes it from the round trip: send latency, receiver processing, ack interval and ack return latency, all at the full send rate.&lt;/p&gt;
&lt;h3&gt;4. What happens if an ack is corrupted?&lt;/h3&gt;
&lt;p&gt;A strong answer says a corrupted ack inside the window would free unreceived data, so acks need their own integrity check, and stale or duplicate acks must be ignored.&lt;/p&gt;
&lt;h3&gt;5. How would you prove nothing is lost or duplicated?&lt;/h3&gt;
&lt;p&gt;A strong answer builds an end-to-end test with a lossy link and an in-order receiver, and compares the delivered stream with the pushed stream.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Replay buffers sit in the link layer of serial interfaces such as PCIe and CXL, and in die-to-die links. NoC designs that cross long or unreliable paths use them between routers. DMA engines and accelerators use the same pattern when a downstream unit can reject work and ask for it again, and memory interfaces use it to retry a transfer after a detected error.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 23 covered in-order write coalescing when the address arrives late in the cycle.&lt;/p&gt;
&lt;p&gt;Part 25 makes the write side tentative: the speculative FIFO, where pushes are only real once they commit, and can be rolled back or flushed.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/3019566632166163960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/replay-fifo-design-keep-until.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3019566632166163960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3019566632166163960'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/replay-fifo-design-keep-until.html' title='Replay FIFO Design: Keep Until Acknowledged, Rewind to Resend (FIFO Series, Part 24)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizLCjp7_2b5elUnWQtJbkVH1zFi-3tv6G85EUPb6KHBObx8kdSbOgMFZe3CakzGpn27L2deLfJFyszMdeW6LAqkzzGBeUnhDumGkonpi1C4bmOx0B3jD6E6NeJ-8NkCptBU-CCUemAvMxKYKcIC8ygJuQJQnqTP_chR05VivWOhpqYx9twOzhUw/s72-c/fifo-24-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-4609962913825864753</id><published>2026-11-29T11:00:00.000+05:30</published><updated>2026-11-29T11:00:00.202+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Design for Debug"/><category scheme="http://www.blogger.com/atom/ns#" term="First Silicon Back"/><category scheme="http://www.blogger.com/atom/ns#" term="Low Power Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SoC Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>First Silicon Back, Part 3: The Bring-Up Board and What to Ask the Board Team for Before First Silicon</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Terminal-style worked example sizing a current sense resistor for a 0.75 V core rail, with voltage drop, amplifier gain and resolution.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrqoqrVT1yUAMQst8U6NIgxujNLda9het8YygFI02kNXUsrBUfaAvhIplpJK8bJZBS0jNKTpXYQbzLSq3lCa0YFCRCHux0QiRkhaYJTaYcMqtG8389bElkUz73H092s0e1fNJncneO9n6qD7M8Bwxmntm5hIiaHqTnjst_Mr1hcf4sznosIn_low/s1600/fsb-03-bring-up-board.jpg&quot; title=&quot;Terminal-style worked example sizing a current sense resistor for a 0.75 V core rail, with voltage drop, amplifier gain and resolution.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;On power-on day, the chip is not the only new thing on the bench. It sits on a board that is just as new, built by a different team. When something goes wrong in the first hour, the first question is always whether it is the chip or the board. A good bring-up board is one that lets you answer that question quickly.&lt;/p&gt;
&lt;p&gt;This is Part 3 of First Silicon Back. Part 2 covered the bring-up plan. Today: what to ask the board team for before first silicon, written as requests with numbers, so that the board becomes a measuring instrument and not another unknown.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A bring-up board is not a product board. It trades cost and size for control and visibility.&lt;/li&gt;
&lt;li&gt;Ask for every chip supply on its own rail, with its own enable, its own adjustable voltage and a way to measure its current.&lt;/li&gt;
&lt;li&gt;Ask for control over everything the chip reads at reset: boot mode, clock source and reset itself.&lt;/li&gt;
&lt;li&gt;Ask for a debug connector with all the signals your probe supports, not only the minimum set.&lt;/li&gt;
&lt;li&gt;Power the board without the chip before silicon arrives, and record every rail.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#why-different&quot;&gt;Why a bring-up board is different&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#power&quot;&gt;Power: control and measure every rail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#reset-boot-clock&quot;&gt;Reset, boot mode and clocks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#debug&quot;&gt;Debug access&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#reuse&quot;&gt;Test points, spares and reuse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#requirements&quot;&gt;An illustrative board requirements sheet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked example: sizing a current sense resistor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Board readiness checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;why-different&quot;&gt;Why a bring-up board is different&lt;/h2&gt;
&lt;p&gt;A product board is built to be small, cheap and to work. A bring-up board is built to find out why something does not work: separate supplies, jumpers instead of fixed straps, test points everywhere, a socket where the package allows it.&lt;/p&gt;
&lt;p&gt;The research literature treats boards as part of preparing for silicon. The Mishra et al. tutorial in IEEE Design and Test lists test cards and custom boards among the needs of post-silicon readiness, alongside tests and debug hardware (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=10&quot;&gt;Planning for post-silicon readiness&lt;/a&gt;). NI&#39;s white paper on post-silicon labs points out that teams without a standard approach end up rebuilding boards for each product, and describes a family design with one base motherboard and a plug-in daughtercard per device (&lt;a href=&quot;https://www.ni.com/en-th/innovations/white-papers/21/how-modern-lab-approaches-optimize-post-silicon-validation.html&quot;&gt;How a Modern Lab Approach Optimizes Post-Silicon Validation&lt;/a&gt;). In our Hub lifecycle this work feeds the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/bringup-silicon-validation&quot;&gt;Bring-up and Silicon Validation stage&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;power&quot;&gt;Power: control and measure every rail&lt;/h2&gt;
&lt;p&gt;Most first-hour surprises are power surprises, so the power requests come first.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;One rail per chip supply.&lt;/strong&gt; Even if the product will share a regulator between two supplies, the bring-up board keeps them apart so each can be measured and moved alone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Independent enables and a controllable sequence.&lt;/strong&gt; Chip vendors publish required power-up and power-down orders. TI&#39;s AM62x board design guide, for example, says the recommended sequence diagram is in the data sheet, asks for controlled supply ramp and sequencing, and advises checking the diagram again when a new data sheet revision appears (&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRAD05E/GUID-602F6749-2C07-48FF-A4E3-CE2E5895E024&quot;&gt;Power Supply Sequencing&lt;/a&gt;). For your own first silicon, the right sequence may still be a question, so ask for a board that can change the order and the delays.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Adjustable voltage.&lt;/strong&gt; You will want to move each rail above and below nominal, first to find margin and later for characterization.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Current measurement on every rail.&lt;/strong&gt; A public bring-up guide recommends adding current sense resistors or current test points to critical rails and measuring the voltage across the resistor to get I = V / R (&lt;a href=&quot;https://applied-ee.github.io/ee-notebook/docs/design-development/prototyping-and-bring-up/power-first-validation#per-rail-current-measurement&quot;&gt;Per-Rail Current Measurement&lt;/a&gt;). On a bring-up board, ask for it on every rail, not only the critical ones.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Current limits you can set.&lt;/strong&gt; A current limit protects a part with a short. Set it with care: the same guide warns that current limiting can mask startup problems, because a regulator needs inrush current to charge its output capacitors (&lt;a href=&quot;https://applied-ee.github.io/ee-notebook/docs/design-development/prototyping-and-bring-up/power-first-validation#caveats&quot;&gt;Caveats&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Size the supplies for the worst case, not the expected case. The same TI guide notes that per-rail current depends heavily on the use case, and that supplies should be sized from maximum current ratings rather than from an estimate of typical active power (&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRAD05E/GUID-50774A27-4C44-4750-B5AB-973A8633FBE9&quot;&gt;Custom Board Current Requirements Estimation and Supply Sizing&lt;/a&gt;).&lt;/p&gt;

&lt;h2 id=&quot;reset-boot-clock&quot;&gt;Reset, boot mode and clocks&lt;/h2&gt;
&lt;p&gt;Everything the chip samples at reset should be under your control on the bench.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Boot mode.&lt;/strong&gt; TI&#39;s guide asks for pull-up and pull-down provisions on boot mode pins, says not to leave them unconnected or tie them straight to a supply, and recommends planning for development boot modes such as UART boot and a no-boot mode for JTAG debug. It also suggests a 0 ohm series resistor on boot pins that share a function, so the other function can be isolated during testing (&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRAD05E/GUID-3ED9D36A-DE71-44AF-AAE6-754FC465551A&quot;&gt;Configuring the Boot Mode&lt;/a&gt;). On your own first silicon, add a switch or jumper for every strap, so a wrong default does not need a soldering iron.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reset.&lt;/strong&gt; A button, a test point, and a way for the debug probe to drive it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clocks.&lt;/strong&gt; The planned oscillator plus an external reference input, so you can rule out the on-board source when a PLL will not lock.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;debug&quot;&gt;Debug access&lt;/h2&gt;
&lt;p&gt;The debug port is your main way into a chip that does not yet run software. Most chips use the IEEE 1149.1 test access port, which the IEEE working group describes as test logic built around a boundary-scan register and reached through a Test Access Port (&lt;a href=&quot;https://grouper.ieee.org/groups/1149/1/&quot;&gt;IEEE 1149.1 working group&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Ask for the full connector, not the smallest one. TI&#39;s guide recommends its 20-pin connector over the 10-pin ARM connector and notes that the 10-pin version does not carry TRSTn or the EMU0 and EMU1 signals (&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRAD05E/GUID-B6B25095-F55C-43DF-ABDF-A2EB9AF461E9&quot;&gt;Implementation of JTAG / Emulation&lt;/a&gt;). Whatever your chip uses, make sure every debug, trace and test-mode pin it has can reach a connector or a test point, and that the probe&#39;s voltage reference matches the I/O rail the debug pins use.&lt;/p&gt;
&lt;p&gt;Add a UART too. A few printed characters are often the fastest proof of life.&lt;/p&gt;

&lt;h2 id=&quot;reuse&quot;&gt;Test points, spares and reuse&lt;/h2&gt;
&lt;p&gt;Ask for test points on every rail at the chip (not only at the regulator), on clocks, reset, power-good and status pins. Ask for spare boards, because boards get damaged in the first week, and for a socket where the package allows it, or one board per part if parts must be soldered.&lt;/p&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The product board used for bring-up.&lt;/strong&gt; Shared regulators and fixed straps hide faults.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Voltage measured at the regulator.&lt;/strong&gt; The chip sees less after the board and package drop.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;First power-up with the chip fitted.&lt;/strong&gt; A board fault then looks like a chip fault, and can damage a scarce part.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a sample requirements sheet, the arithmetic for a current sense resistor, the red flags and a checklist. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;requirements&quot;&gt;An illustrative board requirements sheet&lt;/h3&gt;
&lt;p&gt;The sheet below is &lt;strong&gt;illustrative&lt;/strong&gt;, for a small SoC with three supplies, one PLL and a JTAG port. Every rail name, voltage and current is invented for this post. Your values come from your chip&#39;s power estimate and pin list.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Item&lt;/th&gt;&lt;th&gt;Request&lt;/th&gt;&lt;th&gt;Number to agree&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;VDD_CORE&lt;/td&gt;&lt;td&gt;Own regulator, enable, adjustable, sense resistor, Kelvin test point at chip&lt;/td&gt;&lt;td&gt;0.75 V nominal, adjustable 0.60 to 0.90 V in 5 mV steps; max 3 A&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;VDD_IO&lt;/td&gt;&lt;td&gt;Own regulator, enable, adjustable, sense resistor&lt;/td&gt;&lt;td&gt;1.8 V nominal, adjustable 1.62 to 1.98 V; max 0.5 A&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;VDD_PLL&lt;/td&gt;&lt;td&gt;Own low-noise regulator, enable, sense resistor&lt;/td&gt;&lt;td&gt;0.9 V nominal, adjustable plus or minus 10%; max 50 mA&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sequencing&lt;/td&gt;&lt;td&gt;Order and delays set by jumpers or a programmable controller&lt;/td&gt;&lt;td&gt;Any order; delay 0 to 50 ms per step&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Current measurement&lt;/td&gt;&lt;td&gt;Sense amplifier per rail, readable by the lab PC&lt;/td&gt;&lt;td&gt;Resolution 1 mA or better on core&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Reference clock&lt;/td&gt;&lt;td&gt;On-board oscillator plus SMA input, selected by jumper&lt;/td&gt;&lt;td&gt;Planned frequency, plus an external range agreed with the PLL designer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Boot mode&lt;/td&gt;&lt;td&gt;Switch per strap, pull-up and pull-down footprints&lt;/td&gt;&lt;td&gt;Every strap, including test-mode pins&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Reset&lt;/td&gt;&lt;td&gt;Button, test point, driven by the debug probe&lt;/td&gt;&lt;td&gt;Reset pulse width meets the chip spec&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Debug&lt;/td&gt;&lt;td&gt;Full connector, all JTAG, trace and test pins routed&lt;/td&gt;&lt;td&gt;Probe reference voltage matches the debug I/O rail&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Serial&lt;/td&gt;&lt;td&gt;UART header or USB bridge&lt;/td&gt;&lt;td&gt;One port minimum&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Test points&lt;/td&gt;&lt;td&gt;Every rail at chip, clocks, reset, power-good, status pins&lt;/td&gt;&lt;td&gt;Labeled on silkscreen&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Quantity&lt;/td&gt;&lt;td&gt;Boards for the plan, plus spares&lt;/td&gt;&lt;td&gt;Part count in the plan plus 3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked example: sizing a current sense resistor&lt;/h3&gt;
&lt;p&gt;Take the illustrative VDD_CORE rail: 0.75 V nominal, up to 3 A. The sense resistor sits in series, so it costs voltage at the chip, and it must still give a signal you can read at low current.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Try 10 milliohm.&lt;/strong&gt; At 3 A the drop is 3 x 0.010 = 30 mV, which is 4 percent of 0.75 V. That is too much to leave uncorrected; the chip would see 0.72 V when the regulator shows 0.75 V. You would need the regulator to sense the voltage at the chip, past the resistor.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Try 2 milliohm.&lt;/strong&gt; At 3 A the drop is 6 mV, or 0.8 percent of nominal. Power in the resistor is I squared R = 9 x 0.002 = 18 mW, easy for a small part. At an idle current of 100 mA the signal is 0.1 x 0.002 = 0.2 mV.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can you read 0.2 mV?&lt;/strong&gt; With a sense amplifier of gain 50, 0.2 mV becomes 10 mV, and full load becomes 6 mV x 50 = 300 mV. If the lab ADC reads 1 mV steps, 1 mA of current is 0.002 mV across the resistor, or 0.1 mV after the amplifier, which is below one step. So with this setup the resolution is about 10 mA, not the 1 mA in the sheet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Closing the gap.&lt;/strong&gt; Gain 500 gives 1 mV per mA but needs 3 V of range at full load; a switched low-current path or a finer ADC are the other options. Have this conversation before layout, not after. All values here are &lt;strong&gt;illustrative&lt;/strong&gt;.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Two chip supplies on one regulator&lt;/td&gt;&lt;td&gt;You cannot tell which supply draws the current or move them apart&lt;/td&gt;&lt;td&gt;Can each supply get its own rail on this board?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No current measurement per rail&lt;/td&gt;&lt;td&gt;Power-on day starts blind&lt;/td&gt;&lt;td&gt;How do we read each rail&#39;s current from the lab PC?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Fixed power sequence&lt;/td&gt;&lt;td&gt;A sequence problem needs board rework&lt;/td&gt;&lt;td&gt;Can we change order and delays without a soldering iron?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Boot and test straps tied in copper&lt;/td&gt;&lt;td&gt;A wrong default blocks boot on every board&lt;/td&gt;&lt;td&gt;Is there a switch or footprint for every strap?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Minimal debug connector&lt;/td&gt;&lt;td&gt;Reset, trace or test pins are unreachable&lt;/td&gt;&lt;td&gt;Which chip debug pins are not routed, and why?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No external clock input&lt;/td&gt;&lt;td&gt;A PLL that will not lock cannot be separated from its source&lt;/td&gt;&lt;td&gt;Can we inject a reference from a generator?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Board never powered before chip arrives&lt;/td&gt;&lt;td&gt;Board and chip faults arrive together&lt;/td&gt;&lt;td&gt;When is the bare-board power-up and who records the rails?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Board readiness checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Every chip supply on its own rail, with enable, adjustable voltage and current measurement.&lt;/li&gt;
&lt;li&gt;Sequence order and delays adjustable; current limits set per rail with inrush in mind.&lt;/li&gt;
&lt;li&gt;Sense resistor, gain and ADC resolution checked by arithmetic; remote sense on the core rail.&lt;/li&gt;
&lt;li&gt;Switch or footprint for every boot and test strap; reset button and test point.&lt;/li&gt;
&lt;li&gt;On-board reference clock plus an external input.&lt;/li&gt;
&lt;li&gt;Full debug connector; probe reference voltage matches debug I/O; UART available.&lt;/li&gt;
&lt;li&gt;Test points at the chip for all rails, clocks, reset and status pins, labeled.&lt;/li&gt;
&lt;li&gt;Bare-board power-up done, all rails measured and recorded; spare boards on the shelf.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;further-reading&quot;&gt;Further reading&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRAD05E/GUID-A46D29CC-7345-45C5-B9D6-C2B200F7DCB2&quot;&gt;TI AM62x board design guide: Connection Recommendations for JTAG Interface Signals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRADP6A/GUID-CE00FF09-343A-4A44-A24E-EFA345F980DB&quot;&gt;TI AM26x bring-up application note: Power Net Checks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/packaging-test&quot;&gt;The Semiconductor Hub: SoC lifecycle, Packaging and Test stage&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Test Program Readiness, or Getting ATE Patterns Converted and Debugged Before Wafers Arrive.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/4609962913825864753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-3-bring-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/4609962913825864753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/4609962913825864753'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-3-bring-up.html' title='First Silicon Back, Part 3: The Bring-Up Board and What to Ask the Board Team for Before First Silicon'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrqoqrVT1yUAMQst8U6NIgxujNLda9het8YygFI02kNXUsrBUfaAvhIplpJK8bJZBS0jNKTpXYQbzLSq3lCa0YFCRCHux0QiRkhaYJTaYcMqtG8389bElkUz73H092s0e1fNJncneO9n6qD7M8Bwxmntm5hIiaHqTnjst_Mr1hcf4sznosIn_low/s72-c/fsb-03-bring-up-board.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-7482917733623939813</id><published>2026-11-29T09:00:00.000+05:30</published><updated>2026-11-29T09:00:00.212+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EDA Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Physical Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Reading Real Reports"/><category scheme="http://www.blogger.com/atom/ns#" term="Static Timing Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Reading Real Reports, Part 5: The Violators Summary and How to Triage Before You Fix</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;OpenSTA-style violators summary listing setup violators, a max slew violation and the total negative slack.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCplOk0pVTQIwBpdJPRL2C26pOSca3sRCJEvVgfKge7HDXEcr13xfHWhezbJxdrvI8Y9HWEsC1RszaK9CW6jty0A_W4T-K-xIebnnmXgCgHMzpy24Hd8oJDg28nEyQ_tDiVw3Wqr_kWd_GjULVU18GZ6It8145gqY0zaILHmdwn5JcqFeS8splbA/s1600/rr-05-violators-summary-triage.jpg&quot; title=&quot;OpenSTA-style violators summary listing setup violators, a max slew violation and the total negative slack.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A timing run finishes and the violators report lists fifteen failing items. The tempting move is to start at the top and fix each one. A senior does something else first: sorts the list into groups, finds the few causes behind them, and decides which items are not timing bugs at all. That sorting usually takes less time than one fix, and it often turns fifteen jobs into four.&lt;/p&gt;
&lt;p&gt;This is Part 5 of Reading Real Reports. Parts 2 to 4 read one path at a time. Today we read the summary that lists every failing check at once, and walk through a triage of one sample report from start to finish.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The violators summary is a list of symptoms, not a work list. Group it before you fix anything.&lt;/li&gt;
&lt;li&gt;Sort by check type first (design rules, setup, hold), then by path group, then by shared names in the endpoints.&lt;/li&gt;
&lt;li&gt;Fix slew and capacitance violations early. Delays through a pin with a bad slew are less trustworthy, so setup numbers nearby may move once they are fixed.&lt;/li&gt;
&lt;li&gt;A cluster of endpoints on one bus usually has one cause. Find the shared driver or the shared logic before resizing cells one by one.&lt;/li&gt;
&lt;li&gt;Some violators are constraint questions: an I/O budget, a crossing between unrelated clocks. Those go to the constraint owner, not to the optimizer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what-it-is&quot;&gt;What the violators summary is&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#when-you-see-it&quot;&gt;When you see it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#senior-checks&quot;&gt;How a senior triages it&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sample&quot;&gt;The illustrative sample&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#walk-through&quot;&gt;Line-by-line walk-through&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked arithmetic check&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Sign-off checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-it-is&quot;&gt;What the violators summary is&lt;/h2&gt;
&lt;p&gt;Every timer has a command that lists all failing checks in one place. Commercial timers commonly call it &lt;code&gt;report_constraint&lt;/code&gt;; check your own tool&#39;s manual for its options. In OpenSTA and OpenROAD the equivalent is &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_check_types&quot;&gt;report_check_types&lt;/a&gt;, which reports the slack for each type of timing and design rule constraint. With &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-report_check_types-violators&quot;&gt;-violators&lt;/a&gt; it reports all violated timing and design rule constraints.&lt;/p&gt;
&lt;p&gt;&quot;Design rule&quot; here means electrical limits such as maximum slew, capacitance and fanout. &quot;Timing&quot; means setup, hold, recovery, removal and the clock checks. One command, many kinds of failure, all in one file.&lt;/p&gt;

&lt;h2 id=&quot;when-you-see-it&quot;&gt;When you see it&lt;/h2&gt;
&lt;p&gt;You see it at every stage that writes timing reports. The OpenROAD-flow-scripts metrics script runs &lt;code&gt;report_check_types -max_slew -max_capacitance -max_fanout -violators&lt;/code&gt; as part of each stage&#39;s report, next to &lt;code&gt;report_tns&lt;/code&gt; and &lt;code&gt;report_wns&lt;/code&gt; (&lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/blob/master/flow/scripts/report_metrics.tcl&quot;&gt;report_metrics.tcl&lt;/a&gt;). The UC Santa Cruz reporting tutorial calls this the bucket view: how many violations of each type exist (&lt;a href=&quot;https://vlsida.github.io/chip-tutorials/sta-reports.html#report_check_types--violation-types&quot;&gt;report_check_types&lt;/a&gt;). Its example uses a &lt;code&gt;-max_slack&lt;/code&gt; option; the OpenSTA reference lists &lt;code&gt;-violators&lt;/code&gt; instead, so check the help text of the version you run.&lt;/p&gt;

&lt;h2 id=&quot;senior-checks&quot;&gt;How a senior triages it&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Trust the inputs.&lt;/strong&gt; Before reading violators, confirm the run used the right constraints and parasitics. Part 1 covered those questions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bucket by check type.&lt;/strong&gt; Design rule violations, setup, hold. Each bucket has different causes and different owners.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bucket by path group.&lt;/strong&gt; In OpenSTA the group is usually the capture clock. An I/O group failing on its own often points at the I/O budget, not the logic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Look for shared names.&lt;/strong&gt; Six bits of one register, ten pins on one net, every endpoint behind one block. Shared names mean a shared cause.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ask which items are not bugs.&lt;/strong&gt; A hold failure on a synchronizer&#39;s first flop is often a missing clock relationship in the SDC.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Only then plan fixes,&lt;/strong&gt; starting with the cause that clears the most items.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Fixing in report order.&lt;/strong&gt; The list is sorted by group and slack, not by cause. The fifth line may explain the first four.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chasing WNS only.&lt;/strong&gt; WNS is one endpoint. &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_tns&quot;&gt;report_tns&lt;/a&gt; sums all of them and shows whether the problem is wide or narrow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Missing a whole check type.&lt;/strong&gt; In the current OpenSTA script behind this command, hold checks are left out of the default list when the analysis type is single (&lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/Search.tcl&quot;&gt;Search.tcl&lt;/a&gt;). If no hold section appears, find out why before you celebrate.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Treating the list as complete.&lt;/strong&gt; Unconstrained paths never fail, so they never appear here. That is Part 6.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a full sample summary, a reading of each section, the triage arithmetic and the checklists. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;sample&quot;&gt;The illustrative sample&lt;/h3&gt;
&lt;p&gt;The session below is an &lt;strong&gt;illustrative sample in the style of OpenSTA/OpenROAD output&lt;/strong&gt;, written for this post. Instance names, port names, the corner and every number are invented. The section titles and column headers follow the current OpenSTA sources &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ReportPath.cc&quot;&gt;ReportPath.cc&lt;/a&gt; and &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/Sta.cc&quot;&gt;Sta.cc&lt;/a&gt;; column widths are simplified. Time is in nanoseconds, capacitance in femtofarads, period 2.00 ns.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openroad&amp;gt; report_check_types -violators -format end
max_delay/setup group sys_clk

                                     Required  Actual
Endpoint                                Delay   Delay   Slack
-------------------------------------------------------------
u_mac/acc_reg_31_/D                      1.41    1.63   -0.22 (VIOLATED)
u_mac/acc_reg_30_/D                      1.41    1.62   -0.21 (VIOLATED)
u_mac/acc_reg_29_/D                      1.41    1.60   -0.19 (VIOLATED)
u_mac/acc_reg_28_/D                      1.41    1.59   -0.18 (VIOLATED)
u_mac/acc_reg_27_/D                      1.42    1.57   -0.15 (VIOLATED)
u_mac/acc_reg_26_/D                      1.42    1.55   -0.13 (VIOLATED)
u_dma/desc_ptr_reg_4_/D                  1.38    1.40   -0.02 (VIOLATED)
u_dma/desc_ptr_reg_5_/D                  1.39    1.40   -0.01 (VIOLATED)

max_delay/setup group vclk_io

                                     Required  Actual
Endpoint                                Delay   Delay   Slack
-------------------------------------------------------------
spi_mosi                                 1.60    1.75   -0.15 (VIOLATED)
spi_cs_n                                 1.60    1.72   -0.12 (VIOLATED)

min_delay/hold group sys_clk

                                     Required  Actual
Endpoint                                Delay   Delay   Slack
-------------------------------------------------------------
u_sync/meta_reg_0_/D                     0.06    0.04   -0.02 (VIOLATED)

max slew

Pin                                  Limit   Slew   Slack
---------------------------------------------------------
u_mac/U1188/A2                        0.50   0.71   -0.21 (VIOLATED)
u_mac/U1190/A2                        0.50   0.70   -0.20 (VIOLATED)
u_mac/U1101/ZN                        0.50   0.69   -0.19 (VIOLATED)

max capacitance

Pin                                  Limit    Cap   Slack
---------------------------------------------------------
u_mac/U1101/ZN                       42.00  61.30  -19.30 (VIOLATED)

openroad&amp;gt; report_tns
tns max -1.38
openroad&amp;gt; report_wns
wns max -0.22
openroad&amp;gt; report_checks -path_delay min -to u_sync/meta_reg_0_/D -format short
Startpoint: u_uart/rx_valid_reg (rising edge-triggered flip-flop clocked by uart_clk)
Endpoint: u_sync/meta_reg_0_ (rising edge-triggered flip-flop clocked by sys_clk)
Path Group: sys_clk
Path Type: min&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;walk-through&quot;&gt;Line-by-line walk-through&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Section headers.&lt;/strong&gt; Each timing section starts with the check and the group, for example &lt;code&gt;max_delay/setup group sys_clk&lt;/code&gt;. The format comes from the &lt;code&gt;end&lt;/code&gt; option, which reports the endpoint for each check (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-report_check_types-format&quot;&gt;-format&lt;/a&gt;). Without it the default is one slack per group, which is too little for triage.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Columns.&lt;/strong&gt; Required and actual times, then slack. For setup, slack is required minus actual: 1.41 - 1.63 = -0.22. For hold, as Part 3 showed, it is actual minus required: 0.04 - 0.06 = -0.02.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The &lt;code&gt;u_mac/acc_reg&lt;/code&gt; cluster.&lt;/strong&gt; Six adjacent bits of one accumulator, slack from -0.13 to -0.22, the top bits worst. That pattern suggests a carry or a shared control signal, not six separate problems.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The &lt;code&gt;u_dma&lt;/code&gt; pair.&lt;/strong&gt; Two endpoints failing by 0.01 and 0.02 ns. These are near the edge and may clear on their own after other fixes change placement. Note them; do not start with them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The &lt;code&gt;vclk_io&lt;/code&gt; group.&lt;/strong&gt; Two SPI outputs, both with a required time of 1.60 ns. In a 2.00 ns period, that means 0.40 ns has been given to the outside world through &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_output_delay&quot;&gt;set_output_delay&lt;/a&gt;. Ask whether that budget is agreed before changing any logic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The hold item.&lt;/strong&gt; &lt;code&gt;u_sync/meta_reg_0_&lt;/code&gt; sounds like the first stage of a synchronizer, and the short report confirms the startpoint is clocked by &lt;code&gt;uart_clk&lt;/code&gt;. A path between two unrelated clocks is being timed. The usual answer is a clock relationship in the SDC, such as &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_clock_groups&quot;&gt;set_clock_groups&lt;/a&gt;, after which paths between the groups are not reported. Adding hold buffers here would fix the wrong thing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Max slew and max capacitance.&lt;/strong&gt; The limit, the actual value and the slack, per pin, following the layout of the limit report in &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ReportPath.cc&quot;&gt;ReportPath.cc&lt;/a&gt;. One driver, &lt;code&gt;u_mac/U1101/ZN&lt;/code&gt;, is overloaded at 61.30 fF against a 42.00 fF limit, and its slow edge shows up as slew violations on its own output and on two of its loads. All three slew lines and the capacitance line are one problem.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The summary lines.&lt;/strong&gt; &lt;code&gt;report_tns&lt;/code&gt; and &lt;code&gt;report_wns&lt;/code&gt; print the max (setup) totals by default. Run both with &lt;code&gt;-min&lt;/code&gt; as well for hold.&lt;/p&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked arithmetic check&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;TNS from the list.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;u_mac cluster : -0.22 -0.21 -0.19 -0.18 -0.15 -0.13 = -1.08
u_dma pair    : -0.02 -0.01                         = -0.03
I/O group     : -0.15 -0.12                         = -0.27
setup TNS                                           = -1.38  (matches tns max)
WNS                                                 = -0.22  (acc_reg_31_)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Where the problem lives.&lt;/strong&gt; The &lt;code&gt;u_mac&lt;/code&gt; cluster holds 1.08 of 1.38 ns, about 78 percent of setup TNS. The I/O group holds 0.27 ns, about 20 percent. The &lt;code&gt;u_dma&lt;/code&gt; pair holds about 2 percent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;From fifteen lines to four causes.&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Cause&lt;/th&gt;&lt;th&gt;Lines it explains&lt;/th&gt;&lt;th&gt;Owner&lt;/th&gt;&lt;th&gt;Action&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Overloaded driver &lt;code&gt;u_mac/U1101&lt;/code&gt;&lt;/td&gt;&lt;td&gt;3 slew, 1 cap, likely 6 setup&lt;/td&gt;&lt;td&gt;Implementation&lt;/td&gt;&lt;td&gt;Resize or buffer the net, then rerun&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;I/O budget on SPI outputs&lt;/td&gt;&lt;td&gt;2 setup&lt;/td&gt;&lt;td&gt;Interface owner&lt;/td&gt;&lt;td&gt;Confirm the 0.40 ns output delay&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Unrelated clocks timed&lt;/td&gt;&lt;td&gt;1 hold&lt;/td&gt;&lt;td&gt;Constraint owner&lt;/td&gt;&lt;td&gt;Add the clock relationship, check the synchronizer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Near-critical DMA pointer&lt;/td&gt;&lt;td&gt;2 setup&lt;/td&gt;&lt;td&gt;Implementation&lt;/td&gt;&lt;td&gt;Recheck after the first fix&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Checking the link before acting.&lt;/strong&gt; The claim that the overloaded driver causes the six setup failures is a hypothesis. Test it with &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#get_fanout&quot;&gt;get_fanout&lt;/a&gt; &lt;code&gt;-from u_mac/U1101/ZN -endpoints_only&lt;/code&gt;, and by reading the worst path with &lt;code&gt;report_checks -to u_mac/acc_reg_31_/D -fields {slew cap}&lt;/code&gt; to see whether it passes through that net. If it does, and resizing the driver recovers at least 0.22 ns on that path (an assumption to confirm with a rerun, not a library figure), the whole cluster clears and TNS falls to -0.30 ns from the I/O and DMA items alone.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why design rules go first.&lt;/strong&gt; Cell delay tables are characterized over a range of input slews. A pin at 0.71 ns against a 0.50 ns limit may be outside the range the library was built for, so delays through it are less reliable. The OpenROAD-flow-scripts tutorial keeps the two apart: &lt;code&gt;repair_design&lt;/code&gt; fixes max slew, max capacitance and max fanout, while &lt;code&gt;repair_timing&lt;/code&gt; handles setup and hold and is run after clock tree synthesis (&lt;a href=&quot;https://openroad-flow-scripts.readthedocs.io/en/latest/tutorials/FlowTutorial.html#timing-optimization-using-repair-design&quot;&gt;Timing Optimization using repair_design&lt;/a&gt;).&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Many adjacent bits failing by similar amounts&lt;/td&gt;&lt;td&gt;One shared cause&lt;/td&gt;&lt;td&gt;What do these endpoints have in common?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Slew and setup failures in the same block&lt;/td&gt;&lt;td&gt;The DRV may be driving the setup numbers&lt;/td&gt;&lt;td&gt;Do the worst setup paths pass through the bad-slew pins?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Only I/O groups failing&lt;/td&gt;&lt;td&gt;The budget may be the problem&lt;/td&gt;&lt;td&gt;Who set the input and output delays, and when?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Hold failure on a synchronizer flop&lt;/td&gt;&lt;td&gt;Unrelated clocks may be timed&lt;/td&gt;&lt;td&gt;Is the clock relationship in the SDC?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No hold section in the report&lt;/td&gt;&lt;td&gt;Hold may not have been checked&lt;/td&gt;&lt;td&gt;What analysis type and corners did this run use?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;TNS shrinking while WNS stays fixed&lt;/td&gt;&lt;td&gt;One hard path is left&lt;/td&gt;&lt;td&gt;Is it a logic depth problem or a constraint problem?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Sign-off checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Violators report saved with &lt;code&gt;-format end&lt;/code&gt; for every corner.&lt;/li&gt;
&lt;li&gt;Setup and hold both present, or a written reason why one is absent.&lt;/li&gt;
&lt;li&gt;Every line assigned to a cause, and every cause to an owner.&lt;/li&gt;
&lt;li&gt;Design rule violations fixed or waived before setup closure is claimed.&lt;/li&gt;
&lt;li&gt;WNS and TNS recorded for max and min with &lt;code&gt;report_wns&lt;/code&gt;, &lt;code&gt;report_tns&lt;/code&gt; and &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_worst_slack&quot;&gt;report_worst_slack&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Constraint-related items (I/O budgets, clock relationships) closed by the constraint owner, not by buffering.&lt;/li&gt;
&lt;li&gt;Counts compared with the previous run, with any new cause explained.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Unconstrained Paths and the check_timing Report Nobody Reads Until Silicon Fails.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/7482917733623939813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-5-violators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/7482917733623939813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/7482917733623939813'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-5-violators.html' title='Reading Real Reports, Part 5: The Violators Summary and How to Triage Before You Fix'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCplOk0pVTQIwBpdJPRL2C26pOSca3sRCJEvVgfKge7HDXEcr13xfHWhezbJxdrvI8Y9HWEsC1RszaK9CW6jty0A_W4T-K-xIebnnmXgCgHMzpy24Hd8oJDg28nEyQ_tDiVw3Wqr_kWd_GjULVU18GZ6It8145gqY0zaILHmdwn5JcqFeS8splbA/s72-c/rr-05-violators-summary-triage.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-7468302717510377604</id><published>2026-11-29T06:31:00.000+05:30</published><updated>2026-11-29T06:31:00.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chiplets"/><category scheme="http://www.blogger.com/atom/ns#" term="DFT and Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Semiconductor Business"/><category scheme="http://www.blogger.com/atom/ns#" term="UCIe"/><title type='text'>Licensing RTL, Buying Dies: Why Chiplet Deals Are Not IP Deals</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;Illustration contrasting an abstract circuit blueprint with a tray of physical silicon dies, linked by a thin line of light.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjheGHy3ssv1acf0BluwXDPm1r3pW2GwrQSyUrgH2R-03wpv9I8PefGCGpYe_o6ZTEitKGjPZQF7cpsLWIUxyYq-BM_1rme22YJKHBmZUcPjdjGHzuLc2hSrxrV-FPKT4M0hn4ja31SjyV15qv-DExQTlj-Qe0YrBbMHHn6bhj-kDrgoWcIaB6OIQ/s1600/t045.jpg&quot; title=&quot;Illustration contrasting an abstract circuit blueprint with a tray of physical silicon dies, linked by a thin line of light.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A soft IP vendor sells you the right to use a design. A chiplet vendor sells you a physical part. The difference looks small until a finished package fails at final test and two companies have to decide who pays for all the other silicon bolted to the bad die.&lt;/p&gt;
&lt;p&gt;This post compares the two deals on licensing, liability, test and support, using vendor filings, UCIe documents and published known-good-die work. In our illustrative model, a remedy limited to replacing the bad die covers about a tenth of the scrap bill. That ratio comes from assumed prices, so rerun it with yours. None of this is legal advice. We have not seen any private contracts and describe none here, and the buyer questions are our own judgement.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Soft IP is typically a licence priced per design, with royalties in some cases. A chiplet is a physical product, which brings in inventory, delivery terms, lots and yield.&lt;/li&gt;
&lt;li&gt;Arm&#39;s latest annual report says production silicon carries product liability, warranty and performance guarantee risks that differ materially from those of its licensing business. That is the plainest public statement of the shift we have found.&lt;/li&gt;
&lt;li&gt;UCIe compliance testing checks an interface. It does not tell you who pays when a die escapes test.&lt;/li&gt;
&lt;li&gt;An Open Compute Project (OCP) model shows how sensitive both sides are to known-good-die (KGD) rates. In its example, each point of KGD lost per chiplet costs the package builder 2.5 points of margin.&lt;/li&gt;
&lt;li&gt;Settle the remedy for a bad die before the design is frozen. It may be the most expensive sentence in the deal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-changes-hands&quot;&gt;What actually changes hands&lt;/h2&gt;
&lt;p&gt;Start with the object being traded. Our post on &lt;a href=&quot;/2008/01/soft-macro-vs-hard-macro.html&quot;&gt;soft macros and hard macros&lt;/a&gt; covers the technical side: soft IP arrives as synthesisable RTL and you implement it in your own technology. A chiplet sits at the far end of that scale. The OCP&#39;s business work group described it as hardened IP delivered and handled as a chiplet, which needs coordination across several vendors.&lt;/p&gt;
&lt;p&gt;The table is our generalisation. Individual deals vary, and some sit between the two columns.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Question&lt;/th&gt;&lt;th&gt;Soft IP&lt;/th&gt;&lt;th&gt;Merchant chiplet&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;What you receive&lt;/td&gt;&lt;td&gt;Design files under licence&lt;/td&gt;&lt;td&gt;Physical dies, with models and data for integration&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;What you can change&lt;/td&gt;&lt;td&gt;Configuration, your process choice, sometimes the RTL itself&lt;/td&gt;&lt;td&gt;Little. Function, process and bump map are already set&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Who tapes out and pays the foundry&lt;/td&gt;&lt;td&gt;You&lt;/td&gt;&lt;td&gt;The vendor or its supply chain&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Price shape&lt;/td&gt;&lt;td&gt;Fee per design, sometimes with royalties&lt;/td&gt;&lt;td&gt;Price per unit, perhaps with engineering charges&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Inventory&lt;/td&gt;&lt;td&gt;None&lt;/td&gt;&lt;td&gt;Someone must hold it, finance it and age it&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Yield loss on that block&lt;/td&gt;&lt;td&gt;Yours, inside your own die&lt;/td&gt;&lt;td&gt;The vendor&#39;s up to shipment, then whatever was agreed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Test&lt;/td&gt;&lt;td&gt;You insert and run it as part of your chip&lt;/td&gt;&lt;td&gt;Split between the vendor&#39;s die test and your package test&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Typical failure&lt;/td&gt;&lt;td&gt;A design bug or a specification gap&lt;/td&gt;&lt;td&gt;The same, plus manufacturing escapes that vary by lot&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;money&quot;&gt;How the money moves&lt;/h2&gt;
&lt;p&gt;Synopsys says in its fiscal 2025 10-K that it typically licenses IP non-exclusively for a set number of designs, charging per design and in some cases adding royalties. Its risk factors describe IP revenue as generally recognised upfront. Arm, in its fiscal 2026 annual report, books licensing revenue on delivery and accrues royalties in the quarter customers ship chips. Royalties were $2,613 million of its $4,920 million total, about 53%. Arm also says royalty per chip generally falls as volume rises, and that customers generally have no minimum purchase obligation.&lt;/p&gt;
&lt;p&gt;Now compare a company selling physical silicon. Alphawave&#39;s 2024 annual report listed IP licensing, custom silicon, connectivity products and chiplets as separate lines of business. Its accounting note treats silicon products as physical goods held as inventory, with revenue recognised when the customer obtains control. The moment that happens depends on the terms: release for collection on ex-works sales, delivery otherwise, and withdrawal from stock on consignment. The balance sheet commentary reports US$6.0 million of silicon devices in inventory at the end of 2024, down from US$11.6 million, and mentions prepayments to foundries to reserve capacity. That note covers silicon devices in general and does not isolate chiplets, and Qualcomm has since bought the company. It still shows a working capital business that an IP licensor does not run.&lt;/p&gt;
&lt;p&gt;Arm makes the same point from the other direction. Its report says it has extended into production silicon with the Arm AGI CPU, with production expected by the end of calendar 2026. That part is a CPU product and not a chiplet, but the listed risks transfer well: inventory obsolescence and write-downs, safety stock, limited control over foundry capacity and yields, and pressure on margins.&lt;/p&gt;

&lt;h2 id=&quot;liability&quot;&gt;Liability: a different risk disclosure&lt;/h2&gt;
&lt;p&gt;Filings do not reveal contract terms, but they show what companies worry about.&lt;/p&gt;
&lt;p&gt;On the licensing side, Synopsys says that in many cases it agrees to indemnify customers against claims that licensed products infringe third-party IP, and that infringement claims could force it to refund licence fees. It also warns that it may not be able to limit its liability sufficiently by contract. Its general product warranty covers media defects and substantial conformance to material specifications for a limited period, and it reports no material warranty or indemnity claims to date. One detail is specific to IP: allegations of manufacturability problems could harm its reputation and customers&#39; willingness to license, even if untrue.&lt;/p&gt;
&lt;p&gt;Arm&#39;s language on silicon is starker. Selling it brings &quot;product liability, warranty, and performance guarantee risks&quot;, which the company describes as materially different from those of its licensing business. It adds that warranty and indemnification obligations may be substantially greater in scope and amount, and that insurance or reserves may not cover every claim. On its existing business, Arm says its indemnities are generally capped and do not extend to customers&#39; end customers, though those end customers could still bring claims directly.&lt;/p&gt;
&lt;p&gt;The law may also treat a die differently. In the US, Article 2 of the Uniform Commercial Code covers goods, defined broadly as things movable at the time of identification. It implies a merchantability warranty from a merchant seller unless that warranty is excluded, and exclusion has its own formalities, such as conspicuous wording or an &quot;as is&quot; term. Whether a given deal falls under Article 2, and how a licence of design files is treated, depends on the facts and the governing law. That is one for your lawyers.&lt;/p&gt;
&lt;p&gt;Patents add a further layer. A Baker Botts article of August 2025 notes that UCIe offers no central RAND licensing mechanism, so responsibility for standard-essential patent clearance in chiplet designs is less clear. It suggests buyers and suppliers may look at flow-down indemnities and licensing representations. The article presents these as possible developments, not established practice.&lt;/p&gt;

&lt;h2 id=&quot;test&quot;&gt;Test: where the deals diverge most&lt;/h2&gt;
&lt;p&gt;With soft IP, test belongs to you. The block goes inside your chip, your design-for-test plan covers it, and your &lt;a href=&quot;/2023/02/what-is-wafer-probe-testing.html&quot;&gt;wafer probe&lt;/a&gt; screens it along with everything else. With a chiplet, someone else tests a die you will never see at sort, and you discover the result only after assembling it with other costly parts.&lt;/p&gt;
&lt;p&gt;Three published points show why this is hard:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Access.&lt;/strong&gt; The UCIe 2.0 white paper says bumps can be probed at sort but micro-bumps cannot, especially as pitches reach 25 µm, so testing has to work through other bumps.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Coverage.&lt;/strong&gt; A Synopsys technical bulletin from 2020 says some items cannot be adequately covered on the bare die even in the best case. It names faulty bumps and functions spanning both dies, which is why the complete link has to be tested again after assembly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ownership.&lt;/strong&gt; The OCP&#39;s 2023 overview of the open chiplet economy lists known-good-die contracts, inventory location and full product quality ownership as added complexities of multi-vendor sourcing. Its 2024 marketplace announcement said using third-party known-good dies in a design was not yet straightforward.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;UCIe helps with the mechanics. Version 2.0 introduced a DFx architecture in which a management hub in each chiplet gives access to spokes such as scan controllers and memory BIST, and its stated scope runs from die sort to the field. But the white paper says manageability is optional in that specification, and compliance testing, which the 2.0 release described as an initial framework, validates main-band features against a known-good reference. The Consortium&#39;s site now lists 3.0 as the latest version, and we have not read its full text. Our reading is that a compliant interface says nothing about the quality level of a given lot, and our post on &lt;a href=&quot;/2026/11/ucie-in-practice-spec-vs-what-actually.html&quot;&gt;UCIe in practice&lt;/a&gt; covers how much interoperability evidence to ask for.&lt;/p&gt;
&lt;p&gt;The clearest public numbers come from the OCP&#39;s business work group, in its white paper &quot;Developing an Open Chiplets Marketplace&quot; (PDF dated February 2022). Its example package uses five purchased chiplets at 98% KGD each, which gives a 90% package yield before assembly losses and $4.60 of scrap cost, or 4.8 points of margin. Each point of KGD lost per chiplet costs another 2.5 points of margin. It then models a supplier who is contractually responsible for the total scrap cost if KGD falls below a negotiated threshold. In that case, 2 points below the agreed rate cost a DRAM chiplet provider 24 points of margin. These are model assumptions and not market data, and the responsible-supplier case is an example, not evidence that such terms are common.&lt;/p&gt;

&lt;h2 id=&quot;scrap-example&quot;&gt;A worked example: who pays for the scrap&lt;/h2&gt;
&lt;p&gt;The size of the bill depends on the remedy. &lt;strong&gt;Every number below is an illustrative assumption, not data from any vendor or contract.&lt;/strong&gt; These inputs are ours and use a different product and cost structure from the OCP model, so the two sets of results should not be compared directly.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Assumption&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Packages started&lt;/td&gt;&lt;td&gt;100,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Purchased chiplets per package&lt;/td&gt;&lt;td&gt;4, at $25 each ($10 million in total)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Your own die, assumed perfect here&lt;/td&gt;&lt;td&gt;$120&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Substrate and assembly, assumed perfect here&lt;/td&gt;&lt;td&gt;$40&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Cost lost when a package is scrapped&lt;/td&gt;&lt;td&gt;$260&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Each escaped bad die is assumed to kill its package at final test, with no repair or salvage. Package yield is then the KGD rate raised to the fourth power.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;KGD per chiplet&lt;/th&gt;&lt;th&gt;Package yield&lt;/th&gt;&lt;th&gt;Packages scrapped&lt;/th&gt;&lt;th&gt;Bad dies&lt;/th&gt;&lt;th&gt;Total scrap cost&lt;/th&gt;&lt;th&gt;Cost to replace bad dies only&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;99.5%&lt;/td&gt;&lt;td&gt;98.01%&lt;/td&gt;&lt;td&gt;1,985&lt;/td&gt;&lt;td&gt;2,000&lt;/td&gt;&lt;td&gt;$516,113&lt;/td&gt;&lt;td&gt;$50,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;99.0%&lt;/td&gt;&lt;td&gt;96.06%&lt;/td&gt;&lt;td&gt;3,940&lt;/td&gt;&lt;td&gt;4,000&lt;/td&gt;&lt;td&gt;$1,024,504&lt;/td&gt;&lt;td&gt;$100,000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;98.0%&lt;/td&gt;&lt;td&gt;92.24%&lt;/td&gt;&lt;td&gt;7,763&lt;/td&gt;&lt;td&gt;8,000&lt;/td&gt;&lt;td&gt;$2,018,428&lt;/td&gt;&lt;td&gt;$200,000&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Two results stand out. First, replacing the bad die covers about a tenth of the loss, because the scrapped package costs $260 and the die only $25. Second, at 98% the full scrap bill equals about 20% of the $10 million chiplet revenue, while die replacement costs the supplier 2%. Those are very different businesses at the same quality level.&lt;/p&gt;
&lt;p&gt;The soft IP version of the table has no such line. A block&#39;s defects land in your own die yield, on your own foundry and test bills, and the licence fee does not move with them. You carry the risk, but you also control the test program and the data.&lt;/p&gt;

&lt;h2 id=&quot;support&quot;&gt;Support: a design team versus a supply chain&lt;/h2&gt;
&lt;p&gt;This section is our judgement, since public sources say little about support terms. Soft IP support is mostly engineer to engineer: integration questions, errata and new RTL releases. A fix can be absorbed at your next spin, and the design stays with you if the vendor loses interest in that product.&lt;/p&gt;
&lt;p&gt;A chiplet needs the support of a component supplier. A bug fix means new silicon or a workaround. Process or assembly changes may alter your qualification. Parts can be discontinued. Failure analysis needs returned material and lot traceability. Your package may also depend on the vendor&#39;s firmware for life: the UCIe 2.0 mechanisms include firmware download, telemetry, crash dump retrieval and self-test reporting, and someone must maintain those across several suppliers. The OCP paper lists supply guarantees, inventory management at the assembly house and the ability to test against service levels among the open business questions.&lt;/p&gt;

&lt;h2 id=&quot;buyer-questions&quot;&gt;Questions a chiplet buyer should ask&lt;/h2&gt;
&lt;p&gt;These are our suggestions, based on the differences above. They are not standard terms, and they are not a statement of what any vendor offers. Have counsel review the actual contract.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;What does known good mean here?&lt;/strong&gt; Ask for the test list, temperatures, burn-in if any, coverage metrics, and what the vendor says cannot be covered on a bare die.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What is the remedy for a bad die?&lt;/strong&gt; Is it replacement, credit or a share of package scrap? Is there a threshold, a cap, and an agreed way to prove which die failed?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Who owns the failure analysis?&lt;/strong&gt; Who pays for it, how long does it take, and what happens if the root cause is disputed between two suppliers and the assembly house?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What test access survives assembly?&lt;/strong&gt; Which UCIe manageability and DFx features are implemented, given that they are optional, and can you run the vendor&#39;s patterns at package level?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What data do you get?&lt;/strong&gt; Ask about lot and wafer traceability, sort results and parametric limits, and what you may share with your other suppliers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Who clears the patents?&lt;/strong&gt; Who is responsible for interface-related claims, and does any indemnity reach your customers?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How does change notification work?&lt;/strong&gt; Ask for the notice period, your right to requalify, last-time-buy terms and the committed supply life.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where does inventory sit?&lt;/strong&gt; Who holds it, who owns it, when does title pass, and who bears ageing and write-down risk?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What is the fallback?&lt;/strong&gt; Could you license the design or get a second source if the part is discontinued or the vendor changes hands?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;choosing&quot;&gt;Which deal suits you&lt;/h2&gt;
&lt;p&gt;In our view, soft IP suits teams that want control and already own a die, a test flow and a foundry relationship, and that can absorb integration work. A chiplet suits teams that want a function proven in silicon on a node they would not otherwise fund, and that can accept fixed features and manage a multi-vendor quality chain. Partitioning also decides who carries the risk, so commercial review belongs next to architecture review. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/chiplet&quot;&gt;chiplet and advanced packaging lifecycle&lt;/a&gt; on The Semiconductor Hub shows where those decisions fall in a programme.&lt;/p&gt;

&lt;p&gt;Hard IP sits between the two. A hard macro is tied to one technology like a chiplet, but commercially it stays on the licensing side, since you still fabricate and test it inside your own die.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Synopsys, &lt;a href=&quot;https://www.sec.gov/Archives/edgar/data/883241/000088324125000028/0000883241-25-000028-index.htm&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Form 10-K for the fiscal year ended 31 October 2025&lt;/a&gt;, filed 22 December 2025.&lt;/li&gt;
&lt;li&gt;Arm Holdings plc, &lt;a href=&quot;https://www.sec.gov/Archives/edgar/data/1973239/000197323926000097/0001973239-26-000097-index.htm&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;annual report on Form 20-F for the fiscal year ended 31 March 2026&lt;/a&gt;, filed 26 May 2026.&lt;/li&gt;
&lt;li&gt;Alphawave IP Group plc, Annual Report and Financial Statements 2024.&lt;/li&gt;
&lt;li&gt;ITPro, &quot;&lt;a href=&quot;https://www.itpro.com/business/acquisition/qualcomm-the-data-center-with-usd2-4-billion-alphawave-semi-acquisition&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Qualcomm completes $2.4 billion Alphawave Semi acquisition&lt;/a&gt;&quot;, 19 December 2025.&lt;/li&gt;
&lt;li&gt;UCIe Consortium, &quot;UCIe 2.0 Specification: Continuing Innovation to Drive an Open Chiplet Ecosystem&quot; (Debendra Das Sharma), white paper, and &quot;UCIe Consortium Releases 2.0 Specification&quot;, 6 August 2024. &lt;a href=&quot;https://www.uciexpress.org/specifications&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;UCIe specification page&lt;/a&gt;, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Open Compute Project, ODSA business and end user work groups, &quot;Developing an Open Chiplets Marketplace: Challenges and Opportunities&quot;, PDF dated 22 February 2022.&lt;/li&gt;
&lt;li&gt;Open Compute Project, &quot;&lt;a href=&quot;https://www.opencompute.org/news/building-an-open-chiplet-economy/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Building An Open Chiplet Economy&lt;/a&gt;&quot;, 11 September 2023, and &quot;&lt;a href=&quot;https://www.opencompute.org/news/the-ocp-open-chiplet-economy-marketplace-opens-its-doors/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;The OCP Open Chiplet Economy Marketplace Opens its Doors&lt;/a&gt;&quot;, 15 October 2024.&lt;/li&gt;
&lt;li&gt;Synopsys, &quot;&lt;a href=&quot;https://www.synopsys.com/articles/test-die-to-die-phy.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Production Test of System-in-Package with Die-to-Die PHY IP&lt;/a&gt;&quot;, technical bulletin, 20 July 2020.&lt;/li&gt;
&lt;li&gt;Pallavi Mathur, Baker Botts, &quot;The Chiplet Shift: Evolving Interface Standards and Commercial Ecosystems&quot;, JD Supra, 1 August 2025.&lt;/li&gt;
&lt;li&gt;Uniform Commercial Code, sections &lt;a href=&quot;https://www.law.cornell.edu/ucc/2/2-105&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;2-105&lt;/a&gt;, &lt;a href=&quot;https://www.law.cornell.edu/ucc/2/2-314&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;2-314&lt;/a&gt; and &lt;a href=&quot;https://www.law.cornell.edu/ucc/2/2-316&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;2-316&lt;/a&gt;, as published by Cornell Legal Information Institute.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;This post is general commentary and not legal advice. The worked example uses illustrative numbers and the OCP figures are model assumptions. Company statements come from their own filings and describe risks and accounting, not the terms of any particular contract. The buyer questions are our own judgement.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/7468302717510377604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/licensing-rtl-buying-dies-why-chiplet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/7468302717510377604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/7468302717510377604'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/licensing-rtl-buying-dies-why-chiplet.html' title='Licensing RTL, Buying Dies: Why Chiplet Deals Are Not IP Deals'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjheGHy3ssv1acf0BluwXDPm1r3pW2GwrQSyUrgH2R-03wpv9I8PefGCGpYe_o6ZTEitKGjPZQF7cpsLWIUxyYq-BM_1rme22YJKHBmZUcPjdjGHzuLc2hSrxrV-FPKT4M0hn4ja31SjyV15qv-DExQTlj-Qe0YrBbMHHn6bhj-kDrgoWcIaB6OIQ/s72-c/t045.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-3708393172031510669</id><published>2026-11-28T21:04:00.000+05:30</published><updated>2026-11-28T21:04:00.119+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advanced Nodes"/><category scheme="http://www.blogger.com/atom/ns#" term="Geopolitics and Supply Chain"/><category scheme="http://www.blogger.com/atom/ns#" term="Process Technology"/><category scheme="http://www.blogger.com/atom/ns#" term="Semiconductor Manufacturing"/><title type='text'>A Second Foundry in 2026? Scoring TSMC, Samsung, Intel and Rapidus on the Public Record</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;Two rows of silicon wafers on separate carriers in a semiconductor cleanroom&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxrmKarK994P4c4RChQdyEUkknsWcke1OSWPCwP4u-ZPK8O0zxyd1YAMELFs6U7HK5Dlg4NBz1ocm6nZH_iTgvmyxryYtpxzU_-kWXDBVD8uX_WUF2uIi47Ow4faDj_QAxv0aD7gaMU6b3OBGFwdl61ozqrcfsnITlz_Q1oXqS130H6mXkDrxqqQ/s1600/t014.jpg&quot; title=&quot;Two rows of silicon wafers on separate carriers in a semiconductor cleanroom&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Who is your second source? On the public record in November 2026, the honest answer is that no alternative is both proven at volume for outside customers and free of capacity limits. TSMC says demand is still well above its supply. Samsung expects its nodes below 8nm to run above 100% utilisation in 2027. Intel has yields it describes as industry standard, but its external foundry revenue was about 6% of segment revenue last quarter. Rapidus is still on a pilot line.&lt;/p&gt;
&lt;p&gt;This post scores all four using only what the companies themselves have filed, published or said on earnings calls. Every status below is a company statement unless marked as our own reading. We also work through a small model of when a second foundry pays. Its result, that a port pays for extra capacity more readily than for insurance, depends entirely on illustrative inputs that you should replace with your own.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;method&quot;&gt;How we scored it&lt;/h2&gt;
&lt;p&gt;The ratings measure how far along each claim is, not how good the technology is. We used three grades:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Shown:&lt;/strong&gt; the company reports it as already happening, in production or in shipped product.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stated:&lt;/strong&gt; the company says it is planned, on track or under way, without naming a customer or giving a number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Not public:&lt;/strong&gt; nothing in the documents we read settles it, which does not mean it has not happened.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The sources are not on a common baseline. Nobody publishes a yield figure, so one company&#39;s adjective cannot be set against another&#39;s. The four &quot;2nm class&quot; labels also describe different processes, and they are marketing names more than measurements, as our post on &lt;a href=&quot;/2025/01/the-role-of-gate-all-around-gaa.html&quot;&gt;gate-all-around transistors and node names&lt;/a&gt; explains.&lt;/p&gt;

&lt;h2 id=&quot;scorecard&quot;&gt;The scorecard&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Test&lt;/th&gt;&lt;th&gt;TSMC&lt;/th&gt;&lt;th&gt;Samsung&lt;/th&gt;&lt;th&gt;Intel Foundry&lt;/th&gt;&lt;th&gt;Rapidus&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Volume at 2nm class&lt;/td&gt;&lt;td&gt;Shown: N2 since Q4 2025&lt;/td&gt;&lt;td&gt;Stated: second-generation 2nm for new mobile products in Q4 2026&lt;/td&gt;&lt;td&gt;Shown, on Intel&#39;s own products: 18A&lt;/td&gt;&lt;td&gt;Stated: target is the second half of fiscal 2027&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Outside customers&lt;/td&gt;&lt;td&gt;Shown in revenue, unnamed on the call&lt;/td&gt;&lt;td&gt;Stated: unnamed hyperscalers and HPC customers&lt;/td&gt;&lt;td&gt;Stated: unnamed, announcements promised within two quarters&lt;/td&gt;&lt;td&gt;Not public&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Design kit&lt;/td&gt;&lt;td&gt;Not public in what we read; implied by production&lt;/td&gt;&lt;td&gt;Not public in what we read&lt;/td&gt;&lt;td&gt;Shown: 14A 0.9 PDK released to select customers&lt;/td&gt;&lt;td&gt;Shown: pre-release PDK to early adopters&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Yield language&lt;/td&gt;&lt;td&gt;&quot;Good&quot;, no number&lt;/td&gt;&lt;td&gt;Stabilisation still a 2027 goal at 2nm&lt;/td&gt;&lt;td&gt;Industry standard, ahead of plan, no number&lt;/td&gt;&lt;td&gt;None published&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Slack in 2027&lt;/td&gt;&lt;td&gt;No: gap still large&lt;/td&gt;&lt;td&gt;No: above 100% below 8nm&lt;/td&gt;&lt;td&gt;Some 18A under-loading described&lt;/td&gt;&lt;td&gt;No volume line yet&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sites outside Taiwan and Korea&lt;/td&gt;&lt;td&gt;Arizona 3nm from Q3 2027, Japan 3nm in 2028&lt;/td&gt;&lt;td&gt;Taylor, Texas: line set-up under way&lt;/td&gt;&lt;td&gt;Oregon and Arizona&lt;/td&gt;&lt;td&gt;Hokkaido, Japan&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Advanced packaging&lt;/td&gt;&lt;td&gt;Shown: 5x reticle in production&lt;/td&gt;&lt;td&gt;Not covered in what we read, beyond HBM base dies&lt;/td&gt;&lt;td&gt;Stated: external traction for EMIB and EMIB-T&lt;/td&gt;&lt;td&gt;Shown: packaging R&amp;amp;D site fully open, prototypes only&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Staying power&lt;/td&gt;&lt;td&gt;Group gross margin guided near 66%&lt;/td&gt;&lt;td&gt;Foundry results not broken out&lt;/td&gt;&lt;td&gt;Foundry lost US$1.85 billion in Q3&lt;/td&gt;&lt;td&gt;¥424.95 billion raised, more needed&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The grades are our reading of the sources below. They are a starting point for a request for quotation, not a ranking.&lt;/p&gt;

&lt;h2 id=&quot;tsmc&quot;&gt;TSMC: the baseline, and the bottleneck&lt;/h2&gt;
&lt;p&gt;On its 15 October 2026 call, TSMC said N2 entered high-volume manufacturing in the fourth quarter of 2025 with good yield, and is ramping in phases at Hsinchu and Kaohsiung. It expects N2 family capacity to more than double in 2027. A14 is due for risk production in 2027 and volume in 2028. In January it said A16 volume production was on track for the second half of 2026. We did not find a fresh A16 date in the October transcript, so confirm that one directly.&lt;/p&gt;
&lt;p&gt;The constraint is supply. C.C. Wei said the gap between demand and supply remains large and would not call whether it widens or narrows in 2027. For most buyers, the question is whether TSMC will have room when you need it.&lt;/p&gt;
&lt;p&gt;TSMC also offers geography without a change of supplier. Its second Arizona fab is due to start 3nm volume in the third quarter of 2027, and its second Japan fab is due to start 3nm volume in 2028. Arizona has been a long project, as our post on &lt;a href=&quot;/2020/05/tsmc-to-build-advanced-semiconductor.html&quot;&gt;TSMC&#39;s original 5nm plan for the state&lt;/a&gt; shows. TSMC expects margin dilution from overseas fabs to widen from close to 2% in 2026 to 3% to 4% in the next few years, which is worth bearing in mind when you discuss regional pricing. Our reading is that a second site reduces site risk but not supplier risk.&lt;/p&gt;

&lt;h2 id=&quot;samsung&quot;&gt;Samsung: orders are rising, and so is the queue&lt;/h2&gt;
&lt;p&gt;Samsung&#39;s third-quarter release of 29 October 2026 credits foundry improvement to HBM base dies, advanced-node sales and continued 2nm order wins, including major hyperscalers. On the call, Foundry executive vice president Sukchae Kang said 2nm project orders should more than double in 2026 over the prior year. New mobile products on the second-generation 2nm process go into mass production in the fourth quarter, and new products for major 2nm customers follow in the second half of 2027.&lt;/p&gt;
&lt;p&gt;Three details matter to a second-source buyer. First, 2nm yield stabilisation is still named as work to pursue in 2027, so ask for your own data. Second, Kang expects every node below 8nm to run above 100% utilisation in 2027, with demand well above capacity. Our reading is that Samsung will not have idle capacity waiting for a second-source customer. Third, Taylor&#39;s Fab 1 has begun clean room operations and equipment installation, with wafers going in for line set-up. No production start date was given in what we read, and the results slide places the start of operations under its 2027 outlook.&lt;/p&gt;
&lt;p&gt;The slide also shows System LSI selling its own flagship SoCs alongside Foundry. Customers that compete with those parts should ask how the two businesses are separated. The deck gives no separate foundry revenue or profit.&lt;/p&gt;

&lt;h2 id=&quot;intel&quot;&gt;Intel Foundry: real silicon, thin outside revenue&lt;/h2&gt;
&lt;p&gt;On its 29 October 2026 call it said Panther Lake has ramped on 18A and Clearwater Forest is shipping for revenue. Its CFO put 18A yields at industry standard levels, ahead of internal projections, and said 18A costs have fallen about 40% since the first quarter. Intel 18A-P is due to launch by year end across internal products, and Lip-Bu Tan said confidence is growing that it will suit external customers.&lt;/p&gt;
&lt;p&gt;Intel has also put dates on 14A. The 0.9 PDK went to select customers in October, a 1.0 PDK is expected by the first quarter of 2027, risk production is planned for 2027 and production for 2028. Tan said a couple of customers should be ready to announce within two quarters, while repeating that Intel will not itself disclose customer details.&lt;/p&gt;
&lt;p&gt;The filing gives the sharper picture. The September-quarter 10-Q shows Intel Foundry revenue of US$6,697 million, of which US$411 million came from external customers. That is about 6.1%, and for the nine months the share is about 4.9% (US$878 million of US$17,883 million). The CFO said the third-quarter increase came mainly from a non-recurring customer programme, so it should not be read as a run rate. The segment&#39;s operating loss was US$1,853 million, narrower than US$2,321 million a year earlier, and the CFO said considerable work remains to reach sustainable profit. Intel also completed a US$23 billion equity offering in the quarter.&lt;/p&gt;
&lt;p&gt;Intel&#39;s March-quarter 10-Q warned of a possible pause or discontinuation of 14A if it could not secure enough committed demand. The opening risk list of the September-quarter filing is worded differently, referring to the pursuit of 14A and to efforts to win design wins and demand commitments from potential significant external customers. We could not read the full risk factor section, so check it yourself before relying on either. An investor is also not the same thing as a wafer customer, which is worth remembering when reading coverage such as our post on &lt;a href=&quot;/2025/09/nvidia-intel-frenemies-at-foundry-how.html&quot;&gt;Nvidia&#39;s stake in Intel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;One line stands out for buyers. The CFO said 18A loading will not be where Intel wants it, the only hint of slack in this list. Tan also said Intel is adding advanced packaging capacity in New Mexico and Malaysia. Our reading is that packaging could be a first step with Intel before any wafer commitment.&lt;/p&gt;

&lt;h2 id=&quot;rapidus&quot;&gt;Rapidus: a watch item with dates&lt;/h2&gt;
&lt;p&gt;Rapidus reports steady progress against its public plan. It started its pilot line in April 2025 and announced 2nm GAA prototypes with electrical results on 18 July 2025, when it promised a PDK to advance customers by the first quarter of 2026. An April 2026 release says a pre-release PDK reached early adopters during fiscal 2025. In October 2026 it set up an ecosystem framework called Rapidus CORE, with 17 design service partners including Cadence, Synopsys and HCLTech.&lt;/p&gt;
&lt;p&gt;Three cautions apply. The target wording varies: some releases say 2027, while the April 2026 release says the second half of fiscal 2027. If that fiscal year runs from April, which is our assumption, it means roughly October 2027 to March 2028, so ask which is meant. Second, none of the releases we read names a customer or a yield. Third, money is still needed. Funding reached ¥424.95 billion after a further ¥150 billion from the Japanese government&#39;s IPA in June 2026, and the CFO said in an October interview that more will be needed for mass production and beyond. Rapidus has also said a wafer price reported in the press does not necessarily reflect the actual selling price.&lt;/p&gt;

&lt;h2 id=&quot;worked-example&quot;&gt;A worked example: insurance or capacity?&lt;/h2&gt;
&lt;p&gt;Second-sourcing is slow. In January 2026 TSMC&#39;s chief executive said a customer needs two to three years to fully use an advanced technology in a design, and another one to two years to ramp after product approval. That is three to five years in total, and it comes from a company with an interest in stressing it. If it is even roughly right, the decision today covers your next product and not your current one.&lt;/p&gt;
&lt;p&gt;Here is a simple way to test the value. &lt;strong&gt;Every input below is illustrative and is not data from any foundry or buyer.&lt;/strong&gt; There is no discounting, and all money is in US$ millions.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Input&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Product revenue per year&lt;/td&gt;&lt;td&gt;400&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross margin&lt;/td&gt;&lt;td&gt;50%, so gross profit is 200 per year&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Extra cost of a port to a second foundry&lt;/td&gt;&lt;td&gt;60&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Share of lost volume the second source can recover&lt;/td&gt;&lt;td&gt;70%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Years of benefit after qualification&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Case 1, insurance.&lt;/strong&gt; Suppose a 10% chance each year of an event that removes 40% of supply for nine months.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Expected loss per year: 200 x 0.10 x 0.40 x 0.75 = 6.0&lt;/li&gt;
&lt;li&gt;Recovered at 70%: 4.2 per year, or 21 over five years&lt;/li&gt;
&lt;li&gt;Net of the port cost: 21 less 60 = minus 39&lt;/li&gt;
&lt;li&gt;Break-even chance per year: 60 / (5 x 200 x 0.40 x 0.75 x 0.70) = about 28.6%&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Case 2, capacity.&lt;/strong&gt; Suppose instead your main foundry can only cover 85% of demand in every year, leaving 15% unmet.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unserved gross profit: 200 x 0.15 = 30 per year&lt;/li&gt;
&lt;li&gt;Recovered at 70%: 21 per year, or 105 over five years&lt;/li&gt;
&lt;li&gt;Net of the port cost: 105 less 60 = plus 45&lt;/li&gt;
&lt;li&gt;Break-even unmet share: 60 / (5 x 200 x 0.70) = about 8.6%&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With these inputs, a full port is poor insurance but a sound way to get volume. Change the inputs and the answer can flip. The model also leaves out price leverage, yield risk on the second node and the engineers you would have to divert. The useful output is the break-even figure.&lt;/p&gt;

&lt;h2 id=&quot;buyer-routes&quot;&gt;Matching the route to the buyer&lt;/h2&gt;
&lt;p&gt;These are our suggestions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Regional-content requirement only.&lt;/strong&gt; Ask your current foundry about its overseas sites first. If the rule is about location and not supplier, this is the smallest change.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Short of wafers on a 2028 or later product.&lt;/strong&gt; Run Samsung and Intel in parallel to the PDK stage, and let their PDK maturity and written capacity offer decide. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc&quot;&gt;SoC lifecycle&lt;/a&gt; on The Semiconductor Hub shows where these decisions fall in a programme.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bottlenecked in packaging, not wafers.&lt;/strong&gt; Treat packaging as a separate second-source decision.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Long horizon, with a small part to spare.&lt;/strong&gt; Rapidus is at most a pilot candidate for now. Take the early design kit if offered, but keep volume products elsewhere until production is confirmed.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;what-to-watch&quot;&gt;What would change the grades&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Intel:&lt;/strong&gt; a named external customer on 18A-P or 14A by about the second quarter of 2027, the 1.0 PDK by the first quarter, and external revenue that holds up without one-off programmes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Samsung:&lt;/strong&gt; a production date for Taylor, and second-half 2027 mass production for major 2nm customers as promised.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TSMC:&lt;/strong&gt; confirmation of A16 volume, the 2027 N2 capacity step and any sign of the supply gap narrowing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rapidus:&lt;/strong&gt; a named customer, a final PDK and a clear statement of how the rest of the funding will be raised.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Put the same points to each foundry in writing: which PDK version you get and when, what capacity is reserved in your name and on what terms, what yield data you may see on a test vehicle, and who else may see your data.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;TSMC, &lt;a href=&quot;https://investor.tsmc.com/english/encrypt/files/encrypt_file/reports/2026-10/eba4fac72873bf546b669bd2b5d973df5c93215d/TSMC%203Q26%20Transcript.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Q3 2026 earnings call&lt;/a&gt;, LSEG edited transcript on TSMC&#39;s investor site, 15 October 2026.&lt;/li&gt;
&lt;li&gt;TSMC, &lt;a href=&quot;https://investor.tsmc.com/english/encrypt/files/encrypt_file/reports/2026-01/51d09df96cd89ac19d65af39032b038dc2896a24/TSMC%204Q25%20Transcript.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Q4 2025 earnings call&lt;/a&gt;, LSEG edited transcript on TSMC&#39;s investor site, 15 January 2026.&lt;/li&gt;
&lt;li&gt;Samsung Electronics, &quot;&lt;a href=&quot;https://news.samsung.com/global/samsung-electronics-announces-third-quarter-2026-results&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Samsung Electronics Announces Third Quarter 2026 Results&lt;/a&gt;&quot;, 29 October 2026, and &quot;&lt;a href=&quot;https://images.samsung.com/is/content/samsung/assets/global/ir/docs/2026_3Q_conference_eng.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;3Q 2026 Earnings Call&lt;/a&gt;&quot; presentation.&lt;/li&gt;
&lt;li&gt;Samsung Electronics, Q3 2026 earnings call, third-party transcripts on Investing.com and StockAnalysis, 29 October 2026.&lt;/li&gt;
&lt;li&gt;Intel, &quot;&lt;a href=&quot;https://www.sec.gov/Archives/edgar/data/50863/000005086326000188/q326earningsrelease.htm&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Intel Reports Third-Quarter 2026 Financial Results&lt;/a&gt;&quot;, 29 October 2026.&lt;/li&gt;
&lt;li&gt;Intel, &lt;a href=&quot;https://www.sec.gov/Archives/edgar/data/50863/000005086326000191/0000050863-26-000191-index.htm&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Form 10-Q for the quarter ended 26 September 2026&lt;/a&gt;, and &lt;a href=&quot;https://www.sec.gov/Archives/edgar/data/50863/000005086326000079/0000050863-26-000079-index.htm&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Form 10-Q for the quarter ended 28 March 2026&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Intel, Q3 2026 earnings call, third-party transcripts on Yahoo Finance and Investing.com, 29 October 2026.&lt;/li&gt;
&lt;li&gt;Rapidus, &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/rapidus-achieves-significant-milestone-at-its-state-of-the-art-foundry-with-prototyping-of-leading-edge-2nm-gaa-transistors/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Rapidus Achieves Significant Milestone at its State-of-the-Art Foundry with Prototyping of Leading-Edge 2nm GAA Transistors&lt;/a&gt;&quot;, 18 July 2025.&lt;/li&gt;
&lt;li&gt;Rapidus, &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/rapidus-secures-267-6-billion-yen-in-funding-from-japan-government-and-private-sector-companies/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Rapidus Secures 267.6 Billion Yen in Funding from Japan Government and Private Sector Companies&lt;/a&gt;&quot;, 27 February 2026.&lt;/li&gt;
&lt;li&gt;Rapidus, &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/nedo-approves-rapidus-fy2026-plan-and-budget-for-2nm-semiconductor-projects/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NEDO Approves Rapidus&#39; FY2026 Plan and Budget for 2nm Semiconductor Projects&lt;/a&gt;&quot; and &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/rapidus-opens-analysis-center-and-rapidus-chiplet-solutions/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Rapidus Opens Analysis Center and Rapidus Chiplet Solutions&lt;/a&gt;&quot;, 11 April 2026.&lt;/li&gt;
&lt;li&gt;Rapidus, &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/20260605-2/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Rapidus Completes 150 Billion Yen Funding Round from Japan Government&lt;/a&gt;&quot;, 5 June 2026; &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/20260709-2/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Statement Regarding Estimated Wafer Price&lt;/a&gt;&quot;, 9 July 2026; &quot;&lt;a href=&quot;https://www.rapidus.inc/en/news_topics/information/20261005-2/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Rapidus Unveils Rapidus CORE&lt;/a&gt;&quot;, 5 October 2026.&lt;/li&gt;
&lt;li&gt;Rapidus, &lt;a href=&quot;https://www.rapidus.inc/en/interview/it0008/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;CFO interview&lt;/a&gt; on the company website, 30 October 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Status statements are the companies&#39; own claims, as published on the dates shown, and we have not verified them independently. The grades are our reading. The worked example uses illustrative numbers. This post is not investment or procurement advice.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/3708393172031510669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/a-second-foundry-in-2026-scoring-tsmc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3708393172031510669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/3708393172031510669'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/a-second-foundry-in-2026-scoring-tsmc.html' title='A Second Foundry in 2026? Scoring TSMC, Samsung, Intel and Rapidus on the Public Record'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxrmKarK994P4c4RChQdyEUkknsWcke1OSWPCwP4u-ZPK8O0zxyd1YAMELFs6U7HK5Dlg4NBz1ocm6nZH_iTgvmyxryYtpxzU_-kWXDBVD8uX_WUF2uIi47Ow4faDj_QAxv0aD7gaMU6b3OBGFwdl61ozqrcfsnITlz_Q1oXqS130H6mXkDrxqqQ/s72-c/t014.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-9065242722321796124</id><published>2026-11-28T17:00:00.000+05:30</published><updated>2026-11-28T17:00:00.115+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Static Timing Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Challenge: In-Order Write Coalescing with a Late Address (FIFO Series, Part 23)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 23, Late-Address Coalescing challenge, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1qJ_VFTn0AcU3VqrNkA2TrTmhPC2Ia6U67eMAXWS5WjkORYZBwqwz4gF0giBrHPywDKl7eExdW2IhNwEF8tJhrmywiQM7Pgb-lZszZPNKllL1DRD0uAjU4b3RDta5_e4NEyjiLapBN32bvaeNb7aiAlDUYlxQwslu7RWUY7aGgmO1xtqW5sYmUA/s1600/fifo-23-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 23, Late-Address Coalescing challenge, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;This part is built on a challenge shared by Rahul Behl of Tenstorrent. In a LinkedIn post about how he interviews RTL and DV engineers, he described three FIFO challenges, and he has published all three as PPA challenges on QuickSilicon, with a synthesis and timing report after every run. This is the third: In-order Write Coalescing, a write buffer that merges a new write into any pending entry for the same address, combining byte enables, while still draining in first-write order, with the address arriving late in the cycle. The analysis below is our own.&lt;/p&gt;
&lt;p&gt;This is Part 23 of the FIFO series. Part 22 built the coalescing buffer with the address available early. Here the logic is the same but the address is not, and the whole design changes shape around one question: what can be done before the address shows up?&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;With a late address, sort every signal by when it can be computed. Push, pop, data and byte enables are early. Only the match and what it selects are late.&lt;/li&gt;
&lt;li&gt;Do not let the ready signal depend on the address. Make it a function of the fill state and the pop alone, and accept the cost of not merging while full.&lt;/li&gt;
&lt;li&gt;Write the tail slot on every accepted push, whether or not the write merges. A free slot can hold garbage, so the late decision only has to move the write pointer.&lt;/li&gt;
&lt;li&gt;Precompute the merged data and byte enables for every entry. The late hit then drives only a write enable.&lt;/li&gt;
&lt;li&gt;The late path shrinks to compare, OR and a select. That is about as short as a match can be.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;The problem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#split&quot;&gt;Sort the logic by arrival time&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;The problem&lt;/h2&gt;
&lt;p&gt;Everything from Part 22 still holds. A write to an address with a pending entry merges into it, newer bytes win, the byte enables OR together, and the merged entry keeps the position of the first write. Writes to new addresses allocate at the tail. The buffer drains in first-write order.&lt;/p&gt;
&lt;p&gt;The new constraint is that the address arrives late in the cycle. That is common in real designs. The address may come out of a translation step, an address generator or a long wire from another block, while the data and byte enables were ready much earlier. In Part 22 the address fed a long chain: compare, OR, ready back to the producer, allocate, write pointer. With only part of a cycle left after the address arrives, that chain does not fit.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;p&gt;The ports match Part 22: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;waddr&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt;, &lt;code&gt;wbe&lt;/code&gt; and &lt;code&gt;wready&lt;/code&gt; on the write side, and &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;raddr&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt;, &lt;code&gt;rbe&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt; on the read side. The difference is in the timing contract. Every input except &lt;code&gt;waddr&lt;/code&gt; is early. &lt;code&gt;wready&lt;/code&gt; is an output the producer needs early, because it decides whether the producer advances. That one fact drives the first decision below.&lt;/p&gt;

&lt;h2 id=&quot;split&quot;&gt;Sort the logic by arrival time&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn two-column chart: early logic that needs no address, such as wready, the tail slot write, merged data per entry, the incremented write pointer and the eligible entries; and late logic driven by the address, which compares, ORs the hits, enables entry writes and selects the write pointer.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTLdaQ6X-LSivqVVhyphenhyphen2lvgJFn5sXmcVOSMYIFCJT4HV-d1-es-cN8yijLGvMzFfHIKZJcaAlzN5C7PNlfCfCezy_8dh89eKoO9735GUY2TUlvU6h_SGaIwYCcRuhbbgB1217qJWeDnKfFtoQFvHxe1BAYv_7wt-yL3PGd-d7e1J9fePArKqBE_pw/s1600/fifo-23-split.jpg&quot; title=&quot;Hand-drawn two-column chart: early logic that needs no address, such as wready, the tail slot write, merged data per entry, the incremented write pointer and the eligible entries; and late logic driven by the address, which compares, ORs the hits, enables entry writes and selects the write pointer.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Go through each piece of Part 22 and ask whether it truly needs the address.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ready.&lt;/strong&gt; In Part 22, &lt;code&gt;wready&lt;/code&gt; was true on a merge even when full. That makes ready depend on the address, and worse, it sends a late signal back to the producer, which may use it to choose its next request. Cut it: &lt;code&gt;wready = !full || do_pop&lt;/code&gt;. The price is that a write which would have merged into a full buffer waits instead. In a buffer that is rarely full the cost is small. Measure it with your traffic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The new entry.&lt;/strong&gt; Whether a write allocates depends on the match. But writing the data does not have to. The slot at the write pointer is free whenever a push is accepted, so write address, data and byte enables into it on every accepted push. If the write merges, the slot is still free and its contents are ignored. Only the write pointer and the slot&#39;s valid bit depend on the late decision.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The merge.&lt;/strong&gt; Merging into entry i means a per-byte mux of new and old data and an OR of byte enables. All of those inputs are early. Compute the merged result for every entry in advance. The late hit for entry i then only enables its register write.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Eligibility.&lt;/strong&gt; Which entries can be merge targets, meaning valid and not the head that is popping this cycle, is also early. AND it into each compare so the late path does not carry it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What is left for the late address is the compare against every stored address, the OR that tells whether anything matched, and the selects those results drive.&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cycle budget: in the naive design the late address goes through compare, OR, ready and the producer and misses the next clock edge; in the split design the early work happens before the address and the late path is only compare, OR and select, which fits.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheut0AAgsZuyKIUx3M3t4QROHJqPJ8-YeZTZ8Nesw7VK_38yCUMbNxlflz-fke3cllt8W2-YFHYCTD1ezcdXK_bfU48YseSiP92eW49K-0YPvYps0Tki4X9MoONv6xuV2qg6ZmsABJhgouIhu78FeANIecRXdcCF92xxpGdc2MO0gcxzXBV4i61A/s1600/fifo-23-budget.jpg&quot; title=&quot;Hand-drawn cycle budget: in the naive design the late address goes through compare, OR, ready and the producer and misses the next clock edge; in the split design the early work happens before the address and the late path is only compare, OR and select, which fits.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The figure shows the effect. The proportions are illustrative. Your library and your address width set the real numbers, and a challenge that reports timing after every run is a good place to find them.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;module coalesce_late_addr #(
  parameter int ADW   = 32,
  parameter int NB    = 8,
  parameter int DEPTH = 8,                 // power of two
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic            clk,
  input  logic            rst_n,
  input  logic            push,
  input  logic [ADW-1:0]  waddr,           // late in the cycle
  input  logic [8*NB-1:0] wdata,
  input  logic [NB-1:0]   wbe,
  output logic            wready,
  input  logic            pop,
  output logic [ADW-1:0]  raddr,
  output logic [8*NB-1:0] rdata,
  output logic [NB-1:0]   rbe,
  output logic            empty
);
  logic [ADW-1:0]   addr  [DEPTH];
  logic [8*NB-1:0]  data  [DEPTH], mdata [DEPTH];
  logic [NB-1:0]    be    [DEPTH], mbe   [DEPTH];
  logic [DEPTH-1:0] valid, elig, hit;
  logic [AW:0]      wptr, rptr;

  // ---- early: nothing here depends on waddr ----
  wire  full     = ((wptr ^ rptr) == {1&#39;b1, {AW{1&#39;b0}}});
  wire  do_pop   = pop &amp;amp;&amp;amp; !empty;
  assign wready  = !full || do_pop;
  wire  do_push  = push &amp;amp;&amp;amp; wready;
  wire [AW:0] wptr_inc = wptr + 1&#39;b1;

  always_comb
    for (int i = 0; i &amp;lt; DEPTH; i++) begin
      elig[i] = valid[i] &amp;amp;&amp;amp; !(do_pop &amp;amp;&amp;amp; i == rptr[AW-1:0]);
      mbe[i]  = be[i] | wbe;
      for (int b = 0; b &amp;lt; NB; b++)
        mdata[i][8*b +: 8] = wbe[b] ? wdata[8*b +: 8] : data[i][8*b +: 8];
    end

  // ---- late: the compare and what it selects ----
  always_comb
    for (int i = 0; i &amp;lt; DEPTH; i++)
      hit[i] = elig[i] &amp;amp;&amp;amp; (addr[i] == waddr);
  wire merge = |hit;                       // one-hot or zero
  wire alloc = do_push &amp;amp;&amp;amp; !merge;

  assign empty = (wptr == rptr);
  assign raddr = addr[rptr[AW-1:0]];
  assign rdata = data[rptr[AW-1:0]];
  assign rbe   = be[rptr[AW-1:0]];

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr  &amp;lt;= &#39;0;
      rptr  &amp;lt;= &#39;0;
      valid &amp;lt;= &#39;0;
    end else begin
      if (do_pop) valid[rptr[AW-1:0]] &amp;lt;= 1&#39;b0;
      if (alloc)  valid[wptr[AW-1:0]] &amp;lt;= 1&#39;b1;
      wptr &amp;lt;= alloc ? wptr_inc : wptr;      // late select of an early value
      if (do_pop) rptr &amp;lt;= rptr + 1&#39;b1;
    end

  always_ff @(posedge clk) begin
    if (do_push) begin                     // tail slot: written whether or not it merges
      addr[wptr[AW-1:0]] &amp;lt;= waddr;
      data[wptr[AW-1:0]] &amp;lt;= wdata;
      be[wptr[AW-1:0]]   &amp;lt;= wbe;
    end
    for (int i = 0; i &amp;lt; DEPTH; i++)
      if (do_push &amp;amp;&amp;amp; hit[i]) begin        // late hit is only a write enable
        data[i] &amp;lt;= mdata[i];
        be[i]   &amp;lt;= mbe[i];
      end
  end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notice that the tail slot write and the merge write can never hit the same slot. The tail slot is only valid when the buffer is full, and then a push is accepted only with a pop, which makes the tail slot the leaving head, and the leaving head is excluded from the match. That is worth an assertion.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Full, no pop, a write that would merge.&lt;/strong&gt; Held by &lt;code&gt;wready&lt;/code&gt;. Correct, but a lost merge. If that matters, see the skid option below.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Full with a pop.&lt;/strong&gt; The tail slot is the leaving head. The tail write overwrites it, which is safe because the head is read this cycle and leaves at the edge. A merge into any other entry still works.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A write to the address of the leaving head.&lt;/strong&gt; Not a merge target, so it allocates, as in Part 22. Memory sees both writes in order.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Garbage in the tail slot.&lt;/strong&gt; After a merge, the tail slot holds the merged write&#39;s address. It is not valid, so it never matches and never drains. The next allocation overwrites it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Back-to-back writes to one address.&lt;/strong&gt; The first allocates. The second, a cycle later, matches it as a normal valid entry. No same-cycle forwarding is needed because there is only one write port.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The late path.&lt;/strong&gt; An ADW-bit equality per entry, an OR across DEPTH, then a 2-to-1 select on the write pointer and the valid bit, and the hit to each entry&#39;s write enable. Compare only the block address bits, above the byte offset.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Drop the valid bits from the late path.&lt;/strong&gt; Derive validity from the pointers instead of storing it. Then the only late state update is the write pointer select.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Area cost of precomputing.&lt;/strong&gt; The merged data is a byte mux per entry, DEPTH times NB times 8 bits. It is exactly the logic that the merge already needed. Precomputing does not add the muxes, it moves them ahead of the late select. The tail slot write costs nothing extra.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Recovering merges when full.&lt;/strong&gt; Add a one-entry skid register. When full, accept the write into it, and in the next cycle, with the address now early, merge it or move it into the buffer when a slot frees. This keeps &lt;code&gt;wready&lt;/code&gt; independent of the address, at the price of one more register and a skid entry that the match must also cover.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;If even the compare does not fit.&lt;/strong&gt; Register the address and compare in the next cycle, treating the registered write as the youngest entry. Latency goes up by a cycle, and the registered write must be checked against the next incoming write.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; The tail slot is written on every push, even merges. That costs one slot&#39;s write energy per merge, usually a fair trade for the timing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The memory-equivalence check from Part 22, with the address-independent ready rule in the reference.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_ready_no_addr: assert property (@(posedge clk) disable iff (!rst_n)
                   wready == (!full || (pop &amp;amp;&amp;amp; !empty)));
a_tail_not_hit:  assert property (@(posedge clk) disable iff (!rst_n)
                   do_push |-&amp;gt; !hit[wptr[AW-1:0]]);
a_onehot_hit:    assert property (@(posedge clk) disable iff (!rst_n)
                   $onehot0(hit));&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: merges at every depth position, full with a pop and a merge, full with a pop and an allocation into the freed head, writes held while full that would have merged, and back-to-back writes to one address.&lt;/li&gt;
&lt;li&gt;A performance counter for writes held while full that would have merged, so the cost of the ready rule is visible in real traffic.&lt;/li&gt;
&lt;li&gt;Static timing: constrain &lt;code&gt;waddr&lt;/code&gt; with a large input delay and confirm that no path from it reaches &lt;code&gt;wready&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL, with the early and late logic kept separate as in the code, ran 480,000 random cycles at depths 2 to 16 with address pools of 2, 5 and 24. It matched a reference buffer every cycle, kept the drained memory image equal to the in-order image at each of about 47,000 empty points, and never saw a merge hit the tail slot.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. The address arrives late. Which signals can you still compute early?&lt;/h3&gt;
&lt;p&gt;A strong answer lists ready, the tail slot write, the merged data and byte enables per entry, the incremented pointer and the eligible-entry mask, and explains why each does not need the address.&lt;/p&gt;
&lt;h3&gt;2. Why not accept a merging write when the buffer is full?&lt;/h3&gt;
&lt;p&gt;A strong answer says that would make ready depend on the late address and feed it back to the producer, and offers the skid register as a way to recover those merges.&lt;/p&gt;
&lt;h3&gt;3. Is it safe to write the tail slot when the write merges?&lt;/h3&gt;
&lt;p&gt;A strong answer says yes, because the slot is free and not valid, and proves it can never be a merge target in the same cycle.&lt;/p&gt;
&lt;h3&gt;4. What is left on the late path, and how do you shorten it further?&lt;/h3&gt;
&lt;p&gt;A strong answer names the compare, the OR and the pointer select, and suggests comparing block address bits only and deriving validity from pointers.&lt;/p&gt;
&lt;h3&gt;5. How do you verify the timing intent, not just the function?&lt;/h3&gt;
&lt;p&gt;A strong answer adds an assertion that ready never depends on the address, constrains the address late in timing analysis, and checks that no path from it reaches ready.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Late addresses are common at the boundary between address generation and the memory pipeline. Processor write buffers and write-combining buffers coalesce stores whose addresses come from translation. DMA engines and accelerators merge writes whose addresses come from an address generator. NoC, PCIe and AXI bridges gather partial writes into full bursts, often with the address on a longer path than the data.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 22 covered the write-coalescing FIFO with an early address, byte-enable merges and the ordering rule.&lt;/p&gt;
&lt;p&gt;Part 24 keeps entries after they leave: the replay FIFO, which holds every entry until it is acknowledged so it can be sent again.&lt;/p&gt;
&lt;p&gt;Want to test your own answer? Try the In-order Write Coalescing challenge on QuickSilicon and see how your design synthesizes and times.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/9065242722321796124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/challenge-in-order-write-coalescing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9065242722321796124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9065242722321796124'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/02/challenge-in-order-write-coalescing.html' title='Challenge: In-Order Write Coalescing with a Late Address (FIFO Series, Part 23)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1qJ_VFTn0AcU3VqrNkA2TrTmhPC2Ia6U67eMAXWS5WjkORYZBwqwz4gF0giBrHPywDKl7eExdW2IhNwEF8tJhrmywiQM7Pgb-lZszZPNKllL1DRD0uAjU4b3RDta5_e4NEyjiLapBN32bvaeNb7aiAlDUYlxQwslu7RWUY7aGgmO1xtqW5sYmUA/s72-c/fifo-23-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-4913844340568771304</id><published>2026-11-28T13:00:00.000+05:30</published><updated>2026-11-28T13:00:00.113+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="Memory"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Write-Coalescing FIFO Design: Merging Writes and Byte Enables in Order (FIFO Series, Part 22)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 22, Write-Coalescing FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg6GjVwlR7y0vA4UKbbqEPLVVBvfn0Coh_nQmi2ltFftcvU40fMQT0L6UEAv0HtLIvVKFvOhSARUPAD3wmqzgeZbB9yVrn56r-e3heOWMn0ftfG_OkuASHilzj8yrWp2N439p_RxcND1rQquCCm69SBs9LP2_SOohcXoo4Q63plGLdtK4UzylYzg/s1600/fifo-22-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 22, Write-Coalescing FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A core or a DMA engine often writes the same cache line or the same word several times in a short burst: a few bytes here, a few bytes there, then a full overwrite. Sending every one of those writes to memory wastes bandwidth and fills the interconnect with small transactions. A write-coalescing FIFO catches them on the way out. When a new write targets an address that already has a pending entry, it merges into that entry instead of taking a new slot, and the byte enables combine. The buffer still drains in order.&lt;/p&gt;
&lt;p&gt;This is Part 22 of the FIFO series. It builds on the associative lookup from Part 21 and covers the merge itself, byte enables, what happens when the buffer is full, the head entry that is leaving, and the ordering rule that decides when merging is legal at all.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A write-coalescing FIFO merges a new write into a pending entry with the same address, overwriting the enabled bytes and ORing the byte enables.&lt;/li&gt;
&lt;li&gt;The merged entry keeps the position of the first write to that address. The queue drains in first-write order.&lt;/li&gt;
&lt;li&gt;A write that merges needs no new slot, so it can be accepted even when the buffer is full.&lt;/li&gt;
&lt;li&gt;Never merge into the head entry in the cycle it pops. Allocate a new entry instead.&lt;/li&gt;
&lt;li&gt;Merging moves a later write earlier than writes to other addresses. That is fine for normal memory and wrong for device registers, so the design needs a way to turn it off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem write coalescing solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#merge&quot;&gt;The merge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#order&quot;&gt;When merging is legal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem write coalescing solves&lt;/h2&gt;
&lt;p&gt;Memory systems move data in fixed-size blocks: a bus beat, a cache line, an ECC word. A partial write that covers only some bytes of a block often costs as much as a full one, and sometimes more, because the far side may need a read-modify-write to update a few bytes under an ECC code. If software writes a structure field by field, a plain FIFO turns that into a string of partial writes to the same block.&lt;/p&gt;
&lt;p&gt;Coalescing turns them back into one. Each pending entry holds an address, a data block and a byte-enable mask. A new write to the same address updates the data in place and adds its bytes to the mask. By the time the entry reaches the head, it may cover the whole block, and it leaves as a single write. Fewer transactions means less bandwidth, less power downstream and fewer read-modify-write cycles.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn block diagram of a write-coalescing FIFO: entries with address, byte enables and data; an incoming write&#39;s address is matched against pending entries other than the popping head, merging on a hit and allocating a new entry at the tail on a miss.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS-TM3gTP8pLL0zB7s3S93MQfLTpK8c_4kvS5mG6D0cHErBkkuTFfVcTPS_EMwwKzMPlKc1cItGEeENLjsz1lSGp0P_hHyXncvzLNqDcQkjfRTqdoACGF2GQEWDG_zLeulyg3i-CCLKoIkYArliG363XRtuFwukCR69Q_P8aAezBrtsWlM2xBfWg/s1600/fifo-22-block.jpg&quot; title=&quot;Hand-drawn block diagram of a write-coalescing FIFO: entries with address, byte enables and data; an incoming write&#39;s address is matched against pending entries other than the popping head, merging on a hit and allocating a new entry at the tail on a miss.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The write side carries &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;waddr&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt; with NB bytes, and &lt;code&gt;wbe&lt;/code&gt;, one enable per byte. It returns &lt;code&gt;wready&lt;/code&gt; instead of &lt;code&gt;full&lt;/code&gt;, because whether a write can be accepted now depends on the write itself: a write that merges fits even when every slot is taken. The read side is &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;empty&lt;/code&gt; and the head entry as &lt;code&gt;raddr&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;rbe&lt;/code&gt;. Bytes whose enable is clear in &lt;code&gt;rbe&lt;/code&gt; are not valid and must not be written downstream.&lt;/p&gt;

&lt;h2 id=&quot;merge&quot;&gt;The merge&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn byte-lane view: a pending entry for address A holds bytes 0 to 3, a new write to A covers bytes 2 to 5, and the merged entry holds the old bytes 0 and 1, the new bytes 2 to 5, and byte enables 0x3F.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMzFOwWF1vB5YN_keMnkHsNk1d-0Vfbd5StEY19jETDTIwEVWog6rWHUTsEdHlRBFWTRWhRMlgus7NqQ8hMvRvoGZd_H4a7JKcnMtny6wYJnMgkByDXpmMVgIFk9DWDqMAGy4xgy4BtP4BvkDZ-Y47ipSTlgAANgyFCyL9qkNECWvIenO8MYe8Iw/s1600/fifo-22-merge.jpg&quot; title=&quot;Hand-drawn byte-lane view: a pending entry for address A holds bytes 0 to 3, a new write to A covers bytes 2 to 5, and the merged entry holds the old bytes 0 and 1, the new bytes 2 to 5, and byte enables 0x3F.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The incoming address is compared with every valid entry, exactly like the lookup in Part 21. On a hit, each byte lane whose new enable is set takes the new byte. Lanes whose new enable is clear keep the old byte. The entry&#39;s enable mask becomes the OR of the old and new masks. Where the two writes overlap, the newer bytes win, which is what memory would hold if the writes had gone out one by one.&lt;/p&gt;
&lt;p&gt;On a miss, the write takes a new slot at the tail, as in a plain FIFO. Bytes with a clear enable in the new slot hold whatever &lt;code&gt;wdata&lt;/code&gt; carried, which does not matter because the mask marks them invalid.&lt;/p&gt;
&lt;p&gt;A useful invariant falls out of this: there is never more than one pending entry per address that can still accept merges. Every write to an address either merges into its one open entry or creates it. That means the match vector is one-hot or zero, and no priority encoder is needed, unlike the lookup in Part 21. The one exception is the popping head, covered below, and it leaves in the same cycle the new entry appears.&lt;/p&gt;

&lt;h2 id=&quot;order&quot;&gt;When merging is legal&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn sequence: writes A1, B and A2 arrive in that order; after merging, the queue holds A1 plus A2 followed by B, so memory sees A2 land before B, which is fine for normal memory but wrong for device registers.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKX3ulalNEiPWsg-QlIjh-16K4hiaTqTC8y8qiFKbEa9QHqvpy6UwPpjviK3FdYmdEF8LxVWD8MgoN2mmSB5qPI-IbeVkL2GD2F02GZ3B9AqORhd5gAznz2BpeIvZoizG6Ajal9aHctF73S8gEXaZbldrTG-b1NzHblr78-Fy0O1MreLBxRsG_QQ/s1600/fifo-22-order.jpg&quot; title=&quot;Hand-drawn sequence: writes A1, B and A2 arrive in that order; after merging, the queue holds A1 plus A2 followed by B, so memory sees A2 land before B, which is fine for normal memory but wrong for device registers.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Merging changes the order other agents can observe. Writes A1, B and A2 arrive in that order. After the merge the queue holds one entry for A, carrying both A1 and A2, followed by B. Memory now sees the A2 bytes before B, even though A2 was written after B.&lt;/p&gt;
&lt;p&gt;For normal cacheable or write-combining memory that is allowed, because the program only relies on the final values once some later synchronization point is reached. It is not allowed when the order is the message. A device register sequence, or a producer that writes data and then a ready flag, breaks if a later write overtakes an earlier one to a different address.&lt;/p&gt;
&lt;p&gt;So a coalescing buffer needs an escape. The usual tools are a per-write attribute that forbids merging, which makes the write allocate its own entry and also closes all older entries to further merges, and a barrier input that closes every pending entry. A closed entry still drains in order but no longer matches. Bus protocols carry memory-type attributes for exactly this reason. Get this wrong and the design passes every data check in the testbench while software sees stale flags.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;p&gt;The core merge without the close mechanism, which adds one bit per entry that clears the match:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;module coalesce_fifo #(
  parameter int ADW   = 32,                // address width
  parameter int NB    = 8,                 // bytes per entry
  parameter int DEPTH = 8,                 // power of two
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic            clk,
  input  logic            rst_n,
  input  logic            push,
  input  logic [ADW-1:0]  waddr,
  input  logic [8*NB-1:0] wdata,
  input  logic [NB-1:0]   wbe,
  output logic            wready,
  input  logic            pop,
  output logic [ADW-1:0]  raddr,
  output logic [8*NB-1:0] rdata,
  output logic [NB-1:0]   rbe,
  output logic            empty
);
  logic [ADW-1:0]   addr [DEPTH];
  logic [8*NB-1:0]  data [DEPTH];
  logic [NB-1:0]    be   [DEPTH];
  logic [DEPTH-1:0] valid, hit;
  logic [AW:0]      wptr, rptr;

  wire full   = ((wptr ^ rptr) == {1&#39;b1, {AW{1&#39;b0}}});
  wire do_pop = pop &amp;amp;&amp;amp; !empty;

  always_comb
    for (int i = 0; i &amp;lt; DEPTH; i++)
      hit[i] = valid[i] &amp;amp;&amp;amp; (addr[i] == waddr)
             &amp;amp;&amp;amp; !(do_pop &amp;amp;&amp;amp; i == rptr[AW-1:0]);   // never merge into a leaving head

  wire merge   = |hit;                           // one-hot or zero
  assign wready = merge || !full || do_pop;
  wire do_push = push &amp;amp;&amp;amp; wready;
  wire alloc   = do_push &amp;amp;&amp;amp; !merge;

  assign empty = (wptr == rptr);
  assign raddr = addr[rptr[AW-1:0]];
  assign rdata = data[rptr[AW-1:0]];
  assign rbe   = be[rptr[AW-1:0]];

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr  &amp;lt;= &#39;0;
      rptr  &amp;lt;= &#39;0;
      valid &amp;lt;= &#39;0;
    end else begin
      if (do_pop) valid[rptr[AW-1:0]] &amp;lt;= 1&#39;b0;
      if (alloc)  valid[wptr[AW-1:0]] &amp;lt;= 1&#39;b1;   // wins on the same slot
      if (alloc)  wptr &amp;lt;= wptr + 1&#39;b1;
      if (do_pop) rptr &amp;lt;= rptr + 1&#39;b1;
    end

  always_ff @(posedge clk) begin
    for (int i = 0; i &amp;lt; DEPTH; i++)
      if (do_push &amp;amp;&amp;amp; hit[i]) begin
        for (int b = 0; b &amp;lt; NB; b++)
          if (wbe[b]) data[i][8*b +: 8] &amp;lt;= wdata[8*b +: 8];
        be[i] &amp;lt;= be[i] | wbe;
      end
    if (alloc) begin
      addr[wptr[AW-1:0]] &amp;lt;= waddr;
      data[wptr[AW-1:0]] &amp;lt;= wdata;
      be[wptr[AW-1:0]]   &amp;lt;= wbe;
    end
  end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The write pointer only moves on an allocation. A merge changes an entry in place and leaves both pointers alone, which is how the merged entry keeps its place in the queue.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Merge when full.&lt;/strong&gt; Accepted, because no slot is needed. A design that drives &lt;code&gt;wready&lt;/code&gt; from &lt;code&gt;full&lt;/code&gt; alone is correct but throws away the main benefit at exactly the moment it matters most, when the buffer is backed up.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write to the address of the popping head.&lt;/strong&gt; The head is leaving this cycle with its current bytes, so a merge would be lost. The match excludes it and the write allocates a new entry, which drains after the old one. Memory sees both, in order.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Merge into the head when it is not popping.&lt;/strong&gt; Allowed. The head&#39;s outputs change for the next cycle, so a consumer that samples the head and pops later must take the bytes present in the cycle it pops.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Overlapping byte enables.&lt;/strong&gt; The newer byte wins, lane by lane.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A write with no enables set.&lt;/strong&gt; Decide whether it is legal. If it is, it either merges as a no-op or allocates an entry that writes nothing, and the second wastes a slot.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The address depends on wready.&lt;/strong&gt; Here &lt;code&gt;wready&lt;/code&gt; depends on the address through the match. If the address arrives late in the cycle, that path is a problem. Part 23 is about exactly this.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The match path.&lt;/strong&gt; ADW-bit compares on every entry, an OR for &lt;code&gt;merge&lt;/code&gt;, then &lt;code&gt;wready&lt;/code&gt; back to the producer and the allocation enable into the write pointer. The comparators use only the block address, the bits above the byte offset, which saves a few bits per compare.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write enables.&lt;/strong&gt; Each entry&#39;s data needs per-byte write enables from &lt;code&gt;hit[i]&lt;/code&gt; and &lt;code&gt;wbe&lt;/code&gt;. Flip-flop storage handles this naturally. SRAM storage needs a byte-write macro, or the merge must become a read-modify-write.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Area.&lt;/strong&gt; The addresses must sit in flops for the compare. Data can sit in a byte-writable SRAM if one write port is enough, but merge and allocate in the same cycle never happen together here, so a single port suffices.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; The benefit is downstream: fewer, fuller transactions. Locally, the compare bank fires on every write, so gate it when &lt;code&gt;push&lt;/code&gt; is low.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference coalescing buffer that applies the same merge rule, checked against the head entry at every cycle.&lt;/li&gt;
&lt;li&gt;A memory-equivalence check, which is the one that really matters: apply every accepted write in arrival order to one memory image, apply every drained entry to another, and compare the two whenever the buffer is empty. Merging must never change the final contents.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_onehot_hit: assert property (@(posedge clk) disable iff (!rst_n)
                $onehot0(hit));
a_merge_full: assert property (@(posedge clk) disable iff (!rst_n)
                push &amp;amp;&amp;amp; merge |-&amp;gt; wready);&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: merge when full, merge into a non-popping head, a write to the popping head&#39;s address, full overlap, no overlap, and enough merges into one entry to fill all its bytes.&lt;/li&gt;
&lt;li&gt;For the ordering rule, a directed test with a data write followed by a flag write marked no-merge, checking the flag never reaches memory before the data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL ran 480,000 random cycles at depths 2 to 16 with address pools of 2, 5 and 24 against a reference buffer, and the drained memory image matched the in-order image at every point where the buffer emptied, more than 40,000 checks in all.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. Why can a write be accepted when the coalescing buffer is full?&lt;/h3&gt;
&lt;p&gt;A strong answer says a merge needs no new slot, so &lt;code&gt;wready&lt;/code&gt; should include the match, and explains that this is when coalescing matters most.&lt;/p&gt;
&lt;h3&gt;2. A write targets the address of the entry popping this cycle. What do you do?&lt;/h3&gt;
&lt;p&gt;A strong answer excludes the leaving head from the match, allocates a new entry, and shows that memory still sees both writes in order.&lt;/p&gt;
&lt;h3&gt;3. When is merging not allowed?&lt;/h3&gt;
&lt;p&gt;A strong answer explains that merging moves a later write ahead of writes to other addresses, which breaks device registers and flag-after-data patterns, and proposes no-merge attributes and barriers that close entries.&lt;/p&gt;
&lt;h3&gt;4. Why does the match vector not need a priority encoder here?&lt;/h3&gt;
&lt;p&gt;A strong answer gives the invariant that each address has at most one open entry, and names the popping head as the only case that could break it, which it does not because the head leaves that cycle.&lt;/p&gt;
&lt;h3&gt;5. How do you prove the buffer never corrupts data?&lt;/h3&gt;
&lt;p&gt;A strong answer describes the memory-equivalence check between in-order application and drained output, on top of a cycle-level scoreboard.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Write coalescing appears in processor write buffers and write-combining buffers, in cache and memory controller front ends that gather partial writes before an ECC update, and in DMA engines that build full bus bursts from small updates. NoC and PCIe or AXI bridges use it to cut the number of small transactions, and accelerators use it when many work items update the same output block.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 21 covered the associative FIFO and how to find the youngest match in a ring.&lt;/p&gt;
&lt;p&gt;Part 23 is the hard version, one of the FIFO interview challenges shared by Rahul Behl: in-order write coalescing when the address arrives late in the cycle.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/4913844340568771304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/write-coalescing-fifo-design-merging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/4913844340568771304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/4913844340568771304'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/write-coalescing-fifo-design-merging.html' title='Write-Coalescing FIFO Design: Merging Writes and Byte Enables in Order (FIFO Series, Part 22)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg6GjVwlR7y0vA4UKbbqEPLVVBvfn0Coh_nQmi2ltFftcvU40fMQT0L6UEAv0HtLIvVKFvOhSARUPAD3wmqzgeZbB9yVrn56r-e3heOWMn0ftfG_OkuASHilzj8yrWp2N439p_RxcND1rQquCCm69SBs9LP2_SOohcXoo4Q63plGLdtK4UzylYzg/s72-c/fifo-22-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-8523697438071104640</id><published>2026-11-28T11:00:00.000+05:30</published><updated>2026-11-28T11:00:00.223+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Design for Debug"/><category scheme="http://www.blogger.com/atom/ns#" term="First Silicon Back"/><category scheme="http://www.blogger.com/atom/ns#" term="SoC Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>First Silicon Back, Part 2: Writing a Bring-Up Plan That Survives Contact With Real Silicon</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Terminal-style bring-up plan outline listing power, clock, debug and boot stages with exit criteria, part counts and a schedule buffer.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi74Tb0XyV5BA9tj-J1PWBSbDFHv53PoRnorRaaE0BbMUPXDWJFjOJWIYffchWMXG2JnZz07KK2H2AuYia8foio04yo4O9xXJgDYf-SqZi7vSGvHEak74Vurw1LSQm8Plbjnes6TYNpBT7zrd9F7D7nQVG6Xbjvvwx6TjtZqXNKNgmVtn5wgAffUQ/s1600/fsb-02-bring-up-plan.jpg&quot; title=&quot;Terminal-style bring-up plan outline listing power, clock, debug and boot stages with exit criteria, part counts and a schedule buffer.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Every bring-up plan looks good on the day it is written. It lists the blocks, the tests and the dates, and it assumes that each step will pass so the next can start. Then the first part goes on the board, draws twice the expected current, and the plan has nothing to say about it. A plan that only describes the happy path stops being used on day one.&lt;/p&gt;
&lt;p&gt;This is Part 2 of First Silicon Back. Yesterday we covered what the team should do while the fab runs. Today: how to write the bring-up plan itself so that it still guides the lab after the first surprise, with stages, entry and exit criteria, part allocation and a triage rule.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Order the plan by dependency: power, then clocks and reset, then debug access, then boot, then blocks, then the full system.&lt;/li&gt;
&lt;li&gt;Give every stage an entry criterion (what must be true to start) and an exit criterion (what you must measure to move on). Both should be checkable.&lt;/li&gt;
&lt;li&gt;Write down what to do when a stage fails, not only what to do when it passes.&lt;/li&gt;
&lt;li&gt;Allocate parts on purpose. Silicon is scarce in the first weeks, and some tests can damage parts.&lt;/li&gt;
&lt;li&gt;Expect failures that are not design bugs: setup, board, test software and bad parts. The plan needs a triage step for each failure.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what-a-plan-is&quot;&gt;What a bring-up plan is for&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#order&quot;&gt;Ordering the stages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#entry-exit&quot;&gt;Entry and exit criteria&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#when-it-fails&quot;&gt;Planning for failure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#parts&quot;&gt;Parts are the scarce resource&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#outline&quot;&gt;An illustrative plan outline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked example: part and time budget&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Plan review checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-a-plan-is&quot;&gt;What a bring-up plan is for&lt;/h2&gt;
&lt;p&gt;A bring-up plan answers three questions in the lab: what do we do next, how do we know it worked, and what do we do if it did not. It is not the full validation plan. It covers the path from a part in a bag to a chip that runs code and can be measured, which in our Hub lifecycle is the first part of the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/bringup-silicon-validation&quot;&gt;Bring-up and Silicon Validation stage&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It helps to remember what makes silicon different from simulation. Mitra, Seshia and Nicolici describe post-silicon validation as four steps: detect a problem, localize it to a small region, find the root cause, then fix or bypass it (&lt;a href=&quot;https://people.eecs.berkeley.edu/~sseshia/pubdir/postSi-dac10.pdf#page=1&quot;&gt;Opportunities&lt;/a&gt;). On silicon, detection is fast and the rest is slow, because you can see so little inside the chip. The Mishra et al. tutorial in IEEE Design and Test makes the same point: you cannot observe or control most internal signals, and missing observability is usually found only when a failure cannot be root-caused (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=7&quot;&gt;Silicon validation challenges&lt;/a&gt;). A good plan is built around that limit.&lt;/p&gt;

&lt;h2 id=&quot;order&quot;&gt;Ordering the stages&lt;/h2&gt;
&lt;p&gt;The order follows what each step depends on. You cannot trust a register read until the debug port works, the debug port needs clocks and reset, and none of it means anything if the supplies are wrong. Vendor bring-up notes for boards built around a finished chip use the same order. Texas Instruments&#39; AM26x board bring-up note, for example, runs power checks first, then boot status, then a check that the device is alive, then the JTAG connection, then loading and running example code (&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRADP6A/GUID-4AA39F35-1975-4883-9A7D-0AF2AC5E21A3&quot;&gt;Introduction&lt;/a&gt;). First silicon of your own chip adds more unknowns, but the dependency order is the same.&lt;/p&gt;
&lt;p&gt;A typical order for a first SoC bring-up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Power and current.&lt;/strong&gt; Each rail comes up in the right order and draws a sane current.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clocks and reset.&lt;/strong&gt; The reference clock is present, any PLL locks, and reset releases cleanly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Debug access.&lt;/strong&gt; The JTAG or other debug port reads an ID and known registers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Boot.&lt;/strong&gt; The boot ROM runs and a first small program loads.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Blocks one at a time.&lt;/strong&gt; Memories, interfaces and accelerators each get a short directed test.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;System level.&lt;/strong&gt; Software that uses several blocks together, then longer stress runs.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;entry-exit&quot;&gt;Entry and exit criteria&lt;/h2&gt;
&lt;p&gt;Each stage gets two short lists. The entry criterion says what must already be true before you start, so that failures in this stage point at this stage. The exit criterion says what you must measure and record before moving on.&lt;/p&gt;
&lt;p&gt;Write them as checks with numbers. &quot;Power is good&quot; is not an exit criterion. &quot;All rails within 3 percent of nominal at the chip, idle current in the expected range on three parts&quot; is one. Some numbers will be wrong. A wrong number that is written down gets corrected; a missing one gets argued about.&lt;/p&gt;

&lt;h2 id=&quot;when-it-fails&quot;&gt;Planning for failure&lt;/h2&gt;
&lt;p&gt;Most of the plan&#39;s value is in its failure branches. For each stage, write the first three things to check when it fails, and who gets called.&lt;/p&gt;
&lt;p&gt;Not every failure is a design bug. The POWER8 bring-up described in the IEEE Design and Test tutorial lists the possible origins of a failing test as a manufacturing issue, a wrong machine setup, an electrical bug, a functional bug or a bug in the test software, and the first debug step was to rerun the test in similar but not identical settings, such as on another core or another chip (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=21&quot;&gt;Debug&lt;/a&gt;). Build that into the plan as a triage rule: before anyone opens a waveform, repeat the failure on a second part and a second board.&lt;/p&gt;
&lt;p&gt;Some failures will not repeat every time. The same tutorial notes that on silicon, a failure that shows up once in a few runs is still treated as reproducible, because runs are so fast (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=8&quot;&gt;Silicon validation challenges&lt;/a&gt;). Record the failure rate, not just pass or fail.&lt;/p&gt;

&lt;h2 id=&quot;parts&quot;&gt;Parts are the scarce resource&lt;/h2&gt;
&lt;p&gt;In the first weeks there may be only a handful of packaged parts. Limit testing can damage a part, and long software runs tie one up for days. Decide how many parts each activity gets and keep a few in reserve.&lt;/p&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The plan is a schedule.&lt;/strong&gt; It has dates but no criteria, so nobody knows when a stage is really done.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No failure branches.&lt;/strong&gt; The first surprise sends everyone to their favorite theory.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Blocks tested before the basics are trusted.&lt;/strong&gt; A memory test fails because the clock was wrong.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One part, one board.&lt;/strong&gt; Every result is a mix of chip, board and setup.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a sample plan outline, a worked part and time budget, the red flags and a review checklist. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;outline&quot;&gt;An illustrative plan outline&lt;/h3&gt;
&lt;p&gt;The table below is an &lt;strong&gt;illustrative&lt;/strong&gt; outline for a small SoC with one core rail, one I/O rail, a PLL and a JTAG port. Every value is invented for this post; real limits come from your own power estimate and specification.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Stage&lt;/th&gt;&lt;th&gt;Entry criteria&lt;/th&gt;&lt;th&gt;Exit criteria&lt;/th&gt;&lt;th&gt;Parts&lt;/th&gt;&lt;th&gt;If it fails, check first&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;S1 Power&lt;/td&gt;&lt;td&gt;Board powered without chip, rails measured; supplies current-limited&lt;/td&gt;&lt;td&gt;Core 0.75 V and I/O 1.8 V within 3% at the chip on 3 parts; idle current 80 to 160 mA on core&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;Short or wrong orientation; sequencing; a second part on a second board&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;S2 Clock and reset&lt;/td&gt;&lt;td&gt;S1 exit met&lt;/td&gt;&lt;td&gt;Reference clock measured at the pin; PLL lock flag set within 1 ms on 3 of 3 parts; reset releases&lt;/td&gt;&lt;td&gt;3 (same)&lt;/td&gt;&lt;td&gt;Reference clock level and frequency; PLL configuration straps; reset timing&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;S3 Debug access&lt;/td&gt;&lt;td&gt;S2 exit met&lt;/td&gt;&lt;td&gt;JTAG ID code reads correctly 100 of 100 times at 1 MHz TCK; known register read and write&lt;/td&gt;&lt;td&gt;3 (same)&lt;/td&gt;&lt;td&gt;TCK speed; probe voltage reference; TRST and reset wiring&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;S4 Boot&lt;/td&gt;&lt;td&gt;S3 exit met&lt;/td&gt;&lt;td&gt;Boot ROM reaches the expected status; 1 KB test program loads over JTAG and prints over UART&lt;/td&gt;&lt;td&gt;3 (same)&lt;/td&gt;&lt;td&gt;Boot mode straps; memory map version in scripts; UART settings&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;S5 Blocks&lt;/td&gt;&lt;td&gt;S4 exit met on at least 2 parts&lt;/td&gt;&lt;td&gt;Each block&#39;s directed test passes at nominal voltage on 3 parts; results logged with part ID and conditions&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Repeat on another part; compare with simulation of the same test&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;S6 System&lt;/td&gt;&lt;td&gt;S5 exit met for blocks in use&lt;/td&gt;&lt;td&gt;OS or main firmware boots 10 of 10 times; 24-hour stress run with no failure on 2 parts&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Failure rate per run; temperature; supply noise&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Reserve&lt;/td&gt;&lt;td colspan=&quot;4&quot;&gt;2 parts never used for limit testing until S6 exit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked example: part and time budget&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Part count.&lt;/strong&gt; The outline uses 3 parts through S1 to S4, 5 for S5 (the 3 plus 2 more), 2 for S6 (taken from those 5) and 2 in reserve. Total needed in week one: 5 + 2 = 7 parts. If the first shipment has 10 parts, only 3 remain for the test and characterization teams, which tells you early whether to ask for more.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Debug time.&lt;/strong&gt; Plans often give each stage a fixed number of days with no room for bugs. Public data says to budget more. Mitra, Seshia and Nicolici report that a functional bug typically takes hours to days to localize, while electrical bugs take days to weeks (&lt;a href=&quot;https://people.eecs.berkeley.edu/~sseshia/pubdir/postSi-dac10.pdf#page=3&quot;&gt;Challenges&lt;/a&gt;). The POWER8 data in the IEEE Design and Test tutorial gives an average of 10.07 days from first hit to root cause for medium-severity bugs, with 90 percent of them root-caused within 20 days (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=22&quot;&gt;Debug&lt;/a&gt;). Your numbers will differ, but a single hard bug can take two to three weeks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A simple buffer rule (illustrative).&lt;/strong&gt; Suppose the happy-path plan for S1 to S6 is 15 working days. If the team expects 2 bugs that block progress in that window and budgets 10 days each, but can work on other stages in parallel half of the time, the added delay is 2 x 10 x 0.5 = 10 days. The honest plan is 25 working days, not 15. Present both numbers; the gap is the risk.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Repeat counts.&lt;/strong&gt; Why 100 of 100 JTAG reads, and not 1? A connection that fails 1 time in 50 will pass a single read 98 percent of the time, but will fail at least once in 100 reads with a probability of 1 minus 0.98 to the power 100, which is about 87 percent. Repeating cheap checks catches marginal setups before they confuse later stages.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see in the plan&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Dates but no exit criteria&lt;/td&gt;&lt;td&gt;Stages end when people get tired, not when facts are known&lt;/td&gt;&lt;td&gt;What do we measure to leave this stage?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Exit criteria with no numbers&lt;/td&gt;&lt;td&gt;&quot;Works&quot; means different things to different people&lt;/td&gt;&lt;td&gt;Which value, on how many parts, at which conditions?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No failure branch per stage&lt;/td&gt;&lt;td&gt;Day one turns into a debate&lt;/td&gt;&lt;td&gt;What are the first three checks if this fails?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No part allocation or reserve&lt;/td&gt;&lt;td&gt;Limit tests can use up the only good parts&lt;/td&gt;&lt;td&gt;How many parts per activity, and how many held back?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Bug time not in the schedule&lt;/td&gt;&lt;td&gt;The first hard bug moves every later date&lt;/td&gt;&lt;td&gt;What buffer is planned, and on what basis?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Results not tied to part and conditions&lt;/td&gt;&lt;td&gt;Later analysis cannot separate chip, board and setup&lt;/td&gt;&lt;td&gt;Where are part ID, board ID, voltage and temperature logged?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Plan review checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Stages ordered by dependency: power, clocks and reset, debug, boot, blocks, system.&lt;/li&gt;
&lt;li&gt;Each stage has entry and exit criteria with numbers, part counts and conditions.&lt;/li&gt;
&lt;li&gt;Each stage has a failure branch: first checks, owner and escalation contact.&lt;/li&gt;
&lt;li&gt;Triage rule written: repeat on a second part and a second board before calling a design bug.&lt;/li&gt;
&lt;li&gt;Part allocation per activity, with a reserve that limit testing cannot touch.&lt;/li&gt;
&lt;li&gt;Schedule shows a happy-path date and a date with a bug buffer, with the basis stated.&lt;/li&gt;
&lt;li&gt;Logging records part ID, board ID, voltage, temperature, software version and result for every run.&lt;/li&gt;
&lt;li&gt;Plan reviewed by design, verification, test, board and software owners.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;further-reading&quot;&gt;Further reading&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRADP6A/GUID-CE00FF09-343A-4A44-A24E-EFA345F980DB&quot;&gt;TI AM26x bring-up application note, section 2: Power Net Checks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ti.com/document-viewer/lit/html/SPRADP6A/GUID-E9BB974F-B064-4AB7-9CDC-834F7115FE44&quot;&gt;TI AM26x bring-up application note, section 5: Verify JTAG Connection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/gates/silicon-validated&quot;&gt;The Semiconductor Hub: SoC lifecycle, Silicon Validated gate&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; The Bring-Up Board and What to Ask the Board Team for Before First Silicon.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/8523697438071104640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-2-writing-bring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8523697438071104640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8523697438071104640'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-2-writing-bring.html' title='First Silicon Back, Part 2: Writing a Bring-Up Plan That Survives Contact With Real Silicon'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi74Tb0XyV5BA9tj-J1PWBSbDFHv53PoRnorRaaE0BbMUPXDWJFjOJWIYffchWMXG2JnZz07KK2H2AuYia8foio04yo4O9xXJgDYf-SqZi7vSGvHEak74Vurw1LSQm8Plbjnes6TYNpBT7zrd9F7D7nQVG6Xbjvvwx6TjtZqXNKNgmVtn5wgAffUQ/s72-c/fsb-02-bring-up-plan.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-309640821563659344</id><published>2026-11-28T09:00:00.000+05:30</published><updated>2026-11-28T09:00:00.237+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EDA Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Physical Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Reading Real Reports"/><category scheme="http://www.blogger.com/atom/ns#" term="Static Timing Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Reading Real Reports, Part 4: Clock Skew, Latency and Uncertainty in a Timing Report</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;OpenSTA-style timing report excerpt showing clock source latency, capture clock arrival, clock uncertainty, CRPR, a setup skew summary and the resulting slack.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEije6VI2UStTLDraHxCM13TR4hzW67iwxkqV3MKWnpHfUqn6c4sAqoKDvnvVqvh9KFr3tymCI7exUPZNu5whW7qZAHiRCDoBc8KMkJ-MpawZviWTStEE_1An570sjrE5AhzNyOkZsObc8OWrSbGiX7wgCmcRNTr2tvmZ_lgB3nUtQctLRzf_5wkFw/s1600/rr-04-clock-skew-latency-uncertainty.jpg&quot; title=&quot;OpenSTA-style timing report excerpt showing clock source latency, capture clock arrival, clock uncertainty, CRPR, a setup skew summary and the resulting slack.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Most timing reviews spend their time on the data path: which gate is slow, which net is long. Yet three numbers on the clock side often decide the slack before a single data gate is counted. They are clock latency, clock skew and clock uncertainty, and each one shows up in the report in a slightly different place and with a sign that is easy to misread.&lt;/p&gt;
&lt;p&gt;This is Part 4 of Reading Real Reports. Part 3 showed that the same skew helps setup and hurts hold. Today we read the clock lines on their own: where latency comes from, how the timer prints skew, what uncertainty is standing in for, and how the three add up to the slack you see at the bottom.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Latency is how late the clock reaches a flop. Skew is the difference in latency between the launching flop and the capturing flop. Uncertainty is margin you add on purpose.&lt;/li&gt;
&lt;li&gt;Before clock tree synthesis, latency is an estimate you typed into the SDC. After it, latency should come from the real buffers and wires. Check which one the report is using.&lt;/li&gt;
&lt;li&gt;OpenSTA prints skew as launch minus capture, with uncertainty added. A positive setup skew number is time taken away from setup slack.&lt;/li&gt;
&lt;li&gt;The spread printed by a latency report covers every flop on the clock. Skew only matters between flops that talk to each other.&lt;/li&gt;
&lt;li&gt;Uncertainty set for an ideal clock should usually shrink once the clock is propagated. A pre-CTS margin left in a sign-off run hides real slack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#three-numbers&quot;&gt;Three numbers on the clock side&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#when-you-see-it&quot;&gt;When you see them&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#senior-checks&quot;&gt;What a senior checks first&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sample&quot;&gt;The illustrative sample&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#walk-through&quot;&gt;Line-by-line walk-through&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked arithmetic check&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Sign-off checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;three-numbers&quot;&gt;Three numbers on the clock side&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Latency&lt;/strong&gt; is the time from the clock&#39;s defined edge to its arrival at a flop&#39;s clock pin. OpenSTA splits it in two. &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_clock_latency&quot;&gt;set_clock_latency&lt;/a&gt; with &lt;code&gt;-source&lt;/code&gt; describes insertion delay outside the design, and without it describes the expected delay of the on-chip clock tree while clocks are still ideal. Once the tree is built, &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_propagated_clock&quot;&gt;set_propagated_clock&lt;/a&gt; switches the clock from an ideal network with no delay to one that uses calculated gate and wire delays.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Skew&lt;/strong&gt; is the difference in arrival between two flops. &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_clock_skew&quot;&gt;report_clock_skew&lt;/a&gt; reports the largest such difference between source and target registers that have a path between them. That last condition matters: two flops at opposite corners of the die with no path between them have no skew worth discussing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Uncertainty&lt;/strong&gt; is margin. &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_clock_uncertainty&quot;&gt;set_clock_uncertainty&lt;/a&gt; describes uncertainty or jitter in a clock, and can be set separately for setup and hold. Before the clock tree exists, teams usually also fold expected skew into it. The UC Santa Cruz constraints tutorial notes that once propagated clocks are turned on, uncertainty is usually set to zero or lowered (&lt;a href=&quot;https://vlsida.github.io/chip-tutorials/sta-constraints.html#ideal-vs-propagated-clocks&quot;&gt;Ideal vs propagated clocks&lt;/a&gt;).&lt;/p&gt;

&lt;h2 id=&quot;when-you-see-it&quot;&gt;When you see them&lt;/h2&gt;
&lt;p&gt;All three appear in every path report from &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_checks&quot;&gt;report_checks&lt;/a&gt;. The default format folds the clock tree into a single &lt;code&gt;clock network delay&lt;/code&gt; line. The &lt;code&gt;full_clock&lt;/code&gt; and &lt;code&gt;full_clock_expanded&lt;/code&gt; formats print the source and target clock paths buffer by buffer (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-report_checks-format&quot;&gt;-format&lt;/a&gt;), which is what you want when skew is the question. The clock-only summaries are &lt;code&gt;report_clock_skew&lt;/code&gt; and &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_clock_latency&quot;&gt;report_clock_latency&lt;/a&gt;. The OpenROAD-flow-scripts tutorial shows skew reports written to the CTS log, before and after repair (&lt;a href=&quot;https://openroad-flow-scripts.readthedocs.io/en/latest/tutorials/FlowTutorial.html#reporting-clock-skews&quot;&gt;Reporting Clock Skews&lt;/a&gt;).&lt;/p&gt;

&lt;h2 id=&quot;senior-checks&quot;&gt;What a senior checks first&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Ideal or propagated.&lt;/strong&gt; The default path format says &lt;code&gt;clock network delay (ideal)&lt;/code&gt; or &lt;code&gt;(propagated)&lt;/code&gt;. After CTS, anything ideal is a question.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Source latency.&lt;/strong&gt; Is the &lt;code&gt;clock source latency&lt;/code&gt; line a number someone agreed with the clock owner, or a leftover?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Launch and capture arrival.&lt;/strong&gt; Find the clock pin of each flop in a &lt;code&gt;full_clock&lt;/code&gt; report and subtract. That is the skew on this path, not the design-wide number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uncertainty for this stage.&lt;/strong&gt; Compare the &lt;code&gt;clock uncertainty&lt;/code&gt; line with the plan for the current stage. Pre-CTS and sign-off values should differ.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pessimism credit.&lt;/strong&gt; A &lt;code&gt;clock reconvergence pessimism&lt;/code&gt; line means the launch and capture paths share some of the tree. Its size tells you how much they share.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reading the latency spread as skew.&lt;/strong&gt; &lt;code&gt;report_clock_latency&lt;/code&gt; prints the slowest and fastest arrival on the clock. Those two flops may never exchange data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Getting the sign backwards.&lt;/strong&gt; Textbooks often define skew as capture minus launch. OpenSTA&#39;s skew report computes launch minus capture. Know which convention a number uses before you call it good or bad.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A stray latency line.&lt;/strong&gt; The OpenSTA reference states that &lt;code&gt;set_clock_latency&lt;/code&gt; removes the propagated property from the clocks and pins it names. A pre-CTS estimate left in a later SDC can turn a built tree back into an ideal one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Counting jitter twice.&lt;/strong&gt; If the clock source is modeled with source latency and the uncertainty also includes the same effect, the margin is spent twice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a full sample with the clock paths expanded, two clock summary reports, the arithmetic that ties them together, and the checklists. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;sample&quot;&gt;The illustrative sample&lt;/h3&gt;
&lt;p&gt;The output below is an &lt;strong&gt;illustrative sample in the style of OpenSTA/OpenROAD output&lt;/strong&gt;, written for this post. Instance names, cells, the corner and every number are invented. The path report uses &lt;code&gt;-format full_clock&lt;/code&gt;. The layout of the two summary reports follows the current OpenSTA source files &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ClkSkew.cc&quot;&gt;ClkSkew.cc&lt;/a&gt; and &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ClkLatency.cc&quot;&gt;ClkLatency.cc&lt;/a&gt;. Units are nanoseconds; the period is 2.00 ns.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openroad&amp;gt; report_checks -path_delay max -format full_clock
Startpoint: u_rx/rd_ptr_reg_3_ (rising edge-triggered flip-flop clocked by sys_clk)
Endpoint: u_rx/crc_reg_12_ (rising edge-triggered flip-flop clocked by sys_clk)
Path Group: sys_clk
Path Type: max
Corner: ss_0p72v_125c

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock sys_clk (rise edge)
   0.30    0.30   clock source latency
   0.00    0.30 ^ sys_clk (in)
   0.11    0.41 ^ cts/clkbuf_0_sys_clk/Z (CLKBUF_X3)
   0.14    0.55 ^ cts/clkbuf_1_0_sys_clk/Z (CLKBUF_X3)
   0.12    0.67 ^ cts/clkbuf_2_1_sys_clk/Z (CLKBUF_X2)
   0.02    0.69 ^ u_rx/rd_ptr_reg_3_/CK (DFF_X1)
   0.21    0.90 ^ u_rx/rd_ptr_reg_3_/Q (DFF_X1)
   0.31    1.21 v u_rx/U210/ZN (NAND2_X1)
   0.42    1.63 v u_rx/U233/Z (XOR2_X1)
   0.39    2.02 ^ u_rx/U240/Z (XOR2_X1)
   0.34    2.36 v u_rx/U251/ZN (AOI21_X1)
   0.03    2.39 v u_rx/crc_reg_12_/D (DFF_X1)
           2.39   data arrival time

   2.00    2.00   clock sys_clk (rise edge)
   0.30    2.30   clock source latency
   0.00    2.30 ^ sys_clk (in)
   0.09    2.39 ^ cts/clkbuf_0_sys_clk/Z (CLKBUF_X3)
   0.13    2.52 ^ cts/clkbuf_1_1_sys_clk/Z (CLKBUF_X3)
   0.09    2.61 ^ cts/clkbuf_2_2_sys_clk/Z (CLKBUF_X2)
   0.02    2.63 ^ u_rx/crc_reg_12_/CK (DFF_X1)
  -0.10    2.53   clock uncertainty
   0.02    2.55   clock reconvergence pessimism
  -0.06    2.49   library setup time
           2.49   data required time
---------------------------------------------------------
           2.49   data required time
          -2.39   data arrival time
---------------------------------------------------------
           0.10   slack (MET)

openroad&amp;gt; report_clock_skew -setup
Clock sys_clk
   0.69 source latency u_rx/rd_ptr_reg_3_/CK ^
  -0.63 target latency u_rx/crc_reg_12_/CK ^
   0.10 clock uncertainty
  -0.02 CRPR
--------------
   0.14 setup skew

openroad&amp;gt; report_clock_latency
Clock sys_clk
rise -&amp;gt; rise
    min     max
   0.30    0.30 source latency
   0.29         network latency u_dbg/trace_reg_0_/CK
           0.46 network latency u_rx/fifo_reg_7__2_/CK
---------------
   0.59    0.76 latency
           0.17 skew&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;walk-through&quot;&gt;Line-by-line walk-through&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Clock source latency.&lt;/strong&gt; 0.30 ns on both edges: insertion delay outside the block. It cancels out of skew, but still matters for I/O paths.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Launch clock path.&lt;/strong&gt; Three clock buffers bring the clock to &lt;code&gt;rd_ptr_reg_3_/CK&lt;/code&gt; at 0.69 ns. The default format folds this into one &lt;code&gt;clock network delay&lt;/code&gt; line and hides the buffer names.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Capture clock path.&lt;/strong&gt; The capture flop&#39;s clock arrives at 2.63 ns, which is 0.63 ns after its edge. The first buffer, &lt;code&gt;clkbuf_0_sys_clk&lt;/code&gt;, is shared with the launch path, but it shows 0.11 ns on the launch side and 0.09 ns on the capture side. The OpenSTA variable reference explains why: for a setup check the maximum delays are used for the data path and the minimum delays for the clock path (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Variables/#sta_crpr_enabled&quot;&gt;sta_crpr_enabled&lt;/a&gt;). In this sample the min and max come from on-chip variation derates, which &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_timing_derate&quot;&gt;set_timing_derate&lt;/a&gt; sets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clock uncertainty.&lt;/strong&gt; Minus 0.10 ns, pulling the required time earlier. With a propagated clock it should cover jitter and margin, not skew, which is now in the lines above.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clock reconvergence pessimism.&lt;/strong&gt; Plus 0.02 ns. One buffer cannot be fast and slow at the same moment, so the timer gives back the difference on the shared part: 0.11 - 0.09 = 0.02 ns. The same variable page names this Common Reconvergent Pessimism Removal and says it is on by default.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The skew report.&lt;/strong&gt; &lt;code&gt;report_clock_skew&lt;/code&gt; prints the source latency positive and the target latency negative, then adds uncertainty and subtracts the CRPR credit. Per &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ClkSkew.cc&quot;&gt;ClkSkew.cc&lt;/a&gt;, skew is source latency plus uncertainty minus target latency minus CRPR. A positive setup skew is time lost. The OpenROAD-flow-scripts tutorial shows an older column layout of the same report, where a 5.92 ns latency on one flop and 1.41 ns on the other give a skew of 4.51 ns, launch minus capture (&lt;a href=&quot;https://openroad-flow-scripts.readthedocs.io/en/latest/tutorials/FlowTutorial.html#reporting-clock-skews&quot;&gt;Reporting Clock Skews&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The latency report.&lt;/strong&gt; &lt;code&gt;report_clock_latency&lt;/code&gt; lists the earliest and latest arrival anywhere on &lt;code&gt;sys_clk&lt;/code&gt;, here a debug flop and a FIFO flop. Per &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/search/ClkLatency.cc&quot;&gt;ClkLatency.cc&lt;/a&gt;, that skew is simply max latency minus min latency, with no check that a path exists between the two.&lt;/p&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked arithmetic check&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Path report, line by line.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;launch clock at CK  = 0.00 + 0.30 + 0.11 + 0.14 + 0.12 + 0.02 = 0.69
arrival             = 0.69 + 0.21 + 0.31 + 0.42 + 0.39 + 0.34 + 0.03 = 2.39
capture clock at CK = 2.00 + 0.30 + 0.09 + 0.13 + 0.09 + 0.02 = 2.63
required            = 2.63 - 0.10 + 0.02 - 0.06 = 2.49
slack               = 2.49 - 2.39 = 0.10  (MET)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Skew report, checked against the path.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;setup skew = 0.69 + 0.10 - 0.63 - 0.02 = 0.14&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now rebuild the slack from the period, the data delay after the clock pin, the setup time and that skew number:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;data delay after CK = 2.39 - 0.69 = 1.70
slack = period - skew - data delay - setup
      = 2.00 - 0.14 - 1.70 - 0.06 = 0.10&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The two reports agree. The 0.14 ns setup skew breaks down into 0.06 ns of real imbalance (the capture clock arrives 0.06 ns earlier than the launch clock), plus 0.10 ns of uncertainty, less the 0.02 ns CRPR credit. Only the 0.06 ns would move if CTS rebalanced these two flops.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What a stale margin would cost.&lt;/strong&gt; Leave a pre-CTS uncertainty of 0.25 ns in place and required time falls by 0.15 ns: slack goes from +0.10 to -0.05 ns, and a healthy endpoint joins the fix list.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Spread versus skew.&lt;/strong&gt; The latency spread is 0.17 ns; the related pair above differs by 0.06 ns. Quoting 0.17 ns as &quot;the skew&quot; nearly triples the real penalty.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;code&gt;clock network delay (ideal)&lt;/code&gt; after CTS&lt;/td&gt;&lt;td&gt;Real tree delays are not used&lt;/td&gt;&lt;td&gt;Is &lt;code&gt;set_propagated_clock&lt;/code&gt; applied, and does a later &lt;code&gt;set_clock_latency&lt;/code&gt; undo it?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Same uncertainty before and after CTS&lt;/td&gt;&lt;td&gt;Skew may be counted twice&lt;/td&gt;&lt;td&gt;What does the sign-off uncertainty cover, line by line?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Large CRPR credit on many paths&lt;/td&gt;&lt;td&gt;Launch and capture share a long tree section&lt;/td&gt;&lt;td&gt;Is CRPR enabled the same way in every tool you compare?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Positive setup skew on the worst paths&lt;/td&gt;&lt;td&gt;Capture clock arrives early, taking setup time&lt;/td&gt;&lt;td&gt;Can CTS delay the capture flop instead of fixing logic?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Latency spread quoted as skew&lt;/td&gt;&lt;td&gt;It includes flops with no paths between them&lt;/td&gt;&lt;td&gt;What does &lt;code&gt;report_clock_skew&lt;/code&gt; say for related flops?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Source latency with no owner&lt;/td&gt;&lt;td&gt;Interface timing depends on it&lt;/td&gt;&lt;td&gt;Who agreed this number, and for which corner?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Sign-off checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Every clock propagated in sign-off reports, confirmed from the path report text.&lt;/li&gt;
&lt;li&gt;Source latency values listed with their owner and corner.&lt;/li&gt;
&lt;li&gt;Uncertainty values for setup and hold listed per clock, with what each one covers.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;report_clock_skew -setup&lt;/code&gt; and &lt;code&gt;-hold&lt;/code&gt; saved for every clock at every corner.&lt;/li&gt;
&lt;li&gt;Skew sign convention written in the review notes next to the numbers.&lt;/li&gt;
&lt;li&gt;The worst path&#39;s slack rebuilt by hand from period, skew, data delay and setup time.&lt;/li&gt;
&lt;li&gt;CRPR setting (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Variables/#sta_crpr_mode&quot;&gt;sta_crpr_mode&lt;/a&gt;) recorded if results are compared with another timer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; The Violators Summary and How to Triage Before You Fix.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/309640821563659344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-4-clock-skew.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/309640821563659344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/309640821563659344'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-4-clock-skew.html' title='Reading Real Reports, Part 4: Clock Skew, Latency and Uncertainty in a Timing Report'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEije6VI2UStTLDraHxCM13TR4hzW67iwxkqV3MKWnpHfUqn6c4sAqoKDvnvVqvh9KFr3tymCI7exUPZNu5whW7qZAHiRCDoBc8KMkJ-MpawZviWTStEE_1An570sjrE5AhzNyOkZsObc8OWrSbGiX7wgCmcRNTr2tvmZ_lgB3nUtQctLRzf_5wkFw/s72-c/rr-04-clock-skew-latency-uncertainty.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-2129229309392684878</id><published>2026-11-28T06:06:00.000+05:30</published><updated>2026-11-28T06:06:00.244+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="Embedded Systems"/><category scheme="http://www.blogger.com/atom/ns#" term="Processors"/><category scheme="http://www.blogger.com/atom/ns#" term="RISC-V"/><title type='text'>What RVA23 Settles for RISC-V Software, and What It Leaves Open</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;Abstract illustration of a level foundation carrying software layers, with scaffolding where work is unfinished.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo54xMfpqDbXzAvBcO1tnxgowRVopT6LKz70n9XMqcmg4O0DDh6SxSDiWG1I6hqot6kYy2_dkij1SONXXKpHR10xWWLyHPkw1dN2ipNgioEhClLxGha9Tn3o0TCrD_EZDZIbb6cylkods6kVsrG-oOB0h-KZljt3lI4c_4Ghh1bLRRsc8Mcf7MFA/s1600/rva23-software-floor.jpg&quot; title=&quot;Abstract illustration of a level foundation carrying software layers, with scaffolding where work is unfinished.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;RVA23 was ratified in October 2024, and just over two years later it has split the main Linux distributions on RISC-V. Ubuntu requires it. On the latest statements we could read, Fedora still builds for RV64GC and Debian for RVA20, and we found no date set by either to move.&lt;/p&gt;
&lt;p&gt;The profile does solve a real problem: software can now assume vectors and a hypervisor instead of guessing. It does not solve booting, drivers, performance or independent proof of conformance. This post separates what is settled from what is open, and ends with a way to choose a target for your own product.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;RVA23U64 adds 12 mandatory extensions over RVA22U64, led by Vector. RVA23S64 adds the hypervisor set as a requirement.&lt;/li&gt;
&lt;li&gt;A profile fixes the instruction set a binary may assume. It does not cover boot, device discovery or peripheral drivers. Separate specifications deal with those.&lt;/li&gt;
&lt;li&gt;Ubuntu has required RVA23 since 25.10 and keeps older boards on 24.04 LTS. Fedora and Debian had kept their older baselines as of 7 November 2026.&lt;/li&gt;
&lt;li&gt;Ubuntu 26.10, released on 15 October 2026, names physical RVA23 platforms as officially supported, and it lists real gaps on the SpacemiT K3.&lt;/li&gt;
&lt;li&gt;RISC-V International&#39;s RVA23 certification programme was not yet live on 7 November 2026, so &quot;RVA23 compliant&quot; is today a vendor&#39;s own statement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;fixes&quot;&gt;What the profile fixes&lt;/h2&gt;
&lt;p&gt;RISC-V is modular by design, as our &lt;a href=&quot;/2023/12/what-is-risc-v-x86-arm-alternative.html&quot;&gt;introduction to RISC-V&lt;/a&gt; explains. That freedom has a cost for anyone shipping binaries, because a distribution cannot build for a feature that some chips may lack. RVA23 answers this directly. Its stated aim is a large set of guaranteed extensions and a small number of coarse-grain options, and the specification calls wider hardware flexibility an explicit non-goal.&lt;/p&gt;
&lt;p&gt;Comparing the three application profiles shows how far the guaranteed floor has moved:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Feature&lt;/th&gt;&lt;th&gt;RVA20&lt;/th&gt;&lt;th&gt;RVA22&lt;/th&gt;&lt;th&gt;RVA23&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Vector (V)&lt;/td&gt;&lt;td&gt;Not in the profile&lt;/td&gt;&lt;td&gt;Optional&lt;/td&gt;&lt;td&gt;Mandatory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Hypervisor&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Mandatory in RVA23S64, through the Sha group that includes H&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Bit manipulation (B)&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Required&lt;/td&gt;&lt;td&gt;Required&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Integer conditional operations (Zicond)&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Mandatory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Pointer masking (Supm, Ssnpm)&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Not required&lt;/td&gt;&lt;td&gt;Mandatory&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Crypto&lt;/td&gt;&lt;td&gt;Not in the profile&lt;/td&gt;&lt;td&gt;Scalar options&lt;/td&gt;&lt;td&gt;Vector crypto options only, with scalar options removed&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The full list of new mandatory extensions in RVA23U64 is V, Zvfhmin, Zvbb, Zvkt, Zihintntl, Zicond, Zimop, Zcmop, Zcb, Zfa, Zawrs and Supm, which makes 12.&lt;/p&gt;
&lt;p&gt;The practical effect shows up on the compiler command line. Instead of a long string of extension names, a build can say &lt;code&gt;-march=rva23u64&lt;/code&gt;, and the GCC manual allows a profile to be combined with extras, as in &lt;code&gt;rva23u64_zacas&lt;/code&gt;. LLVM&#39;s RISC-V documentation lists rva23u64 and rva23s64 as supported &lt;code&gt;-march&lt;/code&gt; values.&lt;/p&gt;
&lt;p&gt;Canonical&#39;s June 2026 explanation of the profile treats mature virtualisation as a condition for RISC-V to scale beyond embedded devices. There is also a helpful detail for migration: the RVA23 mandates do not bind guest virtual machines, so an RVA23 hypervisor may offer guests that lack H or are only RVA20. On our reading, that gives operators one possible route for keeping older workloads alive on new hardware.&lt;/p&gt;

&lt;h2 id=&quot;distros&quot;&gt;Where the distributions stand&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Distribution&lt;/th&gt;&lt;th&gt;Baseline&lt;/th&gt;&lt;th&gt;Latest statement we read&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Ubuntu 25.10 and later, including 26.04 LTS&lt;/td&gt;&lt;td&gt;RVA23S64&lt;/td&gt;&lt;td&gt;Release notes for 26.04 and 26.10, and Canonical&#39;s download page&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Ubuntu 24.04 LTS&lt;/td&gt;&lt;td&gt;RVA20&lt;/td&gt;&lt;td&gt;Canonical&#39;s download page, offering 24.04.5 LTS images for older boards&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Fedora&lt;/td&gt;&lt;td&gt;RV64GC&lt;/td&gt;&lt;td&gt;FOSDEM talk, 31 January 2026, which says the project is waiting on a reference platform&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Debian 13 &quot;trixie&quot;&lt;/td&gt;&lt;td&gt;RVA20&lt;/td&gt;&lt;td&gt;Debian wiki architecture memo, last modified 13 August 2026&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Ubuntu&lt;/strong&gt; moved first and accepted the consequences. The 26.04 LTS release notes said that, as of April 2026, no RVA23S64 hardware was available and that QEMU with the rva23s64 CPU profile was the only supported RISC-V platform. Ubuntu 26.10 then introduced official support for SpacemiT K3 boards and the SiFive BigSky platform. Canonical&#39;s download page now lists 11 boards under RVA20 on 24.04.5 LTS, against SiFive BigSky, three SpacemiT K3 based products and QEMU under RVA23.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fedora&lt;/strong&gt; has taken a slower path. A February 2026 meeting record of its RISC-V group notes a suggestion not to take the baseline question to the main Koji build system and FESCo. Work on the hardware side continues: a June 2026 community update reports one K3 board in Fedora RISC-V Koji, and an August 2026 post on a Fedora 44 test image says K3 boards should now boot out of the box with an updated kernel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Debian&lt;/strong&gt; made riscv64 an official architecture for the first time in Debian 13. In a July 2025 thread on the debian-riscv list, contributors argued it was too early to raise the baseline, partly because popular boards should not be dropped without an affordable replacement, and partly because build machines need RVA23 hardware with upstream kernel support. One contributor suggested revisiting the question no sooner than a year later. That thread discussed RVA22 as the point of comparison, while the published baseline is RVA20. We found no later decision, so treat Debian&#39;s position as open, not as a refusal.&lt;/p&gt;
&lt;p&gt;For a software vendor, this means RVA23 is not yet one target across Linux. A package built for it suits Ubuntu&#39;s current releases, but it cannot assume the same features on the other two without checking at run time. A contributor in the same Debian thread pointed to hwcaps as a way to offer extra features on capable hardware while keeping the lower baseline.&lt;/p&gt;

&lt;h2 id=&quot;platform&quot;&gt;Open: everything below the instruction set&lt;/h2&gt;
&lt;p&gt;This is the largest gap, and the one most easily missed. The profile document itself says that profiles describe only instruction set features and not a complete execution environment, and it leaves boot process and discovery to platform specifications. Canonical&#39;s explanation adds that code for initial boot, device discovery and peripheral drivers may not be portable between implementations. Application developers will rarely notice. Operating system and firmware teams will notice at once.&lt;/p&gt;
&lt;p&gt;RISC-V International is filling this layer with separate documents. Its specifications library lists Boot and Runtime Services v1.0 (August 2025), Server SoC v1.0 (February 2025) and Server Platform v1.0 (May 2026). Boot and Runtime Services has two recipes, one aimed at interoperation across software suppliers and one for bespoke solutions, so even that specification does not force a single route.&lt;/p&gt;
&lt;p&gt;Ubuntu&#39;s 26.10 release notes show the difference in practice. The K3 is an officially supported RVA23 platform there, yet the notes list missing support for the second PCIe slot, DisplayPort and HDMI audio, the GPU, VPU and G2D hardware nodes, and CPU frequency, thermal and power domain management. None of these is an instruction set matter. A chip can meet the profile while much of its silicon waits for drivers.&lt;/p&gt;
&lt;p&gt;Hardware claims need care for the same reason. Canonical&#39;s February 2026 post on the SpacemiT work which announced a 26.04 LTS preview on the K3, calls it one of the first RVA23 compliant platforms available today. The Ubuntu 26.04 release notes, two months later, say no RVA23S64 hardware was available yet and that QEMU was the only supported platform. We call neither wrong. The first is a vendor&#39;s announcement, so treat it as a claim, and the second describes what one release supported. Read each statement for what it was written to do, and check the current support list before you plan around a board.&lt;/p&gt;

&lt;h2 id=&quot;options&quot;&gt;Open: the options still need probing&lt;/h2&gt;
&lt;p&gt;RVA23 reduces options but does not remove them. Each of these remains optional or outside the profile, so a binary that assumes one may fail on a compliant chip:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Vector crypto.&lt;/strong&gt; Zvkng and Zvksg are localised options. Scalar crypto is gone as an option, and the specification says the goal is for vendors to move to vector crypto. Crypto libraries therefore still need a fallback path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Control-flow integrity.&lt;/strong&gt; Landing pads (Zicfilp) and shadow stacks (Zicfiss) are expansion options. LLVM&#39;s development documentation, for version 24.0.0git, still lists both under experimental extensions, so check your compiler version before you plan on them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Larger address spaces.&lt;/strong&gt; Sv39 is mandatory, while Sv48 and Sv57 are options, which matters to anyone mapping very large memory. Our post on &lt;a href=&quot;/2024/01/what-is-virtual-memory.html&quot;&gt;virtual memory, page tables and the TLB&lt;/a&gt; covers the mechanism.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Custom instructions.&lt;/strong&gt; The certification notes allow custom extensions so long as they do not interfere with RVA23 behaviour. Ssstrict, which restricts the behaviour of reserved encodings, is itself optional and does not cover the custom encoding spaces.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Linux tool for this is the &lt;code&gt;riscv_hwprobe&lt;/code&gt; system call, which reports support by key for a given set of CPUs. It belongs in any library that wants to use more than the baseline.&lt;/p&gt;

&lt;h2 id=&quot;performance&quot;&gt;Open: a guarantee of presence is not a guarantee of speed&lt;/h2&gt;
&lt;p&gt;A profile says what must work, not how fast. Misaligned access is the clearest example. RVA23 includes Zicclsm, so misaligned loads and stores to ordinary main memory must be supported. The kernel&#39;s hwprobe documentation, however, separates misaligned scalar performance into unknown, emulated, slow, fast and unsupported, and describes emulated access as always extremely slow. Code that needs speed should read that key and not infer it from the profile.&lt;/p&gt;
&lt;p&gt;Vector length is the other example. The V extension requires at least 128 bits, but implementations can go wider, and the design expects software to adapt. Here is a small model of why that matters. &lt;strong&gt;The array size and vector lengths are illustrative, and strip counts are not execution times.&lt;/strong&gt; Assume 1,000 elements of 32 bits at an LMUL of 1, using the specification&#39;s formula VLMAX = LMUL × VLEN / SEW.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;VLEN&lt;/th&gt;&lt;th&gt;Elements per strip (VLMAX)&lt;/th&gt;&lt;th&gt;Strips, length-agnostic loop&lt;/th&gt;&lt;th&gt;Strips, code fixed at 4 elements&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;128 bits&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;250&lt;/td&gt;&lt;td&gt;250&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;256 bits&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;125&lt;/td&gt;&lt;td&gt;250&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;512 bits&lt;/td&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;63&lt;/td&gt;&lt;td&gt;250&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The 512-bit row is 62 full strips (992 elements) plus a final strip holding 8. The specification lets an implementation split the last elements differently, but with 1,000 elements the count here remains 63. Code ported by hand with a fixed four-element width runs correctly on the 512-bit machine, but it uses a quarter of each register and takes about four times as many strips.&lt;/p&gt;
&lt;p&gt;The compiler has a matching choice. GCC&#39;s &lt;code&gt;-mrvv-vector-bits&lt;/code&gt; defaults to &lt;code&gt;scalable&lt;/code&gt;, which treats the number from &lt;code&gt;-march&lt;/code&gt; as a minimum, while &lt;code&gt;zvl&lt;/code&gt; tells GCC to use exactly the number specified. Our reading is that general distribution code should keep the default, and the exact setting suits a known target. GCC 14 enabled the SLP and loop vectorisers for RISC-V when the vector extension is on, so plain C code can benefit. Hand-written kernels ported from fixed-width instruction sets are the place to look first.&lt;/p&gt;

&lt;h2 id=&quot;toolchains&quot;&gt;Open: toolchain maturity depends on version&lt;/h2&gt;
&lt;p&gt;Do not assume that every compiler in a build fleet understands the profile in the same way. The GCC 16.1 manual names rva23u64 in its &lt;code&gt;-march&lt;/code&gt; text, while the 15.2 manual&#39;s RISC-V page does not mention profile names. That does not prove what each compiler accepts, so test yours and do not rely on either manual. An Ubuntu bug report from July 2025 shows the sort of friction involved: upstream gcc-15 did not accept the supm extension that RVA23U64 mandates, and a patch was requested for Ubuntu&#39;s package. In current GCC, &lt;code&gt;-march=help&lt;/code&gt; lists what your own build supports.&lt;/p&gt;

&lt;h2 id=&quot;certification&quot;&gt;Open: independent proof of conformance&lt;/h2&gt;
&lt;p&gt;RISC-V International&#39;s architectural test repository says an RVA23 certification programme is in development and not yet live. The tests can be run now, but the certificate process is described as something still to come. The same page warns that certification testing is not verification: the tests check understanding of the specification and support interoperability, and they do not look for microarchitectural or logic bugs.&lt;/p&gt;
&lt;p&gt;Two practical points follow. A buyer who reads &quot;RVA23 compliant&quot; in a datasheet should ask which test results stand behind the claim. A silicon team should run the RVA23 test subset as an early check while keeping its full verification plan, because passing these tests will not replace it. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc&quot;&gt;SoC lifecycle&lt;/a&gt; on The Semiconductor Hub shows where such decisions sit in a programme.&lt;/p&gt;

&lt;h2 id=&quot;choose&quot;&gt;Which baseline should you target?&lt;/h2&gt;
&lt;p&gt;This is our reading of the sources above, not a rule from any of them. Confirm it against your own customers and hardware.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;You are building&lt;/th&gt;&lt;th&gt;Sensible target&lt;/th&gt;&lt;th&gt;Check first&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;A new application processor for rich operating systems&lt;/td&gt;&lt;td&gt;RVA23S64 at minimum&lt;/td&gt;&lt;td&gt;Boot and Runtime Services recipe, upstream driver plan, and certification once available&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A server SoC&lt;/td&gt;&lt;td&gt;RVA23S64 plus the Server SoC and Server Platform specifications&lt;/td&gt;&lt;td&gt;Any need for Sv48 or Sv57, and the optional crypto your customers expect&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;An application for Ubuntu 25.10 or later only&lt;/td&gt;&lt;td&gt;rva23u64&lt;/td&gt;&lt;td&gt;Whether customers remain on 24.04 LTS&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A package for all major distributions&lt;/td&gt;&lt;td&gt;The older baseline, with run-time dispatch through hwprobe&lt;/td&gt;&lt;td&gt;Test coverage for both the baseline and vector paths&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Deeply embedded firmware or an automotive MCU&lt;/td&gt;&lt;td&gt;Probably not RVA23&lt;/td&gt;&lt;td&gt;RVB23, and your toolchain and safety stack. Our &lt;a href=&quot;/2025/06/the-risc-v-revolution-how-new-players.html&quot;&gt;post on RISC-V in automotive MCUs&lt;/a&gt; covers the toolchain gap in that market&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;faq&quot;&gt;FAQ&lt;/h2&gt;
&lt;h3&gt;Will my existing RISC-V board run Ubuntu 26.04 LTS?&lt;/h3&gt;
&lt;p&gt;Not unless it implements RVA23S64. Canonical says 26.04 LTS cannot run on systems that do not meet this requirement, and it keeps older boards on 24.04 LTS.&lt;/p&gt;
&lt;h3&gt;Does RVA23 mean all binaries are now portable?&lt;/h3&gt;
&lt;p&gt;User-space binaries that stay within the mandatory set should be, and that is the profile&#39;s purpose. Canonical&#39;s wording is that such a binary should run on any RVA23 CPU. Boot code and drivers are outside that promise.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;RISC-V International, &lt;a href=&quot;https://github.com/riscv/riscv-profiles/blob/main/src/rva23-profile.adoc&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RVA23 Profiles&lt;/a&gt;, v1.0, October 2024, and the RVA20 and RVA22 text in &quot;&lt;a href=&quot;https://github.com/riscv/riscv-profiles/blob/main/src/profiles.adoc&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RISC-V Profiles&lt;/a&gt;&quot;, riscv-profiles repository.&lt;/li&gt;
&lt;li&gt;RISC-V International, &quot;&lt;a href=&quot;https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RISC-V Announces Ratification of the RVA23 Profile Standard&lt;/a&gt;&quot;, 21 October 2024.&lt;/li&gt;
&lt;li&gt;RISC-V International, &lt;a href=&quot;https://riscv.org/specifications/ratified/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;specifications library entries&lt;/a&gt; for Boot and Runtime Services v1.0, Server SoC v1.0, Server Platform v1.0 and RVB23 v1.0, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;RISC-V &quot;V&quot; Vector Extension specification, &lt;a href=&quot;https://github.com/riscvarchive/riscv-v-spec&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;riscv-v-spec repository&lt;/a&gt;, on VLMAX, the rules for setting vl and the minimum vector length, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;riscv-arch-test repository, &quot;&lt;a href=&quot;https://github.com/riscv/riscv-arch-test/blob/act4/docs/RVA23Cert.md&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RVA23 Certification&lt;/a&gt;&quot; (docs/RVA23Cert.md, act4 branch), read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Ubuntu, &lt;a href=&quot;https://documentation.ubuntu.com/release-notes/26.04/summary-for-lts-users/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Ubuntu 26.04 LTS summary for LTS users&lt;/a&gt;, release notes, and &lt;a href=&quot;https://documentation.ubuntu.com/release-notes/26.10/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Ubuntu 26.10 release notes&lt;/a&gt; (release dated 15 October 2026).&lt;/li&gt;
&lt;li&gt;Canonical, &quot;&lt;a href=&quot;https://ubuntu.com/download/risc-v/canonical-built&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Download Canonical-built Ubuntu for RISC-V Platforms&lt;/a&gt;&quot;, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Canonical, &quot;&lt;a href=&quot;https://ubuntu.com/blog/risc-v-profiles-why-is-rva23-significant&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RISC-V profiles: why is RVA23 significant?&lt;/a&gt;&quot;, 3 June 2026.&lt;/li&gt;
&lt;li&gt;Canonical, &quot;&lt;a href=&quot;https://ubuntu.com/blog/spacemit-announces-availability-of-ubuntu-on-k3-k1-series&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;SpacemiT announces the availability of Ubuntu on K3/K1 series RISC-V AI computing platforms&lt;/a&gt;&quot;, 5 February 2026.&lt;/li&gt;
&lt;li&gt;Ubuntu bug 2116120, &quot;&lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/gcc-15/+bug/2116120&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Add support for RISC-V supm extension mandated by RVA23&lt;/a&gt;&quot;, 7 July 2025.&lt;/li&gt;
&lt;li&gt;Abdurachmanov and Chamarthy, &quot;&lt;a href=&quot;https://archive.fosdem.org/2026/schedule/event/SQGLW7-fedora-on-riscv/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;State of the Arch: Fedora on RISC-V&lt;/a&gt;&quot;, FOSDEM, 31 January 2026.&lt;/li&gt;
&lt;li&gt;Fedora RISC-V SIG meeting minutes, 3 February 2026; Fedora Community Update, 1 to 5 June 2026; Fedora Discussion, &quot;&lt;a href=&quot;https://discussion.fedoraproject.org/t/updated-fedora-44-server-image/198341&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Updated Fedora 44 server image&lt;/a&gt;&quot;, 3 August 2026.&lt;/li&gt;
&lt;li&gt;Debian Wiki, ArchitectureSpecificsMemo, last modified 13 August 2026; &lt;a href=&quot;https://www.debian.org/releases/trixie/riscv64/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Debian 13 installation guide for riscv64&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;debian-riscv mailing list, thread &quot;&lt;a href=&quot;https://lists.debian.org/debian-riscv/2025/07/msg00001.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RVA22 or RVA23? Discussing RVA ISA Baselines in Debian&lt;/a&gt;&quot;, July 2025.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;GCC manuals (RISC-V Options)&lt;/a&gt; for &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/RISC-V-Options.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;15.2&lt;/a&gt;, &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc-16.1.0/gcc/RISC-V-Options.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;16.1&lt;/a&gt; and current, and &lt;a href=&quot;https://gcc.gnu.org/gcc-14/changes.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;GCC 14 release notes&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;LLVM, &quot;&lt;a href=&quot;https://llvm.org/docs/RISCVUsage.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;User Guide for RISC-V Target&lt;/a&gt;&quot;, development documentation for 24.0.0git, read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Linux kernel documentation, &quot;&lt;a href=&quot;https://docs.kernel.org/arch/riscv/hwprobe.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;RISC-V Hardware Probing Interface&lt;/a&gt;&quot;, read 7 November 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The vector example uses illustrative numbers. Vendor statements are the companies&#39; own claims, as published on the dates shown. Distribution positions can change quickly, so check each project&#39;s current documents.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/2129229309392684878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/what-rva23-settles-for-risc-v-software.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2129229309392684878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/2129229309392684878'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/what-rva23-settles-for-risc-v-software.html' title='What RVA23 Settles for RISC-V Software, and What It Leaves Open'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo54xMfpqDbXzAvBcO1tnxgowRVopT6LKz70n9XMqcmg4O0DDh6SxSDiWG1I6hqot6kYy2_dkij1SONXXKpHR10xWWLyHPkw1dN2ipNgioEhClLxGha9Tn3o0TCrD_EZDZIbb6cylkods6kVsrG-oOB0h-KZljt3lI4c_4Ghh1bLRRsc8Mcf7MFA/s72-c/rva23-software-floor.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-8393197130990530763</id><published>2026-11-27T21:47:00.000+05:30</published><updated>2026-11-27T21:47:00.269+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI Hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="AI Infrastructure"/><category scheme="http://www.blogger.com/atom/ns#" term="Power Electronics"/><category scheme="http://www.blogger.com/atom/ns#" term="Thermal Management"/><title type='text'>Where a Megawatt Goes: A Rack Budget Traced to the Die</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;Illustration of power flowing from a liquid-cooled server rack through copper busbars and a circuit board down to a silicon die.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7u3301OMh38vs8n5ArWaJh0LLMAme7if8VA_xiXiipMJv64-WrFhCrrSsrL8JLi4GdyqLUZccjwXtzRjal6FWtSjM_j_63s8U7lmEu6mo0G-W1eJVFLJ6vpqyLXLGKpEU-7Hzhfw39GhCzR_rZ5HKVk_lwNglboZPQ8GBDLd5JIWrw7fj8EE_xQ/s1600/megawatt-rack-budget.jpg&quot; title=&quot;Illustration of power flowing from a liquid-cooled server rack through copper busbars and a circuit board down to a silicon die.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Send one megawatt into a rack at 800 V and the current is 1,250 A. Follow it down through an illustrative budget and about 676 kW, or 68%, reaches the silicon rails, with the logic rail of a single package asking for about 4,700 A at 0.75 V. All of that power then has to leave as heat, through coolant that may already be at 45 °C when it arrives.&lt;/p&gt;
&lt;p&gt;Most discussion of the megawatt rack stops at the busbar. This post carries the budget on to the die, using open specifications and peer-reviewed converter results where they exist and labelled assumptions where they do not. The aim is to show which numbers a chip team inherits from the rack, and which it can push back on.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;In our illustrative budget, the point-of-load regulators lose 123 kW, against 25 kW in the 800 V to 50 V shelves. The high voltage change gets the attention, but the largest electrical loss sits close to the die.&lt;/li&gt;
&lt;li&gt;Published 48 V research converters reach 77% to 86% at full load, depending on rail voltage. Rail voltage is a silicon decision with a cost at the regulator.&lt;/li&gt;
&lt;li&gt;With 45 °C supply, a 95 °C junction limit and one of the best published junction-to-water results, the sum allows about 2.1 W/mm² of local power density. That is a budget for the floorplan.&lt;/li&gt;
&lt;li&gt;The fast rack-level power peaks in the Mt. Diablo specification carry less energy than the slower 50 ms step, which matters when deciding where storage goes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-a-megawatt-rack&quot;&gt;What a megawatt rack is, so far&lt;/h2&gt;
&lt;p&gt;The 1 MW rack is a target, and each company states it differently. NVIDIA&#39;s May 2025 post says it is moving to 800 V DC to support 1 MW IT racks starting in 2027, and it claims up to 5% better end-to-end efficiency than 54 V systems. Google&#39;s April 2025 post expects machine learning to need more than 500 kW per IT rack before 2030, and credits a sidecar power rack with about 3% better efficiency. The Open Compute Project (OCP) Mt. Diablo specification, version 1.0.0, dated 8 October 2026, lists rack average power of 800 kW to 1.1 MW at 480 V AC input.&lt;/p&gt;
&lt;p&gt;For scale, NVIDIA&#39;s March 2026 post says its Kyber rack will fit 144 GPUs, but gives no rack power. Its October 2025 post gave 576 Rubin Ultra GPUs for Kyber. The two figures appear to count different things: heise reported in March 2026 that 576 is 144 GPUs of four compute dies each, a reading NVIDIA&#39;s posts do not spell out. We use 144 packages. At a full megawatt, the share would be about 6,944 W per package. &lt;strong&gt;Pairing 1 MW with Kyber is our own sizing, not an NVIDIA figure&lt;/strong&gt;, used only for the example below.&lt;/p&gt;

&lt;h2 id=&quot;the-budget&quot;&gt;The budget, step by step&lt;/h2&gt;
&lt;p&gt;This table starts at the IT rack input. &lt;strong&gt;The result is illustrative.&lt;/strong&gt; Sourced inputs are marked, and the other inputs are our assumptions. Values have two decimals so that you can check the sums.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Step&lt;/th&gt;&lt;th&gt;Assumption and basis&lt;/th&gt;&lt;th&gt;Lost or diverted (kW)&lt;/th&gt;&lt;th&gt;Remaining (kW)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Rack input at 800 V&lt;/td&gt;&lt;td&gt;Our starting point. 1,250 A&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;1,000.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Shelf, 800 V to 50 V&lt;/td&gt;&lt;td&gt;97.5%, the full-load minimum in OCP&#39;s 18 kW power supply specification, at 25 °C inlet air&lt;/td&gt;&lt;td&gt;25.00&lt;/td&gt;&lt;td&gt;975.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Busbar and board at 50 V&lt;/td&gt;&lt;td&gt;1% loss, illustrative&lt;/td&gt;&lt;td&gt;9.75&lt;/td&gt;&lt;td&gt;965.25&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Everything except accelerators&lt;/td&gt;&lt;td&gt;15% for CPUs, switches and the rest, illustrative. This is useful work, not loss&lt;/td&gt;&lt;td&gt;144.79&lt;/td&gt;&lt;td&gt;820.46&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Regulators, 50 V to core rails&lt;/td&gt;&lt;td&gt;85%, illustrative and on the optimistic side, as explained below&lt;/td&gt;&lt;td&gt;123.07&lt;/td&gt;&lt;td&gt;697.39&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Package delivery path&lt;/td&gt;&lt;td&gt;3% loss, illustrative&lt;/td&gt;&lt;td&gt;20.92&lt;/td&gt;&lt;td&gt;676.47&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Electrical losses total 178.74 kW, or 17.9% of the input, and the regulators account for about 69% of them. Upstream, Mt. Diablo requires total rack efficiency above 97% at full load with 480 V AC input, and above 96.5% at 415 V or 400 V, including cooling and backup losses. To deliver our 1,000 kW, that power rack would draw about 1,031 kW to 1,036 kW, losing 31 kW to 36 kW. The specification says the power rack is designed to be fully air-cooled, so a liquid-cooled megawatt still has an air-cooled load beside it, about the size of the 33 kW rack the specification mentions as a starting point.&lt;/p&gt;
&lt;p&gt;The regulator figure deserves caution. Researchers at UC Berkeley reported a 1,500 A, 48 V to 1 V converter with 92.7% peak and 85.7% full-load system efficiency (APEC 2024). A later version aimed at vertical delivery, tested up to 600 A, reached 87.1% peak and 79.5% full load at 0.8 V, and 85.3% peak and 77.2% full load at 0.65 V (IEEE Transactions on Power Electronics, 2026). These are research prototypes, but they suggest that 85% at 0.75 V and full load is generous. At 79.5%, the power reaching the rails falls from 676 kW to about 633 kW, a drop of 44 kW.&lt;/p&gt;
&lt;p&gt;A preprint from June 2026 by Krishnakumar and colleagues, not confirmed as peer reviewed, estimates existing vertical solutions at below 70% system-wide. It reports 84% in its own proposed design, which embeds GaN switches in the substrate. Our &lt;a href=&quot;/2025/07/gallium-nitride-wide-bandgap.html&quot;&gt;GaN primer&lt;/a&gt; covers how those switches work.&lt;/p&gt;

&lt;h2 id=&quot;one-package&quot;&gt;What one package receives&lt;/h2&gt;
&lt;p&gt;Divide the budget across 144 packages. Each regulator set takes in 5,698 W, loses 855 W, and sends another 145 W into the delivery path, leaving 4,698 W at the rails. &lt;strong&gt;Assume, as illustration only&lt;/strong&gt;, that 75% goes to logic at 0.75 V, that the remaining 25% goes to memory and I/O rails, and that logic occupies four dies of 800 mm² each, or 3,200 mm².&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Quantity&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;th&gt;Working&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Logic power&lt;/td&gt;&lt;td&gt;3,523 W&lt;/td&gt;&lt;td&gt;4,698 W × 0.75&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Memory and I/O power&lt;/td&gt;&lt;td&gt;1,174 W&lt;/td&gt;&lt;td&gt;4,698 W × 0.25&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Logic current&lt;/td&gt;&lt;td&gt;4,698 A&lt;/td&gt;&lt;td&gt;3,523 W / 0.75 V&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Logic current density&lt;/td&gt;&lt;td&gt;1.47 A/mm²&lt;/td&gt;&lt;td&gt;4,698 A / 3,200 mm²&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average logic power density&lt;/td&gt;&lt;td&gt;1.10 W/mm²&lt;/td&gt;&lt;td&gt;3,523 W / 3,200 mm²&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The Berkeley journal paper puts processor currents at close to 2,000 A today, rail voltages at 0.65 V to 0.80 V in 5 nm, and projected current densities at 2 A/mm² by 2028. Our numbers are large but within that direction of travel.&lt;/p&gt;

&lt;h2 id=&quot;last-inch&quot;&gt;The last inch is where the current lives&lt;/h2&gt;
&lt;p&gt;Current climbs at every step. At 800 V it is 1,250 A. At 50 V, after the shelves, it is 19,500 A. NVIDIA describes liquid-cooled busbars of up to 5,000 A in its MGX racks. At 54 V, that is 270 kW per busbar, and a megawatt at 54 V needs 18,519 A, or 3.7 times that rating.&lt;/p&gt;
&lt;p&gt;Below the regulator, the numbers tighten further. Our 3% delivery loss means the regulator sets about 0.773 V to deliver 0.75 V, a 23 mV drop. At 4,698 A, that is about 4.9 µΩ. The Berkeley paper cites earlier work finding that moving converters from beside the processor to directly beneath it can cut this resistance by a factor of seven. Apply that factor to our 3% and a side-mounted layout would lose about 21%, a crude sum that shows why this is an architecture question. Backside metal attacks the on-die part of the same path, as covered in &lt;a href=&quot;/2026/11/backside-power-delivery-design-rules.html&quot;&gt;Backside Power Delivery&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Vertical delivery brings an area problem. The 2026 prototype reaches 0.614 A/mm² at a height of 4.7 mm, against the paper&#39;s targets of at least 0.5 A/mm² and at most 5 mm. To supply 4,698 A at that density needs about 7,650 mm², which is 2.4 times our logic area, and the converter sits beneath the whole package. The package is larger than its logic dies, so this does not rule the approach out, but the regulator footprint belongs in early floorplan discussions.&lt;/p&gt;

&lt;h2 id=&quot;heat&quot;&gt;The heat budget, from coolant to junction&lt;/h2&gt;
&lt;p&gt;Nearly all of the megawatt ends up as heat in the rack, and the 855 W per package of regulator loss sits close to the processor. Liquid cooling starts with flow. OCP&#39;s 2024 white paper on testing liquid-to-liquid coolant distribution units (CDUs) gives a recommended 1.5 L/min per kW as suiting most current chips, and uses a 5 °C approach temperature in its example rating. At 1 MW, that is 1,500 L/min. With water (1 kg/L, 4.18 kJ/kg·K), the coolant warms by 1,000 W / (0.025 kg/s × 4,180 J/kg·K), about 9.6 °C. Glycol mixes run slightly higher.&lt;/p&gt;
&lt;p&gt;NVIDIA says its MGX racks are designed for 45 °C inlet water, with 41 °C facility water supplying the CDUs, and argues that a lower 35 °C inlet takes far more facility power or water to provide. OCP&#39;s October 2025 post gives targets for Google&#39;s Deschutes CDU of about 2 MW and 500 US gallons per minute at 80 to 90 psi. That converts to about 1,893 L/min, or 0.95 L/min per kW at full rating, and a coolant rise of about 15.2 °C on the same water properties.&lt;/p&gt;
&lt;p&gt;Now add the silicon. Schultz and Parida at IBM (ITherm 2024) measured junction-to-water resistance as low as 19 °C·mm²/W with a direct-attach cold plate and a single pad interface material, on a uniform power test vehicle. The paper models a representative high-performance power map with a peak of about 3 W/mm². Treat 19 °C·mm²/W as a good case, because a lidded stack has more layers. &lt;strong&gt;The 95 °C limit below is illustrative, and the sum treats every cold plate as seeing rack outlet temperature.&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Case&lt;/th&gt;&lt;th&gt;Rise above coolant outlet&lt;/th&gt;&lt;th&gt;Junction estimate&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Coolant outlet: 45 °C + 9.6 °C&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;54.6 °C&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average logic, 1.10 W/mm²&lt;/td&gt;&lt;td&gt;20.9 °C&lt;/td&gt;&lt;td&gt;75.5 °C&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Local 2 W/mm²&lt;/td&gt;&lt;td&gt;38.0 °C&lt;/td&gt;&lt;td&gt;92.6 °C&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Local 3 W/mm²&lt;/td&gt;&lt;td&gt;57.0 °C&lt;/td&gt;&lt;td&gt;111.6 °C&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This is a one-dimensional sum. Silicon spreads heat sideways, so a small hot spot will run cooler than the last row suggests. As a budget it is still useful. The margin from 54.6 °C to 95 °C is 40.4 °C, which divided by 19 allows about 2.1 W/mm². With 35 °C supply the same sum allows about 2.65 W/mm², so warm water costs about 0.5 W/mm² here. At the Deschutes full-rating flow, the larger coolant rise brings the allowance down to about 1.8 W/mm². Warm water savings are partly paid for in die power density.&lt;/p&gt;
&lt;p&gt;Microsoft&#39;s 2025 feature describes one way out: channels etched into the silicon, with lab-scale tests showing heat removal up to three times better than cold plates and a 65% lower maximum silicon temperature rise, depending on chip and workload. These are prototype claims, and production still needs fabrication and silicon partners.&lt;/p&gt;

&lt;h2 id=&quot;power-steps&quot;&gt;Power steps, seen from the package&lt;/h2&gt;
&lt;p&gt;Mt. Diablo&#39;s table for the DC output lists load steps, depending on the vendor, of 175% of thermal design power for under 2 ms or 180% for under 0.5 ms, then 150% for under 50 ms, and 100% on a one-second moving average. &lt;strong&gt;Applying these rack-level ratios to one package is our assumption.&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Fast peak.&lt;/strong&gt; 75% above 5,698 W for 2 ms is 8.5 J.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Slow step.&lt;/strong&gt; 50% above 5,698 W for 50 ms is 142 J, nearly 17 times the energy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For scale, NVIDIA claims 65 J per GPU in the GB300 power supply and 400 J per GPU of rack-level storage on Vera Rubin. At our package power, 400 J would cover the 50% excess for about 140 ms. In our reading, the fast peak is mainly a voltage droop problem and the slow step an energy storage problem, so they need different remedies.&lt;/p&gt;

&lt;h2 id=&quot;silicon-questions&quot;&gt;What to ask on the chip programme&lt;/h2&gt;
&lt;p&gt;This is our reading of the numbers above, so replace our assumptions with your own.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;What does the rail voltage cost in total?&lt;/strong&gt; At 3,523 W, logic current is 5,420 A at 0.65 V and 4,404 A at 0.80 V. The 2026 prototype lost about 2.3 points of full-load efficiency going from 0.8 V to 0.65 V. Weigh that against the switching power saved on the die.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What is the peak W/mm², and who owns it?&lt;/strong&gt; Derive a number from the actual supply temperature and thermal stack, and review it like a timing budget.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where will memory sit?&lt;/strong&gt; imec&#39;s IEDM 2025 modelling of 12-high HBM stacked directly on GPUs shows why placement matters: a 141.7 °C peak unmitigated against 69.1 °C for the 2.5D baseline, and 70.8 °C with combined measures, which included double-sided cooling and frequency scaling.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Who controls the ramp?&lt;/strong&gt; NVIDIA claims its Dynamic Max-Q allows up to 30% more GPUs in the same power budget with 45 °C cooling. That kind of trade needs telemetry and ramp limits in silicon and firmware.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How much margin is left at the hot, droopy corner?&lt;/strong&gt; Running closer to thermal and voltage limits narrows the room for marginal defects, a theme we looked at in &lt;a href=&quot;/2026/11/silent-data-corruption-failure-that.html&quot;&gt;Silent Data Corruption&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These decisions cross die, package and board, and fall early in a programme. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/chiplet&quot;&gt;chiplet and advanced packaging lifecycle&lt;/a&gt; on The Semiconductor Hub shows where such choices sit.&lt;/p&gt;

&lt;h2 id=&quot;faq&quot;&gt;FAQ&lt;/h2&gt;
&lt;h3&gt;Does 800 V solve the delivery problem?&lt;/h3&gt;
&lt;p&gt;It addresses the upstream part. In our budget the shelf and busbar account for 34.75 kW of electrical loss, while the regulators and package path account for 143.99 kW. A higher distribution voltage does not change the current a 0.75 V rail needs.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Open Compute Project, &quot;&lt;a href=&quot;https://www.opencompute.org/wp-content/uploads/2026/10/OCP-Specification-Mt.-Diablo-Disaggregated-Power-Rack-Specification-v1.0.0.pdf&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Mt. Diablo Disaggregated Power Rack Specification&lt;/a&gt;&quot;, version 1.0.0, 8 October 2026.&lt;/li&gt;
&lt;li&gt;Open Compute Project, &quot;Open Rack V3 +/- 400V to 50V 18kW PSU Design Specification&quot;, version 1.0.0, February 2026.&lt;/li&gt;
&lt;li&gt;Wondimu, Kung, Zhou, Zakaib and Chu, &quot;&lt;a href=&quot;https://www.opencompute.org/documents/ocp-wp-l-lcdu-test-methodology-performance-rating-r1-pdf/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Liquid to Liquid CDU Test Methodology and Performance Rating&lt;/a&gt;&quot;, OCP white paper, revision 1.0, 2024.&lt;/li&gt;
&lt;li&gt;Open Compute Project, &quot;&lt;a href=&quot;https://www.opencompute.org/news/realizing-the-open-data-center-ecosystem-vision/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Realizing the Open Data Center Ecosystem Vision&lt;/a&gt;&quot;, 13 October 2025.&lt;/li&gt;
&lt;li&gt;Y. Zhu, J. Zou and R. Pilawa-Podgurski, &quot;&lt;a href=&quot;https://doi.org/10.1109/APEC48139.2024.10509247&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A 1500-A/48-V-to-1-V Switching Bus Converter for Next-Generation Ultra-High-Power Microprocessors&lt;/a&gt;&quot;, APEC 2024.&lt;/li&gt;
&lt;li&gt;Y. Zhu et al., &quot;&lt;a href=&quot;https://doi.org/10.1109/TPEL.2026.3660220&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A Switching Bus Converter Enabling Direct 48-V-to-Point-of-Load Vertical Power Delivery for High-Performance Data Center Processors&lt;/a&gt;&quot;, IEEE Transactions on Power Electronics, 2026.&lt;/li&gt;
&lt;li&gt;S. Krishnakumar et al., &quot;&lt;a href=&quot;https://arxiv.org/abs/2606.28837&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A Comprehensive Design Framework for Vertical Power Delivery in High-Performance Computing&lt;/a&gt;&quot;, arXiv:2606.28837, June 2026.&lt;/li&gt;
&lt;li&gt;M. Schultz and P. Parida, &quot;&lt;a href=&quot;https://doi.org/10.1109/ITherm55375.2024.10709396&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Compliant Direct Attach Liquid Cooling&lt;/a&gt;&quot;, ITherm 2024.&lt;/li&gt;
&lt;li&gt;Y. Chen et al., &quot;&lt;a href=&quot;https://doi.org/10.1109/IEDM50572.2025.11353711&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Breaking Thermal Bottleneck in 3D HBM-on-GPU Integration via System-Technology Co-Optimization&lt;/a&gt;&quot;, IEDM 2025, and imec press release, 8 December 2025.&lt;/li&gt;
&lt;li&gt;NVIDIA, &quot;&lt;a href=&quot;https://developer.nvidia.com/blog/nvidia-800-v-hvdc-architecture-will-power-the-next-generation-of-ai-factories/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NVIDIA 800 VDC Architecture Will Power the Next Generation of AI Factories&lt;/a&gt;&quot;, 20 May 2025.&lt;/li&gt;
&lt;li&gt;NVIDIA, &quot;&lt;a href=&quot;https://developer.nvidia.com/blog/how-new-gb300-nvl72-features-provide-steady-power-for-ai/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;How New GB300 NVL72 Features Provide Steady Power for AI&lt;/a&gt;&quot;, 28 July 2025.&lt;/li&gt;
&lt;li&gt;NVIDIA, &quot;&lt;a href=&quot;https://developer.nvidia.com/blog/inside-the-nvidia-rubin-platform-six-new-chips-one-ai-supercomputer/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Inside the NVIDIA Vera Rubin Platform: Six New Chips, One AI Supercomputer&lt;/a&gt;&quot;, 5 January 2026.&lt;/li&gt;
&lt;li&gt;NVIDIA, &quot;&lt;a href=&quot;https://developer.nvidia.com/blog/nvidia-vera-rubin-pod-seven-chips-five-rack-scale-systems-one-ai-supercomputer/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NVIDIA Vera Rubin POD: Seven Chips, Five Rack-Scale Systems, One AI Supercomputer&lt;/a&gt;&quot;, 16 March 2026.&lt;/li&gt;
&lt;li&gt;NVIDIA, &quot;&lt;a href=&quot;https://blogs.nvidia.com/blog/gigawatt-ai-factories-ocp-vera-rubin/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NVIDIA, Partners Drive Next-Gen Efficient Gigawatt AI Factories in Buildup for Vera Rubin&lt;/a&gt;&quot;, 13 October 2025.&lt;/li&gt;
&lt;li&gt;M. Mantel, heise online report on the Kyber rack and Rubin Ultra boards, 17 March 2026.&lt;/li&gt;
&lt;li&gt;M. Iyengar and A. Huffman (Google), &quot;&lt;a href=&quot;https://cloud.google.com/blog/topics/systems/enabling-1-mw-it-racks-and-liquid-cooling-at-ocp-emea-summit&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;AI infrastructure is hot. New power distribution and liquid cooling infrastructure can help&lt;/a&gt;&quot;, Google Cloud Blog, 30 April 2025.&lt;/li&gt;
&lt;li&gt;C. Bolgar, &lt;a href=&quot;https://news.microsoft.com/source/features/innovation/microfluidics-liquid-cooling-ai-chips/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Microsoft feature on microfluidics liquid cooling for AI chips&lt;/a&gt;, undated on the page, 2025.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The budget, package and thermal sums use illustrative numbers unless a source is named. Vendor figures are the companies&#39; own claims and targets, as published on the dates shown. Research results apply to the specific prototypes reported.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/8393197130990530763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/where-megawatt-goes-rack-budget-traced.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8393197130990530763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8393197130990530763'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/where-megawatt-goes-rack-budget-traced.html' title='Where a Megawatt Goes: A Rack Budget Traced to the Die'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7u3301OMh38vs8n5ArWaJh0LLMAme7if8VA_xiXiipMJv64-WrFhCrrSsrL8JLi4GdyqLUZccjwXtzRjal6FWtSjM_j_63s8U7lmEu6mo0G-W1eJVFLJ6vpqyLXLGKpEU-7Hzhfw39GhCzR_rZ5HKVk_lwNglboZPQ8GBDLd5JIWrw7fj8EE_xQ/s72-c/megawatt-rack-budget.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-9055496599463675365</id><published>2026-11-27T17:00:00.000+05:30</published><updated>2026-11-27T17:00:00.263+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Associative FIFO Design: Lookup by Address and the Youngest Match (FIFO Series, Part 21)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 21, Associative FIFO, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM4_dHftYK_n-OizC1WK922R9EeoZWC3MJCXop2QFodAdNprjUYR1p13JcG1TAQWy7S8iMr4Ln6oJ_rwCfObtQNmKHMjEIZJfq-aaEC4xhLH0Z7sQS6ykurJb6OqCN7DSEK6yXYes9P-SqsOcmcSMTz7zd_ZbySG70K88O0h00R3Om7Psf7pYmmg/s1600/fifo-21-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 21, Associative FIFO, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Parts 19 and 20 asked whether an ID was in the queue. The next step is to ask for the entry itself. A load wants the data from the most recent store to the same address that is still waiting in a store queue. A response wants the request that carries its address. The FIFO still drains in order, but beside that sits a lookup port that searches by key and returns a matching entry. That is an associative FIFO.&lt;/p&gt;
&lt;p&gt;This is Part 21 of the FIFO series. It covers the match logic, and the part that is easy to get wrong: when several entries match, picking the right one in circular order, where the youngest entry can sit at a lower index than the oldest.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;An associative FIFO stores a key with every entry and adds a lookup port that returns a hit, the index of a matching entry and its data.&lt;/li&gt;
&lt;li&gt;When several entries match, the answer is usually the youngest one. Age follows the ring, not the slot index.&lt;/li&gt;
&lt;li&gt;A two-pass priority encoder solves it: look for the highest match below the write index first, and only if there is none, take the highest match overall.&lt;/li&gt;
&lt;li&gt;Valid bits must gate every compare, because freed slots keep their old keys.&lt;/li&gt;
&lt;li&gt;The lookup path is compare, priority encode, then a DEPTH-to-1 data mux. That chain sets the depth at which the design stops meeting timing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;What problem an associative FIFO solves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#priority&quot;&gt;Youngest match in circular order&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;What problem an associative FIFO solves&lt;/h2&gt;
&lt;p&gt;The classic case is a store queue or write buffer. Writes wait in a FIFO to drain to memory in order. Meanwhile a read to the same address arrives. Reading memory would return stale data, because the newer value is still in the queue. The fix is to search the queue by address and forward the data from the most recent matching write. If two writes to that address are waiting, the read must see the second one.&lt;/p&gt;
&lt;p&gt;Other cases look the same from the hardware side. A request queue matches a response by address to find which request it completes. A miss queue checks whether an incoming miss can join an existing entry. A translation request queue looks up a page number to avoid issuing the same walk twice. In each case the FIFO order is untouched and the search is a read-only view of what is stored.&lt;/p&gt;
&lt;p&gt;Whether you want the youngest or the oldest match depends on the question. Forwarding wants the youngest, because it holds the newest value. Completing a response in order usually wants the oldest. The logic is symmetric, so this part builds the youngest and notes the change for the oldest.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn block diagram of an associative FIFO: entries with valid, key and data, push and pop on the sides, and a lookup key feeding a compare bank and a youngest-first priority block that outputs hit, index and data.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik18z2KLO2YHpL5T70rcQSTHmC-1kpe3lIMtKdkRW3297qTgpyA4b17996sEVfckYWaFvvEr-PR9Y4zbOiypxq6JkWvDGuDe_iWo4WHKA21OY8bi14sCv857g1M65qPNxUOkdsRnVzY3M2PKQUfyLGvjhUr9z7Zc5STADLDxkj3UgIqzcvd_Pwog/s1600/fifo-21-block.jpg&quot; title=&quot;Hand-drawn block diagram of an associative FIFO: entries with valid, key and data, push and pop on the sides, and a lookup key feeding a compare bank and a youngest-first priority block that outputs hit, index and data.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The FIFO side is familiar: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wkey&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt;, &lt;code&gt;full&lt;/code&gt;, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;rkey&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt;. The lookup port takes &lt;code&gt;l_key&lt;/code&gt; and returns &lt;code&gt;l_hit&lt;/code&gt;, &lt;code&gt;l_idx&lt;/code&gt; and &lt;code&gt;l_data&lt;/code&gt;. As in the earlier parts, the lookup sees the entries stored at the start of the cycle. A push in the same cycle is not visible yet, and a pop in the same cycle is still visible.&lt;/p&gt;

&lt;h2 id=&quot;priority&quot;&gt;Youngest match in circular order&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn view of an eight-slot ring with the write pointer at slot 2 and the read pointer at slot 5: in the first case key 7 matches slots 0 and 6 and slot 0 is chosen as youngest; in the second it matches slots 6 and 7 and slot 7 is chosen.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTS2Eusj4JvWaOykGj75E328m2ngV1s123uYctT6thLAE_NmcWcz4zaz-fYUBK3bPbpB21xpS0-RfTKb0bhJKYnuo5qUff4LKaWpopVdfSQrlEFfeh7pcDoY28DXrbA5YiBBLNh0lZeApnaKRYxXTK-rBHvOHSAMcQ5ZGgGA0LyXfFQPabm6biQA/s1600/fifo-21-priority.jpg&quot; title=&quot;Hand-drawn view of an eight-slot ring with the write pointer at slot 2 and the read pointer at slot 5: in the first case key 7 matches slots 0 and 6 and slot 0 is chosen as youngest; in the second it matches slots 6 and 7 and slot 7 is chosen.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The compare gives a match vector, one bit per slot. The hard part is picking from it. In a ring, age does not follow the slot index. With the read pointer at slot 5 and the write pointer at slot 2, the entries in age order are slots 5, 6, 7, 0 and 1. Slot 0 is younger than slot 6, even though its index is lower.&lt;/p&gt;
&lt;p&gt;The trick is to split the ring at the write index. Slots below the write index were written most recently, in increasing index order, so among them the highest index is the youngest. Slots at or above the write index are all older than any slot below it, and among them too the highest index is the youngest. So:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mask the match vector with &quot;index below the write index&quot;. If anything is left, the youngest match is its highest set bit.&lt;/li&gt;
&lt;li&gt;Otherwise, the youngest match is the highest set bit of the whole match vector.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In case 1 of the figure, key 7 matches slots 0 and 6. Slot 0 is below the write index, so it wins. In case 2, the matches are slots 6 and 7, none below the write index, so slot 7 wins. Slot 3 holds an old 7 in both cases, but it is free, so the valid bit keeps it out.&lt;/p&gt;
&lt;p&gt;The same works when the FIFO is full and the two pointers share an index, and when nothing has wrapped. For the oldest match, mask with &quot;index at or above the read index&quot; instead, and take the lowest set bit.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;module assoc_fifo #(
  parameter int W     = 32,
  parameter int KW    = 16,                // key width
  parameter int DEPTH = 8,                 // power of two
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic          clk,
  input  logic          rst_n,
  input  logic          push,
  input  logic [KW-1:0] wkey,
  input  logic [W-1:0]  wdata,
  output logic          full,
  input  logic          pop,
  output logic [KW-1:0] rkey,
  output logic [W-1:0]  rdata,
  output logic          empty,
  input  logic [KW-1:0] l_key,
  output logic          l_hit,
  output logic [AW-1:0] l_idx,
  output logic [W-1:0]  l_data
);
  logic [W-1:0]     data [DEPTH];
  logic [KW-1:0]    key  [DEPTH];
  logic [DEPTH-1:0] valid, match, newer;
  logic [AW:0]      wptr, rptr;

  function automatic logic [AW-1:0] msb_index(input logic [DEPTH-1:0] v);
    msb_index = &#39;0;
    for (int i = 0; i &amp;lt; DEPTH; i++) if (v[i]) msb_index = i[AW-1:0];
  endfunction

  wire do_pop  = pop  &amp;amp;&amp;amp; !empty;
  wire do_push = push &amp;amp;&amp;amp; (!full || do_pop);

  always_comb
    for (int i = 0; i &amp;lt; DEPTH; i++) begin
      match[i] = valid[i] &amp;amp;&amp;amp; (key[i] == l_key);
      newer[i] = (i &amp;lt; wptr[AW-1:0]);       // written since the write index wrapped
    end

  assign l_hit  = |match;
  assign l_idx  = |(match &amp;amp; newer) ? msb_index(match &amp;amp; newer) : msb_index(match);
  assign l_data = data[l_idx];

  assign empty = (wptr == rptr);
  assign full  = ((wptr ^ rptr) == {1&#39;b1, {AW{1&#39;b0}}});
  assign rkey  = key[rptr[AW-1:0]];
  assign rdata = data[rptr[AW-1:0]];

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr  &amp;lt;= &#39;0;
      rptr  &amp;lt;= &#39;0;
      valid &amp;lt;= &#39;0;
    end else begin
      if (do_pop)  valid[rptr[AW-1:0]] &amp;lt;= 1&#39;b0;
      if (do_push) valid[wptr[AW-1:0]] &amp;lt;= 1&#39;b1;  // wins on the same slot
      if (do_push) wptr &amp;lt;= wptr + 1&#39;b1;
      if (do_pop)  rptr &amp;lt;= rptr + 1&#39;b1;
    end

  always_ff @(posedge clk)
    if (do_push) begin
      data[wptr[AW-1:0]] &amp;lt;= wdata;
      key[wptr[AW-1:0]]  &amp;lt;= wkey;
    end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The function is written as a loop for clarity. Synthesis turns it into a priority encoder. In a real design you would likely write both encoders as one structure over a vector twice the width, which is a common way to express a circular priority.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Matches on both sides of the write index.&lt;/strong&gt; The newer region always wins, however many older matches there are. This is the case a single priority encoder gets wrong.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lookup of the entry popping this cycle.&lt;/strong&gt; It still hits, and its data is still valid this cycle. If the caller acts on &lt;code&gt;l_idx&lt;/code&gt; next cycle, it must allow for the slot being freed or reused by then.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Push of a matching key in the same cycle.&lt;/strong&gt; Not visible until next cycle. For store-to-load forwarding this matters: a read and a write to the same address in the same cycle need an explicit rule, either a bypass from &lt;code&gt;wdata&lt;/code&gt; or a stall of the read.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Partial matches.&lt;/strong&gt; If entries are partial writes, a full-key match may cover only some of the bytes the reader needs. Then the lookup must also check coverage, or merge bytes from several entries. Part 22 adds byte enables.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Freed slots.&lt;/strong&gt; Keys stay behind after a pop. Every compare is gated by the valid bit, and the set-over-clear order keeps a slot valid when it is popped and pushed in the same cycle at full.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The lookup chain.&lt;/strong&gt; KW-bit compares, a reduce for the two-way choice, a priority encoder about log2 of DEPTH deep, and a DEPTH-to-1 mux of W bits. For deep or wide queues, keep the match vector one-hot and use an AND-OR mux driven by it, which avoids encoding to an index and decoding it again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Narrow the compare.&lt;/strong&gt; Comparing a hash or a subset of the key bits first, then confirming with the full key a cycle later, shortens the path when a late answer is acceptable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Area.&lt;/strong&gt; Each lookup port costs DEPTH comparators of KW bits plus the encoder and mux. Two lookup ports cost twice that. Keys in flops are needed for the compare, so only the data can move to SRAM, and then the data read takes a cycle after the match.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; The comparators toggle whenever the lookup key changes. Hold &lt;code&gt;l_key&lt;/code&gt; steady, or gate the compare bank, when no lookup is requested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference queue of key and data. Every cycle, search it from the youngest end for &lt;code&gt;l_key&lt;/code&gt; and compare hit, index and data.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_hit_valid: assert property (@(posedge clk) disable iff (!rst_n)
               l_hit |-&amp;gt; valid[l_idx] &amp;amp;&amp;amp; key[l_idx] == l_key);
a_no_hit:    assert property (@(posedge clk) disable iff (!rst_n)
               !l_hit |-&amp;gt; (match == &#39;0));&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: matches only in the newer region, only in the older region, in both, a hit when full, a hit on the entry popping this cycle, and a key that only lives in a freed slot.&lt;/li&gt;
&lt;li&gt;Use a small key pool so multiple matches are common, and run long enough for the pointers to wrap many times, since the bug classes here depend on where the write index sits.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL ran 480,000 random cycles at depths 2 to 16 and key pools of 2, 4 and 16 against a reference queue searched from the youngest end, and matched on every lookup, including tens of thousands of cycles with matches on both sides of the write index.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. How do you find the youngest matching entry in a circular buffer?&lt;/h3&gt;
&lt;p&gt;A strong answer explains why the highest index is not the youngest once the pointers wrap, then gives the split at the write index, or the doubled-vector form of the same idea.&lt;/p&gt;
&lt;h3&gt;2. What changes if you need the oldest match instead?&lt;/h3&gt;
&lt;p&gt;A strong answer moves the split to the read index, picks the lowest set bit, and names a use, such as matching responses in order.&lt;/p&gt;
&lt;h3&gt;3. A load and a store to the same address arrive in the same cycle. What should forwarding do?&lt;/h3&gt;
&lt;p&gt;A strong answer defines the rule explicitly: bypass the incoming store data, or stall the load a cycle, and explains the timing cost of the bypass.&lt;/p&gt;
&lt;h3&gt;4. Your lookup misses timing at 32 entries. What do you change?&lt;/h3&gt;
&lt;p&gt;A strong answer uses a one-hot AND-OR mux instead of encode then decode, considers a partial-key or hashed first compare, and considers registering the match vector.&lt;/p&gt;
&lt;h3&gt;5. How do partial writes change the lookup?&lt;/h3&gt;
&lt;p&gt;A strong answer says a key match is not enough: the entry must cover all requested bytes, otherwise the load must merge from several entries or wait for the queue to drain.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Associative queues are common wherever data waits in order but must be found by content. Processor store queues and write buffers forward data to younger loads. Cache miss queues merge requests to the same line. DMA engines and NoC network interfaces match responses to outstanding requests. PCIe and AXI interface logic matches completions to requests, and accelerators use the same structure to detect address conflicts between work items in flight.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 20 covered the FIFO-based ID tracker, a presence vector for every ID every cycle.&lt;/p&gt;
&lt;p&gt;Part 22 lets a match change the queue: the write-coalescing FIFO, which merges a new write into a pending entry for the same address and combines byte enables.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/9055496599463675365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/associative-fifo-design-lookup-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9055496599463675365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9055496599463675365'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/associative-fifo-design-lookup-by.html' title='Associative FIFO Design: Lookup by Address and the Youngest Match (FIFO Series, Part 21)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM4_dHftYK_n-OizC1WK922R9EeoZWC3MJCXop2QFodAdNprjUYR1p13JcG1TAQWy7S8iMr4Ln6oJ_rwCfObtQNmKHMjEIZJfq-aaEC4xhLH0Z7sQS6ykurJb6OqCN7DSEK6yXYes9P-SqsOcmcSMTz7zd_ZbySG70K88O0h00R3Om7Psf7pYmmg/s72-c/fifo-21-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-8162438254437182008</id><published>2026-11-27T13:00:00.000+05:30</published><updated>2026-11-27T13:00:00.117+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="FIFO Series"/><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><category scheme="http://www.blogger.com/atom/ns#" term="RTL Design"/><category scheme="http://www.blogger.com/atom/ns#" term="SystemVerilog"/><category scheme="http://www.blogger.com/atom/ns#" term="Verification"/><title type='text'>Challenge: FIFO-Based ID Tracker, Every Stored ID Every Cycle (FIFO Series, Part 20)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn cover card for FIFO Series Part 20, FIFO ID Tracker challenge, with a sketch of entries moving from push to pop.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqkDu5fN-lIxgp5sk_h0YQqv5NbuUQm6V15pvFceMjqmMhnrUytiaQhossft8MtnKgPEdqp52JkuECiK8yoeiUWY9evEEOBDLG6_ejkzzQ_TrN1Lw8_Xx3fmUdpg2jMn7AkESB1a5psmUWLbM_tlRAtyUW2Z1etcFZiR5AHbssxu_28RS9MqDOg/s1600/fifo-20-cover.jpg&quot; title=&quot;Hand-drawn cover card for FIFO Series Part 20, FIFO ID Tracker challenge, with a sketch of entries moving from push to pop.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;This part is built on a challenge shared by Rahul Behl of Tenstorrent. In a LinkedIn post about how he interviews RTL and DV engineers, he described three FIFO challenges, and he has published all three as PPA challenges on QuickSilicon, with a synthesis and timing report after every run. This is the second of them, the FIFO-based ID Tracker: a FIFO of requests that must flag, every cycle, which request IDs are currently stored in it, even when an ID appears more than once. The analysis below is our own.&lt;/p&gt;
&lt;p&gt;This is Part 20 of the FIFO series. Part 19 answered one ID per query port by searching every entry. Here the question is every ID, every cycle, as a vector. That changes which structure wins, and it opens up a neat trick that needs neither a search nor a counter.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The output is a vector with one bit per possible ID, set while at least one copy of that ID is stored. Duplicates are what make it hard.&lt;/li&gt;
&lt;li&gt;Decode-and-OR over the stored entries is correct and needs no extra state, but costs DEPTH times NID gates and a DEPTH-wide OR per ID.&lt;/li&gt;
&lt;li&gt;A counter per ID handles duplicates with an increment on push and a decrement on pop, and the nonzero flag can be registered.&lt;/li&gt;
&lt;li&gt;A cheaper exact answer stores, per ID, the pointer of its youngest copy. A pop clears the bit only when it removes that youngest copy.&lt;/li&gt;
&lt;li&gt;Same-cycle push and pop of the same ID, and push and pop at full, are where wrong answers hide. The set must win.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;contents&quot;&gt;In this part&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#what&quot;&gt;The problem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interface&quot;&gt;The interface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#options&quot;&gt;Three structures&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#youngest&quot;&gt;The youngest-copy pointer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rtl&quot;&gt;RTL sketch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#corners&quot;&gt;Corner cases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ppa&quot;&gt;Timing, area and power&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#verification&quot;&gt;Verification checklist&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#interview&quot;&gt;Interview questions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#chips&quot;&gt;Where it is used in real chips&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#series&quot;&gt;The rest of the series&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what&quot;&gt;The problem&lt;/h2&gt;
&lt;p&gt;A request FIFO holds entries, each with an ID from a fixed range of NID values. Every cycle the block must output &lt;code&gt;present[NID-1:0]&lt;/code&gt;, where bit k is set exactly when at least one stored entry has ID k. IDs can repeat. The FIFO still pushes and pops in strict order.&lt;/p&gt;
&lt;p&gt;Why would anyone need the whole vector? Because many consumers look at it at once. An arbiter may need to skip every request whose ID is already in flight. A scheduler may need to see which threads have work queued. A response path may need to know which IDs are safe to retire. Each would otherwise need its own query port from Part 19, and with enough ports the search becomes the biggest block in the design.&lt;/p&gt;

&lt;h2 id=&quot;interface&quot;&gt;The interface&lt;/h2&gt;
&lt;p&gt;The FIFO side is the same as Part 19: &lt;code&gt;push&lt;/code&gt;, &lt;code&gt;wid&lt;/code&gt;, &lt;code&gt;wdata&lt;/code&gt;, &lt;code&gt;full&lt;/code&gt;, &lt;code&gt;pop&lt;/code&gt;, &lt;code&gt;rid&lt;/code&gt;, &lt;code&gt;rdata&lt;/code&gt; and &lt;code&gt;empty&lt;/code&gt;. The new output is &lt;code&gt;present&lt;/code&gt;. As in Part 19, it describes the entries stored at the start of the cycle: a push this cycle shows up next cycle, and a pop this cycle still counts this cycle. That definition lets &lt;code&gt;present&lt;/code&gt; come straight from flip-flops, which is the best thing you can offer the many consumers that read it.&lt;/p&gt;

&lt;h2 id=&quot;options&quot;&gt;Three structures&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn comparison of three ways to build the presence vector: a grid of slots by IDs ORed down each column, a counter per ID compared with zero, and a youngest-copy pointer per ID that clears the bit when the youngest copy pops.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPDVvhgh-HEVpu8rbhTaG7u7i3RazTa10_wv5XZXloL0qPLFZGSiKnHTLUlncYfKQ8aAOC2sOm8zbiMgEMf5dt9-HlGvBFK3CqWsZx1UgisDmorRapt5X4Br0W_W3vE7ZMBvx6YJ7z1QK35bLatwXgIaVPz0z1SeBXkrEaX1z81EBzQGpdnVyU2Q/s1600/fifo-20-options.jpg&quot; title=&quot;Hand-drawn comparison of three ways to build the presence vector: a grid of slots by IDs ORed down each column, a counter per ID compared with zero, and a youngest-copy pointer per ID that clears the bit when the youngest copy pops.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;A. Decode and OR.&lt;/strong&gt; Decode each valid slot&#39;s ID into a one-hot vector and OR all the vectors together. Duplicates are handled for free, because an OR does not care how many ones it sees. There is no extra state. The cost is DEPTH times NID AND gates and NID OR trees, each DEPTH inputs wide, sitting between the ID registers and the output. For a small FIFO with few IDs this is the smallest answer. As DEPTH grows, the OR trees get deeper and the gate count grows with the product.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;B. A counter per ID.&lt;/strong&gt; Keep &lt;code&gt;cnt[k]&lt;/code&gt;, AW+1 bits wide so it can reach DEPTH. Increment it when ID k is pushed, decrement it when ID k pops, and leave it alone when both happen in the same cycle. Bit k of the output is &lt;code&gt;cnt[k] != 0&lt;/code&gt;. To get the output from flops, register the nonzero flag alongside the count and compute its next value from the next count. The cost is NID small up/down counters plus two decoders, one for the push ID and one for the pop ID.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;C. A youngest-copy pointer per ID.&lt;/strong&gt; The same storage as B, but no adders. It is described next.&lt;/p&gt;

&lt;h2 id=&quot;youngest&quot;&gt;The youngest-copy pointer&lt;/h2&gt;
&lt;p&gt;The counter in option B carries more information than the output needs. The output only asks whether a copy is left. In a FIFO, copies leave in the order they arrived, so the last copy of ID k to leave is the youngest copy, the one pushed most recently. If we remember where the youngest copy lives, we know exactly when the last copy leaves.&lt;/p&gt;
&lt;p&gt;So keep &lt;code&gt;last[k]&lt;/code&gt;, the full pointer, including the wrap bit, of the most recent push of ID k. On a push of ID k, set &lt;code&gt;present[k]&lt;/code&gt; and write the write pointer into &lt;code&gt;last[k]&lt;/code&gt;. On a pop of ID k, compare the read pointer with &lt;code&gt;last[k]&lt;/code&gt;. If they are equal, the entry leaving is the youngest copy, so no copy remains and &lt;code&gt;present[k]&lt;/code&gt; clears. If not, a younger copy is still inside, so the bit stays set. A push of ID k in the same cycle sets the bit again, and the set wins.&lt;/p&gt;
&lt;p&gt;Why is the equality safe? While &lt;code&gt;present[k]&lt;/code&gt; is set, &lt;code&gt;last[k]&lt;/code&gt; names a live entry, and live pointers are unique within the window that the wrap bit covers. A pointer value from many laps ago could alias, but it is never compared: the compare only happens when ID k is popping, which means a copy of k is live, which means &lt;code&gt;last[k]&lt;/code&gt; was written by that copy or a younger one.&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Hand-drawn table tracing a four-entry FIFO through pushes of IDs 3, 5 and 3, a pop that keeps ID 3 because a younger copy exists, a cycle that pushes ID 3 and pops the last ID 5, and pops that finally clear ID 3.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSc0ys8yDQ2nZQxu_lApkVEMu2S0Fwb-1sZ9mkslxQbTkKQvJ9J25tO-89Vqj5R3qLi1OO6fcmbRFNQt3LkYaVdIxp6W8i51ePuMJ3kj8DVbDpUn0hBjJIvnICpObuKw97uHTjq25v6IKoLfSXTtT6auRZEXdWIMDo70kKsQjHJ8_HcvqhRCWBHQ/s1600/fifo-20-example.jpg&quot; title=&quot;Hand-drawn table tracing a four-entry FIFO through pushes of IDs 3, 5 and 3, a pop that keeps ID 3 because a younger copy exists, a cycle that pushes ID 3 and pops the last ID 5, and pops that finally clear ID 3.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The trace shows both outcomes. In cycle 3 an ID 3 pops from pointer 0 while &lt;code&gt;last[3]&lt;/code&gt; is 2, so ID 3 stays present. In cycle 4 a new ID 3 is pushed, moving &lt;code&gt;last[3]&lt;/code&gt; to 3, while the only ID 5 pops from pointer 1, which equals &lt;code&gt;last[5]&lt;/code&gt;, so ID 5 clears. ID 3 only clears in cycle 6, when the copy at pointer 3 leaves.&lt;/p&gt;

&lt;h2 id=&quot;rtl&quot;&gt;RTL sketch&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;module fifo_id_tracker #(
  parameter int W     = 32,
  parameter int NID   = 16,
  parameter int DEPTH = 8,                 // power of two
  localparam int IDW  = $clog2(NID),
  localparam int AW   = $clog2(DEPTH)
) (
  input  logic           clk,
  input  logic           rst_n,
  input  logic           push,
  input  logic [IDW-1:0] wid,
  input  logic [W-1:0]   wdata,
  output logic           full,
  input  logic           pop,
  output logic [IDW-1:0] rid,
  output logic [W-1:0]   rdata,
  output logic           empty,
  output logic [NID-1:0] present
);
  logic [W-1:0]   data [DEPTH];
  logic [IDW-1:0] id   [DEPTH];
  logic [AW:0]    last [NID];              // pointer of the youngest copy of each ID
  logic [AW:0]    wptr, rptr;

  wire do_pop  = pop  &amp;amp;&amp;amp; !empty;
  wire do_push = push &amp;amp;&amp;amp; (!full || do_pop);

  assign empty = (wptr == rptr);
  assign full  = ((wptr ^ rptr) == {1&#39;b1, {AW{1&#39;b0}}});
  assign rid   = id[rptr[AW-1:0]];
  assign rdata = data[rptr[AW-1:0]];

  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) begin
      wptr    &amp;lt;= &#39;0;
      rptr    &amp;lt;= &#39;0;
      present &amp;lt;= &#39;0;
    end else begin
      for (int k = 0; k &amp;lt; NID; k++) begin
        if (do_pop &amp;amp;&amp;amp; rid == k &amp;amp;&amp;amp; rptr == last[k]) present[k] &amp;lt;= 1&#39;b0;
        if (do_push &amp;amp;&amp;amp; wid == k)                   present[k] &amp;lt;= 1&#39;b1;  // set wins
      end
      if (do_push) wptr &amp;lt;= wptr + 1&#39;b1;
      if (do_pop)  rptr &amp;lt;= rptr + 1&#39;b1;
    end

  always_ff @(posedge clk)
    if (do_push) begin
      last[wid]          &amp;lt;= wptr;
      data[wptr[AW-1:0]] &amp;lt;= wdata;
      id[wptr[AW-1:0]]   &amp;lt;= wid;
    end
endmodule&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;last&lt;/code&gt; array has no reset. That is safe for the same reason the compare is safe: &lt;code&gt;last[k]&lt;/code&gt; is only read when ID k is popping, and by then a push of ID k has written it.&lt;/p&gt;

&lt;h2 id=&quot;corners&quot;&gt;Corner cases&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Push and pop of the same ID in one cycle.&lt;/strong&gt; If the pop removes the youngest copy, the clear and the set land on the same bit. The set wins and &lt;code&gt;last[k]&lt;/code&gt; moves to the new entry. Getting this order wrong drops an ID that is still stored.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Push and pop at full.&lt;/strong&gt; The push writes the slot the pop is leaving. Nothing in this design is indexed by slot except the data and ID arrays, so there is no clash beyond the one above.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every entry the same ID.&lt;/strong&gt; The bit stays set through DEPTH pops and clears on the last. A counter design would need to reach DEPTH here, which is why its width is AW+1 and not AW.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pop when empty.&lt;/strong&gt; Ignored by &lt;code&gt;do_pop&lt;/code&gt;, so the stale &lt;code&gt;rid&lt;/code&gt; from a freed slot never reaches the clear logic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flush.&lt;/strong&gt; A synchronous flush must clear the whole &lt;code&gt;present&lt;/code&gt; vector in the same cycle it moves the read pointer. &lt;code&gt;last&lt;/code&gt; needs no change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ppa&quot;&gt;Timing, area and power&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Area by option.&lt;/strong&gt; A has no state but scales with DEPTH times NID. B and C both store NID times (AW+1) bits. C replaces each up/down adder with an equality compare, which is smaller and has no carry chain. In a challenge that reports synthesis after every run, comparing A against C at the given DEPTH and NID is the first experiment to make.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The pop path.&lt;/strong&gt; The longest path in B and C is the read pointer through the DEPTH-to-1 ID mux, the decoder, the compare and the bit&#39;s next-state logic. Keep a registered copy of the head ID, updated on every pop from the next entry, and the mux leaves the path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The output.&lt;/strong&gt; In B and C, &lt;code&gt;present&lt;/code&gt; comes straight from flops, so every consumer gets a full cycle. In A it comes out of an OR tree, and every consumer pays for that tree in its own timing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Large ID spaces.&lt;/strong&gt; With many possible IDs and a shallow FIFO, the per-ID state in B and C dominates and A, or the search from Part 19, wins again. The crossover is a library question, so measure it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power.&lt;/strong&gt; Only one bit can set and one can clear per cycle, so B and C toggle very little. A re-evaluates the whole OR array whenever an ID register changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;verification&quot;&gt;Verification checklist&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A reference queue, and every cycle a check that &lt;code&gt;present&lt;/code&gt; equals the set of IDs in the queue.&lt;/li&gt;
&lt;li&gt;Run a second implementation as a checker. A decode-and-OR model is simple enough to trust and catches any clear that fires too early or too late.&lt;/li&gt;
&lt;li&gt;Assertions:
&lt;pre&gt;&lt;code&gt;a_set_wins: assert property (@(posedge clk) disable iff (!rst_n)
              push &amp;amp;&amp;amp; !full |=&amp;gt; present[$past(wid)]);
a_empty:    assert property (@(posedge clk) disable iff (!rst_n)
              empty |-&amp;gt; present == &#39;0);&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Coverage: same-ID push and pop in one cycle with the youngest copy leaving, a full FIFO of one ID, every ID cleared at least once, and push and pop at full.&lt;/li&gt;
&lt;li&gt;Use a small ID pool for most of the run so duplicates are constant, and a full-range pool for the rest so every bit of &lt;code&gt;present&lt;/code&gt; toggles.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A cycle-accurate Python model of this RTL ran 480,000 random cycles at depths 2 to 16 with 2 to 16 IDs. Every cycle it compared &lt;code&gt;present&lt;/code&gt; with a reference queue, a decode-and-OR model and a counter-per-ID model, and all four agreed. It also reproduces the worked trace above.&lt;/p&gt;

&lt;h2 id=&quot;interview&quot;&gt;Interview questions&lt;/h2&gt;
&lt;h3&gt;1. Why does a set-on-push, clear-on-pop bit per ID fail?&lt;/h3&gt;
&lt;p&gt;A strong answer gives the duplicate case: two copies of an ID, one pops, the bit clears while a copy is still stored. Then it offers a count or a youngest-copy pointer as the fix.&lt;/p&gt;
&lt;h3&gt;2. Compare decode-and-OR with a counter per ID.&lt;/h3&gt;
&lt;p&gt;A strong answer weighs DEPTH times NID gates and an OR tree on the output path against NID counters of AW+1 bits with registered outputs, and says which wins for shallow and deep FIFOs.&lt;/p&gt;
&lt;h3&gt;3. Can you do it without counters?&lt;/h3&gt;
&lt;p&gt;A strong answer arrives at the youngest-copy pointer: in a FIFO the last copy to leave is the youngest, so remembering its pointer and comparing at the pop is enough. It then argues why the compare cannot alias.&lt;/p&gt;
&lt;h3&gt;4. Push and pop of the same ID in one cycle, and the pop is the youngest copy. What happens?&lt;/h3&gt;
&lt;p&gt;A strong answer says the set must win, &lt;code&gt;last&lt;/code&gt; moves to the new entry, and shows the ordering of the RTL lines that makes it so.&lt;/p&gt;
&lt;h3&gt;5. What limits the clock frequency, and how do you fix it?&lt;/h3&gt;
&lt;p&gt;A strong answer traces the read pointer through the head ID mux, the decode and the compare, and removes the mux with a registered head ID.&lt;/p&gt;

&lt;h2 id=&quot;chips&quot;&gt;Where it is used in real chips&lt;/h2&gt;
&lt;p&gt;Presence vectors appear wherever many consumers need to know which IDs are busy. Interconnect bridges and AXI interfaces use them to block requests whose ID is already outstanding. NoC routers and network interfaces track which sources or virtual channels have traffic queued. DMA engines and accelerators track which channels or contexts have work pending, and PCIe interface logic tracks which tags are in use.&lt;/p&gt;

&lt;h2 id=&quot;series&quot;&gt;The rest of the series&lt;/h2&gt;
&lt;p&gt;Part 19 covered the ID-aware FIFO, which answers one ID per query by searching every entry.&lt;/p&gt;
&lt;p&gt;Part 21 turns the search into a lookup that returns data: the associative FIFO, which matches by address or ID and picks the right copy in circular order.&lt;/p&gt;
&lt;p&gt;Want to test your own answer? Try the FIFO-based ID Tracker challenge on QuickSilicon and see how your design synthesizes and times.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/8162438254437182008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/challenge-fifo-based-id-tracker-every.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8162438254437182008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/8162438254437182008'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2027/01/challenge-fifo-based-id-tracker-every.html' title='Challenge: FIFO-Based ID Tracker, Every Stored ID Every Cycle (FIFO Series, Part 20)'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqkDu5fN-lIxgp5sk_h0YQqv5NbuUQm6V15pvFceMjqmMhnrUytiaQhossft8MtnKgPEdqp52JkuECiK8yoeiUWY9evEEOBDLG6_ejkzzQ_TrN1Lw8_Xx3fmUdpg2jMn7AkESB1a5psmUWLbM_tlRAtyUW2Z1etcFZiR5AHbssxu_28RS9MqDOg/s72-c/fifo-20-cover.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-327803458829014620</id><published>2026-11-27T11:00:00.000+05:30</published><updated>2026-11-27T11:00:00.271+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Career Advice"/><category scheme="http://www.blogger.com/atom/ns#" term="DFT and Test"/><category scheme="http://www.blogger.com/atom/ns#" term="First Silicon Back"/><category scheme="http://www.blogger.com/atom/ns#" term="SoC Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>First Silicon Back, Part 1: The Six Weeks After Tapeout and What the Team Should Do While the Fab Runs</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Terminal-style readiness scorecard for the weeks after tapeout, showing plan, boards, test program and software progress with the test program marked late.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ-b0klMdbD-MYxbcv9Brb8H8F5pf4xZfODCfdVVdHHeKVSSY-mDLuPBsi4XDhF4jK-ykKxxRKJnObrbmRmkAGDHlZtsj2BxywuohUbXOTZQLE23nn2UVtQzK1iUSFCZ5YqUk63WRQgk0Zk82UrwFHftD10Mb3T46HZeZHT0uNapvjZs0VUOxWqg/s1600/fsb-01-six-weeks-after-tapeout.jpg&quot; title=&quot;Terminal-style readiness scorecard for the weeks after tapeout, showing plan, boards, test program and software progress with the test program marked late.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Tapeout day feels like a finish line. The database is gone, the release notes are sent, and someone orders cake. Then the building goes quiet, because the wafers are now in a fab and nothing the design team does will change them. Many teams treat the next weeks as a rest. The teams that have a good first month in the lab treat them as the busiest preparation window of the whole project.&lt;/p&gt;
&lt;p&gt;This is Part 1 of First Silicon Back, a daily series on what happens between tapeout and production, told the way a bring-up team lives it. Today: what the team should be doing while the fab runs, so that the day the parts arrive is spent learning about the chip and not about the lab.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The wait for wafers is not idle time. It is the last chance to get boards, test programs, scripts and people ready before silicon becomes the bottleneck.&lt;/li&gt;
&lt;li&gt;Published industry experience shows that the first weeks of bring-up go to hardware stability and screening parts, not to finding design bugs. Good preparation shortens that phase.&lt;/li&gt;
&lt;li&gt;Split the work into five streams: the plan, the boards, the test program, the bring-up software, and the people and lab.&lt;/li&gt;
&lt;li&gt;Every stream needs a &quot;ready&quot; definition you can check, not a feeling.&lt;/li&gt;
&lt;li&gt;Run the whole first day on a simulator, an emulator or an FPGA before the real parts arrive.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#why-it-matters&quot;&gt;Why the wait matters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#five-streams&quot;&gt;The five streams of work&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#dry-run&quot;&gt;The dry run: day one without silicon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#timeline&quot;&gt;An illustrative six-week timeline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#scorecard&quot;&gt;Worked example: a readiness score&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Readiness checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;why-it-matters&quot;&gt;Why the wait matters&lt;/h2&gt;
&lt;p&gt;Once wafers are in the fab, the schedule has a fixed date in it that the team cannot move: the day parts arrive. Everything that is not ready by then gets done while expensive, scarce silicon sits on a bench waiting. In our Hub lifecycle this is the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/foundry-mask&quot;&gt;Foundry and Mask stage&lt;/a&gt;, and it ends at the &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/gates/first-silicon&quot;&gt;First Silicon gate&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The research literature backs up what lab teams say. A tutorial in IEEE Design and Test by Mishra, Ray, Morad and Ziv calls the pre-silicon work for this &quot;post-silicon readiness&quot; and says it runs alongside architecture, design and pre-silicon validation, listing tests, test cards and custom boards among its needs (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=10&quot;&gt;Planning for post-silicon readiness&lt;/a&gt;). The same paper describes IBM&#39;s POWER8 bring-up, where lab preparation started at the high-level design stage, long before samples existed (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=19&quot;&gt;Preparing for the lab&lt;/a&gt;). It also reports that half of all POWER8 post-silicon bugs were found in the first three months of bring-up, even though the first two months went largely to hardware stability issues and to screening chips for good ones (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=22&quot;&gt;Debug&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;That last point is the one to remember. If even a well-prepared team spends its first weeks on stability and screening, a team that starts preparing on tapeout day will spend longer. The weeks before wafers arrive are where you buy that time back.&lt;/p&gt;

&lt;h2 id=&quot;five-streams&quot;&gt;The five streams of work&lt;/h2&gt;

&lt;h3 id=&quot;stream-plan&quot;&gt;1. The plan&lt;/h3&gt;
&lt;p&gt;A written bring-up plan: what gets tested in what order, what &quot;pass&quot; means at each step, who does what, and how many parts each activity gets. Part 2 of this series covers it in detail. During the wait, the plan moves from a draft to something the whole team has read and argued over.&lt;/p&gt;

&lt;h3 id=&quot;stream-boards&quot;&gt;2. The boards&lt;/h3&gt;
&lt;p&gt;Bring-up boards and probe or test hardware have their own lead times for fabrication, assembly and checkout. A board that arrives on the same day as the chip means two unknowns at once. The goal is a board that has already been powered with no chip fitted (or with a dummy load), with every rail measured. Part 3 covers what to ask the board team for.&lt;/p&gt;

&lt;h3 id=&quot;stream-test-program&quot;&gt;3. The test program&lt;/h3&gt;
&lt;p&gt;Production test patterns come out of the design flow, but they do not run on a tester as written. They are usually handed over in a tester-neutral format such as STIL, which the IEEE 1450 working group describes as a way to transfer test patterns between simulation, ATPG, BIST and ATE (&lt;a href=&quot;https://grouper.ieee.org/groups/1450/Flyer_frame.html#intro&quot;&gt;IEEE 1450 overview&lt;/a&gt;). Someone then has to convert them for a specific tester, map pins, set timing and debug the program. That work can start the day patterns are final, not the day wafers arrive.&lt;/p&gt;

&lt;h3 id=&quot;stream-software&quot;&gt;4. The bring-up software&lt;/h3&gt;
&lt;p&gt;Scripts that read and write registers over the debug port, small bare-metal tests that check one block at a time, logging that records every setting next to every result. In the POWER8 account, the team ran its bare-metal test programs on a hardware accelerator before silicon, which checked the test software itself and let them pick which tests to run first on scarce silicon (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=19&quot;&gt;Preparing for the lab&lt;/a&gt;). You do not need an accelerator to copy the idea: run the same scripts in RTL simulation or on an FPGA prototype.&lt;/p&gt;

&lt;h3 id=&quot;stream-people&quot;&gt;5. The people and the lab&lt;/h3&gt;
&lt;p&gt;Who is in the lab on day one, who is on call from design for each block, how failures get logged and triaged, which instruments are booked, where parts are stored and how each part is tracked. These are boring questions that cost days when nobody answered them.&lt;/p&gt;

&lt;h2 id=&quot;dry-run&quot;&gt;The dry run: day one without silicon&lt;/h2&gt;
&lt;p&gt;The single most useful thing to do during the wait is a dry run. Pick the first day&#39;s sequence from the plan (power on, check current, read a known register, load a small program) and run it end to end against whatever stands in for the chip: an RTL simulation, an emulator or an FPGA build. Use the real scripts, the real logging and, where possible, the real debug probe and host PC.&lt;/p&gt;
&lt;p&gt;A dry run finds the problems that are not chip problems: a script that assumes the wrong register map version, a debug adapter that needs a driver nobody installed, a log file that overwrites itself. Each of those found in week three is one less thing to blame on the silicon in week seven.&lt;/p&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Everyone moves to the next chip.&lt;/strong&gt; The designers who know each block best are reassigned the week after tapeout and are hard to reach when silicon arrives.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The plan lives in one person&#39;s head.&lt;/strong&gt; It works until that person is on leave on power-on day.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The board is &quot;nearly ready&quot;.&lt;/strong&gt; A board that has never been powered is not ready.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test patterns arrive late.&lt;/strong&gt; The test team waits for a final pattern set and then has two weeks to debug a program that needs four.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No part tracking.&lt;/strong&gt; Two weeks in, nobody can say which part number had which result at which voltage.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds a sample timeline, a worked readiness score, the red flags and a checklist. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;timeline&quot;&gt;An illustrative six-week timeline&lt;/h3&gt;
&lt;p&gt;The table below is an &lt;strong&gt;illustrative&lt;/strong&gt; plan for a team whose wafers are due six weeks after tapeout. The week numbers, owners and durations are invented for this post. Real fab cycle times vary widely with the process, the number of layers and the lot priority, so treat &quot;six weeks&quot; as an example, not a typical value.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Week&lt;/th&gt;&lt;th&gt;Plan&lt;/th&gt;&lt;th&gt;Boards&lt;/th&gt;&lt;th&gt;Test program&lt;/th&gt;&lt;th&gt;Software&lt;/th&gt;&lt;th&gt;People and lab&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;Draft plan circulated&lt;/td&gt;&lt;td&gt;Layout review closed, fab order placed&lt;/td&gt;&lt;td&gt;Final patterns exported in STIL&lt;/td&gt;&lt;td&gt;Register map frozen for scripts&lt;/td&gt;&lt;td&gt;Day-one roster and on-call list drafted&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Review meeting, entry and exit criteria agreed&lt;/td&gt;&lt;td&gt;Board fab in progress&lt;/td&gt;&lt;td&gt;Pattern conversion, pin map written&lt;/td&gt;&lt;td&gt;Power-on and register scripts written&lt;/td&gt;&lt;td&gt;Instruments booked, part tracking sheet set up&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;Part allocation agreed per activity&lt;/td&gt;&lt;td&gt;Boards assembled&lt;/td&gt;&lt;td&gt;Program compiles on tester software&lt;/td&gt;&lt;td&gt;Scripts run in RTL simulation&lt;/td&gt;&lt;td&gt;Failure logging template agreed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Risk list ranked (see Part 6)&lt;/td&gt;&lt;td&gt;Bare-board power-up, every rail measured&lt;/td&gt;&lt;td&gt;Program debugged on a known-good reference or tester checker&lt;/td&gt;&lt;td&gt;FPGA or emulator dry run of day one&lt;/td&gt;&lt;td&gt;Lab safety and ESD walk-through&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;Plan v1.0 signed&lt;/td&gt;&lt;td&gt;Socket or chip footprint fit check, debug probe connects&lt;/td&gt;&lt;td&gt;Probe card and load board checked&lt;/td&gt;&lt;td&gt;Second dry run with fixes&lt;/td&gt;&lt;td&gt;Daily stand-up time and triage owner set&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;Day-one script printed and walked through&lt;/td&gt;&lt;td&gt;Spare boards ready&lt;/td&gt;&lt;td&gt;Ready for first wafer&lt;/td&gt;&lt;td&gt;Release of bring-up software tagged&lt;/td&gt;&lt;td&gt;Day-one team confirmed&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;scorecard&quot;&gt;Worked example: a readiness score&lt;/h3&gt;
&lt;p&gt;A simple way to keep the wait honest is a weekly readiness score. Give each stream a short list of yes or no items and report the share that are done. Here is an &lt;strong&gt;illustrative&lt;/strong&gt; week-4 snapshot.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Stream&lt;/th&gt;&lt;th&gt;Items&lt;/th&gt;&lt;th&gt;Done&lt;/th&gt;&lt;th&gt;Score&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Plan&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;83%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Boards&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;50%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Test program&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;43%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Software&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;78%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;People and lab&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;100%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;35&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;24&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;69%&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Read the minimum, not the average.&lt;/strong&gt; The total of 24 out of 35 (69 percent) looks fine. But day one needs every stream, and the test program sits at 43 percent with two weeks left. If the team closed 1.5 items a week on it so far, the remaining 4 items need about 2.7 weeks. That is late. The useful output of the score is that sentence, written in week 4 while there is still time to add people.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Burn rate check.&lt;/strong&gt; 4 items / 1.5 items per week = 2.67 weeks, against 2 weeks left. The gap is about 0.7 weeks, or roughly 3 to 4 working days of extra effort the test program needs now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What the research numbers imply.&lt;/strong&gt; The POWER8 account in the IEEE Design and Test tutorial says the first two months of bring-up went largely to stability and screening (&lt;a href=&quot;https://www.cise.ufl.edu/research/cad/Publications/dt17.pdf#page=22&quot;&gt;Debug&lt;/a&gt;). For a project whose plan gives bring-up three months in total, two months of stability work would leave one month for the actual validation. The lesson is not a number to copy, it is that the stability phase is large and preparation is the main lever on it.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;No written bring-up plan two weeks after tapeout&lt;/td&gt;&lt;td&gt;Day one will be improvised and order will be argued in the lab&lt;/td&gt;&lt;td&gt;Who owns the plan, and when is the review?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Board not powered without a chip by week 5&lt;/td&gt;&lt;td&gt;Board faults and chip faults will arrive together&lt;/td&gt;&lt;td&gt;When is the bare-board power-up, and who signs it off?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Test patterns never run on the tester software&lt;/td&gt;&lt;td&gt;Conversion and timing problems will look like chip failures&lt;/td&gt;&lt;td&gt;Has the program compiled and run on a checker or reference part?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Bring-up scripts never run against RTL or FPGA&lt;/td&gt;&lt;td&gt;Script bugs will be debugged on real silicon&lt;/td&gt;&lt;td&gt;When is the dry run, and what did it find?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Block designers all reassigned with no on-call list&lt;/td&gt;&lt;td&gt;Simple questions take days to answer&lt;/td&gt;&lt;td&gt;Who is the contact for each block in the first month?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;No part tracking scheme&lt;/td&gt;&lt;td&gt;Results cannot be tied to parts, conditions or wafers&lt;/td&gt;&lt;td&gt;How is each part labeled and where is its history kept?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Readiness checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Bring-up plan reviewed and signed, with entry and exit criteria for each step.&lt;/li&gt;
&lt;li&gt;Part allocation agreed per activity, with spares held back.&lt;/li&gt;
&lt;li&gt;Bring-up boards powered without the chip, every rail measured and recorded.&lt;/li&gt;
&lt;li&gt;Debug probe connects to the board and the host software is installed on lab PCs.&lt;/li&gt;
&lt;li&gt;Test patterns converted, compiled and run on the tester software or a checker.&lt;/li&gt;
&lt;li&gt;Bring-up scripts tagged in version control and run against RTL, emulation or FPGA.&lt;/li&gt;
&lt;li&gt;Day-one sequence dry run done at least once, with findings closed.&lt;/li&gt;
&lt;li&gt;On-call list per block, triage owner and daily stand-up set.&lt;/li&gt;
&lt;li&gt;Part tracking sheet and failure log template in place.&lt;/li&gt;
&lt;li&gt;Instruments booked and calibrated; lab ESD and safety walk-through done.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;further-reading&quot;&gt;Further reading&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://people.eecs.berkeley.edu/~sseshia/pubdir/postSi-dac10.pdf#page=1&quot;&gt;Mitra, Seshia and Nicolici, Post-Silicon Validation: Opportunities, Challenges and Recent Advances (DAC 2010)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ni.com/en-th/innovations/white-papers/21/how-modern-lab-approaches-optimize-post-silicon-validation.html&quot;&gt;NI white paper: How a Modern Lab Approach Optimizes Post-Silicon Validation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc/tapeout&quot;&gt;The Semiconductor Hub: SoC lifecycle, Tape-out stage&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Writing a Bring-Up Plan That Survives Contact With Real Silicon.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/327803458829014620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-1-six-weeks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/327803458829014620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/327803458829014620'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/first-silicon-back-part-1-six-weeks.html' title='First Silicon Back, Part 1: The Six Weeks After Tapeout and What the Team Should Do While the Fab Runs'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ-b0klMdbD-MYxbcv9Brb8H8F5pf4xZfODCfdVVdHHeKVSSY-mDLuPBsi4XDhF4jK-ykKxxRKJnObrbmRmkAGDHlZtsj2BxywuohUbXOTZQLE23nn2UVtQzK1iUSFCZ5YqUk63WRQgk0Zk82UrwFHftD10Mb3T46HZeZHT0uNapvjZs0VUOxWqg/s72-c/fsb-01-six-weeks-after-tapeout.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-9061461085724943354</id><published>2026-11-27T09:00:00.000+05:30</published><updated>2026-11-27T09:00:00.223+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EDA Tools"/><category scheme="http://www.blogger.com/atom/ns#" term="Physical Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Reading Real Reports"/><category scheme="http://www.blogger.com/atom/ns#" term="Static Timing Analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Reading Real Reports, Part 3: Setup vs Hold Paths and Why the Same Path Tells Two Stories</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img alt=&quot;Two OpenSTA-style timing path excerpts for the same flip-flop pair, a setup check that passes and a hold check that fails.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgof1qj4Ts2ElxkFUUAxKJD9f23SrkrLIqm_PNTFPGOUaidcFSyWWwivGg6w_HmqZ5iyJtK6xP3qtvq6WaAQjut-2XuSgnCiS7IpcK3yjnvIR2YgN0SX8iwyz81LW1X7UA7Dcgkqn7x2tqZ_JPVG8ug_qbh_1saVXoz0s78U04L12U4irzKNBzs3w/s1600/rr-03-setup-vs-hold-paths.jpg&quot; title=&quot;Two OpenSTA-style timing path excerpts for the same flip-flop pair, a setup check that passes and a hold check that fails.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Take two flip-flops with one buffer between them. Ask the timer about setup and it says the path has a full nanosecond to spare. Ask about hold and it says the same path fails. Both answers are correct. They come from different corners, different clock edges and different questions, and a senior reads the two reports side by side before deciding anything.&lt;/p&gt;
&lt;p&gt;This is Part 3 of Reading Real Reports. Part 2 read one setup report line by line. Today we put a setup report and a hold report for the same pair of flops next to each other, show why they disagree, and point out one footer line in the hold report that catches people out.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Setup asks whether data arrives early enough for the next clock edge. Hold asks whether new data arrives too soon after the same edge.&lt;/li&gt;
&lt;li&gt;Setup is checked at the slow corner and hold at the fast corner. A hold report from a slow corner proves very little.&lt;/li&gt;
&lt;li&gt;The hold check uses the same clock edge for launch and capture, so changing the clock period does not fix it.&lt;/li&gt;
&lt;li&gt;Clock skew that helps setup on a path hurts hold on the same path. Read the clock lines of both reports together.&lt;/li&gt;
&lt;li&gt;In a hold report, slack is arrival minus required. The footer can look as if it says the opposite.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;in-this-post&quot;&gt;In this post&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#two-questions&quot;&gt;Two questions about one path&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#when-you-see-it&quot;&gt;When you see the pair&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#senior-checks&quot;&gt;What a senior checks first&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#common-traps&quot;&gt;Common traps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#deep-dive&quot;&gt;Deep dive (optional)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sample&quot;&gt;The illustrative sample&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#walk-through&quot;&gt;Line-by-line walk-through&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#arithmetic&quot;&gt;Worked arithmetic check&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#red-flags&quot;&gt;Red flags table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#checklist&quot;&gt;Sign-off checklist&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;two-questions&quot;&gt;Two questions about one path&lt;/h2&gt;
&lt;p&gt;The UC Santa Cruz multi-corner STA tutorial puts the two checks plainly. Setup fails when the design runs too slow; hold fails when it runs too fast, because a short path beats the clock from the launching flop to the capturing flop (&lt;a href=&quot;https://vlsida.github.io/chip-tutorials/sta-mc.html#why-multiple-corners&quot;&gt;Why multiple corners?&lt;/a&gt;). The same page sets out the usual pairing: setup against the slow worst case, hold against the fast worst case.&lt;/p&gt;
&lt;p&gt;So a &quot;path&quot; in a timing review is really two checks. A long path tends to fail setup. A short path, often flop to flop with almost nothing between, tends to fail hold. Many paths are safe on both, and a few are tight on both, which is where fixes get hard.&lt;/p&gt;

&lt;h2 id=&quot;when-you-see-it&quot;&gt;When you see the pair&lt;/h2&gt;
&lt;p&gt;In OpenSTA, &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#opt-report_checks-path_delay&quot;&gt;report_checks -path_delay&lt;/a&gt; picks the check: &lt;code&gt;max&lt;/code&gt; for setup, &lt;code&gt;min&lt;/code&gt; for hold, &lt;code&gt;min_max&lt;/code&gt; for both. Summary commands take the same split, for example &lt;code&gt;report_worst_slack -min&lt;/code&gt; for hold (&lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_worst_slack&quot;&gt;report_worst_slack&lt;/a&gt;). Hold usually becomes a real topic after clock tree synthesis, once skew is real. The OpenROAD-flow-scripts tutorial shows a hold repair after global routing, with the resizer reporting that it found 2 endpoints with hold violations and inserted 5 hold buffers (&lt;a href=&quot;https://openroad-flow-scripts.readthedocs.io/en/latest/tutorials/FlowTutorial.html#fixing-hold-violations&quot;&gt;Fixing Hold Violations&lt;/a&gt;).&lt;/p&gt;

&lt;h2 id=&quot;senior-checks&quot;&gt;What a senior checks first&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Check and corner are paired correctly.&lt;/strong&gt; &lt;code&gt;Path Type: max&lt;/code&gt; with a slow corner, &lt;code&gt;Path Type: min&lt;/code&gt; with a fast one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The capture edge.&lt;/strong&gt; In a setup report it is one period after launch. In a hold report it is the same edge as launch, at time zero for a simple single-clock path.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The skew, both ways.&lt;/strong&gt; If the capture clock arrives later than the launch clock, setup gains that time and hold loses it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Room to fix.&lt;/strong&gt; Before adding delay for hold, look at the setup slack on the same endpoint. That is the budget for the fix.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uncertainty values.&lt;/strong&gt; &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_clock_uncertainty&quot;&gt;set_clock_uncertainty&lt;/a&gt; accepts &lt;code&gt;-setup&lt;/code&gt; and &lt;code&gt;-hold&lt;/code&gt;, so the two reports can carry different margins on purpose.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;common-traps&quot;&gt;Common traps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Slowing the clock to fix hold.&lt;/strong&gt; It does nothing for a same-edge hold check.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hold checked with ideal clocks.&lt;/strong&gt; Before clock tree synthesis there is no skew, so hold results are mostly optimistic guesses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fixing hold at one corner, breaking setup at another.&lt;/strong&gt; A delay cell added at the fast corner is slower still at the slow corner.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Half an exception.&lt;/strong&gt; &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#set_false_path&quot;&gt;set_false_path&lt;/a&gt; takes &lt;code&gt;-setup&lt;/code&gt; and &lt;code&gt;-hold&lt;/code&gt; options. An exception written for one check leaves the other one timed, which may or may not be what was meant.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deep-dive&quot;&gt;Deep dive: the numbers and details&lt;/h2&gt;
&lt;p&gt;This part holds two full sample reports, a side-by-side reading, the arithmetic and the checklists. Skip it if the overview is all you need.&lt;/p&gt;

&lt;h3 id=&quot;sample&quot;&gt;The illustrative sample&lt;/h3&gt;
&lt;p&gt;Both reports below are an &lt;strong&gt;illustrative sample in the style of OpenSTA/OpenROAD &lt;code&gt;report_checks&lt;/code&gt; output&lt;/strong&gt;, written for this post. Names, corners and numbers are invented. The hold layout, including the &lt;code&gt;library hold time&lt;/code&gt; line and the footer order, follows a public OpenSTA regression output, &lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/test/set_path_margin1.ok&quot;&gt;set_path_margin1.ok&lt;/a&gt;. Units are nanoseconds; the clock period is 1.25 ns.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Startpoint: u_pipe/s1_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: u_pipe/s2_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Path Group: core_clk
Path Type: max
Corner: ss_0p72v_125c

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.52    0.52   clock network delay (propagated)
   0.00    0.52 ^ u_pipe/s1_reg_7_/CK (DFF_X1)
   0.19    0.71 ^ u_pipe/s1_reg_7_/Q (DFF_X1)
   0.08    0.79 ^ u_pipe/U31/Z (BUF_X1)
   0.02    0.81 ^ u_pipe/s2_reg_7_/D (DFF_X1)
           0.81   data arrival time

   1.25    1.25   clock core_clk (rise edge)
   0.66    1.91   clock network delay (propagated)
  -0.06    1.85   clock uncertainty
   0.03    1.88   clock reconvergence pessimism
           1.88 ^ u_pipe/s2_reg_7_/CK (DFF_X1)
  -0.07    1.81   library setup time
           1.81   data required time
---------------------------------------------------------
           1.81   data required time
          -0.81   data arrival time
---------------------------------------------------------
           1.00   slack (MET)


Startpoint: u_pipe/s1_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: u_pipe/s2_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Path Group: core_clk
Path Type: min
Corner: ff_0p88v_m40c

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.24    0.24   clock network delay (propagated)
   0.00    0.24 ^ u_pipe/s1_reg_7_/CK (DFF_X1)
   0.07    0.31 ^ u_pipe/s1_reg_7_/Q (DFF_X1)
   0.03    0.34 ^ u_pipe/U31/Z (BUF_X1)
   0.01    0.35 ^ u_pipe/s2_reg_7_/D (DFF_X1)
           0.35   data arrival time

   0.00    0.00   clock core_clk (rise edge)
   0.33    0.33   clock network delay (propagated)
   0.03    0.36   clock uncertainty
  -0.02    0.34   clock reconvergence pessimism
           0.34 ^ u_pipe/s2_reg_7_/CK (DFF_X1)
   0.04    0.38   library hold time
           0.38   data required time
---------------------------------------------------------
           0.38   data required time
          -0.35   data arrival time
---------------------------------------------------------
          -0.03   slack (VIOLATED)&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;walk-through&quot;&gt;Line-by-line walk-through&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Headers.&lt;/strong&gt; Same startpoint, same endpoint, same path group. Only &lt;code&gt;Path Type&lt;/code&gt; and &lt;code&gt;Corner&lt;/code&gt; differ: &lt;code&gt;max&lt;/code&gt; at a slow, low-voltage, hot corner and &lt;code&gt;min&lt;/code&gt; at a fast, high-voltage, cold one. That is the pairing the UC Santa Cruz tutorial recommends.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Launch side.&lt;/strong&gt; The data path is identical in structure: clock to Q, one buffer, a short wire. The delays shrink at the fast corner: clock-to-Q 0.19 becomes 0.07, the buffer 0.08 becomes 0.03. The clock tree also speeds up, from 0.52 to 0.24 ns of latency at the launch flop.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Capture edge.&lt;/strong&gt; In the setup report the capture edge is at 1.25, one period later. In the hold report it is at 0.00, the same edge that launched the data. The public OpenSTA output linked above shows the same thing: its &lt;code&gt;min&lt;/code&gt; path captures at &lt;code&gt;clock clk (rise edge)&lt;/code&gt; 0.00. Hold asks whether the new data, launched by this edge, disturbs the old data that this same edge is capturing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Capture clock latency.&lt;/strong&gt; 0.66 at the slow corner, 0.33 at the fast corner. In both, the capture flop sees its clock later than the launch flop does.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Uncertainty.&lt;/strong&gt; Minus 0.06 for setup, which pulls the required time earlier. Plus 0.03 for hold, which pushes it later. In both cases the margin makes the check harder. Different values per check are allowed through the &lt;code&gt;-setup&lt;/code&gt; and &lt;code&gt;-hold&lt;/code&gt; options.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clock reconvergence pessimism.&lt;/strong&gt; Plus 0.03 for setup, minus 0.02 for hold. Both are credits for the shared part of the clock tree, so each moves the required time in the direction that eases its own check.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Library setup and hold times.&lt;/strong&gt; Setup is subtracted (data must arrive before the edge). Hold is added (data must stay stable after the edge).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The footer trap.&lt;/strong&gt; The hold footer prints required time first, then arrival with a minus sign, the same layout as setup. Reading it as a sum gives 0.38 - 0.35 = +0.03, yet the slack line says &lt;code&gt;-0.03&lt;/code&gt;. For a hold check, slack is arrival minus required: 0.35 - 0.38 = -0.03. The public OpenSTA output shows the same pattern: 0.50 required, 0.10 arrival, slack -0.40 (&lt;a href=&quot;https://github.com/The-OpenROAD-Project/OpenSTA/blob/master/test/set_path_margin1.ok&quot;&gt;set_path_margin1.ok&lt;/a&gt;). Trust the slack line and the &lt;code&gt;MET&lt;/code&gt; or &lt;code&gt;VIOLATED&lt;/code&gt; word, and know which formula sits behind it.&lt;/p&gt;

&lt;h3 id=&quot;arithmetic&quot;&gt;Worked arithmetic check&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Setup.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;arrival  = 0.00 + 0.52 + 0.19 + 0.08 + 0.02          = 0.81
required = 1.25 + 0.66 - 0.06 + 0.03 - 0.07          = 1.81
slack    = required - arrival = 1.81 - 0.81          = 1.00  (MET)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Hold.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;arrival  = 0.00 + 0.24 + 0.07 + 0.03 + 0.01          = 0.35
required = 0.00 + 0.33 + 0.03 - 0.02 + 0.04          = 0.38
slack    = arrival - required = 0.35 - 0.38          = -0.03 (VIOLATED)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Skew, read both ways.&lt;/strong&gt; Capture latency minus launch latency is 0.66 - 0.52 = +0.14 ns at the slow corner and 0.33 - 0.24 = +0.09 ns at the fast corner. For setup, a later capture clock adds time, so the 0.14 ns is a gift. For hold, a later capture clock means the old data must be held longer, so the 0.09 ns is a cost. Without it, this hold check would pass by 0.06 ns.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can we fix it?&lt;/strong&gt; The hold check needs at least 0.03 ns more data delay at the fast corner. Say a delay buffer adds 0.05 ns there. Delay cells are slower at the slow corner; if this one were twice as slow there (an assumption for the example, not a library figure), it would add 0.10 ns to the setup path and setup slack would fall from 1.00 to 0.90 ns. There is plenty of room. On a path with 0.05 ns of setup slack, the same fix would break setup, and the answer would have to come from the clock tree instead. The OpenSTA command &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_clock_skew&quot;&gt;report_clock_skew&lt;/a&gt; takes &lt;code&gt;-setup&lt;/code&gt; or &lt;code&gt;-hold&lt;/code&gt;, which helps when deciding which side to work on.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The clock period test.&lt;/strong&gt; Change the period from 1.25 to 2.00 ns in the hold report. The capture edge stays at 0.00, every other number stays the same, and slack is still -0.03. Only the setup report moves, by +0.75 ns.&lt;/p&gt;

&lt;h3 id=&quot;red-flags&quot;&gt;Red flags table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;What you see&lt;/th&gt;&lt;th&gt;Why it matters&lt;/th&gt;&lt;th&gt;What to ask&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Hold reported only at the slow corner&lt;/td&gt;&lt;td&gt;Fast-corner hold failures are hidden&lt;/td&gt;&lt;td&gt;Where is the fast-corner min report?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Hold capture edge not at the launch edge&lt;/td&gt;&lt;td&gt;An exception or clock relation moved the check&lt;/td&gt;&lt;td&gt;Which SDC line caused it, and is it meant to apply to hold?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Large positive skew on hold-critical paths&lt;/td&gt;&lt;td&gt;The clock tree is creating the violation&lt;/td&gt;&lt;td&gt;Can CTS balance these flops instead of adding buffers?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Hold fixes on paths with small setup slack&lt;/td&gt;&lt;td&gt;The fix will move the failure to setup&lt;/td&gt;&lt;td&gt;What is the setup slack at the slow corner after the fix?&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Many hold violators of a few ps before CTS&lt;/td&gt;&lt;td&gt;Ideal clocks make hold numbers unreliable&lt;/td&gt;&lt;td&gt;Re-time with propagated clocks before fixing&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;False path or multicycle set for one check only&lt;/td&gt;&lt;td&gt;The other check is still timed&lt;/td&gt;&lt;td&gt;Was &lt;code&gt;-setup&lt;/code&gt; or &lt;code&gt;-hold&lt;/code&gt; chosen on purpose?&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;checklist&quot;&gt;Sign-off checklist&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Setup (max) reviewed at every slow corner, hold (min) at every fast corner.&lt;/li&gt;
&lt;li&gt;Clocks propagated in both reports.&lt;/li&gt;
&lt;li&gt;Setup capture edge one period after launch; hold capture edge at the launch edge, unless an exception says otherwise.&lt;/li&gt;
&lt;li&gt;Skew sign read for both checks on every critical endpoint.&lt;/li&gt;
&lt;li&gt;Hold slack computed as arrival minus required and matched to the report.&lt;/li&gt;
&lt;li&gt;Setup slack after each hold fix re-checked at the slow corner.&lt;/li&gt;
&lt;li&gt;Setup and hold uncertainty values known and documented.&lt;/li&gt;
&lt;li&gt;Worst hold slack and hold TNS both recorded, with &lt;code&gt;report_worst_slack -min&lt;/code&gt; and &lt;a href=&quot;https://opensta.readthedocs.io/en/latest/Commands/#report_tns&quot;&gt;report_tns -min&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next in the series:&lt;/strong&gt; Clock Skew, Latency and Uncertainty in a Timing Report.&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/9061461085724943354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-3-setup-vs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9061461085724943354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/9061461085724943354'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/reading-real-reports-part-3-setup-vs.html' title='Reading Real Reports, Part 3: Setup vs Hold Paths and Why the Same Path Tells Two Stories'/><author><name>The Semiconductor Hub</name><uri>http://www.blogger.com/profile/12946954242349779618</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbj9f99asmT7BOs2cFx0qsIgN-3VoTTzr8bfwycVzF1QIF9SifWUPKtlqaG4ZMm0U5lJkt0dtG5pzfvTsYXD-6R14gxD5uy0ZKz0ln9WBwCzh20RIkfTrBfom1xNV5fkVZWo0hQHIen9nSg-AsFlkACDqj1rk6vmWYWNSQ_7tEQuebqA/s1600/tsh.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgof1qj4Ts2ElxkFUUAxKJD9f23SrkrLIqm_PNTFPGOUaidcFSyWWwivGg6w_HmqZ5iyJtK6xP3qtvq6WaAQjut-2XuSgnCiS7IpcK3yjnvIR2YgN0SX8iwyz81LW1X7UA7Dcgkqn7x2tqZ_JPVG8ug_qbh_1saVXoz0s78U04L12U4irzKNBzs3w/s72-c/rr-03-setup-vs-hold-paths.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10948316.post-14593663340227226</id><published>2026-11-27T06:13:00.000+05:30</published><updated>2026-11-27T06:13:00.294+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI Hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="DFT and Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Low Power Design"/><title type='text'>Joules Before Gigabits: A Scan Budget for One Very Large AI Die</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear:both;text-align:center&quot;&gt;&lt;img alt=&quot;A large silicon die under a dense array of probe needles, with heat glowing across its surface during wafer test.&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPDHv7kAhjye4p-Uc8lnzJbzq61mknAkrB5nlytzIqPqxRvkHb1WDLdvUPqcnAaoft_pEOx48DSVtqIc2evCEjYxZQMESvnHFCo3qAJIlgfZcmWe0VqS4xrnXxQuKrmeq735MphDzPIVMzt23ZvMFRURl8AlrvAqF8aOeSH97GPD4CUPEj6zhWAA/s1600/big-die-scan-budget.jpg&quot; title=&quot;A large silicon die under a dense array of probe needles, with heat glowing across its surface during wafer test.&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Give a very large AI die more test bandwidth and scan time falls, until it suddenly stops falling. In the illustrative 400-million-flop die modelled below, 90,000 patterns take 28.1 seconds through 32 scan pins. Broadcasting patterns to identical cores cuts the data by a factor of 4.8 and brings the run down to 12.0 seconds. There it stays, because a 300 W limit at wafer sort, half of it already taken by static power, sets a floor of 133 µs per pattern that no extra bandwidth can move.&lt;/p&gt;
&lt;p&gt;That is the argument of this post: on one big die, test time and test power are a single budget, and the power side is often settled by decisions taken long before a tester is booked. We build the budget line by line so you can use your own numbers. This post stays with a single die.&lt;/p&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Key takeaways&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Each pattern has three time limits: data delivery, internal shift clock and power. The slowest one sets the test time.&lt;/li&gt;
&lt;li&gt;Broadcast and faster links reduce bits. They do not reduce the joules spent shifting, so they stop helping once power is the limit.&lt;/li&gt;
&lt;li&gt;In our illustrative model, the 300 W sort limit, less 150 W of static power, gives a floor of 133 µs per pattern. Lowering toggle activity moves that floor; adding bandwidth does not.&lt;/li&gt;
&lt;li&gt;Capture is a separate problem, about peak current and not heat. A 2011 paper with NVIDIA authors reports scan power of 4 to 5 times functional power on GPUs, and the methods that contain it can raise pattern count sharply.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;why-big-die&quot;&gt;Why one big die is its own problem&lt;/h2&gt;
&lt;p&gt;For scale, NVIDIA describes the full GH100 as 80 billion transistors on an 814 mm² die, and lists the H100 SXM module at up to 700 W. Scan test exercises as much of such a chip as it can, and that is where the trouble starts.&lt;/p&gt;
&lt;p&gt;A DATE 2011 paper with authors from NVIDIA, AMD and Altera remains one of the clearest public accounts, although the designs it describes are now old. It says that fully loaded GPU power of a couple of hundred watts climbs by another 4 to 5 times during scan test, and that the power grid is usually designed only for the functional budget. Its figure shows VDD dropping 0.525 V at the launch clock on a GPU, measured by an ATE sensor, with 933 ps to recover before capture. The result was massive failures that said nothing about real defects.&lt;/p&gt;
&lt;p&gt;The usual escape is to slow the shift clock, which trades power for test time. At-speed capture has no such option, since it has to run at functional speed. For a refresher on chains, compression and ATPG, our &lt;a href=&quot;/2025/01/top-50-design-for-test-dft-interview.html&quot;&gt;50 DFT interview questions&lt;/a&gt; cover the basics.&lt;/p&gt;

&lt;h2 id=&quot;budget&quot;&gt;A worked budget&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;The reference die values are published. Every other number in this section is an illustrative assumption, not data from any foundry, vendor or product.&lt;/strong&gt; The model covers scan logic test only and ignores memory BIST, analogue test and overheads.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Input&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Basis&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Functional power for scale&lt;/td&gt;&lt;td&gt;700 W&lt;/td&gt;&lt;td&gt;NVIDIA, H100 SXM. A module figure, so generous for a die alone&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Supply during test&lt;/td&gt;&lt;td&gt;0.75 V&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Scan flops&lt;/td&gt;&lt;td&gt;400 million&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Internal chains&lt;/td&gt;&lt;td&gt;40,000, so 10,000 flops each&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Patterns before capture control&lt;/td&gt;&lt;td&gt;60,000&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Compression&lt;/td&gt;&lt;td&gt;100:1, so 4 Mbit of stimulus per pattern&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Scan pins&lt;/td&gt;&lt;td&gt;32 in and 32 out at 400 Mbps, so 12.8 Gbps each way&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Internal shift clock limit&lt;/td&gt;&lt;td&gt;100 MHz&lt;/td&gt;&lt;td&gt;Illustrative. An NVIDIA patent filed in 2012 has an example feeding chains at 62.5 MHz&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Static power&lt;/td&gt;&lt;td&gt;150 W&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Shift energy&lt;/td&gt;&lt;td&gt;5 fJ per flop per shift cycle, including clock and logic&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Capture energy&lt;/td&gt;&lt;td&gt;20 fJ per toggling flop, including clock and logic&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Capture clock&lt;/td&gt;&lt;td&gt;1 GHz&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Power grid limit during capture&lt;/td&gt;&lt;td&gt;2,400 A&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sustained power limit&lt;/td&gt;&lt;td&gt;300 W at sort, 700 W at final test&lt;/td&gt;&lt;td&gt;Illustrative&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h3&gt;Step 1: capture sets the pattern count&lt;/h3&gt;
&lt;p&gt;The DATE paper reports 36% to 44% of flops toggling at capture in three designs without control, so we take 40%. That is 400 million × 0.40 × 20 fJ = 3.2 µJ in a 1 ns cycle, or 3,200 W of dynamic power. Adding the 150 W static gives 3,350 W, which at 0.75 V is 4,467 A. Against 933 A for 700 W, that is about 4.8 times functional, in line with the paper&#39;s range because we chose the inputs to match it.&lt;/p&gt;
&lt;p&gt;The 2,400 A limit leaves 2,200 A for dynamic current, which is 1,650 W and allows 20.6% toggling. The paper&#39;s controller steps in units of 6.25%, so we use its 18.75% setting and, for simplicity, take that as the toggle rate: 1,500 W of dynamic power, 2,000 A, and 2,200 A with static current. The paper&#39;s measured rates at this setting ran from 16% to 22%, and the top of that range would break our limit. We assume this adds 50% to the pattern count, giving 90,000 patterns. As the next section shows, that assumption deserves the most scrutiny.&lt;/p&gt;

&lt;h3&gt;Step 2: three limits on each pattern&lt;/h3&gt;
&lt;p&gt;Scan-out overlaps scan-in, so each pattern costs one chain length. Launch and capture add a few nanoseconds, which we ignore. Each limit gives a minimum time per pattern:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Data:&lt;/strong&gt; 4 Mbit at 12.8 Gbps = 312.5 µs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clock:&lt;/strong&gt; 10,000 cycles at 100 MHz = 100 µs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power:&lt;/strong&gt; shifting one pattern costs 400 million × 5 fJ × 10,000 = 20 mJ. With 150 W of the 300 W already taken by static power, 150 W remains, so 20 mJ ÷ 150 W = 133.3 µs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;At the full 100 MHz, the die would draw 200 W of shift power plus 150 W static, or 350 W, which is 50 W over the sort limit.&lt;/p&gt;

&lt;h3&gt;Step 3: the results&lt;/h3&gt;
&lt;p&gt;Assume 80% of the flops sit in 100 identical cores that can share one stimulus stream. Data per pattern becomes 4 Mbit × (0.20 + 0.80 ÷ 100) = 0.832 Mbit, which takes 65 µs on the same pins.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Case (90,000 patterns)&lt;/th&gt;&lt;th&gt;Data&lt;/th&gt;&lt;th&gt;Clock&lt;/th&gt;&lt;th&gt;Power&lt;/th&gt;&lt;th&gt;What governs&lt;/th&gt;&lt;th&gt;Run time&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Sort: 32 pins, no broadcast&lt;/td&gt;&lt;td&gt;312.5 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;133.3 µs&lt;/td&gt;&lt;td&gt;Data&lt;/td&gt;&lt;td&gt;28.1 s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sort: 32 pins, broadcast&lt;/td&gt;&lt;td&gt;65 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;133.3 µs&lt;/td&gt;&lt;td&gt;Power&lt;/td&gt;&lt;td&gt;12.0 s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sort: 64 Gbps usable link, no broadcast&lt;/td&gt;&lt;td&gt;62.5 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;133.3 µs&lt;/td&gt;&lt;td&gt;Power&lt;/td&gt;&lt;td&gt;12.0 s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sort: broadcast, shift energy cut to 4 fJ&lt;/td&gt;&lt;td&gt;65 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;106.7 µs&lt;/td&gt;&lt;td&gt;Power&lt;/td&gt;&lt;td&gt;9.6 s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sort: as above, static cut to 100 W&lt;/td&gt;&lt;td&gt;65 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;80 µs&lt;/td&gt;&lt;td&gt;Clock&lt;/td&gt;&lt;td&gt;9.0 s&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Final test: broadcast, 700 W limit&lt;/td&gt;&lt;td&gt;65 µs&lt;/td&gt;&lt;td&gt;100 µs&lt;/td&gt;&lt;td&gt;36.4 µs&lt;/td&gt;&lt;td&gt;Clock&lt;/td&gt;&lt;td&gt;9.0 s&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Run at two voltage corners, the first two sort cases take 56.25 and 24.0 seconds. At an illustrative $150 per tester hour with one site, that is $2.34 against $1.00.&lt;/p&gt;

&lt;h2 id=&quot;energy-floor&quot;&gt;The energy floor&lt;/h2&gt;
&lt;p&gt;The third limit in Step 2 can be written as one line:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Minimum time per pattern = energy per pattern ÷ (power limit minus static power)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It explains why the second and third rows of the results table finish together. Broadcast and a faster link attack different things, yet neither touches the 20 mJ. Without broadcast, any usable bandwidth above 30 Gbps (4 Mbit in 133.3 µs) is wasted at sort. With it, the figure is 6.24 Gbps.&lt;/p&gt;
&lt;p&gt;The formula shows two less obvious points:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Scheduling does not lower the floor.&lt;/strong&gt; Shifting half the die, then the other half, spends the same 20 mJ over a longer time. Partitioning and staggering still earn their place by reducing peak current. An NVIDIA patent filed in 2012 describes two chain groups enabled in turn cutting peak shift power by about 50%. Average heat is unchanged.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Static power is a large lever.&lt;/strong&gt; Going from 150 W to 100 W widens the room for shift power by a third. That makes test temperature and test voltage part of the time budget.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;capture-cost&quot;&gt;What capture control costs&lt;/h2&gt;
&lt;p&gt;Our 50% rise in pattern count is an assumption, so here is the evidence behind it. The DATE paper reports these results for its 18.75% setting, with coverage held at 100% or better on the authors&#39; normalised scale. The designs are small blocks of 47,579 to 92,761 flops.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Design&lt;/th&gt;&lt;th&gt;Toggling without control&lt;/th&gt;&lt;th&gt;Toggling at 18.75% setting&lt;/th&gt;&lt;th&gt;Patterns without control&lt;/th&gt;&lt;th&gt;Patterns at 18.75% setting&lt;/th&gt;&lt;th&gt;Rise&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;A&lt;/td&gt;&lt;td&gt;44.23%&lt;/td&gt;&lt;td&gt;22.18%&lt;/td&gt;&lt;td&gt;14,232&lt;/td&gt;&lt;td&gt;18,255&lt;/td&gt;&lt;td&gt;28%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;B&lt;/td&gt;&lt;td&gt;39.19%&lt;/td&gt;&lt;td&gt;17.80%&lt;/td&gt;&lt;td&gt;4,206&lt;/td&gt;&lt;td&gt;9,274&lt;/td&gt;&lt;td&gt;120%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;C&lt;/td&gt;&lt;td&gt;36.37%&lt;/td&gt;&lt;td&gt;16.41%&lt;/td&gt;&lt;td&gt;6,334&lt;/td&gt;&lt;td&gt;20,191&lt;/td&gt;&lt;td&gt;219%&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;So the spread is wide, and 50% is at the kinder end of it. Rerun our model at 219% and the patterns become 191,400. At the 133.3 µs floor, that is 25.5 seconds per run. A tighter capture budget can therefore cost more test time than the shift limit does, which is why it belongs in the same spreadsheet.&lt;/p&gt;
&lt;p&gt;The paper also shows why teams look beyond tool settings. On a 7.5-million-flop GPU design, a commercial ATPG tool took about 10 hours to reach 62.72% transition coverage with 100 patterns. With its power-aware option at a 15% budget, it took about 20 days and reached 38.08%. That was one tool in 2011, and the authors note that others could differ.&lt;/p&gt;

&lt;h2 id=&quot;tester-side&quot;&gt;What the test cell claims it can absorb&lt;/h2&gt;
&lt;p&gt;All the figures below are vendor claims, and none states whether the rating is for continuous or short-duration current.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Source&lt;/th&gt;&lt;th&gt;Claim&lt;/th&gt;&lt;th&gt;What it means for our die&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Teradyne, September 2026&lt;/td&gt;&lt;td&gt;UltraVS64-HP: 1,280 A per instrument, 5,120 A per ganged supply, more than 15,000 A per test cell. UltraPin5000-EM: 5 Gbps&lt;/td&gt;&lt;td&gt;2,200 A fits one supply. On current alone, 15,000 A gives 6 whole sites&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Advantest, 2020 and 2021&lt;/td&gt;&lt;td&gt;XPS256 ganging up to thousands of amps. Pin Scale 5000 scan at 5 Gbit/s&lt;/td&gt;&lt;td&gt;Tester pins at this rate outrun our 400 Mbps device pins, so the device is the bottleneck&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ERS and watttron, SWTest June 2025&lt;/td&gt;&lt;td&gt;Wafer chuck with 50 W/cm² dynamic control today, 120 W/cm² planned&lt;/td&gt;&lt;td&gt;Our 300 W is 37 W/cm² over 8.14 cm². 700 W would be 86 W/cm²&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Technoprobe, SWTest 2012&lt;/td&gt;&lt;td&gt;MEMS needle rated at 1,240 mA at 90 µm full array, 5.2 g at 75 µm overtravel&lt;/td&gt;&lt;td&gt;See below. An old figure, used for scale&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Even the uncontrolled 4,467 A would fit within Teradyne&#39;s ganged rating. So the tester could supply current that the die&#39;s grid could not deliver cleanly, which is why the limit in our model sits on the die.&lt;/p&gt;
&lt;p&gt;The gap between sort and final test explains our two power limits. &lt;a href=&quot;/2023/03/what-is-silicon-sort-testing.html&quot;&gt;Wafer sort&lt;/a&gt; has to pull heat through a heavy chuck. The ERS deck says chuck mass responds too slowly to local power, and reports a 150 W, 25 mm by 35 mm jig rising 16 °C with a cooler only, against 0.5 °C with its own section control. That is a vendor test on a jig.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;/2023/02/what-is-wafer-probe-testing.html&quot;&gt;probe card&lt;/a&gt; needs its own sum. At the sort limit, 300 W at 0.75 V is 400 A, or 323 power needles at the 2012 rating. Double them for margin and match them with ground needles, and about 1,290 needles exert about 6.7 kg. An 814 mm² die at 90 µm has room for about 100,000 sites, so sharing current evenly is the harder part, which Advantest&#39;s material also stresses.&lt;/p&gt;

&lt;h2 id=&quot;before-tapeout&quot;&gt;What to settle before tape-out&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Write the energy per pattern on the first page of the test plan.&lt;/strong&gt; Estimate it from your flop count and a simulated toggle rate, then divide by the room left under each insertion&#39;s limit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Agree a capture current limit with the power grid team.&lt;/strong&gt; The grid is designed for functional use, so a number has to be requested. Build the clock-gate grouping to hit it, and measure the pattern count early.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decide how much data must come through high-speed interfaces.&lt;/strong&gt; An NVIDIA patent describes a device fetching its own test data over PCIe, leaving the tester mainly power and thermal control. An ITC 2024 paper from NVIDIA authors covers streaming scan over that access route, though we read only its abstract. Bandwidth then becomes plentiful, and power and heat become the tester&#39;s main job.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Plan broadcast around per-core results.&lt;/strong&gt; Siemens claims its Streaming Scan Network tests any number of identical cores at constant cost, and Synopsys describes broadcast with power throttling and core-level power gating in its own fabric. Both are vendor statements. NVIDIA&#39;s H100 SXM5 ships with 132 of the 144 SMs on a full GH100. NVIDIA&#39;s article does not say why, but any product that disables units to save yield needs to know which core failed, not only that one did.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Budget memory test and read the standards correctly.&lt;/strong&gt; A 2024 ITC paper on memory BIST scheduling says embedded memories raise power during that phase too, and our model leaves this out. IEEE 1500-2022 defines core test architecture and language, and IEEE 1687 covers instrument access. The 2014 edition of 1687 is now listed as inactive-reserved, with a new P1687 project active. As we read them, neither sets a power or time budget.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In a January 2025 Siemens blog, Intel&#39;s Mikey Shahar is quoted as saying that streaming scan cut test time per part by 10% to 25% and saved about $50 million, a statement relayed by the vendor with no published baseline. Our &lt;a href=&quot;https://www.thesemiconhub.com/lifecycle/soc&quot;&gt;SoC lifecycle&lt;/a&gt; on The Semiconductor Hub shows where these decisions fall in a programme.&lt;/p&gt;

&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Yang, Sanghani, Sarangi and Liu (NVIDIA, AMD, Altera), &quot;&lt;a href=&quot;https://doi.org/10.1109/DATE.2011.5763042&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A Clock-gating Based Capture Power Droop Reduction Methodology for At-Speed Scan Testing&lt;/a&gt;&quot;, DATE 2011.&lt;/li&gt;
&lt;li&gt;International Test Conference 2024 programme, 7 November 2024: Mangilal et al., &quot;&lt;a href=&quot;https://doi.org/10.1109/ITC51657.2024.00062&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;A Scalable &amp;amp; Cost Efficient Next-Gen Scan Architecture: Streaming Scan Test via NVIDIA MATHS&lt;/a&gt;&quot;, and Au et al., &quot;&lt;a href=&quot;https://doi.org/10.1109/ITC51657.2024.00060&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Power-Aware Test Scheduling for Memory BIST&lt;/a&gt;&quot;. Abstracts only.&lt;/li&gt;
&lt;li&gt;Siemens, &quot;&lt;a href=&quot;https://blogs.sw.siemens.com/tessent/2021/06/03/read-the-2020-itc-paper-tessent-streaming-scan-network/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Read the 2020 ITC paper: Tessent Streaming Scan Network&lt;/a&gt;&quot;, 3 June 2021, and Orlando, &quot;No-compromise packetized test improves DFT efforts&quot;, 30 January 2025. Vendor material.&lt;/li&gt;
&lt;li&gt;NVIDIA, US patent 9,377,510, &quot;&lt;a href=&quot;https://patents.google.com/patent/US9377510B2/en&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;System for reducing peak power during scan shift at the global level for scan based tests&lt;/a&gt;&quot;, filed 28 December 2012, granted 28 June 2016.&lt;/li&gt;
&lt;li&gt;NVIDIA, US patent 10,663,515, &quot;&lt;a href=&quot;https://patents.google.com/patent/US10663515B2/en&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Method and apparatus to access high volume test data over high speed interfaces&lt;/a&gt;&quot;, granted 26 May 2020.&lt;/li&gt;
&lt;li&gt;Andersch et al. (NVIDIA), &quot;&lt;a href=&quot;https://developer.nvidia.com/blog/nvidia-hopper-architecture-in-depth/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NVIDIA Hopper Architecture In-Depth&lt;/a&gt;&quot;, 22 March 2022, and &lt;a href=&quot;https://www.nvidia.com/en-us/data-center/h100/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;NVIDIA H100 product page&lt;/a&gt;. Read 7 November 2026.&lt;/li&gt;
&lt;li&gt;Teradyne, &quot;&lt;a href=&quot;https://investors.teradyne.com/news-events/press-releases/detail/447/teradyne-launches-advanced-ultraflexplus-instruments-engineered-for-ai-and-data-center-computing-devices&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Teradyne Launches Advanced UltraFLEXplus Instruments Engineered for AI and Data Center Computing Devices&lt;/a&gt;&quot;, 1 September 2026. Vendor claims.&lt;/li&gt;
&lt;li&gt;Advantest, &quot;&lt;a href=&quot;https://www.advantest.com/en/news/2020/20200923.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Advantest Introduces Evolutionary V93000 EXA Scale SoC Test System&lt;/a&gt;&quot;, 23 September 2020, and &quot;&lt;a href=&quot;https://www.advantest.com/en/news/2021/20210112.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Advantest DC Scale XPS256 DPS Card Ramps to Production at Leading Semiconductor Manufacturers&lt;/a&gt;&quot;, 12 January 2021. Vendor claims.&lt;/li&gt;
&lt;li&gt;Reitinger and Holeczek, &quot;Advanced Localized Thermal Management for Wafer Probing in High Power AI and GPU Applications Under Dynamic Thermal Conditions&quot;, SWTest, June 2025. Vendor material.&lt;/li&gt;
&lt;li&gt;Vallauri et al. (Technoprobe), &quot;TPEG: a new vertical MEMS solution for high current, low pitch applications&quot;, SW Test Workshop 2012. Vendor material.&lt;/li&gt;
&lt;li&gt;Colburn and Ganta (Synopsys), &quot;&lt;a href=&quot;https://www.synopsys.com/blogs/chip-design/ai-hpc-chip-test-solutions-seq-compression-streaming-fabric.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;Addressing AI and HPC Chip Test Challenges with TestMAX SEQ Compression and Streaming Fabric&lt;/a&gt;&quot;, 13 October 2025. Vendor material.&lt;/li&gt;
&lt;li&gt;IEEE Standards Association, pages for &lt;a href=&quot;https://standards.ieee.org/ieee/1500/7704/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;IEEE 1500-2022&lt;/a&gt; (published 12 October 2022) and &lt;a href=&quot;https://standards.ieee.org/ieee/1687/3931/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;IEEE 1687-2014&lt;/a&gt; (published 5 December 2014). Read 7 November 2026.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;The worked budget uses illustrative numbers and is no guide to any real product&#39;s test time or power. Vendor figures are the companies&#39; own claims, as published on the dates shown.&lt;/em&gt;&lt;/p&gt;
 &lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;br/&gt;&lt;b&gt;Originally published and copyrighted at &lt;a href=&quot;http://digitalelectronics.co.in&quot;&gt;The Digital Electronics Blog&lt;/a&gt; by &lt;a href=&quot;http://www.digitalelectronics.co.in&quot;&gt;Murugavel Ganesan&lt;/a&gt;. All Rights Reserved!&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.digitalelectronics.co.in/feeds/14593663340227226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/joules-before-gigabits-scan-budget-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/14593663340227226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10948316/posts/default/14593663340227226'/><link rel='alternate' type='text/html' href='http://blog.digitalelectronics.co.in/2026/11/joules-before-gigabits-scan-budget-for.html' title='Joules Before Gigabits: A Scan Budget for One Very Large AI Die'/><author><name>Murugavel Ganesan</name><uri>http://www.blogger.com/profile/16559655046456902358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='-1' height='-1' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7YAKnQIGWy6zdqy8p38rPlU_lWAvDYt9YQ4-YU7BWbXJJEcWCOYmXQTvksBcTxN07NRSOEYmWIVB5rBDZrENF5wMyiX6D9dfw9zuQUlcemQPPcIWAdXb243zZJPkRz4IU0ZCj_mWn_mN43KbZq7BK64FfCzjGhwhiHIAq_L9lkOzxY7g/s1600/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPDHv7kAhjye4p-Uc8lnzJbzq61mknAkrB5nlytzIqPqxRvkHb1WDLdvUPqcnAaoft_pEOx48DSVtqIc2evCEjYxZQMESvnHFCo3qAJIlgfZcmWe0VqS4xrnXxQuKrmeq735MphDzPIVMzt23ZvMFRURl8AlrvAqF8aOeSH97GPD4CUPEj6zhWAA/s72-c/big-die-scan-budget.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>