SU824208A1 - Device for determining the difference of two n-digit numbers - Google Patents

Device for determining the difference of two n-digit numbers Download PDF

Info

Publication number
SU824208A1
SU824208A1 SU792790870A SU2790870A SU824208A1 SU 824208 A1 SU824208 A1 SU 824208A1 SU 792790870 A SU792790870 A SU 792790870A SU 2790870 A SU2790870 A SU 2790870A SU 824208 A1 SU824208 A1 SU 824208A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
output
input
elements
outputs
Prior art date
Application number
SU792790870A
Other languages
Russian (ru)
Inventor
Леоль Ираклиевич Севастов
Анатолий Александрович Логачев
Original Assignee
Предприятие П/Я А-3697
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Предприятие П/Я А-3697 filed Critical Предприятие П/Я А-3697
Priority to SU792790870A priority Critical patent/SU824208A1/en
Application granted granted Critical
Publication of SU824208A1 publication Critical patent/SU824208A1/en

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

tt

Изобретение относитс  к автоматике и вычислительной .технике и мржет быть использовано в системах автоматического управлени  и электронных вычислительных машннах.The invention relates to automation and computer technology and can be used in automatic control systems and electronic computer machines.

Известно устройство дл  определени  разности двух чисел, содержащее генератор имйульсов, выход которого соединен с одними входами первого и второго элементов И, выходы которых подключены ко входам в.чиЦани  первого и второго двоичных счетчиков соответ.ственно, выходы которых соедииены сю входами блока сравнени ,, першлй ивторой выходы которого подклйчены к другим входам первог и BTOpcSro элементов И соответственно , триггеры, элементы ИЛИ, И, НЕ, счетчик разности 1.A device is known for determining the difference of two numbers, which contains an emulsion generator, the output of which is connected to one input of the first and second elements AND, the outputs of which are connected to the inputs of the first and second binary counters, respectively, the outputs of which are connected to the comparison inputs of the comparison unit. The first and second outputs of which are connected to other inputs of the first and BTOpcSro elements AND respectively, triggers, elements OR, AND, NOT, difference counter 1.

Недостатком устройства  вл етс  малое быстродействие, так как количество тактов сравнени  равно количеству импульсов, добавленных в счетчик меньшего числа.The drawback of the device is low speed, since the number of comparison cycles is equal to the number of pulses added to the counter of a smaller number.

Наиболее близким к предлагаемому . вл етс  устройство дл  определени  разности двух чисел, которое содержит генератор импульсов, выход которого соединен со входами первого /иClosest to the proposed. is a device for determining the difference of two numbers, which contains a pulse generator, the output of which is connected to the inputs of the first / and

второго элементов И, выход каждого из которых подключен ко входам сложени  и вычитани  первого и второго реверсивных счетчиков и первому и второму входам первого элемента ИЛИ, выходы счётчиков соединены со входами блока сравнени , первый и второй выходы которого подключены к другим входам первого и второго элементов The second And elements, the output of each of which is connected to the inputs of the addition and subtraction of the first and second reverse meters and the first and second inputs of the first OR element, are connected to the inputs of the comparison unit, the first and second outputs of which are connected to the other inputs of the first and second elements

0 И, первому и второму входу второго элемента ИЛИ соответственно, третий выход блока сравнени  подключен ко входам первого триггера третьего элемента ИЛИ, четвертый выход блока срав 0 AND, the first and second inputs of the second element OR, respectively, the third output of the comparison unit is connected to the inputs of the first trigger of the third element OR, the fourth output of the unit

