Skip to content

Dead End: Residue Number System Computers

Abstract

A residue number system represents a number not by its digits but by its remainders after division by several small, coprime moduli. Addition, subtraction, and multiplication then work on each remainder independently, without carries, so the parts can run in parallel, and redundant moduli let the machine detect and correct its own arithmetic errors. Czechoslovak engineers built the first such computer, EPOS, in 1958–62. In the Soviet Union Israel Akushsky and Davlet Yuditsky built “modular” computers for missile-defence radars: the T340A of 1962, which by its designers’ count was the first computer anywhere to exceed one million operations per second, and its production version, the K340A, of which about fifty were built and some still worked in 2010. Their supercomputer 5E53, designed in eighteen months for the second stage of the Moscow missile defence, was stopped in 1972 in a quarrel inside the radio-industry ministry. Its documentation was burned.

Remainders Instead of Digits

The idea is old. The Chinese remainder theorem says that a number is fixed by its remainders modulo a set of coprime moduli, within the range given by their product: with the moduli 3, 5, and 7, the number 23 is (2, 3, 2), and every number below 105 has its own triple. Addition and multiplication can be carried out on each remainder separately, because remainders of sums and products depend only on remainders. There are no carries between positions, which in an ordinary binary adder are what take time, and each modulus can have its own arithmetic unit. Comparison, division, and detecting overflow are harder, because the representation hides the size of a number; that is the system’s price.

Its advantage for military computing was reliability. If extra moduli are added beyond those needed for the range, a single faulty remainder produces an impossible combination, which the machine can detect and, with enough redundancy, correct. The Soviet developers called this property arithmetic self-correction.

EPOS

The first residue computer came from Prague. In 1950 Antonín Svoboda, teaching digital and analogue computing at the Czech Technical University, asked his students to find a digital code in which multiplication was as easy as addition. One of them, Miroslav Valach, proposed coding numbers by their remainders; the idea did not make multiplication as cheap as addition, but it removed the carries. Valach published it in 1955. Svoboda’s group designed EPOS in 1958–62, a valve machine with 8,000 tubes that ran up to five programs in time-sharing, with a ferrite memory of 1,024 words of 65 bits and 5,000 to 20,000 operations a second on twelve-digit decimal numbers. A transistorised version, EPOS-2, followed in 1960–65 and was built in series as the ZPA-600 and ZPA-601 until 1973, thirty in all. Svoboda, under growing political pressure, emigrated in 1964, reached the United States in 1965, taught logic design, computer architecture, and computer arithmetic at UCLA from 1966, and died in 1980 (see Czechoslovakia’s Computing Industry).

The T340A and K340A

In the Soviet Union the idea reached KB-1, the missile-defence design bureau, as a brief intelligence note around 1959. Its chief engineer, Fyodor Lukin, passed it on to SKB-245, where it interested the mathematician Israel Akushsky and his superior, the computer designer Davlet Yuditsky. In 1960 Lukin became director of NII-37, the long-range radio research institute (later NIIDAR), and invited both to build computers there.

Their first residue machine, the T340A, was built from ferrite-transistor logic in 1960–62, with a reduced model in 1960 and a working machine from the institute’s pilot plant in 1962. It served as the test computer for the Dunai-3UP early-warning radar at the Sary Shagan missile-defence range. It had separate memories for instructions and data, sixteen independent data memories that could be read in parallel, and instruction words that held two operations each; its programs were stored in a read-only memory of ferrite cores inserted by hand. By the count of the Soviet participants it executed 1.25 million two-operation instructions a second, the equivalent of 2.5 million ordinary operations, which would make it the first computer in the world to pass one million operations per second.

Its production version, the K340A, was documented in 1963–66 and built by the NIIDAR pilot plant and the Sverdlovsk radio equipment plant, about fifty sets in all. It ran the Dunai-3U early-warning radars of the A-35 missile defence around Moscow and the over-the-horizon radars Duga, Duga-2, and Duga-3. The early-warning station near Chekhov, south of Moscow, built in 1969–76 with ten K340A in each of its two radars, entered service in 1978. When the historian Boris Malashevich visited it in 2010, one of the radars still ran on its original computers, built in 1970 and 1972.

The 5E53

In 1964 Yuditsky and Akushsky followed Lukin to the new microelectronics centre at Zelenograd, where their group became the Specialised Computing Centre (SVC), with Yuditsky as director and Akushsky as his scientific deputy. In 1965 Soviet intelligence learned that the United States was developing warheads with several independently targeted charges and decoys. Grigory Kisunko, chief designer of the Moscow missile defence, needed a multichannel firing complex that could pick real warheads out of a cloud of decoys; the complex for the test range was called Argun.

Its computer was the 5E53. Twelve of them were to give the second stage of the A-35 system about half a billion operations a second, each machine 10 million “algorithmic” operations a second, about 40 million ordinary ones. The SVC designed it in about eighteen months, built and tested its cells, blocks, and an experimental unit, and on 27 February 1971 delivered eight sets of design documentation, of 97,272 sheets each, to the Zagorsk electromechanical plant, which had prepared about 70 percent of the production. Lebedev’s Elbrus, the most powerful Soviet general-purpose project of the time, would have been too slow for the task and two and a half years late.

The 5E53 was never built. From 1971 Kisunko’s opponents in the leadership of the Ministry of the Radio Industry fought against the second stage of the A-35 and against Argun, and in early 1972 a deputy minister stopped the funding for the 5E53 contract and for its production. Argun was finished in reduced form with five conventional 5E92b computers, went into operation on 10 June 1975, and later tracked the drifting Salyut 6 space station. Kisunko was removed from missile-defence work. The eight sets of 5E53 documentation, returned from the plant, were burned in the woods at Zelenograd.

Dead End

What died in 1972 was the Soviet attempt to build high-performance computers on residue arithmetic; Malashevich estimates that the SVC’s work was about ten years ahead of comparable foreign efforts. The reasons were partly technical, because comparison and division remained expensive and the representation suited the fixed, arithmetic-heavy programs of radar processing better than general computing. They were also political: the account above comes from Malashevich and from the general Nikolai Ostapenko, who represented the customer, and both belong to the side that lost the fight in the ministry. Malashevich also notes that residue development in the Soviet Union declined after the death of its sponsor Lukin. The K340A in the Chekhov radar, still working forty years later, is the strongest argument they left behind.


📚 Sources