SU739526A1 - Device for comparing two numbers - Google Patents
Device for comparing two numbers Download PDFInfo
- Publication number
- SU739526A1 SU739526A1 SU782576372A SU2576372A SU739526A1 SU 739526 A1 SU739526 A1 SU 739526A1 SU 782576372 A SU782576372 A SU 782576372A SU 2576372 A SU2576372 A SU 2576372A SU 739526 A1 SU739526 A1 SU 739526A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- circuit
- counter
- trigger
- Prior art date
Links
Description
1one
. Изобретение относитс к области автоматики и вычислительной техники и может быть использовано при технической реализации устройств ЦВМ и технических средств автоматики дл сравнени чисел.. The invention relates to the field of automation and computer technology and can be used in the technical implementation of digital computer devices and automation equipment for comparing numbers.
Известно устройство дл сравнени двух чисел по авт..свид. 489103, содержащее генератор счетных меток, выход которого через входную схему И соединен со входами первого и второго счетчиков, вьвсоды переноса первого и второго счетчиков соединены с . первым} входами первого и второго триггеров соответственно, третий триггер, многовходовые схемы И и схему ИЛИ. Вторые входы этих триггеров соединены с шинйй записи второго числ4, соединенной с установочными входами второго счетчика. Установочные входы первого счетчика соединены с шиной записи первого числа. Выходы первого и второго триггеров соединены со входс1ми соответственно первой и второй выходных схем К, выходы которых соединены со входами выходной схемы ИЛИ. Выход последней соединен с выходом устройства . Входы первой многовходовойA device is known for comparing two numbers by author. 489103, containing a counting tag generator, the output of which is connected to the inputs of the first and second counters through the input circuit I, and the transfer ports of the first and second counters are connected to. the first} inputs of the first and second triggers, respectively, the third trigger, the multi-input AND circuit and the OR circuit. The second inputs of these flip-flops are connected to the second number 4's Shiny entry, connected to the setup inputs of the second counter. The installation inputs of the first counter are connected to the recording bus of the first number. The outputs of the first and second flip-flops are connected to the inputs of the first and second output circuits K, respectively, the outputs of which are connected to the inputs of the output circuit OR. The output of the latter is connected to the output of the device. The inputs of the first multi-input
схемы И соединены с выходами первого триггера и соответствующих разр -. дов первого счетчика, входы второй многовходовой схемы И - с выходами второго триггера и соответствующих разр дов второго счетчика, выходы обеих многовходовых схем И - со входами схемы ИЛИ, выход которой соединен со входом третьего триггера. schemes And are connected to the outputs of the first trigger and the corresponding bit -. The first counter, the inputs of the second multi-input circuit I - with the outputs of the second trigger and the corresponding bits of the second counter, the outputs of both multi-input circuits AND - with the inputs of the OR circuit, the output of which is connected to the input of the third trigger.
16 Другой вход последнего соединен с шиной записи второго числа. Выход третьего триггера соединен со входом входной схемы И. Выходы переноса первого и второго счетчиков соедине15 ны со Входами второй и первой выходных схем И соответственно 1.16 Another input of the latter is connected to the recording bus of the second number. The output of the third trigger is connected to the input of the input circuit I. The transfer outputs of the first and second counters are connected to the inputs of the second and first output circuits AND, respectively, 1.
Недостатками данного устройства вл ютс ограниченный функциональные The disadvantages of this device are limited functional
20 возможности, так как оно позвол ет только сравнивать два многоразр дных числа в Вешанном поле допуска. Применение тйкого устройства дл задач контрол требует дополнительного 20, since it only allows one to compare two multi-digit numbers in the Suspended Tolerance Field. The use of such a device for control tasks requires additional
25 оборудовани дл задани эталонного временного интервала и преобразовани этого интервала в цифровой код, что значительно усложн ет устройство и снижает его надежность.25 equipment for setting a reference time interval and converting this interval into a digital code, which greatly complicates the device and reduces its reliability.
Целью изобретени вл етс расширение функциональных возможностей устройства за счет совмещени формировани эталонных интервалов сравнени чисел.The aim of the invention is to expand the functionality of the device by combining the formation of reference intervals for comparing numbers.
Поставленна цель достигаетс тем, что в предложенное устройство введены четвертый триггер, треть многовходова схема И, двухвходова схема И и входна ИЛИ. Вход установки в нуле-вое состо ние четвёртого триггера соединен со входом управлени , а инверсный выход подключен к первому входу двухвхрдовой схемы И, второй вход которой соеданен с выходом генератора счетных меток, а выход - с riepBtoM входом входной схемы ИЛИ, второй вход которой подключен к выходу входной схемы И. Выход входной схемы ИЛИ соединен со входом первого счетчика . Пр мой выход четвертого триггера подключен к третьему входу входН (5й схемы И, Входы третьей многовходовой схемы И соединены с выходами первого счетчика, а выход -подключен ко входу установки в единичное состо ние четвертого триггера.The goal is achieved by the fact that the fourth trigger, the third AND multi-input scheme, the AND two-input scheme and the OR input are introduced into the proposed device. The setup input in the zero state of the fourth trigger is connected to the control input, and the inverse output is connected to the first input of the two-circuit AND circuit, the second input of which is connected to the output of the counting mark generator, and the output - to the riepBtoM input of the input circuit OR, the second input of which is connected to the output of the input circuit I. The output of the input circuit OR is connected to the input of the first counter. The direct output of the fourth trigger is connected to the third input of the inputN (the 5th AND circuit, the inputs of the third multi-input circuit AND are connected to the outputs of the first counter, and the output is connected to the input of the unit to the fourth state of the fourth trigger.
Структурна схема устройства представлена на чертеже.The block diagram of the device is shown in the drawing.
Устройство содержит генератор счетных меток 1, входную схему И 2, первы 3 и второй 4 счетчики, многов ходовые, схемы И 5, 5,, триггеры 6, 6.,6, выходные схемы И lJ,, Т, схемы ИЛИ 8, бд, триггер. 9, многовходовую схему И 10, схему ИЛИ 11,двухвходовую схему И 12.The device contains a counting generator 1, the input circuit AND 2, the first 3 and the second 4 counters, many running, circuit AND 5, 5 ,, triggers 6, 6., 6, output circuit AND lJ ,, T, circuit OR 8, DB trigger 9, multi-input circuit And 10, circuit OR 11, two-input circuit And 12.
. Устройство работает следующим образом , в исходном состо нии триггеры 6, 6,2. закрывают многовходоЬые схемы И 5 , 5 и выходное схемы И 7 , 7,.,, а схема И 2 по одному входу закрыта сигналом триггера 6... The device operates as follows, in the initial state, triggers 6, 6.2. close the multi-input circuits AND 5, 5 and the output circuit AND 7, 7,. ,, and the circuit AND 2 on one input is closed by the trigger signal 6 ..
При поступлении с контролируемого устройства на вход упра;влени 13 сигнала запрос триггер 9 устанавлива етс в состо ние, разрешающее прохождение счетных импульсов с выхода генератора 1 через схему И 12. СчётЙеГё импульсы через схему ИЛИ 11 поступают на вход счетчика 3. Емкость счетчика и структура построени его опрёдел ютс количеством разр дов и структурой информации, поступающей с контролируемого устройства. На схеме И 10 выбираетс сигнал Ответ , который поступает на выход 15 и на триггер 9. С выхода. 16 сигнал Ответ ,. задержанный относительно сигнала 3апрос на заранее известный этгшонный временной интервал, поступает на контролируемое . устройства .When a control signal arrives from the monitored device to the input 13, the request trigger 9 is set to allow the counting pulses from the generator 1 to pass through the circuit 12. The counting pulses through the circuit OR 11 arrive at the input of the counter 3. The capacitance of the counter and the structure its construction is determined by the number of bits and the structure of information received from the monitored device. In the And 10 circuit, the Response signal is selected, which goes to output 15 and to trigger 9. From the output. 16 signal Answer,. delayed relative to the signal 3apros on a previously known etshonny time interval, arrives on the controlled. devices.
По приходу сигнала Ответ триггер 9 возвращаетс в первоначальное состо ние и запрещает прохождение счетных импульсов с выхода генератора 1 через схему И 12i Поскольку на вход счетчика 3 поступление счетньЬс импульUpon arrival of the signal, Response trigger 9 returns to the initial state and prohibits the passage of counting pulses from the output of generator 1 through the AND circuit 12i Since the input of the counter 3 has a count of pulses
сов прекращаетс , то в счетчике 3 записываетс код числа, соответствующи эталонному временному интервалу межд сигналами Запрос и Ответ. При поступлении с контролируемого устройства информации об измеренном эталонном временном интервале между сигналами Запрос и Ответ сигнал Запись, поступающий по входу управлени 14, заносит это число во второй счетчик 4. Одновременно сигнал Запись устанавливает триггер 63 в состо ние, при котором схема И 2 открываетс по одному входу. При приходе очередного сигнала Ответ инверсный выход триггера 9 открывает схему И 2, и начинаетс прохождение счетных импульсов с выхода генератора на счетчик 4 и одновременно через схему ИЛИ на счетчик 3. Начинаетс сравнение двух чисел, т.е. эталонного числа, которое осталось записанным в счетчике 3 после выбора сигнала Ответ, и числа Ьб измеренном -эталоном временном интервале между сигналами Запрос и ответ.the clock stops, then in the counter 3 the code of the number is recorded, corresponding to the reference time interval between the signals Request and Response. Upon receipt of information from the monitored device about the measured reference time interval between the signals Request and Response signal Record received at control input 14 records this number in the second counter 4. At the same time, the Record signal sets the trigger 63 to the state where the And 2 circuit opens on one entrance. When the next signal arrives, the Response Inverted Output of Trigger 9 opens the AND 2 circuit, and the counting pulses from the generator output to counter 4 begin and simultaneously through the OR circuit to Counter 3. A comparison of two numbers, i.e. the reference number that remained recorded in the counter 3 after the selection of the Answer signal, and the number LB measured by the reference time interval between the Request and the Answer signals.
Это число, соответствующее измеренному значению временного интервала между сигналами Запрос, Отв т , прийедшее с контролируемого устройства и записанное в счетчик 4 меньше, чем эталонное число,которое записано в счетчике 3, то на выходе счетчика 3 импульс переноса по витс раньше, чем на выходе 4, на число импульсов, равное разности этих чисел.This number, which corresponds to the measured value of the time interval between the signals Request, Respond, received from the monitored device and recorded in counter 4 is less than the reference number recorded in counter 3, then the output pulse of the transfer counter turns out earlier than the output 4, on the number of pulses equal to the difference of these numbers.
Импульс переноса с выхода счетчика 3 устанавливает триггер € в такое положение, что он не преп тствует прохождению импульсов через схему И 5 и схему И 7 .The transfer pulse from the output of the counter 3 sets the trigger € in such a position that it does not prevent the passage of pulses through the AND 5 circuit and the AND 7 circuit.
На выходе схемы И 5 импульс по вл етс лишь тогда, когда в счетчик 3 поступит число импульсов, равное заранее заданному с учетом разности сравниваемых чисел. Импульс с выхода схемы И 5 через схему ИЛИ 8 поступает на вход триггера 6, измен ет его состо ние/ запреща тем самым поступление счетнйх импульсЪв на вход счетчиков 3,4. Факим образом, если разность между эталонным и измеренным числами не превышает наперед заданного, числа импульсов, то только в этом случае по вл етс импульс переноса на выходе счетчика 4, который Ароходит через схемы и 7 и ИЛИ 8 на выход 16 устройства.VAt the output of the circuit, AND 5, a pulse appears only when counter 3 receives a number of pulses equal to a predetermined number given the difference in the numbers being compared. The pulse from the output of the circuit AND 5 through the circuit OR 8 is fed to the input of the trigger 6, changes its state / prohibiting thereby the arrival of the counting pulses to the input of the counters 3,4. In fact, if the difference between the reference and measured numbers does not exceed the predetermined number of pulses, it is only in this case that a transfer pulse appears at the output of counter 4, which goes through the circuits and 7 and OR 8 to the output 16 of the device.
Если же разность между эталонным и измеренным числалм превьпиает наперед заданный допуск, то импульса переноса на выходе счетчика 4 не будет, поскольку импульс с выхода .схемы И 5 по вл етс до момента по влени импульса переноса со счётчика и запрещает прохождение им пульсов на счетчики 3,4, следовательно , на выходе 16 импульс сутствует. Аналогично устройство работает, когда число, пришедшее ;с контролиру е.мого устройства и записаниое в сче чик 4 больше, чем этгаМойное число, установленное в счетчике 3, . В случае равенства числа, соотве ствующёго измеренному значению временного интервала между- сигналами Запрос, Ответ и пришедшего с контролируемого устройства, и чис ла эталонного, которое записано в счетчике 3, импульсы переноса с выходов счетчиков 3,4 по вл ютс одно временно, перебрасывают триггеры 6v 62 и проход т через схемы И 7, ,7 и ИЛИ 8,82. на выходУстройств а 15. Таким образом, в предложенном устройстве расширены функциональные возможности, так как оно выполн ет дополнительныефункции: задатчика эталонного временного интервала и преобразовател временной интервал эталонный код.If the difference between the reference and measured number exceeds the predetermined tolerance, then there will be no transfer pulse at the output of counter 4, since the pulse from the output of AND5 circuit appears until the transfer pulse appears from the counter and prohibits the pulse from passing to the counters 3 , 4, therefore, there is no impulse at the output 16. Similarly, the device works when the number that arrives, from the monitor of my device and writing to the counter 4 is greater than the same my set number in counter 3,. If the number is equal, the corresponding measured value of the time interval between the interrogation signals Request and Response from the monitored device and the number of the reference one recorded in counter 3, transfer pulses from the outputs of counters 3.4 appear at the same time, flip-flops 6v 62 and pass through the schemes AND 7,, 7 and OR 8.82. to the output of Device 15. Thus, in the proposed device, the functionality has been expanded, since it performs additional functions: the master of the reference time interval and the time interval converter the reference code.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU782576372A SU739526A1 (en) | 1978-02-01 | 1978-02-01 | Device for comparing two numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU782576372A SU739526A1 (en) | 1978-02-01 | 1978-02-01 | Device for comparing two numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU739526A1 true SU739526A1 (en) | 1980-06-05 |
Family
ID=20747419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU782576372A SU739526A1 (en) | 1978-02-01 | 1978-02-01 | Device for comparing two numbers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU739526A1 (en) |
-
1978
- 1978-02-01 SU SU782576372A patent/SU739526A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US2961535A (en) | Automatic delay compensation | |
SU739526A1 (en) | Device for comparing two numbers | |
SU1571593A1 (en) | Device for checking digital units | |
SU650071A1 (en) | Device for group cimpensatiob of binary numbers | |
SU942001A1 (en) | Device for sorting numbers | |
SU997024A1 (en) | Information input device | |
SU796893A1 (en) | Information receiving device | |
SU970459A1 (en) | Device for checking data recording to accumulator having moving medium | |
SU1492468A1 (en) | Logical unit | |
SU972515A1 (en) | Device for checking operation control units | |
SU836645A1 (en) | Pulse counting device | |
SU921093A1 (en) | Scaling device | |
SU800905A1 (en) | Device for testing installation of cables | |
SU1151945A1 (en) | Information input device | |
SU1649548A1 (en) | Pulse train monitor | |
SU1136166A2 (en) | Device for checking digital systems | |
SU1354194A1 (en) | Signature analyser | |
SU1244674A1 (en) | Device for simulating queueing systems | |
SU1144109A1 (en) | Device for polling information channels | |
SU1326493A1 (en) | Apparatus for transmission of data from rail vehicle | |
RU1783480C (en) | Device for scanning-type data logging of family of parameters | |
SU1196884A1 (en) | Device for input of information from discrete transducers | |
SU746710A1 (en) | Device for monitoring information recording process | |
SU1288710A1 (en) | Device for analyzing graphs | |
SU1444777A1 (en) | Device for checking sequences of pulses |