SU1157540A1 - Device for comparing numbers - Google Patents

Device for comparing numbers Download PDF

Info

Publication number
SU1157540A1
SU1157540A1 SU833579267A SU3579267A SU1157540A1 SU 1157540 A1 SU1157540 A1 SU 1157540A1 SU 833579267 A SU833579267 A SU 833579267A SU 3579267 A SU3579267 A SU 3579267A SU 1157540 A1 SU1157540 A1 SU 1157540A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
comparison
trigger
inputs
Prior art date
Application number
SU833579267A
Other languages
Russian (ru)
Inventor
Юрий Николаевич Цыбин
Original Assignee
Предприятие П/Я А-3724
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 Предприятие П/Я А-3724 filed Critical Предприятие П/Я А-3724
Priority to SU833579267A priority Critical patent/SU1157540A1/en
Application granted granted Critical
Publication of SU1157540A1 publication Critical patent/SU1157540A1/en

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

УСТРОЙСТВО.ДЛЯ СРАВНЕНИЯ . ЧИСЕЛ, содержащее элементы И-НЕ,и триггеры, входь установки в О которых соединены с входом сбрбса устройства , о т л и ч а ю щ е ее   тем, что, с целью упрощени  устройства , оно содержит элементы поразр дного Сравнени , первые входы которых подключены к ходу: первого сравниваемого числа устройства, а выходы неравенства - к входам первого элемента И-НЕ, вход второго срав;ниваемого числа устройства соединен с вторым входом первого поразр дного элемента сравнени , вьпсод неравенства которого соединен с информационным входом первого триггера, вход синхронизации которого подключен к входу синхронизации устройства, а пр мой выход соединен с первым входом второго элемента И-НЕ, выход которого  вл етс  выходом, устройства, а второй вход подключен к выходу первого элемента И-НЕ, пр мой выход второго триггера соединен с вторым входом второго элемента поразр дного сравнени , а информационный вход соединен с входом первого сравниваемо (Л го числа устройства, инверсный выс ход первого триггера подключен к входу синхронизации второго триггера.DEVICE. FOR COMPARISON. NUMBER, containing the elements of NAND, and triggers, the installation of which is connected to the input of the device sbrb, which is so that, in order to simplify the device, it contains elements of a random comparison, the first inputs which are connected to the move: the first compared number of the device, and the inequality outputs to the inputs of the first NAND element, the input of the second comparable; the number of the device to be connected is connected to the second input of the first bit unit of the comparison, the inequality of which is connected a clock whose sync input is connected to the sync input of the device, and a direct output is connected to the first input of the second NAND element, the output of which is an output of the device, and the second input is connected to the output of the first NAND element, a direct output of the second trigger is connected to the second input of the second bitwise comparison element, and the information input is connected to the input of the first comparable one (the first number of the device; the inverse outflow of the first trigger is connected to the synchronization input of the second trigger.

Description

ел ate

СПSP

4 Изобретение относитс  к автоматик и вычислительной технике и может быт использовано в информационно-измерительных систем1ах и устройствах дискретной автоматики. Целью изобретени   вл етс  упрощение устройства. НаЧертеже приведена функциональна  схема предлагаемого устройства. Устройство содержит элементы 1 и 2 поразр дного сравнени  , триггеры 3 и 4, элементы И-НЕ 5 и 6, входы 7 и 8 первого и второго сравниваемых чисел, вход 9 синхронизации, вход 10 сброса, выход 11. Предлагаемое устройство работает следующим образом. Сравниваемь1е числа А и В с информационных входов 7 и 8 устройства синхронно поступаюту в последовател ном коде, начина  состарших разр дов , на входы элемента 1 пора;зр днаго сравнени , на выходе которого определ етс  перва  ненулева  разность между старшими разр дами сравниваемых чисел, котора  фиксируетс  как результат сравнени  А/В на триггере 3 по сигналу синхронизации , поступающему на шину 9. На выходе триггера 3 фop a pyeтc  сигнал, разрешающий прохождение иьтульсов через элемент И-НЕ 6. Триггеры 3 и 4 устанавливаютс  по шине 10 перед каждым сравнением в Исходное состо ние. В зависимости от логического уровн  сигнала на информационном: входе триггера 4 в мо мент переключени  триггера 3 (перва  ненулева  разность с старших разр дах чисел А и в) тр иггер 4 устанавливаетс  по перепаду сигнала триггера 3 в состо ние, противоположное логическому уровню сигнала на его информационном.входе (на входе 7 устройства ). Таким образом, на входе элемента 2 поразр дного сравнени  после первой ненулевой разности чисел А и В фиксируютс  уровни сигналов разного логического состо ни , т.е. на выходе элемента 2 поразр дного сравнени  присутствует сигнал логической 1 (при положительной логике элементной базы). При этом, если после первой ненулевой разности число А больше или меньше числа В на единицу, то на входах элемента И-НЕ 5 имеютс  уровни логической 1, соотвптственно логического О на входе элемента И-НЕ 6, т.е. выходной сигнал отсутствует. В случае, если число А больше или меньше числа В ролее, чем на единицу, в какомлибо разр де сравниваемых чисел после фиксации первого неравенства А/В, начина  со старших разр дов, на один из входов элемента И-НЕ 5 поступит сигнал логического О. Это приводит к тому, что на выходе элемента И-НЕ 6 в соответствующем разр де сравниваеь  1х числе А и В по вл етс  сигнал отличи  Э1их чисел более, чем на единицу. ДпЯ сравнени  чисел А и В с некоторой допустимой погрешностью длительность сигнала установки триггеров 3 и 4 в исходное состо ние формируют таким образом, что разрешение срабатывани  их составл ет необходимое число разр дов сравнени  чисел А и В в соответствии с требуемой допустимой погрешностью сравнени .4 The invention relates to automation and computing and can be used in information-measuring systems and discrete automation devices. The aim of the invention is to simplify the device. The drawing shows a functional diagram of the proposed device. The device contains elements 1 and 2 of the same comparison, triggers 3 and 4, elements AND-NOT 5 and 6, inputs 7 and 8 of the first and second compared numbers, synchronization input 9, reset input 10, output 11. The proposed device works as follows. The numbers A and B are compared with the information inputs 7 and 8 of the device synchronously received in the sequential code, beginning with the old bits, to the inputs of the element 1, it is time; the comparison comparison, the output of which determines the first nonzero difference between the higher bits of the numbers being compared, which is detected as a result of a comparison of A / B on trigger 3 by a synchronization signal received on bus 9. At the output of trigger 3, fop a peak is a signal that permits the passage of pulses through the AND – NE element 6. Triggers 3 and 4 are installed on bus 10 before each by comparison to Baseline. Depending on the logical level of the signal at the informational: input of the trigger 4 at the moment of switching of the trigger 3 (the first nonzero difference from the higher bits of the numbers A and b), tr trigger 4 is set by the difference of the trigger signal 3 to the state opposite to the logical level of the signal informational input (input device 7). Thus, at the input of element 2 of a one-bit comparison, after the first non-zero difference of the numbers A and B, the levels of signals of different logical states are fixed, i.e. at the output of element 2 of bitwise comparison, there is a signal of logical 1 (with positive logic of the element base). Moreover, if after the first non-zero difference the number A is greater or less than the number B by one, then at the inputs of the element AND-NOT 5 there are levels of logical 1, respectively logical O, at the input of element AND-NOT 6, i.e. no output signal. If the number A is more or less than the number B of more than one, in some discharge of the compared numbers after fixing the first A / B inequality, starting with the higher bits, the logical O signal will be sent to one of the inputs of the AND-NOT element 5 This leads to the fact that at the output of the element AND-NOT 6 in the corresponding bit by comparing 1x the number A and B, a signal appears that distinguishes these numbers by more than one. By comparing the numbers A and B with a certain permissible error, the duration of the signal for setting the flip-flops 3 and 4 to the initial state is formed in such a way that the resolution of their operation is the required number of digits for comparing the numbers A and B in accordance with the required permissible comparison error.

Claims (1)

УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ . ЧИСЕЛ, содержащее элементы И-НЕ ; и триггеры,' входы установки в 0” которых соединены с входом сбрбса устройства, от л и ч а ю щ е е с я тем, что, с целью' упрощения устройства, оно содержит элементы поразрядного сравнения, первые входы которых подключены к зходу: первого сравниваемого числа устройства, а выходы неравенства - к входам перво- го элемента И-НЕ, вход второго сравниваемого числа устройства соединен с вторым входом первого поразрядного' элемента сравнения, выход неравенства которого соединен с информационным входом первого триггера, вход синхронизации которого подключен к входу синхронизаций устройства, а прямой выход соединен с первым входом второго элемента И-НЕ, выход которого является ;выходом( устройства, а второй вход подключен к выходу первого элемента И-НЕ, прямой выход второго триггера соединен с вторым входом второго элемента поразрядного сравнения, а информационный вход соединен с входом первого сравниваемо го числа устройства, инверсный выход первого триггера подключен к входу синхронизации второго триггера.'DEVICE FOR COMPARISON. NUMBER containing NAND items ; and triggers, the 'setting inputs to 0 ”of which are connected to the device’s SBRB input, furthermore, in order to' simplify the device, it contains bitwise comparison elements, the first inputs of which are connected to the input: the first compared number of the device, and the inequality outputs are connected to the inputs of the first AND-NOT element, the input of the second compared number of the device is connected to the second input of the first bit-by-bit comparison element, the inequality output of which is connected to the information input of the first trigger, the synchronization input of which is connected to the synchronization input of the device, and the direct output is connected to the first input of the second NAND element, the output of which is; the output (of the device, and the second input is connected to the output of the first NAND element, the direct output of the second trigger is connected to the second input of the second bit element comparison, and the information input is connected to the input of the first compared number of the device, the inverse output of the first trigger is connected to the synchronization input of the second trigger. ' 1 11575401 1157540
SU833579267A 1983-04-08 1983-04-08 Device for comparing numbers SU1157540A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833579267A SU1157540A1 (en) 1983-04-08 1983-04-08 Device for comparing numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833579267A SU1157540A1 (en) 1983-04-08 1983-04-08 Device for comparing numbers

Publications (1)

Publication Number Publication Date
SU1157540A1 true SU1157540A1 (en) 1985-05-23

Family

ID=21059072

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833579267A SU1157540A1 (en) 1983-04-08 1983-04-08 Device for comparing numbers

Country Status (1)

Country Link
SU (1) SU1157540A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 362293, кл, G 06 F .7/02, 1973. Авторское свидетельство СССР № 620977, кл. G 06 F 7/02, 1977 (прототип). *

Similar Documents

Publication Publication Date Title
US4740891A (en) Asynchronous state machine
US4538272A (en) Prioritized clock selection circuit
SU1157540A1 (en) Device for comparing numbers
US3996523A (en) Data word start detector
US4209834A (en) State variant correlator
SU1511843A1 (en) Device for detecting failures in stepping electric drive
SU1282088A1 (en) Device for checking digital units
SU1180878A1 (en) Device for comparing numbers
RU2037958C1 (en) Frequency divider
SU1019600A1 (en) Device for forming pulse sequences
SU1099395A1 (en) Receiver of commands for slaving velocity
SU1007189A1 (en) Device for time division of pulse signals
SU1339876A1 (en) Apparatus for generating pulse trains
SU1522409A1 (en) Decoder
RU2006955C1 (en) System for remote control of controlled object
SU1112365A1 (en) Device for forming interruption signal
SU1280608A1 (en) Device for comparing numbers
SU1503068A1 (en) Device for distributing and delaying pulses
SU1734226A1 (en) Device for m-sequence synchronization
SU1269133A1 (en) Device for generating interruption and exchange signal
SU1656567A1 (en) Pattern recognition device
SU1615717A1 (en) Device for servicing requests
SU798816A1 (en) Binary number comparing device
SU1589281A2 (en) Device for detecting errors in discreter sequence
SU1187253A1 (en) Device for time reference of pulses