SU686029A1 - Device for determining the difference of two numbers - Google Patents

Device for determining the difference of two numbers

Info

Publication number
SU686029A1
SU686029A1 SU772472574A SU2472574A SU686029A1 SU 686029 A1 SU686029 A1 SU 686029A1 SU 772472574 A SU772472574 A SU 772472574A SU 2472574 A SU2472574 A SU 2472574A SU 686029 A1 SU686029 A1 SU 686029A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
trigger
counter
difference
Prior art date
Application number
SU772472574A
Other languages
Russian (ru)
Inventor
Кальман Яковлевич Кессель
Нияз Борисович Ибрагимов
Валерий Петрович Бордыков
Леонид Яковлевич Дыченко
Валерий Павлович Буторин
Original Assignee
Специальное Проектно-Конструкторское Бюро Средств Автоматизации Нефтедобычи И Нефтехимии
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 Специальное Проектно-Конструкторское Бюро Средств Автоматизации Нефтедобычи И Нефтехимии filed Critical Специальное Проектно-Конструкторское Бюро Средств Автоматизации Нефтедобычи И Нефтехимии
Priority to SU772472574A priority Critical patent/SU686029A1/en
Application granted granted Critical
Publication of SU686029A1 publication Critical patent/SU686029A1/en

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

1one

Изобретение относитс  к области автоматики и вычислительной техники и может быть применено в различных цифровых приборах и устройствах.The invention relates to the field of automation and computer technology and can be applied in various digital devices and devices.

Известны устройства дл  определени  разности двух чисел, представленных в виде частот, которые непрерывно воспринимаютс  и обрабатываютс , трансформиру сь на выходе в разностную частоту 1. Однако применение таких устройств с непрерывной обработкой входных величин ограничено узким кругом решаеьщх задач.Devices are known for determining the difference of two numbers, represented as frequencies, which are continuously perceived and processed, transforming at the output into difference frequency 1. However, the use of such devices with continuous processing of input values is limited to a narrow range of solvable problems.

Известно также устройство дл  образовани  разности двух кодов, содержащее источник импульсов переписи , временной селектор с пускс/въал устройством, триггер остановки и два счетчика импульсов, работающих в режиме суммировани  2.It is also known a device for generating a difference of two codes, comprising a source of census pulses, a time selector with a start / stop device, a stop trigger and two pulse counters operating in summation mode 2.

Опергщи  образовани  разности двух кодов осуществл етс  в два этапа , что св зано с дополнительными затратами времени.Determining the difference between two codes is carried out in two stages, which is associated with additional time costs.

Наиболее близким к данному изобретению  вл етс  устройство дл  определени  разности двух чисел, содержащее генератор, импульсов, счетчики , первый и второй триггеры и элементы И и ИЛИ, причем выход генератора импульсов подключен к первому входу первого элемента И, выход которого соединен с первым входом второго элемента И и входами первого и второго счетчиков, выходы которых подключены ко входам элемента ИЛИ, выход которого соединен со счетнь входом первого триггера, выход которого подключен ко второму входу второго элемента И, выход которого подключен к выходной шине устройства , устансжочный вход второго триггера подключен к установочной шине устройства 3.The closest to this invention is a device for determining the difference of two numbers, containing a generator, pulses, counters, first and second triggers, and AND and OR elements, with the output of the pulse generator connected to the first input of the first element AND whose output is connected to the first input of the second AND element and the inputs of the first and second counters, the outputs of which are connected to the inputs of the OR element, the output of which is connected to the same input of the first trigger, the output of which is connected to the second input of the second element AND, the output which is connected to the device output bus, the second trigger input is connected to the device installation bus 3.

5five

Недостатке такого устройства  вл етс  то, что оно не обеспечивает сколь-нибудь длительного хранени  первоначальной информации об операндах после выполнени  операции вычи0 тани , что сужает функциональные возможности устройства.The disadvantage of such a device is that it does not provide any long-term storage of the original information about the operands after performing the subtraction operation, which reduces the functionality of the device.

Целью изобретени   вл етс  расширение функциональных возможностей устройства.The aim of the invention is to expand the functionality of the device.

5five

Дл  достижени  этой цели предлагаемое устройство дополнительно содержит третий сче;,тчик, третий триггер и третий элемент И, причем выход первого элемента И подключен ко To achieve this goal, the proposed device additionally contains a third ;, tick, a third trigger and a third AND element, the output of the first AND element being connected to

