Ternary Computing
Ternary Computing
Posted Jan 14, 2020 21:26 UTC (Tue) by jccleaver (guest, #127418)Parent article: Accelerating netfilter with hardware offload, part 1
Surprised to see that logic used there (although the 1/0/NULL of SQL is another example of modern usage) -- I wonder if ternary silicon is an area of research for this hardware.
Posted Jan 14, 2020 21:48 UTC (Tue)
by Cyberax (✭ supporter ✭, #52523)
[Link] (6 responses)
But there are many other silicon devices that use multiple levels, like MLC flash cells. After all, the world is analog.
Posted Jan 15, 2020 22:27 UTC (Wed)
by leromarinvit (subscriber, #56850)
[Link] (5 responses)
Also, this is SRAM. MLC flash works by storing different charge levels in the cell. The closest equivalent I can think of for SRAM would be different voltages - more or less impossible to achieve using a single supply, without first generating a second voltage from that. Which wastes chip area and power for no real gain, making the two-bit solution look even better in comparison.
Posted Jan 15, 2020 22:36 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link]
Posted Jan 15, 2020 23:51 UTC (Wed)
by Sesse (subscriber, #53779)
[Link] (2 responses)
Someone once described TCAM to me as “the stuff you upgrade in your router, and then the power bill goes up”.
Posted Jan 16, 2020 0:02 UTC (Thu)
by leromarinvit (subscriber, #56850)
[Link] (1 responses)
Posted Jan 16, 2020 8:30 UTC (Thu)
by leromarinvit (subscriber, #56850)
[Link]
But I'm sure people much smarter than me have tried to optimize TCAM for many years, and are already using ideas much better than I can think of, so I'll stop now.
Posted Jan 31, 2020 21:07 UTC (Fri)
by brouhaha (subscriber, #1698)
[Link]
It would be possible to build SRAM using multilevel cells, but most likely that would result in larger and slower memory than using binary.
On the other hand, two-bit-per-cell masked ROM technology exists. Each cell has transistors chosen from four transistor sizes resulting in four possible on-state resistances. Reading from it works the same way as MLC flash; the sense amplifier feeds analog comparators to distinguish the levels. The microcode of the original Intel 8087 numeric coprocessor was stored in
two-bit-per-cell masked ROM.
Ternary Computing
Ternary Computing
Ternary Computing
Ternary Computing
Ternary Computing
Ternary Computing
Ternary Computing
At least Wikipedia (the world's One True Single Source Of Truth, obviously) says it's typically implemented with a second bit rather than relatively exotic multi-level logic.
The TCAM used in network switches, routers etc. definitely works that way, storing the ternary values as two bits each. It is ternary in the same sense that BCD is decimal; both are encoded using only binary digits. A TCAM cell is effectively much more than twice the size of a normal SRAM cell because it also contains the comparator logic. This is one reason why TCAM chips are orders of magnitude more expensive than an equivalent amount of SRAM.
