SU1365074A1 - Device for comparing numbers - Google Patents

Device for comparing numbers Download PDF

Info

Publication number
SU1365074A1
SU1365074A1 SU864085574A SU4085574A SU1365074A1 SU 1365074 A1 SU1365074 A1 SU 1365074A1 SU 864085574 A SU864085574 A SU 864085574A SU 4085574 A SU4085574 A SU 4085574A SU 1365074 A1 SU1365074 A1 SU 1365074A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
numbers
comparing
installation
Prior art date
Application number
SU864085574A
Other languages
Russian (ru)
Inventor
Алексей Михайлович Флоров
Александр Иванович Клушин
Елена Николаевна Лазутина
Original Assignee
Войсковая часть 27177
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Войсковая часть 27177 filed Critical Войсковая часть 27177
Priority to SU864085574A priority Critical patent/SU1365074A1/en
Application granted granted Critical
Publication of SU1365074A1 publication Critical patent/SU1365074A1/en

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

Изобретение относитс  к дискретной автоматике и вычислительной технике и может быть использовано при реализации технических средств дискретной автоматики и электронно-вычислительных машин дл  сравнени  чисел . Цель изобретени  - расширение функциональных возможностей устройства за счет возможности сравнени  чисел, представленных двоичным кодом. Устройство содержит генератор 8 синхроимпульсов , два триггера 1, 2, элемент ИЛИ 5, два элемента И 3 и 4 и два элемента НЕ 6 и 7. Предлагаемое устройство позвол ет сравнивать числа , представленные фазоимпульсным и двоичными кодами, поступающими старшими разр дами вперед, причем если все разр ды сравниваемых чисел равны , сигнал будет только на одном вы- ходе устройства. При неравенстве разр дов результат сравнени  определ етс  соотношением старших разр дов сравниваемых чисел. 1 ил. с «б слThe invention relates to discrete automation and computing and can be used in the implementation of the hardware of discrete automation and electronic computers for comparing numbers. The purpose of the invention is to expand the functionality of the device due to the possibility of comparing the numbers represented by the binary code. The device contains a generator of 8 sync pulses, two triggers 1, 2, element OR 5, two elements AND 3 and 4, and two elements NOT 6 and 7. The proposed device allows you to compare the numbers represented by the phase-pulse and binary codes received by the leading bits if all bits of the compared numbers are equal, the signal will be only at one output of the device. If the bits are unequal, the result of the comparison is determined by the ratio of the higher bits of the numbers being compared. 1 il. with “b sl

Description

ооoo

О)ABOUT)

СПSP

1one

Изобретение относитс  к дискретной автоматике и вычислительной технике и может быть использовано при реализации технических средств дискретной автоматики и ЭВМ дл  сравнени  чисел.The invention relates to discrete automation and computer technology and can be used in the implementation of discrete automation and computer hardware for comparing numbers.

Цель изобретени  - расширение функциональных возможностей устройства за счет возможности сравнени  чисел, представленных двоичным кодом .The purpose of the invention is to expand the functionality of the device due to the possibility of comparing the numbers represented by the binary code.

На чертеже представлена схема устройства дл  сравнени  чисел.The drawing shows a diagram of a device for comparing numbers.

Устройство содержит триггеры 1 и 2, элементы И 3 и , элементы ИЛИ 5 и НЕ 6 и 7, генератор 8 синхроимпульсов , имеющий выход 9, входы 10 и 11 устройства, вход 12 начальной установки устройства, выходы 13-15 устройства.The device contains triggers 1 and 2, elements AND 3 and, elements OR 5 and NOT 6 and 7, generator 8 clock pulses, having output 9, inputs 10 and 11 of the device, input 12 of the initial installation of the device, outputs 13-15 of the device.

Устройство работает следующим образом .The device works as follows.

Перед началом работы на вход 12 устройства подаетс  сигнал, который устанавливает триггеры 1 и 2 в нулевое состо ние, при этом по вл етс  сигнал на выходе 14. Сигналы на выходе 9 генератора 8 синхроимпульсов по вл ютс  в каждом такте. Числа подаютс  старшими разр дами вперед.Before starting work, a signal is supplied to the input 12 of the device, which sets the triggers 1 and 2 to the zero state, and a signal appears at the output 14. The signals at the output 9 of the generator 8 of the clock pulses appear in each clock cycle. The numbers are given by the higher bits ahead.