0 входу третьего счетчика, выход которого соединен с установочным входом третьего триггера, другой установочный вход которого подключен к установочной шине устройства, выходы первого и второго счетчиков соединены со входами третьего элемента И, выход которого подключен к другому установочному входу второго триггера, выход которого соединен с установочным входом первого триггера , выход третьего триггера подключен KQ второму входу первого элемен та И. Схема устройства показана на чер теже . Она содержит счетчики 1 и 2 и до полнительный счетчик 3, имеющие од;и наковую емкость,, генератор импульсов 4, элементы И 5,6,7, элемент ИЛИ 8, триггеры 9, 10 и 11, выходы знаков минус 12 и установочную шину 14 и выходную шину устройства 15. Генератор импульсов 4 соединен с одним входом элемента И 5, другой вход которого соединен с выходом триггера 11, а выход - со входами счетчиков 1, 2 и элемента И 6, Выход счетчика 1 соединен со входом элемента ИЛИ 8, входом элемента И 7 и выходом 13 знака плюс, выход счетчика 2 соединен с другим входом элемента ИЛИ 8, другим входом элемента и 7 и выходом 12 знака минус , выход счетчика 3 сое,цинен с одним установочным входом триггера 11, другой установочный вход которо го соединен с установочной ишной 14 устройства и входом триггера 10, другой вход которого соединен с вы ходом элемента И 7, а выход с уста новочным входом триггера 9, счетный вход которого соединен с выходом элемента ИЛИ 8. Выход триггера 9 соединен со вторЕдм входом элемента И 6, выход которого соединен с выходной шиной устройства 15, Устройство работает следующим образом. Следующие числа занесены в счет чики 1 и 2, Операци  определени  разности начинаетс  подачей на уст новочный вход сигнала, устанешлива щего в исходное (единичное) состо  ние триггер 10 и перевод щего триггер 11 в нулевое состо ние, разрешающее прохождение импульсов генератора 4 через элемент И 5 на вxop элемента К 6 и счетчиков 1, 2, 3. Исходное состо ние триггера 9 преп тствует прохождению импульсов ге нератора 4 через элемент И 6. Предположим дл  определенности, чт в счетчике 1 записано число А(умен шаемое) , а в счетчике 3 - число В (вы $итаемое) ; счетчик 3 в исходном состо нии обнулен. Импульсы ген.-jpa тора 4, поступа  на входы счетчико 1, 2, 3, вызывают по вление на их ыходах импульсов переполнени , сответственно через Е-А, , и Е актов (где Е-емкости счетчиков). Рассмотрим три возможных случа  оотношени  между числами и В. |А1 В Импульс переполнени  с выхода четчика 1 по вл етс  раньше, чем с выхода счетчика 2, дава  тем самым на выход знака плюс 13 признак того, что результат вычитани  должен иметь положительный зназ. Этот импульс также через элемент ИЛИ 8 поступает на счетный вход триггера 9, перевод  его в нулевое состо ние, разрешающ ее прохождение импульсов генератора 4 через элемент И 6 на выход устройства 15« Через Е-В тактов импульс переполнени  с выхода счетчика 2 через элемент И)Ш 8, воздейству  на счетный вход триггера 9, возвращает его в исходное состо ние, запрещающее прохождение импульсов генератора через элемент И б на выход устройства 15. Таким образом, количество импульсов поступивших на выход устройства 15, равно С Е - В - (Е - А ) и - В . Через Е тактов импульс переполнени  по витс  на выходе счетчика 3, перевод  триггер 11 в исходное состо ние , запрещающее прохождение импульсов генератора 4 через элемент И 5. Таким образом, на вход каждого из трех регистров поступило ровно по Е импульсов, вследствие чего полностью восстановились значени  записанных в них чисел, А1 |В1, Импульс переполнени  с выхода счетчика 2 по вл етс  раньше, чем с выхода счетчика 1, дава  тем на выход знака ivoiHyc 12 признак того, что результат вычитани  должен иметь отрицательный знак. Этот импульс также через элемент ИЛИ 8 переводит триггер 9 в нулевое состо ние , наушна  процесс формировани  число-импульсного кода на выходе устройства 15 аналогично выилеописанному . Импульс переполнени  с выхода счетчика 1 заканчивает формирование число-импульсного кода. Состо ние счетчиков 1, 2, 3 сохран етс  аналогично вышеописанному. А| 1В1. Имг1ульсы переполнени , по вл ющиес  одновременно на выходах счетчиков 1 и 2, поступают через элемент ИЛИ 8 на счетный вход триггера 9 а также, совпада  на входах элемента И, перевод т в нулевое состо ние триггер 10, который, потенциально воздейству  на триггер 9 удерживает его в исходном состо нии. Таким об0 to the input of the third counter, the output of which is connected to the installation input of the third trigger, another installation input of which is connected to the installation bus of the device, the outputs of the first and second meters are connected to the inputs of the third element And whose output is connected to another installation input of the second trigger, the output of which is connected to the installation input of the first trigger, the output of the third trigger is connected KQ to the second input of the first element I. The circuit diagram is shown in the diagram. It contains counters 1 and 2 and an additional counter 3, having one; and a new capacity, a pulse generator 4, elements AND 5,6,7, element OR 8, triggers 9, 10 and 11, outputs of signs minus 12 and installation bus 14 and the output bus of the device 15. The pulse generator 4 is connected to one input of the element 5, the other input of which is connected to the output of the trigger 11, and the output to the inputs of counters 1, 2 and the element 6, the output of the counter 1 is connected to the input of the element OR 8 , the input element And 7 and the output 13 of the plus sign, the output of the counter 2 is connected to another input of the element OR 8, another input element and 7 and the output 12 minus signs, the output of the counter is 3 coi, zinen with one installation input of the trigger 11, the other installation input of which is connected to the installation device 14 and the input of the trigger 10, the other input of which is connected to the output of the element 7 and the output from the installation input of the trigger 9, the counting input of which is connected to the output of the element OR 8. The output of the trigger 9 is connected to the second input of the element AND 6, the output of which is connected to the output bus of the device 15, The device operates as follows. The following numbers are entered in counters 1 and 2. The operation of determining the difference begins by applying to the installation input a signal that sets up the initial (single) state trigger 10 and translates the trigger 11 into the zero state, allowing the generator 4 pulses to pass through the AND element 5 on the input element K 6 and counters 1, 2, 3. The initial state of trigger 9 prevents the generator 4 pulses from passing through element 6. We assume for definiteness that the number A (decreasing) is written in counter 1, and 3 - number В (you $ itemable); counter 3 in the initial state is zero. The impulses of gen.-jpa of torus 4, arriving at the inputs of the counter 1, 2, 3, cause the appearance of overflow pulses on their outputs, respectively through EA, and E acts (where E is the capacitance of the counters). Consider three possible cases of the relationship between numbers and B. | A1 B The overflow pulse from the output of rosary 1 appears earlier than from the output of counter 2, thus giving the output of the plus 13 sign a sign that the result of the subtraction must have a positive sign. This pulse also goes through the OR element 8 to the counting input of the trigger 9, putting it into the zero state, allowing the generator 4 pulses to pass through the AND 6 element to the output of the device 15 "Through the E-B clock overflow pulse from the output of the counter 2 through the AND element 8), acting on the counting input of the trigger 9, returns it to its original state, which prohibits the generator pulses from passing through the element Ib to the output of the device 15. Thus, the number of pulses received by the output of the device 15 is C E - C - (E - A) and - B. Through E cycles, an overflow pulse occurs at the output of counter 3, trigger 11 is reset to an initial state, prohibiting generator 4 pulses to pass through element 5. Thus, exactly E pulses were received at the input of each of the three registers, as a result of which the numbers written in them, A1 | B1, the overflow pulse from the output of counter 2 appears earlier than from the output of counter 1, giving the output of the ivoiHyc 12 sign a sign that the result of the subtraction must be negative. This pulse, through the element OR 8, also triggers the trigger 9 to the zero state, the headphone process of forming the number-pulse code at the output of the device 15 is similar to the described one. An overflow pulse from the output of counter 1 completes the formation of a number-pulse code. The state of counters 1, 2, 3 is maintained as described above. A | 1B1. Overflow impulses that appear simultaneously at the outputs of counters 1 and 2, are sent through the element OR 8 to the counting input of trigger 9 and also, coinciding at the inputs of the AND element, the trigger 10, which, potentially affecting the trigger 9, holds its in its original state. So about