5 нени  подключен ко входам второго триггера и третьего элемента И, выход которого подключен ко входу третьего элемента И, выход которого подключен ко входу первого разр да счет0 чика разности, вход второго разр да которого соединен с выходом первого элемента ИЛИ, нулевые входы первого и второго триггера объединены и соединены с шиной установки их в исходное состо ние, а их пр мые выходы соединены соответственно с другими входами первого и второго элементов И, выход второго элемента ИЛИ через элемент НЕ соединен с другим входом третьего элемента И 2105 is connected to the inputs of the second trigger and the third element I, the output of which is connected to the input of the third element I, the output of which is connected to the input of the first digit of the difference counter, the input of the second digit which is connected to the output of the first element OR, zero inputs of the first and second the trigger is connected and connected to the bus setting them in the initial state, and their direct outputs are connected respectively to other inputs of the first and second elements AND, the output of the second element OR is NOT connected to another input third about element and 210

Недостатком устройства  вл етс  ёшое быстродействие.The disadvantage of the device is its speed.

Цель изобретени  - повышение быстодействи  .The purpose of the invention is to increase speed.

Поставленна  цель достигаетс  тем, что устройство дл  определени  раз- j ности двух п разр дных чисел, содеращее два элемента И, элемент ИЛИ, первый элемент НЕ, триггер, реверсивный счетчик, генератор тактовых имульсов , выход которого соединен с ервым входом первого элемента И, со-, ержит коммутатор, второй элемент НЕ, блок пам ти, элемент задержки, два регистра, два формировател  импульсов и схему сравнени , каждый i-й разр д которой (i 1,2,...,п) содержит три элемента И, элемент ИЛИ, элеме«т НЕ, ва формировател  импульсов и элемент равнозначности, первый и второй вхоы которого соединены с инверсными ыходами i-x разр дов соответственно 20 второго и первого регистра, а также с первыми входами соответственно первого и второго элементов И i-х разр дов схемы сравнени , вторые входы которых соединены с выходом элемента 25 НЕ i-ro разр да схемы сравнени , вход которого соединен с выходом элемента равнозначности и с первым входом третьего элемента И i -го разр да с хемы сравнени / третьи входы первого и 0 ВТОРОГО элементов И i-ro разр да схеы сравнени  соединены с выходом генератора тактовых импульсов, а выходы - соединены с установочными входами разр дов соответственно пер- ас вого и второго регистров, пр мые выходы i-X разр дов подключены к вхоам соответственно первого и второго формирователей импульсов i-x разр дов схемы сравнени , выходы которых соединены соответственно с первым и вторым входами элементов ИЛИ в каждом, i-ом разр де схемы сравнени , выходы которых подключены к входам соответственно i-X разр дов реверсивного счетчика иьлпульсов, второй 45 вход третьего элемента И J-ro разр -да схемы сравнени  (j l,2,. . .,п-1; соединен с выходом третьего элемента И (j+1)-го разр да схемы сравнени , второй вход третьего элемента 50 И п-го разр да схемы сравнени  соединен с шиной управлени  устройства , а выход третьего элемента И первого разр да схемы сравнени  соедй нен с первым входом второго элемента гг И, выходы первого элемента И i-х разр дов схемы сравнени  соединены со входами элемента ИЛИ, выход которого соединен с единичным входом триггера и с входом первого элемента НЕ, выход которого соединенс первым 60 входом &лока пам ти и вторым входом первого элемента И, третий вход когорого соединенС выходом элемента задержки и с выходом второго элемента НЕ, вход которого соединен со вторы- 65The goal is achieved by the fact that a device for determining the difference of two n-bit numbers containing two AND elements, the OR element, the first element NOT, a trigger, a reversible counter, a clock generator, the output of which is connected to the first input of the first element AND, contains a switch, a second element NOT, a memory unit, a delay element, two registers, two pulse drivers and a comparison circuit, each i-th bit of which (i 1,2, ..., n) contains three elements , the element OR, the element "t NOT, va the pulse shaper and the element of equivalence , the first and second inputs of which are connected to inverse outputs ix of bits, 20, respectively, of the second and first register, as well as with the first inputs of the first and second elements, respectively, and the i-th bits of the comparison circuit, the second inputs of which are connected to the output of element 25 NOT i- ro of the comparison circuit, the input of which is connected to the output of the element of equivalence and to the first input of the third element AND of the i -th bit, from the comparison circuit / third inputs of the first and 0 SECOND elements AND i-ro bit of the comparison circuit are connected to the output of the clock generator and pulses, and the outputs are connected to the setting inputs of the bits of the first and second registers, respectively, the direct outputs of the iX bits are connected to the inputs of the first and second pulse shaper ix of the comparison circuit, respectively, the outputs of which are connected respectively to the first and second inputs the OR elements in each i-th discharge of the comparison circuit, the outputs of which are connected to the inputs of, respectively, iX bits of the reversible counter or pulses, the second 45 input of the third element AND the J-ro bit of the comparison circuit (jl, 2 ,. . ., n-1; connected to the output of the third element of the (j + 1) -th bit of the comparison circuit, the second input of the third element 50 of the n-th bit of the comparison circuit is connected to the control bus of the device, and the output of the third element of the first bit of the comparison circuit is connected to the first input of the second element yy AND, the outputs of the first element AND the i-th bits of the comparison circuit are connected to the inputs of the OR element, the output of which is connected to the single trigger input and to the input of the first HE element, the output of which is connected by the first 60 input & the second entry of the first element This And, the third input is connected with the output of the delay element and with the output of the second element NOT, the input of which is connected to the second

ми входами второго элемента И н блока пам ти, выход первого элемента И соединен с нулевым входом триггера, инверсный и пр мой-выходы которого, соединены соответственно со входами сложени  и вычитани  реверсивного счетчика импульсов, входы которого Установка О и Установка 1 соединены с вы содами соответственноThe inputs of the second element of the storage unit, the output of the first element I, are connected to the zero input of the trigger, the inverse and direct outputs of which are connected respectively to the inputs of the addition and subtraction of a reversible pulse counter, the inputs of which Installation O and Installation 1 are connected to the outputs respectively

(Первого и второго формирователей импульсов , а-пр мые и инверсные выходы каждого i-го разр да реверсивного счетчика соединены соответственно с пр мыми и инверсными информационными входами каждого i-ro разр да коммутатора, первый ц второй входы управлени  коммутатора подключены соответственно к входам первого и второго формирователей импульсов и к первым и вторым выходам блока пам ти, вход Установка О которого соединен с установочной шиной устройства и первым управл ющим входом генератора тактактовых импульсов, второй вход которого соединен с выходом второго элемента И/ а выход - со входом элемента задержки.(The first and second pulse formers, the a-forward and inverse outputs of each i-th digit of the reversible counter are connected respectively to the direct and inverse information inputs of each i-ro bit of the switch, the first centr of the second control inputs of the switch are connected respectively to the inputs of the first and the second pulse formers and to the first and second outputs of the memory block, the input of the installation of which is connected to the device installation bus and the first control input of the clock pulse generator, the second input of which o connected to the output of the second element And / and the output with the input of the delay element.

На фиг. 1 представлена функциональна  схема устройства; на фиг. 2 диагрс1мма его работы.FIG. 1 shows a functional diagram of the device; in fig. 2 diagrams of his work.

Устройство содержит () элементов И 1 ... 1 , 2 ... 2 j , 3 ... ЗУ, , 4 и 5, п элементов равнозначности , 6j...6, n + l элементов ИЛИ 7 . . . 7 и 8, () формирователей 9...9(,,The device contains () elements AND 1 ... 1, 2 ... 2 j, 3 ... ZU,, 4 and 5, n elements of equivalence, 6j ... 6, n + l elements OR 7. . . 7 and 8, () shapers 9 ... 9 (,,

10 10м/ И и 12,2 регистра 13 и10 10m / I and 12.2 registers 13 and

14, триггер 15/ элемент 16 задержки (п+2) элементов tiE 11 . . Л1 , 18 и 19, генератор 20 тактовых импульсов (ГТИ), реверсивный счетчик 21(импyльcoв , установочную шину 22/ коммутатор 23, блок 24 пам ти, шину 25 управлени .14, trigger 15 / delay element 16 (n + 2) elements tiE 11. . L1, 18 and 19, generator 20 clock pulses (GTI), reversible counter 21 (impulse, installation bus 22 / switch 23, memory block 24, control bus 25.

Рассмотрим пример определени  разности двух п тиразр дных чисел (01110 записанного в регистр 13 и 10101, записанного в регистр 14). После записи чисел в регистры на выходах элементов равнозначности б,., бд / 6 и 6 образуетс  отрицательный потенциал, а на выходе элемента 6j - положительный . Элементы И 1, 2, 2 и 1 открыты по первым и вторым входам, элементы И Ij и 2j закрыты по вторым входам, элементы И 34, 3 и 3 закрыты по первым и вторым входам/ элементы И 3 и 3 закрыты по одному из входов.Consider an example of determining the difference of two five-digit numbers (01110 recorded in register 13 and 10101, recorded in register 14). After writing the numbers to the registers at the outputs of the equivalence elements b,., Bd / 6 and 6, a negative potential is formed, and at the output of the element 6j - positive. Elements And 1, 2, 2 and 1 are open at the first and second inputs, elements And Ij and 2j are closed at the second entrances, elements And 34, 3 and 3 are closed at the first and second entrances / And elements 3 and 3 are closed at one of the entrances .

Claims (2)

1.Авторское свидетельство СССР1. USSR author's certificate № 341031, кл, 2 G Об F 7/02, 1970. No. 341031, class, 2 G About F 7/02, 1970. 2.Авторское свидетельство СССР № 599264. кл. 2 G 06 F 7/04, 1978.2. USSR author's certificate number 599264. cl. 2 G 06 F 7/04, 1978.
SU792790870A 1979-07-05 1979-07-05 Device for determining the difference of two n-digit numbers SU824208A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU792790870A SU824208A1 (en) 1979-07-05 1979-07-05 Device for determining the difference of two n-digit numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU792790870A SU824208A1 (en) 1979-07-05 1979-07-05 Device for determining the difference of two n-digit numbers

Publications (1)

Publication Number Publication Date
SU824208A1 true SU824208A1 (en) 1981-04-23

Family

ID=20838294

Family Applications (1)

Application Number Title Priority Date Filing Date
SU792790870A SU824208A1 (en) 1979-07-05 1979-07-05 Device for determining the difference of two n-digit numbers

Country Status (1)

Country Link
SU (1) SU824208A1 (en)

Similar Documents

Publication Publication Date Title
SU824208A1 (en) Device for determining the difference of two n-digit numbers
SU1034188A1 (en) Versions of threshold element
SU932487A1 (en) Number ordering device
SU559395A1 (en) Counter with a constant number of units in the code
SU911623A1 (en) Storage
SU1231497A1 (en) Device for determining position of number on number axis
SU395833A1 (en) DEVICE FOR DETERMINING THE BIGGEST NUMBER OF DIFFERENCE
SU809162A1 (en) Device for comparing binary digits
SU741321A1 (en) Read-only storage
SU824193A1 (en) Extremum number determining device
SU875376A1 (en) Device for determining maximum from m binary numbers
SU970366A1 (en) Microprogram control device
SU1188728A1 (en) Device for implementing boolean functions
SU964653A1 (en) Statistic analyzer
SU1224789A1 (en) Device for measuring time intervals
SU830377A1 (en) Device for determining maximum number code
SU993263A1 (en) Device for discriminating the last non-zero digit from series code
SU750480A1 (en) Device for comparing numbers with tolerances
SU943731A1 (en) Device for code sequence analysis
SU1444937A1 (en) Divider of pulse recurrence rate with variable pulse duration
SU1411740A1 (en) Device for computing exponential function
SU1653154A1 (en) Frequency divider
SU1233167A1 (en) Device for generating addresses for fast fourier transform algorithm
SU1667150A1 (en) Indicator device
SU970358A1 (en) Device for squaring