SU752329A1 - Number comparing device - Google Patents
Number comparing device Download PDFInfo
- Publication number
- SU752329A1 SU752329A1 SU782638201A SU2638201A SU752329A1 SU 752329 A1 SU752329 A1 SU 752329A1 SU 782638201 A SU782638201 A SU 782638201A SU 2638201 A SU2638201 A SU 2638201A SU 752329 A1 SU752329 A1 SU 752329A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- node
- analysis
- adder
- code
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Description
II
Изобретение относитс к автоматике и вычислительной технике и может быть использовано в вычислительных машинах и системах .автоматического управлени дл сравнени чисел с заданным допуском сравнени .The invention relates to automation and computing and can be used in computers and automatic control systems for comparing numbers with a predetermined tolerance of comparison.
Известно устройство дл сравнени чисел динамического типа, содержащее элементы И, ИЛИ, триггеры 1 .A device for comparing dynamic type numbers is known, which contains the elements AND, OR, triggers 1.
Недостатками данного устройства вл ютс низкое быстродействие, сравнение лишь модулей чисел и невозможность изменени допуска сравнени .The disadvantages of this device are low speed, the comparison of only the moduli of numbers and the impossibility of changing the comparison tolerance.
Наиболее близким к предлагаемому техническим решением вл етс устройст- во дл сравнени чисел, содержащее сумматоры , элементы И, ИЛИ, дешифратор 2 .Closest to the proposed technical solution is a device for comparing numbers, containing adders, elements AND, OR, decoder 2.
Недостатки этого устройства заключаютс в невозможности изменени допуска сравнени , в необходимости предваритель-jg ного Преобразовани одного из чисел в дополнительный код, что ведет к увеличению аппаратурных затрат, и в сравнении лишь модулей чисел без учета их знаков.The disadvantages of this device are that it is impossible to change the tolerance of the comparison, the need for a preliminary Conversion of one of the numbers to an additional code, which leads to an increase in hardware costs, and only a comparison of the modules of numbers without taking into account their signs.
Цель изобретени - расширение функциональных возможностей путем обеспечени смены кодов допусков и сравнени чисел с учетом их знаков.The purpose of the invention is to enhance the functionality by providing a change of tolerance codes and comparing numbers with regard to their signs.
Поставленна цель достигаетс тем, что в устройство дл сравнени чисел, содержащее два сумматора, где перва группа входов первого сумматора соединена с входными шинами первого числа, введены два узла согласовани , преобразователь пр мого кода в обратный, элемент равнозначности , два узла анализа, причем входные шины второго числа соединены со входами первого узла cariiaco вана , выходы которого подключены ко второй группе входов первого сумматора, 1,2,...к-ый выходы которого соединены со входами второго узла согласовани , выходы которого подключены к первой группе входов второго сумматора, втора грутша входов которого соединена с выходами , преобразовател пр мого кода в обратный, входы которого подключены к входным шинам кода допуска, вькод переноса второго сумматора соединен с управл ющим входом первого узла анализа входные шины знаковых разр дов чисел подключены ко входам элемента равнозначности, выход которого соединен со знаковым входом первого сумматора и со входом управлени первого узла согласована (к+1), (к+2)... П -ый выходы первого сумматора, где п число разр дов сравниваемых чисел, подключены к 1,2,...(п-к)-ому входам первого узла анализа соответственно,знаковый выход первого сумматора соединен со знаковым входом первого узла анализа и со входом управлени второго узла сопилсовани , выход переноса первсго сумматс а подключен к первому входу второго узла анализа и ко входу переносов второго сумматора , первый выход первого узла анализа соединен со вторым входом второго узла анализа, входна шина знакового раз р да первого числа подключена к третьему входу второго узла анализа, и тем, что в устройстве первый узел анализа содержит элемент запрета, элемент ИЛИ-НЕ и элемент ИЛИ, причем 1,2,... (п-«:)-ый входы узла анализа соединены с 1,2,..,(п-к)ол информационными входами элемента запрета и с 1,2,... (п-к)-ым входами элемента ИЛИ-НЕ, знаковый вход узла анализа подключен к (и-к+1)-ому информационному входу элемента запрета и к (п-к+1)-ому входу элемента ИЛИ-НЕ, (П-к+2)-ой вход элемента ИЛИ-НЕ и управл ющий вход элемента запрета соединены с управл ющим входом узла анализа, вьгходы элемента ИЛИ-НЕ и элемента запрета подключены ко входам элемента ИЛИ, пр мой выход которого соединен с первым выходом узла анализа, а инверсный - со вторым вь1ходом узла анализа, а также тем, что в нем второй узел анализа содержит элемент запрета, элементы ИЛИ-НЕ, ИЛИ , причем первый вход узла анализа соединен с первым информационным входом элемента запрета и с первым входом первого элемента ИЛИ-НЕ, выход которого подключен к первому входу элемента ИЛИ, втсфой вход узла анализа соединен со входами управлени элемента запрета, со вторым входом первого элемента ИЛИ-НЕ и с первым входом второго элемента , второй вход которого подключен к выходу элемента ИЛИ,. третий вход узла анализа соединен со втсрым информационным входом элемента запрета в с третьим входом первого элемента ИЛИ-ИЕ.The goal is achieved by the fact that a device for comparing numbers, containing two adders, where the first group of inputs of the first adder is connected to the input buses of the first number, two matching nodes are added, a direct code to reverse code converter, an element of equivalence, two analysis nodes, and buses of the second number are connected to the inputs of the first cariiaco Van node, the outputs of which are connected to the second group of inputs of the first adder, 1.2, ... which outputs are connected to the inputs of the second matching node, the outputs of which are connected to the first group of inputs of the second adder, the second group of inputs of which is connected to the outputs, the direct code to reverse converter, the inputs of which are connected to the input buses of the tolerance code, the transfer code of the second adder is connected to the control input of the first node of the analysis, input buses of sign digits connected to the inputs of the element of equivalence, the output of which is connected to the sign input of the first adder and to the control input of the first node is matched (к + 1), (к + 2) ... N-th outputs of the first adder, where n is the number of bits in the compared numbers, connected to the 1,2, ... (nk) th inputs of the first analysis node, respectively, the sign output of the first adder is connected to the sign input of the first analysis node and to the control input of the second sopilsovka, the transfer output of the first total connected to the first input of the second analysis node and to the carry input of the second adder, the first output of the first analysis node is connected to the second input of the second analysis node, the input bus is the sign of the first number connected to the third input of the second analysis node, and the device The first analysis node contains a prohibition element, an OR-NOT element, and an OR element, with 1,2, ... (n - “:) —the th inputs of the analysis node are connected to 1,2, .., (n) ol information inputs of the prohibition element and with 1,2, ... (nk) -th inputs of the element OR NOT, the sign input of the analysis node is connected to (and-to + 1) -th information input of the prohibition element and to (n to the + 1) -th input of the OR-NOT element, (Pk + 2) -th input of the OR-NOT element and the control input of the prohibition element are connected to the control input of the analysis node, the inputs of the OR-NOT element and the prohibition element are connected to element inputs OR, my the output of which is connected to the first output of the analysis node, and the inverse - to the second turn of the analysis node, as well as the fact that the second analysis node contains a prohibition element, elements OR NOT, OR, the first input of the analysis node is connected to the first information input of the element and with the first input of the first element OR NOT, the output of which is connected to the first input of the element OR, the input of the analysis node is connected to the inputs of the control of the prohibition element, with the second input of the first element OR NOT and the first input of the second element, the second input which is connected to the output element OR. the third input of the analysis node is connected with the secondary information input of the prohibition element in the third input of the first element OR-IE.
На фиг, 1 изображена блокгч:хема устройства дл сравнени чисел; на фиг. 2 функциональна схема узла анализа;: на фиг. 3 - функциональна схема узла сог-, ласовани .Fig. 1 shows a blockch: hem of a device for comparing numbers; in fig. 2 is a functional diagram of the analysis node; in FIG. 3 - functional scheme of the node coax-, lasovani.
Устройство содержит сумматоры 1 и 2, узел 3 согласовани , элемент 4 равнозначности , преобразователь 5 пр мого кода в обратный, узел 6 согласовани , узлы 7,8 анализа.The device contains adders 1 and 2, matching node 3, equivalence element 4, forward code to reverse converter 5, matching node 6, analysis nodes 7.8.
Узел 7 анализа состоит из элементаNode 7 analysis consists of the element
9запрета, элемента 10 ИЛИ-НЕ, элемента 11 ИЛИ.9 banned, element 10 OR NOT, element 11 OR.
Узел 8 анализа состоит из элемента 12 запрета, элементов 13, 14 ИЛИ-НЕ, элемента 15 ИЛИ.Node 8 analysis consists of the element 12 of the ban, elements 13, 14 OR-NOT element 15 OR.
Узлы 3,6 согласовани содержат в каждом разр де элемент 16 ИЛИ, элементы 17,18 запрета.The coordination nodes 3.6 contain, in each section, an element 16 OR, prohibition elements 17.18.
Устройство работает следующим образом .The device works as follows.
При поступлении чисел А и В с разными знаками элемент 4 равнозначности формирует сигнал, по которому на знако- вьй вход сумматора 1 через элемент 18 запрета и элемент 16 ИЛИ узла 3 согласовани поступает пр мой код числа А, причем на знаковый вход подаетс нулевой сигнал. Сумматор 1 на выходах формирует пр мой двоичный код суммы (А)4-(В), равный в данном случае (А-В), а с выхода переноса снимаетс нулевой сигнал. Если -t- О , т.е. если (A-B)D, то на выходах сумматора 1 вырабатываютс i нулевые сигналы, поступающие на элементWhen numbers A and B with different signs arrive, the equivalence element 4 generates a signal that sends the direct code of A to the sign input of adder 1 through the prohibition element 18 and the element 16 OR of the matching node 3, and a sign signal is sent to the sign input. The adder 1 at the outputs forms a direct binary code of the sum (A) 4- (B), which is equal in this case (AB), and a zero signal is removed from the transfer output. If -t- Oh, i.e. if (A-B) D, then the outputs of adder 1 produce i zero signals arriving at the element
10ИЛИ-НЕ узла 7 анализа. По сигналу на знаковом входе узла элементы 18 запрета и элементы 16 ИЛИ узла 6 согласовани передают на входы сумматора10 OR-NOT node 7 analysis. The signal at the sign input of the node, the elements 18 of the ban and the elements 16 OR node 6 approval transmit to the inputs of the adder
2 код, равный в данном случае пр мому коду младших разр дов (А-В), т.е. С(А-В). Так как , то С , т.е С + ( -D )- 2t и сумматф 2 не формирует сигнал переноса. В этом случае элементы Ю ИЛИ-НЕ и 11 ИЛИ вырабатьшают сигнал А B+D, запреща тем самым формирование узлом 8 анализа сигнала +V .2 code equal in this case to the direct code of the lower-order bits (A-B), i.e. C (AB). Since, then C, i.e. C + (-D) - 2t and summatf 2 does not generate a transfer signal. In this case, the elements OR OR NOT and 11 OR the signal A B + D is generated, thereby prohibiting the formation of the + V signal by node 8.
Если при сравнении чисел с разными знаками AfB , т.е. если(А-В)0 , то в зависимости от величины неравенства,If when comparing numbers with different AfB signs, i.e. if (A – B) is 0, then, depending on the magnitude of the inequality,
либо на выхо/цах 6 -i - S , 5зн сумматора 1 формируютс неоднозначные сигналы, либо узел 6 согласовани вырабатывает код С больше кода I . В noci лёднем .случае С D 1, т.е. С + ( 1 -О ) - 2, и сумматор 2 фс мирует сигнал переноса.either ambiguous signals are generated at the outputs / cs 6 -i-S, 5c of adder 1, or the matching node 6 generates a code C more than code I. In noci ice, the case of C D 1, i.e. C + (1 -O) - 2, and the adder 2 fs generates a transfer signal.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782638201A SU752329A1 (en) | 1978-07-05 | 1978-07-05 | Number comparing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782638201A SU752329A1 (en) | 1978-07-05 | 1978-07-05 | Number comparing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU752329A1 true SU752329A1 (en) | 1980-07-30 |
Family
ID=20774241
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU782638201A SU752329A1 (en) | 1978-07-05 | 1978-07-05 | Number comparing device |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU752329A1 (en) |
-
1978
- 1978-07-05 SU SU782638201A patent/SU752329A1/en active
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6745219B1 (en) | Arithmetic unit using stochastic data processing | |
| SU752329A1 (en) | Number comparing device | |
| RU2006912C1 (en) | Comparison device | |
| SU1667059A2 (en) | Device for multiplying two numbers | |
| US4334194A (en) | Pulse train generator of predetermined pulse rate using feedback shift register | |
| RU2115951C1 (en) | Walsh function generator | |
| RU2618188C1 (en) | Device for calculating complex number module | |
| RU2764876C1 (en) | Accumulating adder-subtractor modulo random natural number | |
| RU2754122C1 (en) | High-speed accumulating adder modulo of arbitrary natural number | |
| RU2763988C1 (en) | Accumulating adder-subtractor by an arbitrary natural number modulo | |
| RU2023288C1 (en) | Combination adder of structural codes | |
| SU1401448A1 (en) | Apparatus for implementing boolean symmetrical functions | |
| SU1262477A1 (en) | Device for calculating inverse value | |
| SU1425845A1 (en) | Device for convolution of binry code to modulo k code | |
| RU2020556C1 (en) | Device for forming overflow signal | |
| SU1736000A1 (en) | Code-to-time interval converter | |
| SU928345A2 (en) | Discrete pulse repetition frequency multiplier | |
| RU2045131C1 (en) | Device for correction of p fibronacchi codes | |
| SU1221649A1 (en) | Device for comparing numbers | |
| SU752330A1 (en) | Number comparing device | |
| US6667646B2 (en) | Small-sized digital generator producing clock signals | |
| SU1476601A1 (en) | Multistage digital phase shifter | |
| RU1795455C (en) | Device for counting non-zero bits in binary number | |
| SU741474A2 (en) | Controllable frequency divider | |
| SU951280A1 (en) | Digital generator |