SU1242933A1 - Device for comparing binary numbers - Google Patents
Device for comparing binary numbers Download PDFInfo
- Publication number
- SU1242933A1 SU1242933A1 SU843792167A SU3792167A SU1242933A1 SU 1242933 A1 SU1242933 A1 SU 1242933A1 SU 843792167 A SU843792167 A SU 843792167A SU 3792167 A SU3792167 A SU 3792167A SU 1242933 A1 SU1242933 A1 SU 1242933A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- nand
- inputs
- register
- Prior art date
Links
Landscapes
- Multi Processors (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано при разработке технических средств автоматики и ЭВМ дл сравне- ни двух чисел, синхронно поступаюiщих в пр мом последовательном двоичном коде. Цель изобретени - расширение области применени устройства за счет возможности сравнени чисел, поступающих как младшими, так и старшими разр дами вперед. С этой целью в устройство введены два регистра, два триггера, элементы задержки, злементы ИЛИ. Режим поступлени чисел (старшими/младшими разр дами вперед) задаетс сигналом на входе выбора режима. В любом случае в первом регистре по окончании передачи числа наход тс значени самых старших (возможно, знаковых) разр дов чисел, а во втором - значени знаковых разр дов. Логическа схема из элементов И, ИЛИ, И-НЕ преобразует коды в сигнал нулевого уровн на одном из трех выходов устройства - Больше, 1 табл. Равно, Меньше. 1 ил. с S (Л 1C 4i QD СО СОThe invention relates to computing technology and can be used in the development of automation equipment and computers for comparing two numbers that arrive synchronously in a forward serial binary code. The purpose of the invention is to expand the field of application of the device due to the possibility of comparing the numbers received by both the junior and senior bits ahead. For this purpose, two registers, two triggers, delay elements, elements OR are entered into the device. The mode of entering numbers (high / low bits ahead) is set by the signal at the mode selection input. In any case, in the first register, upon completion of the transfer of the number, the values of the oldest (possibly sign) bits of the numbers are found, and in the second, the values of the sign bits. The logic circuit of the elements AND, OR, AND-NOT converts the codes into a zero signal at one of the three outputs of the device - More, 1 tab. Equally, Less. 1 il. with S (L 1C 4i QD WITH CO
Description
1one
Изобретение относитс к а.втома - тике и вычислительной технике и может быть использовано при разработке технических средств автоматики и ЭВМ дл сравнени двух чисел, синхронно поступающих в пр мом последовательном двоичном коде.The invention relates to computer science and computing and can be used in the development of automation equipment and computers for comparing two numbers that arrive simultaneously in a direct serial binary code.
ЦЕЛЬ изобретени - расширение области применени устройства за счет возможности сравнени чисел, поступающих старшими разр дами вперед.The purpose of the invention is to expand the field of application of the device due to the possibility of comparing the numbers coming in by the leading bits.
На чертеже приведена схема устройства .The drawing shows a diagram of the device.
Устройство содержит регистры 1 и элемент НЕРАВНОЗНАЧНОСТЬ 3, элементы И-НЕ 4-12, элементы ИЛИ 13 - 16, элемент И 17, триггеры 18 и 19, элементы 20 и 21 задержки, входы 22 и 23 первого и второго сравниваемых чисел, вход 24 синхронизации, входThe device contains registers 1 and the element UNEMNATABILITY 3, elements AND-NOT 4-12, elements OR 13 - 16, element AND 17, triggers 18 and 19, delay elements 20 and 21, inputs 22 and 23 of the first and second compared numbers, input 24 sync input
25 начальной установки, вход 26 выбор режима, выходь1 Меньше 27, Равно 28 и Больше 2У.25 initial settings, input 26 mode selection, exit 1 Less than 27, Equal to 28 and More than 2U.
Устройство, работает следующим образом.The device works as follows.
В исходное состо ние устройство Приводитс импульсом по входу начальной установки, при этом триггер 18 устанавливаетс в единичное, а триггер 19 - в нулевое состо ни . Поскольку на- входах 22 и 23 - логические нули, то в регистры I и 2 записываютс -соответственно числа 101 и 00, Если на входе 26 выбора режима логический нуль, это означа- ет, что числа поступают старшими разр дами вперед, а если единица - то младшими. В обоих случа х числа представлены в пр мом последовательном двоичном коде со знаком, располо- женным в старшем разр де, причем каждый разр д стробируетс импульсом по входу 24 синхронизации.The device is reset to the initial state. It is brought by a pulse at the input of the initial installation, while trigger 18 is set to one and trigger 19 is in the zero state. Since the inputs 22 and 23 are logical zeros, the registers I and 2 are written, respectively, the numbers 101 and 00, If the input 26 of the mode selection is logical zero, this means that the numbers come in higher bits, and if - the younger ones. In both cases, the numbers are represented in a forward sequential binary code with a sign located in the highest bit, with each bit gated with a pulse at the synchronization input 24.
Если на входе 26 выбора режима - логическа единица, то она через эле мент ИЛИ 15 поступает на вход разрешени записи регистра 2, поэтому в этот регистр записьшаютс значени последних поступивших разр дов,, т,е. знаковых разр дов.If the mode selection input 26 is a logical unit, then it is transmitted through the OR element 15 to the recording resolution input of register 2, therefore, the values of the last received bits, t, e, are written to this register. iconic bits
35 4035 40
2933 22933 2
Поскольку триггер 19 установлен в нулевое состо ние, то на выходе элемента И-НЕ 11 - единица только тогда, когда единица и на выходеSince the trigger 19 is set to the zero state, then at the output of the element AND-NO 11 is a unit only when the unit and at the output
5 элемента НЕРАВНОЗНАЧНОСТЬ 3. Логическа единица через элемент ИЛИ 16 iпоступает на вход разрешени записи регистра I, поэтому в регистре 1 находитс код ПО, если в последнем5 of the UNCONFIGURATION element 3. A logical unit through the OR element 16 i enters the write enable input of the register I, therefore in the register 1 there is the software code, if in the last
0 из неравных разр дов а ; Ь , код ОП , если 01 Ь , и 101, если числа А и В равны (число А поступает по входу 22, число В - по входу 23).0 from unequal bits a; B, the code of the OP, if 01 b, and 101, if the numbers A and B are equal (the number A arrives at the input 22, the number B - at the input 23).
Если же на входе 26 выбора режи 5 ма - лог5игческий нуль, то в регистр 2 записываютс первые, т.е. знаковые разр ды, а затем задним фронтом импульса синхро низации триггер 18 устанавливаетс в нулевое состо ниеIf, on the input 26 of the mode selection 5 ma - a logic zero, then the first register, i.e. sign bits, and then the trailing edge of the synchronization pulse trigger 18 is set to the zero state
20 (а за ним и триггер 19 устанавливаетс в единичное состо ние, и на входе разрешени записи регистра 2 имеетс лог ический нуль. Нулевой сигнал с инверсного выхода триггера20 (and then the trigger 19 is set to one, and the input to the write enable of register 2 has a logical zero. The zero signal from the inverse trigger output
2- 19 обеспечивает запись в регистр 1 первых же несовпавших разрезов чисел А и В (в приведенном выше коде), а затем сигналом с выхода элемента НЕРАВНОЗНАЧНОСТЬ 3 через элемент2-19 provides entry in register 1 of the first unmatched cuts of numbers A and B (in the above code), and then with a signal from the output of the UNEQUAL PART 3 through the element
30 ИЛИ 10 триггер 19 устанавливаетс в нулевое состо ние. Это состо ние триггера запрещает дальнейшую запись в регистр 1.30 OR 10 trigger 19 is set to the zero state. This trigger state prohibits further writing to register 1.
Таким образом, при поступлении чисел как младшими, так и старшими разр дами вперед, в регистре 2 наход тс значени знаковых ра.зр дов чисел, а в регистре 1 - код, соответствующий соотношению самых старши ( возможно, знаковых, при их неравенстве ) неравных разр дов. При этом код 110 соответствует случаю, когда в самом старшем из неравных разр довThus, when numbers are entered both in the lower and upper bits, the register 2 contains the values of the sign ratios of numbers, and in the register 1 there is a code corresponding to the ratio of the most senior (perhaps sign, with their inequality) unequal bits At the same time, code 110 corresponds to the case when in the most senior of unequal digits
, 101 - нет., 101 - no.
Возможные случаи соотношени сравниваемых чисел указаны в таблице. Точка отдел ет знаковый разр д, X - безразличное состо ние разр да.Possible cases of the ratio of the compared numbers are shown in the table. The point separates the sign bit, X is the indifferent state of the bit.
1.Ь1.b
С1 : ь код 011 - когда сл если несовпавших разр довC1: code 011 - when is it if there are no unmatched bits
1) Несовпавших разр дов нет. .2) Самые старшие несовпавшие разр Таким образом, устройство обеспечивает сравнение двух чисел в пр мом последовательном двоичном коде, поступаю1 (йх как старшими, так и младшими разр дами .вперед.1) There are no unmatched bits. .2) Most senior unmatched bit Thus, the device provides a comparison of two numbers in a direct sequential binary code, coming in 1 (both the most significant and the least significant bits in front.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843792167A SU1242933A1 (en) | 1984-09-21 | 1984-09-21 | Device for comparing binary numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843792167A SU1242933A1 (en) | 1984-09-21 | 1984-09-21 | Device for comparing binary numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1242933A1 true SU1242933A1 (en) | 1986-07-07 |
Family
ID=21139071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843792167A SU1242933A1 (en) | 1984-09-21 | 1984-09-21 | Device for comparing binary numbers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1242933A1 (en) |
-
1984
- 1984-09-21 SU SU843792167A patent/SU1242933A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 485445, кл. G об F 7/04, 1974. Авторское свидетельство СССР № 635485, кл. G 06 F 7/04, 1976. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4383304A (en) | Programmable bit shift circuit | |
SU1242933A1 (en) | Device for comparing binary numbers | |
US4387341A (en) | Multi-purpose retimer driver | |
SU1231494A2 (en) | Device for generating test sequences | |
SU1339562A1 (en) | Data associative loading device | |
SU1089764A1 (en) | Ring counter | |
SU1259276A1 (en) | Channel-to-channel adapter | |
SU1201855A1 (en) | Device for comparing binary numbers | |
SU1030797A1 (en) | Device for sorting mn-digit numbers | |
SU1317437A1 (en) | Priority device for selecting group interrogations | |
SU1053100A1 (en) | Device for determining average value of odd set of of number | |
SU1295393A1 (en) | Microprogram control device | |
SU1295449A1 (en) | Universal shift register | |
SU1234826A1 (en) | Device for tolerance comparing of numbers | |
SU1661755A1 (en) | Device for function extremums detection | |
SU1291994A1 (en) | Interface for linking computer with communication channel | |
RU1835543C (en) | Appliance for sorting of numbers | |
SU1262479A1 (en) | Adder-accumulator | |
SU1539765A1 (en) | Arithmetic and logical module | |
SU1298746A1 (en) | Device for generating address of next microinstruction | |
SU1179356A1 (en) | Information input-output device | |
SU726528A1 (en) | Arrangement for determining extremum from n numbers | |
SU1174919A1 (en) | Device for comparing numbers | |
SU1280386A1 (en) | Digital correlator | |
SU1361553A1 (en) | Variable priority asynchronous device |