Пусть на входы устройства подаютс  числа, представленные фазоимпульс ными кодами.Let the numbers represented by the phase-pulse codes be applied to the device inputs.

Если при передаче какого-либо разр да сигнал на входе 11 по вл етс  раньше, чем сигнал на входе 10, то открываетс  элемент И 4 и элемент ИЛИ 5, триггер 2 переходит в единичное состо ние, сигналы по вл ютс  на выходах 14 и 15 устройства. В дальнейшем состо ние триггеров 1 и 2 не може быть изменено, так как элементы И 3 и 4 закрыты ввиду отсутстви  сигнала на нулевом выходе триггера 2 Если же сигнал на входе 10 по вл етс  раньше, чем сигнал на входе 11, то открываетс  элемент И 3, триггерIf, at the transmission of any bit, the signal at input 11 appears earlier than the signal at input 10, the AND 4 element and the OR 5 element opens, the trigger 2 goes into one state, the signals appear at the outputs 14 and 15 devices. Further, the state of the flip-flops 1 and 2 cannot be changed, since And 3 and 4 are closed due to the absence of a signal at the zero output of flip-flop 2 If the signal at input 10 appears before the signal at input 11, then And 3, trigger

1переходит в единичное состо ние, открываетс  элемент ИЛИ 5 и триггер1 goes to the unit state, opens the element OR 5 and the trigger

2переходит в единичное состо ние. Сигналы по вл ютс  на выходах 13 и2 transitions to a single state. Signals appear at outputs 13 and

15 устройства. В дальнейшем состо ни триггеров 1 и 2 не может быть изменено , так как элементы И 3 и 4 закрыты ввиду отсутстви  сигнала на нулевом выходе триггера 2.15 devices. In the future, the states of the flip-flops 1 and 2 cannot be changed, since the And 3 and 4 elements are closed due to the absence of a signal at the zero output of the flip-flop 2.

Если сигналы на входах 10 и 11 по вл ютс  однс вроменно, элементыIf the signals at inputs 10 and 11 appear alone, the elements

650742650742

И 3 и 4 закрыты, триггеры 1 и 2 остаютс  в нулевом состо нии, сигнал имеетс  только на выходе 14 устрой- J ства. Таким образом, если все разр ды сравниваемых чисел равны, сигнал имеетс  только на выходе 14 устройства . В зависимости от того, какой вес приписан тому или такту пере Q дачи разр да, число, импульс которого пришел в старшем разр де раньше, может быть меньшим или большим. Соответствующим образом ..юлжны трактоватьс  и сигналы на выходах устрой15 ства.Both 3 and 4 are closed, triggers 1 and 2 remain in the zero state, the signal is only at the output 14 of the device J. Thus, if all bits of the numbers being compared are equal, the signal is only at the output 14 of the device. Depending on how much weight is attributed to this or the cycle of transferring the discharge, the number, the impulse of which came in the higher order earlier, may be smaller or larger. The signals at the outputs of the device should also be treated accordingly.

Пусть на входы подаютс  числа, представленные двоичным кодом (единица в разр де числа кодируетс  импульсом , ноль - отсутствием импуль0 са). Работа устройства при этом происходит аналогично, как и при сравнении чисел, представленных фазоим- пульсным кодом. Если число на входе 10 больше числа на входе 11 (при пе25 редаче очередного разр да импульс на входе 10 есть, а на выходе 11 импульса нет), по вл ютс  сигналы на выходах 13 I 15, если число на входе 10 меньше числа на входе 11, сигналы по вл 30 ютс  на выходах 14 и 15 устройства.Suppose that the inputs are supplied with numbers represented by a binary code (one in the digit of the number is encoded by a pulse, zero - by the absence of a pulse). Operation of the device in this case occurs in the same way as when comparing the numbers represented by the phase-pulse code. If the number at input 10 is greater than the number at input 11 (when transmitting the next bit, there is a pulse at input 10, and there is no pulse at output 11), signals appear at outputs 13 I 15 if the number at input 10 is less than the number at input 11, signals appear at the outputs 14 and 15 of the device.

Claims (1)

