SU1013944A1 - Number comparison device - Google Patents
Number comparison device Download PDFInfo
- Publication number
- SU1013944A1 SU1013944A1 SU813363824A SU3363824A SU1013944A1 SU 1013944 A1 SU1013944 A1 SU 1013944A1 SU 813363824 A SU813363824 A SU 813363824A SU 3363824 A SU3363824 A SU 3363824A SU 1013944 A1 SU1013944 A1 SU 1013944A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- cell
- output
- comparison
- inputs
- Prior art date
Links
Abstract
УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ ЧИСЕЛ, содержащее п поразр дных чеек сравнени , элементы И, ИЛИ, НЕ, причем первый выход каждой i-й поразр дной чейки сравнени , где i 1, 2,.. . (п- 1) , соединен с первым входом ()-й поразр дной чей- ки сравнени , вторые выходы всех поразр дных чеек сравнени и третьи выходы всех, кроме первой чейки , соединен с соответствующими входами элемента ИЛИ,.выход которого соединен с первым выходом устрой тва и через первый элемент НЕ - с первым входом элемента .И, выход которого вл етс вторым выходом устройства , первый выход п-й поразр дной чейки сравнени соединеН. со входом второго элемента НЕ, второй вход каждой j-и поразр дной чейки сравнени соединен со входом пр мого значени j-ro разр да первого числа устройства (j 2,3...п), первый и второй входы первой чейки соединены соответственно со входами пр мого и инверсного значений пер .вого разр да первого числа устройства , третий и четвертый входы первой чейки соединены соответственно со входами пр мого и инверсного значений первого разр да второго числа устройства, третий и четвертый входы каждой j-й поразр дной чейки сравнени соединены со входами соответственно пр мого и инверсного значений j-ro разр да второго числа устройства, четвертый выход j-й поразр дной чейки сравнени соеди:нен с п тым входом (з-«-1)-й поразр дной чейки сравнени , шестой йход каждой j-й поразр дной чейки сравнени соединен с первым входом управлени представлением кодов сравниваемых чисел устройства, п тый вход второй чейки сравнени соединен с пр мым значением первого разр да первого числа устройства, перва поразр дна чейка сравнени содержит элементы И, ИЛИ, причем первый и второй выходы чейки соединены с первыми входами соответственно первого и второго элементов И, а третий и четвертый входы - со втог рыми входами соответственно второ (Л го и г.ервого элементов И, выходы KOTopi X соединены со входами элеменс та ил;-, выход первого элемента И Соединен со вторым выходом чейки,, S последующие чейки сравнени содержат :-ллементы И, ИЛИ, HEj, полусумматор , причем первый вход чейки соединен с первыми входами первого и второго элементов И, второй вход чейки соединен с первым входом 00 полусумматора и первым входом тре;о тьего элемента И, выходы первого и второго элементов И вл ютс вто4ii рым и третьим выходами чейки со4 ответственно, выход полусумматора соединен с четвертым-выходом чейки , четвертый вход чейки соединен со вторым входом второго элемента И, выход третьего элемента И соединен с первым входом элемента ИЛИ, шестой вход чейки соединен, с первым входом четвертого элемента И, отличающеес тем, что, с целью расширени области.применени за счет сравнени двух чисел , представленных в различных кодах, оно содержит дополнительные элементы НЕ, причем первый вход упA DEVICE FOR COMPARISON OF NUMBERS, containing n porazdnyh cells of comparison, elements AND, OR, NOT, and the first output of each i-th porazrah of the cell of comparison, where i 1, 2, ... (p-1) is connected to the first input of the () -th one bit comparison cell, the second outputs of all bitwise comparison cells and the third outputs of all but the first cell are connected to the corresponding inputs of the OR element, the output of which is connected to the first the output of the device and through the first element is NOT - with the first input of the element. And, the output of which is the second output of the device, the first output of the nth bit of the comparison cell is connected. with the input of the second element NOT, the second input of each j-th bit of the comparison cell is connected to the input of the direct value of the j-ro digit of the first device number (j 2,3 ... n), the first and second inputs of the first cell are connected respectively the inputs of the direct and inverse values of the first digit of the first number of the device, the third and fourth inputs of the first cell are connected respectively to the inputs of the direct and inverse values of the first digit of the second number of the device, the third and fourth inputs of each j-th random cell of the comparison are connected with the inputs of the direct and inverse values of the j-ro of the second number of the device, respectively; the fourth output of the jth bit of a comparison cell; it is connected to the fifth input (3 - 1) of the bit of a comparison cell, the sixth input of each j the th bit of the comparison cell is connected to the first control input of the representation of the codes of the device numbers being compared, the fifth input of the second comparison cell is connected to the direct value of the first digit of the first number of the device, the first bit of the comparison cell contains the elements AND, OR, the first and secondthe cell outputs are connected to the first inputs of the first and second And elements, respectively, and the third and fourth inputs are connected to the second inputs of the second (the first and the first And elements, respectively, and the KOTopi X outputs are connected to the element inputs silt; -, the output of the first element And Connected to the second output of the cell ,, S The subsequent comparison cells contain: - the elements AND, OR, HEj, a half adder, the first input of the cell connected to the first inputs of the first and second elements AND, the second input of the cell connected to the first entrance 00 of the half adder and the first input tre; o t And, the outputs of the first and second elements of AND are the second eye and the third output of the co4 cell, responsibly, the output of the half adder is connected to the fourth output of the cell, the fourth input of the cell is connected to the second input of the second element I, the output of the third element I is connected to the first input of the element OR, the sixth input of the cell is connected to the first input of the fourth element AND, characterized in that, in order to expand the scope. By comparing two numbers represented in different codes, it contains additional elements NOT, with the first input
Description
равлени представлением кодов сравниваемых чисел устройства соединен с входом первого элемента НЕ, выход которого соединен с седьмым и входами -scex поразр дных чеек сравнени , кроме первой, второй вход управлени представлением кодов сравниваемых чисел устройства соединен с восьмым и через второй дополнительный элемент НЕ - с дев тыми входами всех поразр дных чеек срав нени , кроме первой, первый выход п-й поразр дной чейки сравнени соединен с третьим выходом устройства , выход второго элемента НЕ соединен со вторым входом элемента И, перва поразр дна чейка сравнени дополнительно содержит элемент НЕ, вход которого соединен с выходом элемента ИЛИ, а выход вл етс первым выходом чейки, j-e поразр дные чейки сравнени (j 2,3...п) дополнительно содержат управл ющий полусумматор, причем первый входThe representation of the codes of compared numbers of the device is connected to the input of the first element NOT, the output of which is connected to the seventh and the inputs of -scex random comparison cells, except for the first, the second input of the control representing the codes of the compared numbers of the device is connected to the eighth and In addition, in addition to the first, the first output of the nth bit of the comparison reference cell is connected to the third output of the device, the output of the second element is NOT connected to the second input of the element a AND, the first bit cell of the comparison cell additionally contains the element NOT, the input of which is connected to the output of the OR cell, and the output is the first cell output, je bitwise comparison cell (j 2,3 ... n) additionally contains a controlling half-adder, with the first entry
управл ющего полусумматора соединен с третьим входом чейки, а второй вход - с выходом элемента ИЛИ и третьим входом второго элемента И, четвертый вход которого соединен с дев тым входом чейки, второй вход элемента ИЛИ соединен с выходом четвертого элемента И, второй вход которого соединен с выходом полусумматора , вторым входом первого элемента И и четвертым выходом чейки, выход управл ющего полусумматора соединен со входом элемента НЕ и третьим входом первого элемента И, четвертый вход которого соединен с восьмым входом чейки, второй вход полусумматора соединен с п тым входом чейки, выход элемента НЕ соединен с первым входом п того элемента И, второй вход которого соединен с цервым входом первого элемен: та И ,а выход соединен с первым выхрдом чейки, второй вход третьего элемента И соединен с седьмым входом чейки.the control half-adder is connected to the third input of the cell, and the second input is connected to the output of the OR element and the third input of the second element AND, the fourth input of which is connected to the ninth input of the cell, the second input of the OR element is connected to the output of the fourth element AND, the second input of which is connected to the output of the half adder, the second input of the first element I and the fourth output of the cell, the output of the controlling half adder is connected to the input of the element NOT and the third input of the first element I, the fourth input of which is connected to the eighth input of the cell The second input of the half adder is connected to the fifth input of the cell, the output of the element is NOT connected to the first input of the fifth element And, the second input of which is connected to the first input of the first element: that And, and the output is connected to the first output of the cell, the second input of the third element And is connected to the seventh entrance of the cell.
t ,t,
Изобретение относитс к вычислительной технике и может быть использовано в устройствах автоматики и дискретной техники.The invention relates to computing and can be used in automation devices and discrete technology.
Известны устройства, позвол ющие сравнивать числа, оба из которых представлены в двоичном коде или в коде Гре fl.Devices are known that allow numbers to be compared, both of which are represented in binary code or in Gre code.
Недостатком данного устройства вл етс то, что дл правильного функционировани оно требует распределительных импульсов опроса, что усложн ет устройство.The disadvantage of this device is that in order to function correctly it requires distribution polling pulses, which complicates the device.
Наиболее близким к предлагаемому вл етс устройство дл сравнени чисел, содержащее п поразр дных чеек сравнени , элементы И, ИЛИ, НЕ, причем первый выход каждой i-й поразр дной чейки сравнени , где i 1 ,2, .... (iv 1) ,-соединен с первым входом ()-й поразр дной чейки сравнени , вторые выходы всех, кроме первой, чеек соединен с соответствующими входами элемента ИЛИ выход которого соединен с первым выходом устройства и через первый элемент НЕ - с первым входом элемента И, выход которого вл етс втрым выходом устройства, первый выход п-й поразр дной чейки сравнени соединен со входом второго элемента НЕ, второй вход каждой j-й поразр дной чейки сравнени соединен со входом пр мого значени j-ro разр да перйого числа устоойс ваThe closest to the present invention is a device for comparing numbers, containing n bitwise comparison cells, elements AND, OR, NOT, and the first output of each i-th bit memory comparison cell, where i 1, 2, .... (iv 1 ), is connected to the first input () of the first comparison cell, the second outputs of all but the first one are connected to the corresponding inputs of the OR element, the output of which is connected to the first output of the device and through the first element NOT to the first input of the AND element, output which is the first exit of the device, the first exit is nth time The reference comparison cell is connected to the input of the second element NOT; the second input of each jth bit comparison cell is connected to the input of the direct value of the jth digit of the first steady state number
(J 2,3,...п), первый и второй входы первой чейки соединены соответственно со входами пр мого и инверсного значений первого разр да первого числа устройства, а третий и четвертый входы первой, чейки соединены соответственно со входами пр мого и инверсного значений первого разр да второго числа устройства, третий и четвертый входы каждой j-й поразр дной чейки сравнени соединены со входами соответственно пр мого и инверсного значений j-ro разр да второго числа(J 2,3, ... p), the first and second inputs of the first cell are connected respectively to the inputs of the direct and inverse values of the first bit of the first number of the device, and the third and fourth inputs of the first, cells are connected respectively to the inputs of the direct and inverse the first bit values of the second device number, the third and fourth inputs of each jth bit comparison cell are connected to the inputs of the direct and inverse values of the second j number of the second number respectively
5 устройства, четвертый выход j-й5 devices, fourth exit jth
поразр дной чейки сравнени соединен с п тым входом , (J + 1)-й поразр дной чейки, шестой вход каждой j-й поразр дной чейки соединен с первым входом управлени представле . нием кодов сравниваемых чисел устройства , п тый вход второй чейки сравнени соединен с пр мым значением первого разр да первого числа, устройства, первый выход п-й поразр дной чейки сравнени соединен со вторым входом элемента И, выход второго элемента НЕ вл етс третьим выходом устройства, перва поразр дна чейка сравнени содержит элементы И, ИЛИ, причем первый и второй входы чейки соединены с первыми входами соответственно первого и второго элементов И, а третий и четвертый - со вторыми входами соответственно второго и первогоthe comparison bit cell is connected to the fifth input, (J + 1) -th bit cell, the sixth input of each jth bit cell is connected to the first control input. codes of the device numbers being compared, the fifth input of the second comparison cell is connected to the direct value of the first digit of the first number, the device, the first output of the 5th bit comparison cell is connected to the second input of the AND element, the output of the second element is NOT the third output of the device , the first bit of the comparison cell contains AND, OR elements, the first and second inputs of the cell being connected to the first inputs of the first and second AND elements, respectively, and the third and fourth - to the second inputs of the second and first go
элементов И, выходы которых соединены со входами элемента ИЛИ, выход первого элемента И соединен со вторым выходом чейки, последующие: чейки сравнени содержат элементы И, ИЛИ, НЕ, полусумматор, причем первый вход чейки соединен с входом первого элемента НЕ и первым входом элемента ИЛИ, первый и второй входы первого элемента И соединены с вторым и четвертым входами чейки, а выход - со вторым входом элемента НЕ и первым входом второго элемента И, выход которого соединен со вторым выходом чейки, второй вход второго элемента И соединен с выходом второго элемента НЕ, а третий - с выходом первого элемента НЕ и первым входом третьего элемента И, второй вход которого соединен с выходом четвертого элемента И и третьим входом элемента ИЛИ, третий вход третьего элемента И соединен с первым входом полусумматора, входом второго элемента НЕ и выходом п того элемента И, первый и второй входы четвертого элемента И соединены с третьим и п тым входами чейки, выход элемента ИЛИ соединен с первым выходом чейки, выход третьего элемента И соединен с третьим выходом Ячейки, первый вход п того элемента И соединен с седьмым входом чейки , а второй - с шестым входом чейки , второй вход полусумматора соединен с первым входом первого элемента И , выход полусумматора соединен с четвертым выходом чейки 2 .AND elements, the outputs of which are connected to the inputs of the OR element, the output of the first element AND is connected to the second output of the cell, the following: the comparison cells contain the AND, OR, NOT elements, a half-adder, the first input of the cell is connected to the input of the first element and the first input of the OR element , the first and second inputs of the first element I are connected to the second and fourth inputs of the cell, and the output is connected to the second input of the element NOT and the first input of the second element I whose output is connected to the second output of the cell, the second input of the second element I connected with the output of the second element is NOT, and the third with the output of the first element is NOT and the first input of the third element is And, the second input of which is connected to the output of the fourth element AND and the third input of the element OR, the third input of the third element And is connected to the first input of the half adder, the input of the second element NOT and the output of the fifth element I, the first and second inputs of the fourth element I are connected to the third and fifth inputs of the cell, the output of the element OR is connected to the first output of the cell, the output of the third element I is connected to the third output of the Cell, the first input d fifth AND gate connected to the seventh input of the cell, and the second - sixth input cell, the second input of the half-adder connected to the first input of the first AND gate, the half-adder output is connected to the fourth output of cell 2.
Недостатком известного устройства вл етс невозможность сравнени чисел, представленных разными кодами.A disadvantage of the known device is the impossibility of comparing numbers represented by different codes.
Целью изобретени вл етс рас .ширение области применени устройства за счет сравнени двух чисел, представленных в различных кодах. Поставленна цель достигаетс тем, что устройство дл сравнени чисел, содержащее п поразр дных чеек сравнени , элементы ИЛИ, И, НЕ, причем первый выход каждой i-й поразр дной чейки сравнени , где i 1,2,,.. (.п- 1) , соединен с первым входом (1+1)-й поразр дной чеки сравнени , вторые выходы всех поразр дных чеек сравнени и тре .тьи выходы всех, кроме первой, чеек соединены с соответствующими входами элемента ИЛИ, выход которого соединен с первым выходом устройства и через первый элемент НЕ с первым входом элемента И, выход которого вл етс вторым выходом устройства, первый выход п-й поразр дной чейки сравнени соедине . со, входом второго элемента НЕ, второй вход каждой j-й поразр дной чейки сравнени соединен со входом пр мого значени j-ro разр да первого числа устройства (j 2,3...п), первый и второй входы первой чейки соединены соответственно со входами пр мого и инверсного значений первого разр да первого числа устройства , третий и четвертый входы первой чейки соединены соответственно со входами пр мого и инверсного значений первого разр да второго числа устройства, третий и четвертый входы каждой j-й поразр дной чейки сравнени соединены со входами соответственно пр мого и инверсного значени j-ro разр да второго числа устройства, четвертый-выход j-й . поразр дной чейки сравнени соединен с п тым входом (j+1)-й поразр дной чейки сравнени , шестой вход каждой j-й поразр дной чейки сравнени соединен с первым входом управлени представлением кодов сравниваемых чисел устройства, ,п тый вход второй чейки сравнени соединен с пр мым значением первого разр да первого числа устройства, перва поразр дна чейка сравнени содержит элементы И, ИЛИ, причем первый и второй входы чейки соединены с первыми входами соответственно первого и второго элементов И, а третий и четвертый входы - со вторыми входами соответственно второго и первого элементов И, выходы которых соединены со входами элемента ИЛИ, выход первого элемента И соединен со вторым выходом чейки, последующие чейки сравнени содержат элементы И, ИЛИ, НЕ, полусумматор , причем первый вход чейки соединен с первыми входгими первого и второго элементов и, второй вход чейки соединен с первым входом полусумматора и- первым входом третьего элемента И, выходы первого и The aim of the invention is to expand the field of application of the device by comparing two numbers represented in different codes. The goal is achieved by the fact that a device for comparing numbers, containing n bitwise comparison cells, the elements OR, AND, NOT, and the first output of each i-th bit memory of the comparison cell, where i 1,2 ,, .. (. 1), connected to the first input (1 + 1) -th bit comparison check, the second outputs of all bit comparison cells and third and all outputs, except the first, are connected to the corresponding inputs of the OR element, the output of which is connected to the first output device and through the first element is NOT with the first input of the element AND, the output of which is w By the output of the device, the first output of the nth bit cell of the comparison is. so, the input of the second element is NOT, the second input of each j-th bit cell of the comparison cell is connected to the input of the direct value of the j-ro digit of the first device number (j 2,3 ... n), the first and second inputs of the first cell are connected respectively with the inputs of the direct and inverse values of the first bit of the first device number, the third and fourth inputs of the first cell are connected respectively to the inputs of the direct and inverse values of the first bit of the second number of the device, the third and fourth inputs of each j-th bit cell of the comparison cell are connected to in rows, respectively, the forward and inverse values of j-ro discharge of the second device, the fourth output j-th. the bit comparison cell is connected to the fifth input of the (j + 1) -th bit comparison cell, the sixth input of each jth bit comparison cell is connected to the first control input of the representation of the numbers of the device being compared, the fifth input of the second comparison cell is connected with the direct value of the first bit of the first number of the device, the first bit of the comparison cell contains the elements AND, OR, the first and second inputs of the cell are connected to the first inputs of the first and second elements respectively, and the third and fourth inputs are from the second inputs, respectively, of the second and first elements AND, whose outputs are connected to the inputs of the OR element, the output of the first element AND are connected to the second output of the cell, the subsequent comparison cells contain the AND, OR, NOT elements, a half adder, the first input of the cell connected to the first inputs of the first and the second element and the second input of the cell is connected to the first input of the half adder and the first input of the third element I, the outputs of the first and
5 второго элементов И вл ютс вторым и третьим выходами чейки соответственно , выход полусумматора соедит нен с четвертым выходом чейки, четвертый вход чейки соединен со вто0 рым входом второго элемента И выход третьего элемента Исоединен с первым входом элемента ИЛИ, шее- . той вход чейки соединен с первым входом четвертого элемента И, со5 держит дополнительные элементы НЕ, причем первый вход управлени представлением кодов сравниваемых чисел устройства соединен .с входом первого элемента НЕ, выход которого 5 of the second AND elements are the second and third cell outputs, respectively, the output of the half adder connects to the fourth output of the cell, the fourth input of the cell is connected to the second input of the second element AND the output of the third element I connected to the first input of the OR element, neck. This cell input is connected to the first input of the fourth element AND, co5 holds additional elements NOT, the first control input representing the codes of the compared numbers of the device connected to the input of the first element NOT whose output
0 соединен с седьмыми входами всех поразр дных чеек сравнени , кроме первой, второй вход управлени представлением кодов сравниваемых чисел . устройства соединен с восьмым и через второй дополнительный элемент0 is connected to the seventh inputs of all bitwise comparison cells, except the first, the second input controls the presentation of the codes of the compared numbers. device is connected to the eighth and through the second additional element
5five
HE - с дев ть1ми входами всех поразр дных чеек сравнени , кроме первой , первый выход п-й поразр дной чейки сравнени соединен с третьим выходом устройства, выход второго элемента НЕ соединен со вторым входом элемента И, перва поразр дна чейка сравнени дополнительно содержит элемент НЕ, вход которого соединен с выходом элемента ИЛИ, а выход вл етс первым выходом чейки , -j-e поразр дные чейки сравнени (J 2,3...п) дополнительно содержат управл ющий полусумматор, причем первый вход управл ющего полусумматора соединен с третьим входом чейки, а второй вход -.с выходом элемента ИЛИ и третьим входом второго элемента И, четвертый вход которого соединен с дев тым входом чейки, второй вход элемента ИЛИ соединен с выходом четвертого элемента И, второй вход которого соединен с выходом полусумматора, вторым входом первого элемента И и четвертым выходом чейки, выход управл ющего полусум1у|атора соединен про входом элемента НЕ и третьим входом первого элемента И, четвертый вход которого соединен с восьмым входом чейки, второй вход полусумматора соединен с п тым входом чейки, выход элемента НЕ соединен с первым входом п того элемента И, второй .вход которого соединен С первым входом первого элемента И, а выход с первым выходом чейки, второй вход третьего элемента И соединен с седьмым йходом чейки.HE - with nine inputs of all random comparison cells, except for the first one, the first output of the nth random memory of the comparison cell is connected to the third output of the device, the output of the second element is NOT connected to the second input of the AND element, the first random cell of the comparison additionally contains the element whose input is connected to the output of the OR element, and the output is the first output of the cell, -je serial comparison cells (J 2,3 ... n) additionally contain a control half-accumulator, and the first input of the control half-adder is connected to the third input m cell, and the second input is the output of the OR element and the third input of the second element AND, the fourth input of which is connected to the ninth input of the cell, the second input of the OR element is connected to the output of the fourth AND element, the second input of which is connected to the output of the half adder, the second input The first element Y and the fourth output of the cell, the output of the controlling half-1V | ator is connected to the input of the element NOT and the third input of the first element I, the fourth input of which is connected to the eighth input of the cell, the second input of the half-adder is connected to the fifth input Menus, the output element is coupled to the first input of the fifth AND gate, a second .The inputs coupled to a first input of the first AND gate and the output of the first output cell, a second input of the third AND element is connected to a seventh yhodom cell.
На чертеже изображена функциональна схема устройства.The drawing shows a functional diagram of the device.
Устройство содержит поразр дные чейки сравнени 1 , которые состо т из элементов И 2 и 3, элеме та ИЛИ 4, элемента НЕ 5, полусумматоров б и 7, элементов И 8-12, элемента НЕ 13, элемента ИЛИ 14, элементы НЕ 15-18, элемент ИЛИ 19, элемент И 20, управл ющие шины 21 и 22 и выходные шины 23-25.The device contains bit cells of comparison 1, which consist of elements AND 2 and 3, element OR 4, element NOT 5, half-combinators b and 7, elements AND 8-12, element NOT 13, element OR 14, elements 15 18, element OR 19, element AND 20, control buses 21 and 22, and output tires 23-25.
Устройство работает в трех режи мах, выбираемых подачей единичного потенциала на управл ющую шину 24 или 25 и представленных в таблицеThe device operates in three modes selected by supplying a single potential to control bus 24 or 25 and presented in the table.
Гре Gre
Гре Gre
ДвоичГре нымBinary
Во всех трех режимах работы пер- ва поразр дна чейка сравнени работает следующим образом.In all three modes of operation of the first bit size, the comparison cell works as follows.
Если старшие разр ды сравниваемых чисел не равны, то на выходе элемента ИЛИ 4, элемента И 2 или И 3, чейки 1, по вл етс единичный потенциал , который инвертируетс элементом НЕ 5. В Обоих случа х элементы И 10-12 второй поразр дной чей- If the higher bits of the numbers being compared are not equal, then at the output of the element OR 4, the element AND 2 or AND 3, cell 1, there appears a single potential that is inverted by the element NOT 5. In both cases, the elements AND 10-12 are second whose-
ки сравнени закрыты нулевьом потенциалом с выхода элемента НЕ 5, а элементы И 10-12 всех последующих поразр дных чеек сравнени закрыты нулевым потенциалом с выходовComparison cells are closed with a zero potential from the output of the element HE 5, and elements AND 10-12 of all subsequent bit-comparison cells are closed with zero potential from the outputs
элемента И 10. При а.Ь, (где а и b - значени разр дов), на выходе элемента И 3 по вл етс единица, котора через элемент ИЛИ 19 по вл етс на выходной шине 23 (А В).element 10. At ab, (where a and b are bit values), a unit appears at the output of element 3, which through the element OR 19 appears on the output bus 23 (A B).
При а Ь с выходных шин 23 и 25 снимаетс нулевой потенциал, а с шины 24 (А В) снимаетс единица. В случае, если , на выходе элементов НЕ i5 старшей чейки остаетс единица, котора отпирает элементы И 10-12 второй поразр дной чейки сравнени .With a b from the output busbars 23 and 25, a zero potential is removed, and one is removed from the bus 24 (A B). In the event that, at the output of the HE i i5 elements of the highest cell, there remains a unit that unlocks the AND 10-12 elements of the second bit of the comparison cell.
Работа второй поразр дной чейки сравнени определ етс режимом работы и разрешаетс единичным потенциалом , подаваемым на входы элементов И 10-12 с выхода старшей поразр дной чейки сравнени {а. Ь .The operation of the second bit cell of the comparison is determined by the mode of operation and is resolved by the unit potential supplied to the inputs of the AND 10-12 elements from the output of the highest bit cell of the comparison {a. B.
В режиме сравнени двух чисел, представленных кодами Гре , единичный потенциал, поданный на управл ющую шину 22, отпирает элементы И 11 и через элемент НЕ 16 запирает элементы И 12 всех поразртгдных чеек сравнени . В остальных режимахIn the comparison mode of two numbers represented by the Gre codes, the unit potential applied to the control bus 22 unlocks the AND 11 elements and through the NOT 16 element locks the AND 12 elements of all the comparison cells. In other modes
работы элементы И 11 заперты, а элементы И 12 отперты.work items And 11 are locked, and items And 12 are unlocked.
Работа второй поразр дной чей- . ки сравнени и всего устройства «в целом в режиме сравнени двух чисел,The work of the second porous chey-. ki comparison and the entire device "as a whole in the mode of comparing two numbers
представленных двоичными кодами, происходит следующим образом.represented by binary codes, happens as follows.
. Б этом режиме потенциал, определ елмй значением а.2, через открытый элемент И 9 и дальше через элемент. In this mode, the potential is determined by the value of a.2, through the open element I 9 and further through the element
ИЛИ 14 поступает на входы элемента И 12 и полусумматора 6. В случае, если а 2 Ь, / с выхода полусумматора б на вход элемента НЕ 13 посту-. пает нулевой потенциал. ЕдиничныйOR 14 enters the inputs of the element And 12 and half adder 6. In case a 2 b, / from the output of half adder b to the input of the element NOT 13 is post-. There is no potential. Unit
потенциал с выхода элемента НЕ 13 через открытый элемент И 10 (а Ь ) разрешает сравнение в следую- . щей поразр дной чейке сравнени . При этом на выходе элемента И 12 остаетс нулевой потенциал, поскольку на его входы поступают значени а,2 и b 2 В случае, если а.Ь,, с выхода полусумматора б снимаетс -, единичный потенциал, поступающий неthe potential from the output of the element HE 13 through the open element I 10 (a b) permits the comparison in the following. See the same cell in comparison. At the same time, at the output of the element And 12, there remains a zero potential, since the values a, 2 and b 2 arrive at its inputs. In the case a, b, b, the output of the half-adder b is removed, the unit potential that arrives is not
вход элемента НЕ 13. Нулевой потенциал с выхода элемента НЕ 13 через элементы И 10эапрещает сравнение во всех последующих разр дах и нулевой потенциал будет на выходной шине 25 (А В). При а Ь2 на все входы элемента И 12 поступают единичные потенциалы-. Единица с выхода элемента И 12 через элемент ИЛИ 19 по вл етс на выходной шине 23 (А В). Б случае, если выходные ишны 23 -и 25 поступают нулевые потенциалы. При этом с выхода элемента И 20 на выходную шину 24 (А В) поступает единичный потенциал . Остальные поразр дные чейки сравнени работают аналогичньм обра зом.. В режиме сравнени двух чисел, представленных А - кодом Гре , В двоичным кодом, втора поразр дна чейка сравнени работает следующим образом. Единичный потенциал, поданный на шину 21, отпирает элементы И 8, а нулевой потенциал с выхода элемента НЕ 15 запирает элементы И 9. При этом значение числа а в двоичном коде с выхода полусумматора 7 ,через открытый элемент И 8, элемент ИЛИ 14 поступает на входы элемента И,12 и полусумматора 6. В дальнейшем работа чейки и устройст ва сравнени в целом происходит ана логично работе устройства в режиме сравнени двух чисел, представленны двоичными кодами, начина с момента поступлени значени а на входы полусумматора 6 и элемента И 12. Работа устройства в режиме сравнени двух чисел, представленных кодами Гре ,происходит следующим образом . - При этом значение а через открытый элемент И 9, элемент ИЛИ 14 поступает на вход полусумматора 6.Ес ли а2 Ь , нулевой потенциал с выхода полусумматора 6 запирает элемент И 11, а единичный потенциал С элемента НЕ 13 через открытый элемент И 10 разрешает сравнение в следующей чейке сравнени . Если 2 2 единичный потенциал с выхода полусурматора 6 отпирает элемент И 11, а нулевой потенциал с .выхода элемента НЕ 13-через элемент И 10 запрещает сравнение в последующих поразр дных чейках сравнени . При этом результат сравнени зависит от сигнёша четности с выходов полусумматоров 7. Остальные чейки поразр дного сравнени работают аналогично. Таким образом, предлагаемое устройство многофункционально и может проводить сравнени чисел, представленных двоичными кодги«и, кодами Гре , атакже сравнение двух чисел в случае представлени числа А в коде Гре и числа В в двоичном коде. Предлагаемое устройство позвол ет |сравнивать два числа с различными кодами без дополнительного преобразовани кодов.the input element is NOT 13. The zero potential from the output of the element NO 13 through the elements And 10 forbids the comparison in all subsequent bits and the zero potential will be on the output bus 25 (A B). When a b2, all potentials of the And 12 element are unit potentials. The unit from the output of the element AND 12 through the element OR 19 appears on the output bus 23 (A B). If the output is 23 and 25, the potentials are zero. In this case, from the output of the element I 20 to the output bus 24 (A B), a single potential flows. The remaining bit comparison cells work in the same way. In the comparison mode of two numbers represented by A - the Gre code, B is a binary code, the second bit of the comparison cell works as follows. A single potential applied to bus 21 unlocks the elements of AND 8, and the zero potential from the output of the element NOT 15 locks the elements of AND 9. At the same time, the value of a in the binary code from the output of the half-adder 7 through the open element AND 8, the element OR 14 goes to the inputs of the element I, 12 and the half adder 6. Further, the work of the cell and the comparison device as a whole occurs similarly to the operation of the device in the comparison mode of two numbers, represented by binary codes, starting from the moment the value arrives at the inputs of the half adder 6 and the element 12 set up va mode comparing two numbers represented by a Gray code, is as follows. - In this case, the value of a through the open element AND 9, the element OR 14 enters the input of the half adder 6. If a2 b, the zero potential from the output of the half adder 6 blocks the element 11 and the unit potential C of the element HE 13 through the open element 10 allows the comparison in the next cell comparison. If 2 2 unit potential from the output of the half-supermator 6 unlocks the element 11 and the zero potential from the output of the element is NOT 13 through the element 10 and prohibits comparison in subsequent bit-wise comparison cells. The result of the comparison depends on the parity signal from the outputs of the half adders 7. The remaining bit comparison cells work similarly. Thus, the proposed device is multifunctional and can make comparisons of numbers represented by binary codgs "and Gre codes, as well as a comparison of two numbers if the number A is represented in the Gre code and the B number in the binary code. The proposed device allows | to compare two numbers with different codes without additional code conversion.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU813363824A SU1013944A1 (en) | 1981-10-30 | 1981-10-30 | Number comparison device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU813363824A SU1013944A1 (en) | 1981-10-30 | 1981-10-30 | Number comparison device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1013944A1 true SU1013944A1 (en) | 1983-04-23 |
Family
ID=20985949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU813363824A SU1013944A1 (en) | 1981-10-30 | 1981-10-30 | Number comparison device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1013944A1 (en) |
-
1981
- 1981-10-30 SU SU813363824A patent/SU1013944A1/en active
Non-Patent Citations (1)
Title |
---|
1. Авторское свидетельства СССР № 154090, кл. G 06 F 7/04, 1962. 2. Авторское свидетельство СССР 726527, кл. G 06 F 7/04, 1977 (прототип J. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Kaszkurewicz et al. | Comments on" Necessary and sufficient condition for absolute stability of neural networks" | |
SU1013944A1 (en) | Number comparison device | |
SU1049900A1 (en) | Device for sorting binary numbers | |
SU1007200A2 (en) | Reversible counter with group carry-out | |
SU641443A1 (en) | Mn-digit number comparator | |
EP4086910A1 (en) | Multiply-accumulate (mac) unit for in-memory computing | |
SU1095173A1 (en) | Counter-type adder | |
SU754409A1 (en) | Number comparing device | |
US6374281B1 (en) | Adder | |
SU966690A1 (en) | Device for discriminating extremum from nm-digital binary codes | |
SU1564733A1 (en) | Device for revealing errors in parallel code | |
SU743180A1 (en) | Frequency multiplier with variable multiplication factor | |
SU760089A1 (en) | Binary number comparing device | |
SU1309019A1 (en) | Multiplying device | |
SU1211717A1 (en) | Device for determining average value of n numbers | |
RU2207612C2 (en) | Device for numeric control of electric drives, elrectronic switches, and alarms | |
SU752328A1 (en) | Binary number comparing device | |
SU1683004A1 (en) | Device to analyze fuzzy data | |
SU1095171A1 (en) | Versions of device for comparing numbers | |
SU959065A1 (en) | Device for determination of maximum number out of groups of numbers | |
SU1103220A1 (en) | Code comparison device | |
SU271897A1 (en) | QUICKLESS MINIMIZER OF BOOL FUNCTIONS | |
SU868748A2 (en) | Device for discriminating multi-digit code | |
SU860057A1 (en) | Device for arrangement exhaustive search | |
SU840884A1 (en) | Maximum number determining device |