Back

Reverse-engineering a 1960s hybrid flip flop module with X-ray CT scans

99 points10 daysrighto.com
dreamcompiler10 days ago

> The reverse-engineering solves one mystery about the flip flop ... Looking at the reverse-engineered schematic, though, explains that a sharp pulse on the J pin will act like the clock, sending a pulse through the capacitor, turning off the transistor, and causing a high output. I assume this behavior is not intentional, and J inputs are expected not to transition as sharply as when I touched it with a ground wire.

This paragraph caused chills to run up my spine. The fact that they used AC coupling on the clock line seemed clever because it saved a couple of transistors, but the fact that they depended on J and K always being "slow" was cringeworthy. If J and K were somehow not slow, the device would become "not a proper flip flop." And yet it went to the Moon, so I guess they knew something I don't.

One other thought: When Ken grounded the J line, he was attaching it to essentially zero impedance to ground. The clock line will never have zero impedance, but it's reasonable to expect it to have lower impedance than regular signal lines. The sensitivity on J and K might be more a function of signal impedance than rise/fall time per se. Of course the two things are not unrelated. Potato/potahto.

somat10 days ago

Note that this box did not go to the moon, I don't think it would have been in the signal path(if I understand correctly it is a ground unit used to run unit tests on the radio transmission gear). Now as to whether similar loosely specified flipflops were in flight hardware, I have no idea.

I also will note that even the much vaunted Apollo guidance computer was a case of worse is better. The Saturn 5, now that had a proper flight computer(the LVDC), designed by IBM, redundant everything, A computer that could not fail. The AGC in contrast not only had no internal redundancy, it was designed to fail (in case of error the system could very quickly reboot and resume running it's program where it left off). However the trade off was that the AGC was half the weight and twice the speed as the LVDC and they could carry two of the things to get the reliability they wanted.

iasay10 days ago

Fresh out of university as an EE in my first job I was surprised to find that the rule was "if it conforms to the tests then it works". Sometimes the tests were poorly designed or were narrow enough only to test the happy paths. Box ticked, ship to customer.

I eventually moved to software at which point I discovered that it's even worse here. It's at least 10^6x more difficult to kill people though and you usually don't have to get off your chair to undo the carnage.

bee_rider10 days ago

Yes in software we don't even have to worry about trying to get the magic smoke back into the chip (very difficult).

pixl9710 days ago

> "if it conforms to the tests then it works".

Um, but what if someone does something outside of the tests.

"Well, then it breaks".

Yes, but this is software, how does it break?

"Hopefully not badly and insecurely"

Aloha10 days ago

Often its "If it appears to pass the test it ships".

adrian_b10 days ago

Before the flip-flops implemented as monolithic integrated circuits, all the flip-flops used AC-coupled clock inputs that required fast input clock edges and the correct operation of the flip-flops depended critically on various timing parameters.

The reason for this is that it saved much more than a couple of transistors.

Most flip-flops with relaxed timing requirements are of the so-called master-slave type, and the most frequent implementation variants need either 4 times or 3 times more transistors than are needed for an AC-coupled flip-flop, for which 2 transistors may be enough in its simplest variant.

Even the first integrated flip-flops have used schematics similar to the earlier discrete flip-flops, until they were replaced by later models, using more transistors, such as the TTL 54/7472, 54/7473, 54/7474, 54/7476.

dreamcompiler9 days ago

Fair enough. I learned this subject during the TTL era after transistors got cheap. Capacitors were "ugly analog things" that were only used for Vcc buffering.

I never knew AC coupled clocks happened before DC coupled clocks. Thanks!

kens10 days ago

Good comments. I don't have details on impedance vs fall time so I don't know how big the safety margin was. But this behavior caused me so much confusion when I was testing the module to reverse engineer it.

By the way, this modules wasn't used in flight; it was part of a test box that was used on the ground. The Updata Link box onboard the spacecraft was built with different technology. Just want to avoid confusion :-)

kens10 days ago

Author here for your X-ray questions...

iasay10 days ago

No questions just appreciation. Your blog and Marc’s channel are about the most interesting things I’ve read and watched for years (as an ex EE). Pure quality content. Thank you.

kens10 days ago

Thanks for the nice comment!

skywal_l10 days ago

What kind of file format the CT machine produce? DICOM? What's the spatial resolution of the model? How big was the file for this component? Could you make the file available? Are they using webgl to display the volume in 3D?

kens10 days ago

The system is web-based so I don't know about the underlying file format. They've downloaded files to a 3-D printer so it's something usable. The spatial resolution depends on the size of the object (which determines how close it is to the sensor). In one scan we saw the bond wires inside a transistor in a unit, so the resolution can be very good. For a large, dense metal object the resolution is lower.

This scan is online at: https://app.lumafield.com/project/afa60fd5-308d-41da-a0c6-14... You can manipulate the scan yourself after creating an account.

skywal_l10 days ago

So apparently the volume is loaded in 3 chunks 95MB (285M). Looking at the code they are indeed using WebGL (through Three.js) for the raytracing. I don't think it's a DICOM format, at least not on the frontend side as I don't see the usual DICOM fields used in 3D rendering in the code. They have multiple versions of React bundled, I don't know what's the story about that.

Anyway, thanks for the link, nice piece of technology.

kens10 days ago

I asked Lumafield. They say that the can export mesh files for 3D printing, but they don't support DICOM files.

gumby10 days ago

My dad described using modules like this. Glad to see some confirming evidence.

kens10 days ago

Yes, hybrid modules like this were popular in the 1960s and produced by multiple manufacturers. Eventually, of course, integrated circuits replaced them for most applications.

baking10 days ago

Why do you refer to them as "hybrid" modules. Seems like a standard transistor logic circuit of the era to me.

kens10 days ago

That's what they called modules that were built from active and passive components. As opposed to a "monolithic" integrated circuit.

+2
baking10 days ago
NovemberWhiskey10 days ago

Technically, a hybrid integrated circuit is just a bunch of individual components that are integrated together into a single package vs a monolithic integrated circuit which is your typical "everything on a chip of silicon".

mildmotive10 days ago

> Cloud software then generates a 3-D representation from the X-rays.

Paying possibly hundreds of thousands of dollars for a machine and still not being able to operate it independently of the producer because a significant part of the software is “on the cloud” is not a good thing.

qwezxcrty9 days ago

BTW: anyone interested in DIY such a Xray CT? Sounds more and more doable with more flat panel detectors retired and go to ebay, but reversing engineering to drive them are not very easy.