SU864279A1 - Number comparator - Google Patents

Number comparator Download PDF

Info

Publication number
SU864279A1
SU864279A1 SU792780097A SU2780097A SU864279A1 SU 864279 A1 SU864279 A1 SU 864279A1 SU 792780097 A SU792780097 A SU 792780097A SU 2780097 A SU2780097 A SU 2780097A SU 864279 A1 SU864279 A1 SU 864279A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
output
signal
groups
outputs
Prior art date
Application number
SU792780097A
Other languages
Russian (ru)
Inventor
Геннадий Яковлевич Глушко
Вадим Юрьевич Иванов
Original Assignee
Специальное Конструкторское Бюро Биологического Приборостроения Научного Центра Биологических Исследований Ан Азсср
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 Специальное Конструкторское Бюро Биологического Приборостроения Научного Центра Биологических Исследований Ан Азсср filed Critical Специальное Конструкторское Бюро Биологического Приборостроения Научного Центра Биологических Исследований Ан Азсср
Priority to SU792780097A priority Critical patent/SU864279A1/en
Application granted granted Critical
Publication of SU864279A1 publication Critical patent/SU864279A1/en

Links

Description

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано при реализации технических средств цифровых контрольно-измерительных приборов и устройств автоматического управлени . Известны устройства дл  двухпредель ного сравнени  чисел, предназначенные дл  сравнени  текущего значени  контролируемой величины с верхним и нижним пределами, заданньми в виде кодов и выдачи сигнала в случае выхода контролируемой величины за пределы U э 2, Однако данные устройства дл  сравнени  имеют малое быстродействие и обладают низкими функциональными возможност ми . Наиболее близким к предлагаемому  вл етс  устройство дп  сравнени , содержащее шины данных, сумматор и злемент И-НЕ. Одно из сравниваемых чисел по одним шинам данных поступает на пр мые входы сумматоров, а второе число по другим шинам данных поступает на инверсные входы этих сумматоров, таким образом в сумматорах производитс  сложение пр мого и обратного кодов сравниваемых чисел.Сумматоры по выходам переноса последовательно соединены,а выходы сумматоров подключены ко входам элемента И-НЕ, на выходе которого формируетс  сигнал результата сравнени  з. Недостатком этого устройства  вл етс  невозможность двухпредельного сравнени  чисел, а также низкое быстродействие , св занное с поразр дным сложением чисел. Цель изобретени  - расширение функциональных возможностей устройства за счет возможности двухпредельного сравнени  чисел и повьипение его быстродействи . Дл  достижени  поставленной цели устройство дл  сравнени  чисел, содержащее п/к к-разр дных сумматоров (празр дность сравниваем)1х чисел, к-разр дность групп, на которые разделены эти числа), выходы сумм разр дов каждого сумматора соединены со входами соответствующего элемента , содержит п/к-разр дных коммутаторов, п/к элементов И и элемент НЕ-И, причем первые группы входов коммутаторов соединены со входами задани  верхнего предела устройства, вторые группы входов коммутаторов соединены со входами задани  нижнего предела устройства. третьи группы входов коммутаторов соединены со входами разр дов контролируемой величины устройства, управл ющие входы коммутаторов соединены с шиной управлени  устройства, выходы первой группы выходов каждого коммутатора соединены с пр мыми входами соответствующего сумматора, выходы .второй группы каждого коммутатора соединены с инверсны ш входами соответствующего сумматора , зыход каждого элемента И-НЕ соегинен с первым входом соответствующего элемента И, инверсный выход переноса каждого i-ro сумматора (1 1,,. п/к) соединен с (j + 1)-м входом (i + -ь j lj-ro элемента И (J 1,... И{К i + 1), выходы элементов И подключены ко входам элемента НЕ-И, выход которого  вл етс  выходом устройства. На чертеже изображена структурна  схема устройства. Устройство содержит вход верхнего предела 1, вход нижнего предела 2, вход контролируемой величины 3, шину управлени  4, коммутаторы 5, суммрторы 6, элементы И-НЕ 7, элементы И 8, элемент НЕ-И 9 выход результата 10. Устройство работает следующим образом . Коды верхнего предела, нижнего пре дела и контролируемой величины поступают , соответственно по входам 1-3 на входы коммутаторов 5. Дл  сравнени  -контролируемой величинь с верхним пре делом на щину управлени  4 подаетс  сигнал высокого уровн  1. По этому сигнй у на пр мые входы сумматоров 6 с выходов коммутаторов 5 подаетс  код верхнего предела, а на инверсные вхо ды - код контролируемой величины. Если код контролируемой величины меньше кода верхнего предела в сумматор 6 группы разр дов с наибольшим ве сом, то на его выходе переноса формируетс  сигнал низкого уровн  О, который запирает соответствующий элемен И 8 {состо ние выходов сумм при этом не имеет значени ), а также элементы все остальные И 8. Таким образом, на выходах элементов И 8 и формируютс The invention relates to automation and computing and can be used in the implementation of technical means of digital instrumentation and automatic control devices. Devices for two-limiting comparison of numbers are known, which are designed to compare the current value of the monitored value with the upper and lower limits specified in the form of codes and give a signal if the monitored value goes beyond the limits Ue 2. However, these devices have low speed for comparison and have low functionality. Closest to the present invention is a comparison dp device comprising a data bus, an adder and an NAND gate. One of the compared numbers over one data bus enters the direct inputs of the adders, and the second number over the other data buses enters the inverse inputs of these adders, so the adders add the forward and reverse codes of the compared numbers. The summers over the transfer outputs are connected in series, and the outputs of the adders are connected to the inputs of the NAND element, at the output of which a comparison result signal is generated. A disadvantage of this device is the impossibility of a two-limit comparison of numbers, as well as the low speed associated with random addition of numbers. The purpose of the invention is to expand the functionality of the device due to the possibility of a two-limit comparison of numbers and its speed. To achieve this goal, a device for comparing numbers, containing s / c to-bit adders (compare size) 1x numbers, k-size groups, into which these numbers are divided), the outputs of the sum of bits of each adder are connected to the inputs of the corresponding element , contains sc / c-bit switches, sc / c elements And and element-AND, the first groups of inputs of the switches are connected to the inputs of the upper limit of the device, the second groups of inputs of the switches are connected to the inputs of the lower limit of the device. the third groups of inputs of the switches are connected to the bits of the monitored device, the control inputs of the switches are connected to the control bus of the device, the outputs of the first group of outputs of each switch are connected to the direct inputs of the corresponding adder, the outputs of the second group of the corresponding totalizer , the output of each element AND-NOT is connected with the first input of the corresponding element AND, the inverse transfer output of each i-ro adder (1 1 ,,. s / c) is connected to (j + 1) -th input (i + -j j lj-ro element AND (J 1, ... AND {K i + 1), the outputs of the elements AND are connected to the inputs of the element NOT-AND, the output of which is the output of the device. The drawing shows a block diagram device. The device contains the input of the upper limit 1, the input of the lower limit 2, the input of the monitored quantity 3, the control bus 4, the switches 5, the summers 6, the elements AND-7, the elements 8, the element NOT 9 the output 10. The device works in the following way . The upper limit, lower limit and monitored codes are received, respectively, through inputs 1-3 to the inputs of switches 5. To compare the controlled value with the upper limit, control signal 4 receives a high level signal 1. This signal to the direct inputs adders 6 from the outputs of the switches 5 are fed the upper limit code, and the inverse inputs - the code of the controlled value. If the code of the monitored quantity is less than the upper limit code in the adder 6 of the group of bits with the largest weight, then a low level signal O is generated at its transfer output, which locks the corresponding element AND 8 (the output state of the sums does not matter) the elements are all other And 8. Thus, at the outputs of the elements And 8 and are formed

сигналы О, которые на выходе элемента НЕ-И 9 формируют сигнал 1.signals O, which at the output of the element NOT-9 form signal 1.

Claims (3)

На выходе элемента НЕ-И 9 формируетс  сигнал № 4 также при равенстве кодов верхнего предела и контролируемой величины, но при этом на выходах сумм сумматора 6 формируютс  сигналы 1 (так как это сумма пр мого и обратного кода одной и той же величины) и, следовательно, на выходе элемента И-НЕ 7 формируетс  сигнал О, который запирает элемент И 8, 9, а на выходе переноса сумматора 6 формируетс  сигнал №4, который поступает на вход соответствующего элемента И 8, а также на входы остальных элементов И 8, разреша  тем самым сравнение младших групп разр дов. Но на выходе переноса всех сумматоров 6 также формируютс  сигналы О, которые запирают соответствующие элементы И 8. Когда коды групп разр дов с наибольшим весом равны, а код контролируемой величины больще кода верхнего предела в группах разр дов с меньшим весом, то на одном или нескольких выходах сумм сумматора 6 той группы, где происходит несовпадение формируетс  сигнал О, который формирует сигнал 1 на выходе элемента И-НЕ 7 на инверсном выходе переноса формируетс  сигнал Г и,таким образом, на входах соответствующего элемента И 8 происхрдит совпадение сигналов № I, т. е. на выходе элемента И 8 также сигнал 1, которьш формирует на выходе элемента НЕ-И 9 сигнал О (не зависимо от сигналов поступающих на другие входы этого элемента), который подаетс  на выход результата 10, означающего выход контролируемого параметра за верхний предел. Когда код контролируемой величины больше кода верхнего предела в более младших группах разр дов, устройство рг от гт аналогично . Количество сравниваемых групп разр дов не ограничено. Дл  сравнени  контролируемой величины с нижним пределом на щину управлени  4 подаетс  сигнал О, при этом на пр мые входы сумматоров с выходом коммутаторов 5 подаетс  код контролируемой величины, а на инверсные входы - код нижнего предела. Далее устройство работает аналогично описанному , т. е. когда контролируема  величина уходит за нижний предел на шике результата формируетс  сигнал низкого уровн , Таким образом, при подаче на шину управлени  4 импульсного сигнала со скважностью 2 в случае ухода контролируемого параметра за верхний или нижний пределы на шине результата так же формируетс  импульсный сигнал, при этом быстродействие устройства ограничиваетс  только временем прохождени  сигналов через коммутатор 5,. элемент И-НБ 7 элемента Л 8 и элемент НЕ-И 9. Устройство дл  сравнени  чисел имеет большие функциональные возможности и быстродействие. Формула изобретени  Устройство дл  сравнени  чисел, содержащее п/к к-раэр дных сумматоров (п-разр дность сравниваемых чисел, кразр дность групп, на которые разделены эти числа), выходы сумм разр дов каждого сумматора соединены со входами соответствующего элемента И-НЕ, о тличающе е с  тем, что, с целью расширени  функциональных возможностей устройства.за счет возможности двухпредельного сравнени  чисел и повышени  его быстродействи , устройство содержит п/к к-разр дных коммутаторов , п/к элементов И и элемент НЕ-И, причем первые группы входов коммутаторов соединены со входами задани  верхнего предела устройства, вторые группы входов коммутаторов соединены со входа ш задани  нижнего предела устройства , третьи группы входов коммутаторов соединены со входами разр дов контролируемой величины устройства, управл кщие входы коммутаторов соединены с шиной управлени  устройства, выходы первой группы выходов каждого Коммутатора соединены с пр мыми входами соответствующего сумматора, выходы второй группы каждого коммутатора соединены с инверсными входами соответствующего сумматора, выход каждого элемента И-НЕ соединен с первым входом соответствующего элемента И, инверсный выход переноса каждого 1-го сумматора (1 ,... ,п/к) соединен с (} + 1)-й входом (f + j-l)-ro элемента И (j « l...,h|lc-i +1), выходы элементов И подключены ко входам элемента НЕ-И, выход которого  вл етс  выходом устройства. Ист чники информации, прин тые во внимание при экспертизе 1.Авторское свидетельство СССР 526889, кл. G 06 F 7/04, 1977. At the output of the non-AND 9 element, the signal No. 4 is also formed when the upper limit codes and the monitored value are equal, but at the outputs of the sum of the adder 6, signals 1 are generated (since this is the sum of the forward and reverse codes of the same value) and, consequently, at the output of the NAND 7 element, a signal O is generated, which blocks the element AND 8, 9, and at the transfer output of the adder 6 a signal No. 4 is formed, which is fed to the input of the corresponding element And 8, as well as to the inputs of the remaining elements And 8, thus allowing comparison of lower order groups ov But at the output of the transfer of all adders 6, signals O are also formed that lock the corresponding elements of AND 8. When the codes of the bit groups with the greatest weight are equal, and the code of the monitored value is larger than the upper limit code in the groups of bits with lower weight, then at one or several the outputs of the sums of the adder 6 of the group where the discrepancy occurs, the signal O is generated, which generates the signal 1 at the output of the element AND-NE 7 at the inverse output of the transfer, the signal G is formed and, thus, at the inputs of the corresponding element AND 8 the process the coincidence of signals No. I, i.e., at the output of the element AND 8, also signal 1, which forms at the output of the element NOT-AND 9 a signal O (regardless of the signals arriving at the other inputs of this element), which is fed to the output of result 10, means that the monitored parameter goes beyond the upper limit. When the code of the monitored quantity is greater than the code of the upper limit in the lower groups of bits, the device pg from rm is similar. The number of compared groups of bits is not limited. To compare the monitored quantity with the lower limit, control signal 4 is supplied to the control bus 4, while the direct inputs of the adders with the output of the switches 5 are fed with the code of the monitored quantity, and the inverse inputs - the code of the lower limit. Further, the device operates as described, i.e. when the monitored value goes beyond the lower limit on the result buster, a low level signal is generated. Thus, when a pulse signal with a duty cycle 2 is applied to the control bus 4, the monitored parameter goes beyond the upper or lower limits The result bus also generates a pulse signal, while the device speed is limited only by the time it takes the signals to pass through the switch 5 ,. the I-NB element 7 of the L 8 element and the non-AND 9 element. The device for comparing numbers has great functionality and speed. Apparatus of the Invention A device for comparing numbers containing scrambled-to-half adders (n-bitness of compared numbers, number of groups into which these numbers are divided), outputs of digits of bits of each adder are connected to the inputs of the corresponding AND-NOT element, This is different from the fact that, in order to expand the functional capabilities of the device. Due to the possibility of a two-limit comparison of numbers and increasing its speed, the device contains the s / w to-bit switches, the s / c of the AND elements and the NOT-AND element, groups The inputs of the switches are connected to the device's upper limit input inputs, the second groups of switch inputs are connected to the device's lower limit input input, the third groups of switch inputs are connected to device inputs of the monitored device size, the control inputs of the switches are connected to the device control bus, and the outputs of the first group the outputs of each Switch are connected to the direct inputs of the corresponding adder, the outputs of the second group of each Switch are connected to the inverse inputs of the corresponding connecting adder, the output of each element AND-NOT is connected to the first input of the corresponding element AND, the inverse transfer output of each 1st adder (1, ..., s / c) is connected to (} + 1) -th input (f + jl ) -ro of the AND element (j "l ..., h | lc-i +1), the outputs of the AND elements are connected to the inputs of the NOT-AND element, the output of which is the output of the device. Sources of information taken into account during the examination 1. USSR author's certificate 526889, cl. G 06 F 7/04, 1977. 2.Авторское свидетельство СССР 538358, кл. G 06 F 7/04, 1977. 2. Authors certificate of the USSR 538358, cl. G 06 F 7/04, 1977. 3.Вудйнский Я., Логические цепи в Цифровой технике. М., Св зь, 1977, с. 144 (прототип).3. Vudaynsky I., Logic circuits in digital technology. M., Holy Hour, 1977, p. 144 (prototype).
SU792780097A 1979-09-27 1979-09-27 Number comparator SU864279A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU792780097A SU864279A1 (en) 1979-09-27 1979-09-27 Number comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU792780097A SU864279A1 (en) 1979-09-27 1979-09-27 Number comparator

Publications (1)

Publication Number Publication Date
SU864279A1 true SU864279A1 (en) 1981-09-15

Family

ID=20833739

Family Applications (1)

Application Number Title Priority Date Filing Date
SU792780097A SU864279A1 (en) 1979-09-27 1979-09-27 Number comparator

Country Status (1)

Country Link
SU (1) SU864279A1 (en)

Similar Documents

Publication Publication Date Title
KR960042416A (en) Max value selection circuit
US3938087A (en) High speed binary comparator
SU864279A1 (en) Number comparator
US3221154A (en) Computer circuits
US3308286A (en) Statistical decision circuit
SU881735A1 (en) Number sorting device
SU1338027A2 (en) Device for separating single n-pulse
SU857976A1 (en) Binary adder
SU980089A1 (en) Number comparing device
SU1277089A1 (en) Device for calculating values of boolean derivatives
SU796840A1 (en) Device for determining number position on numerical axis
SU1403059A1 (en) Number array sorting device
SU842791A1 (en) Number comparing device
SU531151A1 (en) A device for comparing two n-bit binary numbers
SU1120321A1 (en) Device for extracting 7-th root of number
SU978143A1 (en) Device for number comparison
SU809167A1 (en) Device for comparing binary numbers
SU798810A1 (en) Device for comparing code weights
SU842789A1 (en) Microprocessor section
SU1441484A1 (en) Apparatus for associative coding and compression of volume of information
SU991409A1 (en) Device for determination of number of ones in a binary number
SU987616A1 (en) Device for serial discriminating unities from n-digit binary code
SU857982A1 (en) Square rooting device
SU679977A1 (en) Digit comparator
SU717758A1 (en) Device for determining the average of three numbers