SU772472574A 1977-04-04 1977-04-04 Device for determining the difference of two numbers SU686029A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU772472574A SU686029A1 (en) 1977-04-04 1977-04-04 Device for determining the difference of two numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU772472574A SU686029A1 (en) 1977-04-04 1977-04-04 Device for determining the difference of two numbers

Publications (1)

Publication Number Publication Date
SU686029A1 true SU686029A1 (en) 1979-09-15

Family

ID=20703530

Family Applications (1)

Application Number Title Priority Date Filing Date
SU772472574A SU686029A1 (en) 1977-04-04 1977-04-04 Device for determining the difference of two numbers

Country Status (1)

Country Link
SU (1) SU686029A1 (en)

Similar Documents

Publication Publication Date Title
SU686029A1 (en) Device for determining the difference of two numbers
US3947673A (en) Apparatus for comparing two binary signals
SU744555A1 (en) Device for computing walsh conversion coefficients
SU951280A1 (en) Digital generator
SU951297A1 (en) Device for determination of two number difference
SU951304A1 (en) Multiplication device
SU928345A2 (en) Discrete pulse repetition frequency multiplier
SU982002A1 (en) Multiplicating-dividing device
SU542338A1 (en) Periodic pulse frequency multiplier
SU928353A1 (en) Digital frequency multiplier
SU1372245A1 (en) Digital frequency meter
SU1277387A2 (en) Pulse repetition frequency divider
SU450161A1 (en) Apparatus for generating quaternary code signals
SU984057A1 (en) Pulse frequency divider
SU911508A1 (en) Device for comparing two numbers
SU748880A1 (en) Pulse recurrence rate divider with variable division factor
SU871166A1 (en) Device for checking parallel binary code for parity
SU556500A1 (en) Memory register for shift register
SU997240A1 (en) Delay device
SU550635A1 (en) Pulse frequency multiplying device
SU696451A1 (en) Pulse number multiplier
SU1275762A1 (en) Pulse repetition frequency divider
SU1172004A1 (en) Controlled frequency divider
SU1141408A1 (en) Random event arrival generator
RU1829031C (en) Accumulating adder