Why our superloop got slower above 55°C
Published · Gaganyaan Processor Interface FPGA
This one is from my ISRO days. We had a board in the thermal chamber, and somewhere around 55°C the superloop occupancy in telemetry jumped by about 11%. Nothing failed. No corruption, no errors, every access completed. It took us a while to figure out why, and the answer turned out to be a nice little lesson on what worst-case design does (and doesn’t) guarantee.
What we saw
The flight software ran a 32 ms superloop, and one of the telemetry parameters was how much of that 32 ms was actually used. At cold and at room temperature it sat at one value. On the hot cycles, somewhere around 55°C (I don’t remember the exact number), it stepped up by roughly 11% and stayed there until things cooled down.
If you’ve worked on flight software you know why this bugs you. A number that should not depend on temperature was depending on temperature, and we didn’t know why.
The setup
The FPGA sat between the CPU and its memories and acted as the memory/bus controller. It also generated the CPU’s clock (around 30 MHz, so ~33 ns per cycle).
A memory access went roughly like this:
- The CPU asserts a control strobe.
- The FPGA latches the strobe on its internal clock, which kicks off a wait-state timer.
- When the timer runs out, the FPGA drives RDY/BSY back to the CPU and the access completes.
So the number of wait states the CPU actually sees depends on which FPGA clock edge catches the strobe first. Keep that in mind.
The strobe isn’t an ordinary input. The CPU launches it off the clock the FPGA sent out, so by the time it gets back to the capture flop it has gone through the FPGA’s output pad, the board, the CPU’s clock-to-out, the board again and the FPGA’s input pad.
What was actually happening
All of those delays grow with temperature, and the FPGA’s I/O pad delays are the biggest movers. Between cold and hot, the strobe’s arrival shifted by a few nanoseconds.
A few ns against a 33 ns cycle shouldn’t matter. Unless the strobe is arriving right next to a capture edge, which in our case it was. At cold and room it came in just before edge N and got caught there. When hot, it slipped just past N and only got caught at N+1.
One edge late means the timer starts one cycle late, RDY comes one cycle late and the access is one cycle longer. Do that on every bus access in a 32 ms loop and you get the ~11% jump. The drift itself is smooth, but the capture flop can only see it in steps of one full clock.
Wait, so fewer wait states also work?
This is the obvious question (and the first one I got whenever I explained this to someone). If the design needed X wait states, how were the memories fine with X−1 at cold and room?
The answer is that X was never set by the memories alone. It was set by the round trip in the hot corner, where the FPGA’s I/O pad delays are at their worst. The wait-state count had to cover the full loop there: clock out, strobe back in, and then the memory access itself with its own pad delays on top.
At cold and room, those same pad delays are a lot smaller. The RTAX-S datasheet gives every timing number at worst-case military conditions (TJ = 125 °C, VCCA = 1.425 V) and then hands you a derating table to scale it to other temperatures and voltages (Table 2-11).
To get a feel, count the FPGA pads each path goes through. The strobe-to-RDY loop crosses two output pads (clock out, RDY out) and one input pad (strobe in). A memory read, the worst case, crosses three outputs (clock, address, RDY) and two inputs (strobe, data). Using an LVTTL 8 mA low-slew output buffer (18.60 ns max, Std speed) and an input buffer (2.17 ns max) from Table 2-25, derated at VCCA = 1.5 V:
| Junction temp (°C) | Derating factor | Strobe loop, 2 out + 1 in (ns) | Memory read, 3 out + 2 in (ns) |
|---|---|---|---|
| −55 | 0.73 | 28.74 | 43.90 |
| 25 | 0.81 | 31.89 | 48.71 |
| 70 | 0.87 | 34.25 | 52.32 |
| 85 | 0.90 | 35.43 | 54.13 |
| 125 | 0.97 | 38.19 | 58.34 |
From 25 °C to 85 °C junction, the strobe loop moves by about 3.5 ns and a memory read by about 5.4 ns, from the FPGA pads alone. From −55 °C it’s closer to 6.7 ns and 10.2 ns. The CPU’s output delays drift the same way on top of that. (The exact numbers depend on the I/O standard, drive strength and speed grade, so treat this as a feel for the size of the effect).
Look at the memory read column at 125 °C too. That’s about 10-15 ns from the FPGA pads alone, before you add the board traces or the memory’s own access time. That’s why the hot corner, and not the memory itself, set the wait-state count.
So everything gets faster at once. The strobe comes back earlier, and the memory access has much more slack than it needs. Losing one wait state only eats into margin that exists because the chip is cool. When it heats up, the strobe slips to N+1 and the extra wait state comes back right when that margin goes away, which is also why nothing ever broke.
Source: RTAX-S/SL and RTAX-DSP datasheet, DS2169 v18, Tables 2-11 and 2-25.
Why simulation didn’t show it
We designed to the CPU’s worst-case strobe delay from the datasheet, which is what you’re supposed to do. The board-level simulations (with fairly precise timing checks on the CPU and memory interfaces) were all run at that corner. At that corner the strobe always lands after edge N, and simulation happily reported the longer loop time. That number was correct. It just wasn’t the whole picture.
The real CPU was faster than its datasheet max (real parts usually are), and at cold and room the FPGA pads were fast too. We knew the round trip drifted with temperature, and we had characterized it. What we never asked was where the actual hardware sat relative to the capture edge.
Reproducing it in the lab took a while. It only showed up above some temperature, and we had no idea which interface was misbehaving. Once we suspected the strobe path, we added the short-delay CPU case to simulation next to the worst-case one, and it reproduced the shorter loop time.
What we did
Nothing was broken, so there was nothing to fix in the RTL. We documented both operating points and the temperature dependence, and gave the software team the higher (hot) number as their budget. That way their margins hold at any temperature, whichever side of the edge the hardware happens to be on.
What I took away from it
A few things I’ve carried with me since:
- Worst-case analysis tells you the design works. It doesn’t tell you it behaves the same way everywhere. If the min and max delays land on different sides of a capture edge, you have two behaviours, and sooner or later you’ll see both.
- Simulate the fast corner too, not just the slow one, especially on paths where you care about cycle counts and not just setup/hold.
- Be extra careful with round trips through a forwarded clock. The capture timing depends on both chips and the board twice, and it’s easy to constrain the strobe as if it were an ordinary input.
- Put loop time in telemetry. That one number is the only reason we caught this at all.