SU1314335A1 - Device for comparing two numbers - Google Patents
Device for comparing two numbers Download PDFInfo
- Publication number
- SU1314335A1 SU1314335A1 SU864031862A SU4031862A SU1314335A1 SU 1314335 A1 SU1314335 A1 SU 1314335A1 SU 864031862 A SU864031862 A SU 864031862A SU 4031862 A SU4031862 A SU 4031862A SU 1314335 A1 SU1314335 A1 SU 1314335A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- inputs
- output
- elements
- counter
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано при построении контрольной аппаратуры дл проверки прохождени информации в дискретных устройствах различного типа и дл проверки работоспособности запоминающих устройств, счетчиков, регистров и других более сложных дискретных устройств. Цель Изобретени - повышение быстродействи устройства дл сравнени чисел. Устройство содержит вычитающие счетчики , группы элементов И, многовхо- довые элементы И, группы элементов И-НЕ, ИЛИ, элементы ИЛИ-НЕ, НЕ, И. Совокупность введенных элементов и св зей позволила после-каждого такта вычитани единиц из счетчиков производить обнуление тех разр дов чисел, в которых у обоих чисел по вились единицы, что исключило необходимость подачи вычитающих импульсов в количестве , равном одному из чисел, и, как следствие, привело к увеличению , быстродействи . 1 з.п. ф-лы, 3 ил. to (Л :лэ 00 W) елThe invention relates to computing and can be used in the construction of control equipment for checking the passage of information in discrete devices of various types and for checking the operability of memory devices, counters, registers and other more complex discrete devices. The purpose of the Invention is to increase the speed of a device for comparing numbers. The device contains subtractive counters, groups of elements AND, multiple inputs AND, groups of elements AND-NOT, OR, elements OR-NOT, NOT, I. The set of entered elements and connections allowed after-each tact of subtracting units from the counters to reset those the number bits in which both numbers appeared units, which eliminated the need to supply subtractive pulses in an amount equal to one of the numbers, and, as a result, led to an increase in speed. 1 hp f-ly, 3 ill. to (L: le 00 W) ate
Description
113113
Изобретение относитс к вычислительной технике и может быть использовано при построении контрольной аппаратуры дл проверки прохождени информации в дискретных устройствах различного типа и дл проверки работоспособности ЗУ, сумматоров, счетчиков , регистров и других более сложных дискретных устройств.The invention relates to computing and can be used in the construction of control equipment for checking the passage of information in discrete devices of various types and for checking the operability of memory devices, adders, counters, registers and other more complex discrete devices.
Цель изобретени - повьгаение быстродействи .The purpose of the invention is povigeniya speed.
На фиг.1-3 показаны блок-схемы предлагаемого устройства.Figure 1-3 shows the block diagram of the proposed device.
Устройство содержит вычитающие счетчики 1, группы элементов И 2, элемент НЕ 3, элемент И 4, многовхо- довые элементы И 5, элемент 6 задержки , элементы И 7, триггер 8, группу элементов И-НЕ 9, группу элементов ИЛИ 10, элемент И-НЕ 11, элемент ИЛИ- НЕ 12, элемент НЕ 13, входы 14-17, выходы 18-20. Каждый вычитающий счетчик 1 содержит D-триггер 21, элементы И 22, входы 23-26.The device contains subtractive counters 1, groups of elements AND 2, element NOT 3, element AND 4, multiple inputs AND 5, element 6 delay, elements AND 7, trigger 8, group of elements AND-NOT 9, group of elements OR 10, element AND-NOT 11, element OR - NOT 12, element NOT 13, inputs 14-17, outputs 18-20. Each subtractive counter 1 contains a D-flip-flop 21, elements AND 22, inputs 23-26.
Устройство работает следующим образом .The device works as follows.
Перед началом работы устройства из внешнего блока управлени на вход 16 устройства выдаетс сигнал Обнуление счетчиков I первого и второго числа, который подаетс на элемент НЕ 3 и на единичный вход (S-вход) стандартного RS-триггера 8 с пр мыми входами. Сигнал, проход щий через элемент НЕ 3, инвертируетс , поступает на входы 24 общего обнулени вычитающих счетчиков 1 первого и второго числа и обнул ет их. Сигнал, поступающий на S-вход RS-триггера В, устанавливает триггер в единичное состо ние и на его инверсном выходе по вл етс логический О (ноль), который поступает на элементы И 7 первого и второго числа и через элемент И-НЕ 11, - на элемент НЕ 13.Before the device starts operating, the signal Resetting the counters I of the first and second numbers is given to the input 16 of the device, which is fed to the NOT 3 element and to the single input (S input) of the standard RS flip-flop 8 with direct inputs. The signal passing through the HE 3 element is inverted, fed to the common zero reset inputs 24 of the first and second counting subtraction counters 1 and zeroed. The signal arriving at the S input of the RS flip-flop B sets the trigger to one state and a logical O (zero) appears on its inverse output that arrives at AND 7 elements of the first and second numbers and through the AND-NOT element 11, - on the item NOT 13.
Таким образом, на выходах 20 устройства первого и второго числа и на выходе 19 устройства после выдачи сигнала Обнуление счетчиков 1 первого и второго числа будет ,0.Thus, at the outputs 20 of the device of the first and second numbers and at the output 19 of the device after issuing a signal, the zeroing of the counters 1 of the first and second numbers will be, 0.
Далее на входы 14 устройства подаютс проинвентированные модули первого и второго сравниваемого числа, которые по сигналу с входа 15 из внешнего блока управлени , через блоки элементов И 2 записываютс в счетчики 1 первого и второго числа.Next, the inputs 14 of the device are supplied to the first and second compared numbers, which, according to the signal from input 15 from the external control unit, through the blocks of elements I 2 are written to the counters 1 of the first and second numbers.
5252
Состо ни пр мых выходов 27 счетчиков 1 первого и второго числа по- Дсшзтс в блок элементов И-НЕ 9, с выходов которых информаци поступает на входы 26 подразр дного обнулени счетчиков 1 первого и второго числа, при этом одноименные разр ды двоичного кода счетчиков 1 первого и второго числа, содержащие логические еди- ницы (1), обнул ютс .The states of direct outputs 27 of counters 1 of the first and second number are connected to the block of I-HE elements 9, from the outputs of which the information enters the inputs 26 of subdivision zeroing of counters 1 of the first and second numbers, while the binary digits of the counters of the same name 1 the first and second numbers containing the logical units (1) are nullified.
Сигнал с входа 15 поступает также и на R-вход триггера 8, через элемент 6 задержки. После установки триггера 8 в О с инверсного выхода триггера 8 вырабатываетс единичный сигнал, который поступает на элемент И 7 первого и второго числа и на элемент И-НЕ 11 и вл етс разрешающим сигналом дл выдачи информации на выходы 20 устройства первого и второго числа и на выход.The signal from the input 15 is also supplied to the R input of the trigger 8, through the element 6 of the delay. After the trigger 8 is set to O, the inverted output of the trigger 8 produces a single signal that goes to the first and second number AND 7 and the AND-NE element 11 and is the enable signal for issuing information to the outputs 20 of the first and second number and output.
После обнулени одноименных разр дов в счетчиках 1 первого и второго числа содержащих 1, если ни один из счетчиков 1 не обнулилс полностью , нулевые сигналы с многовходо- вых элементов И 5 первого и второго числа поступают на входы элемента ИЖ-НЕ 12. При этом на его выходе вырабатываетТз единичный сигнал, который разрешает прохождение синхроимпульсов (СИ), поступающих на вход 17 устройства из внешнего блока управлени - , через элемент И 4 на вычитающие входы 23 счетчиков 1 первого и второго числа.After zeroing of the same-named bits in the counters 1 of the first and second numbers containing 1, if none of the counters 1 has completely zeroed out, the zero signals from the multiple-input elements AND 5 of the first and second numbers are fed to the inputs of the IL-NOT 12 element. its output is generated by a single signal, which permits the passage of sync pulses (SI) to the input 17 of the device from the external control unit, through the element 4 to the subtracting inputs 23 of the counters 1 of the first and second numbers.
После вычитани каждой 1 из счетчиков 1 первого и второго числа, через блок элементов И-НЕ ,9 происходит обнуление тех разр дов счетчиков 1 первого и второго числа, в которых у обоих оказываетс 1. Так происходит до тех пор пока один из счетчиков 1 первого и второго числа не об-After each 1 of the counters 1 of the first and second numbers are subtracted, through the block of the elements AND –NE 9, those bits of the counters 1 of the first and second numbers are zeroed out in which both of them have 1. This happens until one of the counters 1 of the first and the second number is not about
нулитс полностью.Zeroes completely.
Дл большей нагл дности рассмотрим алгоритм вычислени рассогласовани счетчиков на следующем примере:For the sake of clarity, let us consider the algorithm for calculating the error of counters in the following example:
10100011 1 такт - обнуление I 0001111 разр дов с общими10100011 1 clock cycle - zeroing I 0001111 bits with a common
00100000 0000110000100000 00001100
2 такт - вычитание 1 из обоих счетчиков2 tact - subtract 1 from both counters
31313131
00010100 3 такт - обнуление 00000000 общих 100010100 3 clock cycle - resetting 00000000 common 1
При обнулении хот бы одного из счетчиков 1 первого или второго числа на инверсных его выходах 27 и 28 (их) будут 1, которые поступают соответственно на многовходовой элемент И 5 первого числа или (и) на многовходовой элемент И 5 второго числа, затем с их выходов на первый и второй входы элемента ИЛИ-НЕ 12 соответственно, вырабатыва нулевой сигнал на его выходе, который и вл етс сигналом запрета подачи СИ через элемент И 4 на вычитающие входы 23 счетчиков 1 первого и второго числа. На этом процесс сравнени чисел завершаетс .When zeroing at least one of the counters 1 of the first or second number on its inverse outputs 27 and 28 (their) will be 1, which go respectively to the multi-input element And 5 of the first number and / or to the multi-input element And 5 of the second number, then from outputs to the first and second inputs of the element OR-NOT 12, respectively, generating a zero signal at its output, which is the signal to prohibit the supply of SR through the element 4 to the subtractive inputs 23 of counters 1 of the first and second numbers. This completes the number comparison process.
При этом на блоке выходов 18 устройства (через блок элементов ИЛИ 10) будет находитьс результат рассогласовани чисел. Дл внешнего блока управлени окончанием процесса сравнени будет вл тьс наличие хот бы на одном из выходов 20 или выходе 19. На выходе 20 первого числа (через элемент И 7 первого числа сигнал 1 будет, если обнулитс только счетчик 1 первого числа, т.е. второе число больше первого, на выходе 20 второго числа через элемент И 7 второго числа) будет 1, если обнулитс счетчик 1 второго числа, т.е. первое число больше чем второе. На выходе 19 (через элементы И-НЕ Пи НЕ 13) будет 1, если счетчики 1 первого и второго числа обнул тс одновременно , т.е. если числа первое и второе равны.At the same time, on the block of the device outputs 18 (through the block of the elements OR 10) there will be the result of the number mismatch. For the external control unit, the end of the comparison process will be the presence of at least one of the outputs 20 or output 19. At the output 20 of the first number (via element 7 of the first number, signal 1 will be if only counter 1 of the first number is reset, i.e. the second number is greater than the first, at the output 20 of the second number through the element And 7 of the second number) will be 1 if the counter 1 is reset to the second number, i.e. the first number is more than the second. At output 19 (through the elements AND NOT NOT Pi NOT 13) there will be 1 if the counters 1 of the first and second number are wrapped simultaneously, i.e. if the numbers first and second are equal.
После обнулени счетчиков I первого и второго числа и приема исходных чисел цикл работы повтор етс .After zeroing the counters I of the first and second numbers and receiving the initial numbers, the operation cycle is repeated.
Триггер 8 необходим дл блокировки ложных сигналов устройства, которые возникают на выходах 20 первого и второго .числа и выходе 19, в момент первоначального обнулени счетчиков I первого и второго числа и записи в них исходных чисел.The trigger 8 is necessary for blocking spurious signals of the device that occur at the outputs 20 of the first and second numbers and output 19, at the moment of the initial zeroing of the counters I of the first and second numbers and recording the initial numbers in them.
Элемент 6 задержки необходим дл того, чтобы задержать переключение триггера 8 в О, на врем необходимое дл поразр дного обнулени одноименных единичных разр дов в сравниваемых числах после их приема в счетчиках I первого и второго числа.The delay element 6 is required to delay the switching of the trigger 8 to O for the time required for bit-by-bit zeroing of the same-bit bits in the compared numbers after they are received in counters I of the first and second numbers.
5454
Период следовани синхроимпульсов, подаваемых на вход 17 устройства, должен быть больше времени срабатывани счетчиков I первого и второгоThe period of the clock pulses supplied to the input 17 of the device must be greater than the response time of the counters I of the first and second
числа при вычитании очередной 1 плюс врем поразр дного обнулени одноименных единичных разр дов счетчиков 1 первого и второго числа.the numbers when subtracting the next 1 plus the time of a bit zeroing of the same-named unit bits of counters 1 of the first and second numbers.
Таким образом, возможность поразр дного обнулени одноименных разр дов чисел, содержащих 1, дает возможность значительно повысить быстродействие устройства. Счетчики 1 первого и второго числа идентичны иThus, the possibility of a bit zeroing of the same-named bits of numbers containing 1 makes it possible to significantly increase the speed of the device. Counters 1 of the first and second numbers are identical and
работают следующим образом.work as follows.
Дл общего обнулени счетчика 1 необходимо подать нулевой сигнал на вход 24 общего обнулени счетчика 1, который,-поступа через элементы И 2For the general zeroing of the counter 1, it is necessary to apply a zero signal to the input 24 of the general zeroing of the counter 1, which, -access through the elements And 2
на асинхронные R-входы (4-е входы) триггеров 21, устанавливает их в О. Дл поразр дного обнулени счетчика 1 нулевые сигналы подаютс на входы 26 поразр дного обнулени счетчика 1 , и далее через элементы И 2 на асинхронные R-входы тех триггеров, которые необходимо обнулить.on asynchronous R-inputs (4th inputs) of flip-flops 21, sets them to O. To reset zero counter 1, zero signals are applied to double-zero zero counter 1, and then through elements 2 to asynchronous R-inputs of those triggers that need to be reset.
Число, которое необходимо записать на счетчик 1, подаетс в двоичном коде на установочные входы 25 счетчика 1. Пр мые (первые) выходы триггеров 21 вл ютс пр мыми выходами 27 счетчика 1, а инверсные (вторые ) выходы - инверсными выходами 28The number to be written to the counter 1 is supplied in binary code to the installation inputs 25 of the counter 1. The direct (first) outputs of the trigger 21 are the direct outputs 27 of the counter 1, and the inverse (second) outputs - the inverse outputs 28
счетчика 1.counter 1.
В данном счетчике 1 состо ние К-го разр да (К 1, п - 1, где п - величина разр дной сетки) непосредственно передаетс на вход последующего (к - разр да, что происходит только после переключени всех редыдущих разр дов.In this counter 1, the state of the K-th bit (K 1, n - 1, where n is the size of the discharge grid) is directly transmitted to the next input (k = bit, which occurs only after switching all previous bits.
Со счетным (третьим) С-входом каждого последующего триггера 21 соединен единичный (первый) выходWith the counting (third) C-input of each subsequent trigger 21 is connected to a single (first) output
триггера 21 соседнего младшего разр да . Триггер 21 старшего разр да будет перебрасыватьс лишь в случае переброса триггера 21 соседнего младшего разр да из состо ни О в состо ние 1.trigger 21 neighboring low bit. The trigger 21 of the most significant bit will be transferred only if the trigger 21 of the next least significant bit is transferred from state O to state 1.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864031862A SU1314335A1 (en) | 1986-03-04 | 1986-03-04 | Device for comparing two numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864031862A SU1314335A1 (en) | 1986-03-04 | 1986-03-04 | Device for comparing two numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1314335A1 true SU1314335A1 (en) | 1987-05-30 |
Family
ID=21224453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864031862A SU1314335A1 (en) | 1986-03-04 | 1986-03-04 | Device for comparing two numbers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1314335A1 (en) |
-
1986
- 1986-03-04 SU SU864031862A patent/SU1314335A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 599264, кл. С 06 F 7/04, 1973. Авторское свидетельство СССР № 1012238, кл. G 06 F 7/04, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0031638B1 (en) | A logic circuit | |
SU1314335A1 (en) | Device for comparing two numbers | |
EP0064590B1 (en) | High speed binary counter | |
US3212009A (en) | Digital register employing inhibiting means allowing gating only under preset conditions and in certain order | |
US3610903A (en) | Electronic barrel switch for data shifting | |
US3764991A (en) | Device comprising a plurality of series arranged storage elements | |
US4387341A (en) | Multi-purpose retimer driver | |
US3728687A (en) | Vector compare computing system | |
SU1043639A1 (en) | One-bit binary subtractor | |
SU903867A1 (en) | Dividing device | |
SU1548843A1 (en) | Device for distribution of pulses with check | |
US3092807A (en) | Check number generator | |
US3337721A (en) | Count by six counter | |
SU1661791A1 (en) | Boolean differential equations solving device | |
SU888125A1 (en) | Device for correcting failure codes in circular distributor | |
SU1513471A1 (en) | Cell of homogeneous computing medium | |
SU1226485A1 (en) | Device for implementing discrete fourier transform in radio engineering systems | |
SU1073769A1 (en) | Digital amplitude discriminator | |
SU1667243A1 (en) | Counting device | |
SU1277115A1 (en) | Binary code-to-pulse sequence converter | |
SU1238058A1 (en) | Shifting device with check | |
SU1427577A1 (en) | Device for reducing fibonacci codes to minimal form | |
SU884150A1 (en) | Reversible pulse counter digit | |
SU1735846A1 (en) | Pseudorandom pulse sequence generator | |
SU1174919A1 (en) | Device for comparing numbers |