Skip to content

Nairi and Armenian Computing

Abstract

In 1956 the Soviet government founded the Yerevan Research Institute of Mathematical Machines (YerNIIMM), directed by the mathematician Sergei Mergelyan, which made Soviet Armenia one of the country’s computer-building centres. Its best-known products were the Nairi small computers, designed by Hrachya Hovsepyan, a repatriate from Lebanon who had started at the secret institute as a laboratory assistant. Nairi-1 (1962–64) was a 36-bit microprogrammed machine the size of a desk, whose programs, compilers, and library sat in a read-only cassette memory and which engineers could program in seventeen Russian-language commands; more than 500 were built by 1970. Nairi-3, early in the 1970s, emulated several other computers’ instruction sets in microcode and won the State Prize in 1971. Hovsepyan left the institute in 1976 to follow his family abroad and was not allowed to leave the Soviet Union until December 1988.

Mergelyan’s Institute

The institute was founded in Yerevan in 1956 on the strength of the republic’s mathematical school, its engineers, and its production base. Its first director, Sergei Mergelyan, a corresponding member of the USSR Academy of Sciences, gave it the name by which Yerevan knew it, “Mergelyan’s institute”. A computing centre of the Armenian Academy of Sciences followed at the end of 1957. That autumn Rimma Podlovchenko, a student of Alexei Lyapunov in Moscow, opened a department of computational mathematics at Yerevan State University on Lyapunov’s recommendation, with one and a half staff positions and not even a desk calculator; Lyapunov took her first graduates as doctoral students in Moscow. The department supplied programmers to the republic’s institutions, and Podlovchenko’s own research on program schemes grew into what she called the Yerevan school of programming.

The institute built machines for general and special purposes. In E. L. Brusilovsky’s department it built the Razdan-2 (1958–61), which its historian Tigran Gasparyan calls the first Soviet computer built entirely on semiconductors.

Hovsepyan and the Nairi

Hrachya Hovsepyan, born in 1933, came to Armenia with his family from Lebanon in 1946, among the post-war Armenian repatriates, and studied physics at Yerevan State University. Repatriates were thought unfit to hold secrets, and he got into the institute with difficulty as a laboratory assistant, in Brusilovsky’s department. After Razdan-2 he was put in charge of a new direction, “small machines”.

The order came after the international computer exhibition in Moscow in 1962, where Soviet officials saw the French CAB-500 small computer and wanted one exactly like it. The customer, the Ministry of Machine-Building and Instrument-Making, imagined little more than an electronic adding machine. Hovsepyan refused to copy the CAB-500: it was a serial machine that depended on a large magnetic drum, and he did not believe Soviet industry could make such drums. He proposed a parallel machine with microprogram control, with programs and microprograms held together in a large read-only memory on removable cassettes.

Nairi-1, named after an ancient name for the land of Armenia, was designed in 1962–64. It was a two-address binary machine with 36-bit words, built entirely from semiconductors, with 1,024 words of ferrite-core memory. Its read-only memory of 16,384 words on cassettes held 72-bit microinstructions, read from two cassettes at once, and in the rest of its space compilers for an assembler and a Basic-like language, packages for differential equations and linear algebra, interactive evaluation of arithmetic expressions, plotting routines, and test programs; it could also be delivered empty, for users to store their own most frequent programs. Users could write in an automatic programming mode of seventeen statements in Russian, among them dopustim (“let us assume”), vychislim (“let us compute”), reshim (“let us solve”), nachertim (“let us draw”), and konchaem (“we finish”), which let staff who knew nothing about programming run it. It added fixed-point numbers at two to three thousand operations per second and multiplied at about a hundred. Operator, console, and logic sat in one desk-shaped cabinet with a separate power cabinet, and input and output came through an electric typewriter and paper tape at six characters per second.

From 1964 Nairi-1 was built in Armenia and at the Kazan computer plant, which made more than 500 by 1970. The architecture was patented in Britain, Japan, France, and Italy. Nairi-2 (1966) had twice the memory and higher speed, and the Nairi-M, Nairi-S, and Nairi-K versions of 1965–67 varied the peripherals and memory.

Nairi-3

Nairi-3, completed at the start of the 1970s on hybrid integrated circuits, carried the microprogram idea further. A two-level control store, one small memory with every distinct microinstruction and a second that only listed their addresses in sequence, allowed up to 128,000 microinstructions, where earlier Soviet machines had held at most about 4,000. Nairi-3 used this to emulate the machine languages of Nairi-1, Nairi-2, and the Belarusian Minsk-22 at the same time, including common multi-instruction idioms such as tape control, which ran one or two orders of magnitude faster in microcode. It ran up to 64 terminals in time-sharing, each acting as a Nairi-2. The design team under Hovsepyan received the State Prize of the USSR in 1971.

Leaving

Hovsepyan’s successes did not make his relations with his superiors easier, and Gasparyan describes him as quarrelsome and unwilling to please. He planned Nairi-4 as a personal computer built around a cut-down processor with densely packed microprograms. In the middle of the work his mother, both brothers, and his sister applied to emigrate to the United States, which forced him to choose between his career and his family. In 1976 he left the institute and moved to Moscow to apply for an exit visa. Because he had held the highest level of security clearance, he could not leave for twelve years; he reached the United States only in December 1988, by which time one brother and his sister had died. In Los Angeles he worked for a computer repair company.

The Nairi-4 series was built in 1974–81 under a different chief designer, G. Oganyan, as machines for special applications, compatible in software with the PDP-11 and the Soviet SM computers; the Nairi-4/1 of 1977 reached two million operations per second.

Dead End: The Small Machine Without a Successor

Nairi was designed around Soviet weaknesses: a read-only cassette memory instead of the magnetic drums Soviet industry could not build well, and microcode instead of hardware that would have been hard to change. The approach let users adapt their machines and let Nairi-3 run other computers’ programs. After the decision of 1967 to copy IBM’s System/360 as the Unified System, and of the 1970s to copy DEC’s PDP-11 as the SM series, Soviet small computers were built to Western instruction sets, and the Nairi line ended as one more PDP-11 compatible (see Comecon Computing). Hovsepyan’s own personal computer was never built.


📚 Sources