Формула изобретени Invention Formula Устройство дл  сравнени  чисел,A device for comparing numbers J содержащее генератор синхроимпульсов, первый и второй триггеры, первый и второй элементы И, элемент ИЛИ,причем вход первого сравниваемого числа устройства соединен с первым входом пер40 вого элемента И, второй вход которого соединен с выходом генератора синхроимпульсов , а выход подключен к входу установки в единичное состо ние первого триггера, вход начальнойJ contains a clock generator, the first and second triggers, the first and second elements AND, the OR element, and the input of the first compared number of the device is connected to the first input of the first element AND, the second input of which is connected to the output of the clock generator, and the output is connected to the installation input one state of the first trigger, the initial input 45 установки устройства подключен к входу установки в О второго триггера, инверсный выход которого соединен с третьим входом первого элемента И, а пр мой выход  вл етс  первым выходом45 of the device installation is connected to the input of the installation in O of the second trigger, the inverse output of which is connected to the third input of the first element I, and the direct output is the first output gQ результата устройства, отличающеес  тем, что, с целью расширени  его функциональных возможностей за счет возможности сравнени  чисел, представленных двоичным кодом, в несс го введены два элемента НЕ, причем вход второго сравниваемого числа устройства соединен с первым входом второго элемента И и через первый элемент НЕ - с четвертым входом пер3 13650744gQ result of the device, characterized in that, in order to expand its functionality due to the possibility of comparing the numbers represented by the binary code, two NOT elements are introduced in it, the input of the second comparative number of the device being connected to the first input of the second element AND NOT - with the fourth entrance per 3 13650744 вого элемента И, второй вход кото-элемент НЕ подключен к входу первогоAnd, the second input is not connected to the input of the first роге объединен с вторым входом вто-с равниваемого числа устройства, входThe horn is combined with the second input of the second device, the input рого элемента И, выход которого сое-начальной установки устройства дополдинен с первым входом элемента ИЛИ,нительно подключен к входу установкиThe left AND element, the output of which co-the initial installation of the device is adjacent to the first input of the element OR, is connected to the installation input выход которого соединен с входомв О первого триггера, пр мой выходthe output of which is connected to the input of the first trigger, direct output установки в единичное состо ние вто-которого  вл етс  вторым выходом рерого триггера, инверсный выход кото-зультата устройства и соединен сsetting into one state, the second one is the second output of the flip-flop trigger, the inverse output of which the device is connected to and рого дополнительно подключен к тре-вторым входом элемента ИЛИ, инверстьему входу второго элемента И, чет-ю выход  вл етс  третьим выходомadditionally connected to the three-second input of the OR element, the inverse of the input of the second element AND, the fourth output is the third output вертый вход которого через второйрезультата устройства.Vertical input is through the second result of the device.
SU864085574A 1986-07-07 1986-07-07 Device for comparing numbers SU1365074A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864085574A SU1365074A1 (en) 1986-07-07 1986-07-07 Device for comparing numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864085574A SU1365074A1 (en) 1986-07-07 1986-07-07 Device for comparing numbers

Publications (1)

Publication Number Publication Date
SU1365074A1 true SU1365074A1 (en) 1988-01-07

Family

ID=21244439

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864085574A SU1365074A1 (en) 1986-07-07 1986-07-07 Device for comparing numbers

Country Status (1)

Country Link
SU (1) SU1365074A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 484517, кл. G 06 F 7/04, 1973. Авторское свидетельство СССР № 1022149, кл. С 06 F 7/04, 1982. *

Similar Documents

Publication Publication Date Title
SU1365074A1 (en) Device for comparing numbers
SU1126948A1 (en) Device for comparing numbers
RU2037958C1 (en) Frequency divider
SU913367A1 (en) Device for comparing binary numbers
SU489104A1 (en) Device for comparing binary numbers
SU1264165A1 (en) Adder-accumulator
SU1037234A1 (en) Data input device
SU1274135A1 (en) Pulse shaper
SU1022149A2 (en) Device for comparing numbers
SU881731A1 (en) Binary coded decimal code coder
SU1183954A1 (en) Device for comparing binary numbers
SU1670768A1 (en) Phase discriminator
SU1474853A1 (en) Parallel-to-serial code converter
SU450162A1 (en) Tunable phase-pulse multi-stable element
SU1233172A1 (en) Number-to-probability converter
KR970002073B1 (en) Vld device using pipe line structure
SU1176454A1 (en) Coding device
SU1651374A1 (en) Synchronous frequency divider
SU1476470A1 (en) Modulo 3 convolution circuit
SU1347162A1 (en) Pulse sequence generator
SU1277387A2 (en) Pulse repetition frequency divider
SU1415430A1 (en) Binary-signal digital filter
SU1211876A1 (en) Controlled frequency divider
SU485446A1 (en) Probability device for adding two numbers
SU636601A1 (en) Information input arrangement