SU1310840A1 - Device for determining arithmetic mean value - Google Patents
Device for determining arithmetic mean value Download PDFInfo
- Publication number
- SU1310840A1 SU1310840A1 SU864011506A SU4011506A SU1310840A1 SU 1310840 A1 SU1310840 A1 SU 1310840A1 SU 864011506 A SU864011506 A SU 864011506A SU 4011506 A SU4011506 A SU 4011506A SU 1310840 A1 SU1310840 A1 SU 1310840A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- register
- bit
- inputs
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в системах обработки результатов измерений. Цель изобретени - повышение быстродействи .Устройство позвол ет повысить скорость вычислени среднего арифметического значени за счет распараллеливани вычислений во времени. Устройство содержит регистры 2,4,5,6,10, элементы ИЛИ 3,16, триггер 7, генератор 8 тактовых импульсов, элементы 9,11, 19 задержки, блок 12 ассоциативной пам ти, сумматоры 14, 15, вычитатель 1.7, коммутатор 18, элементы И 20, 21, 22, счетчик 23, пороговый элемент 26. 1 ил., 2 табл. (Л 00 00 4The invention relates to computing and can be used in systems for processing measurement results. The purpose of the invention is to increase the speed. The device allows to increase the speed of calculating the arithmetic mean value by parallelizing the calculations in time. The device contains registers 2,4,5,6,10, elements OR 3.16, trigger 7, generator 8 clock pulses, elements 9,11, 19 delays, block 12 associative memory, adders 14, 15, subtractor 1.7, switch 18, elements And 20, 21, 22, counter 23, threshold element 26. 1 ill., 2 tab. (L 00 00 4
Description
113113
Изобретение относитс к вычислительной технике и может быть использовано в устройствах автоматического управлени , обработки информации и в системах автоматизации научных исследований.The invention relates to computing and can be used in automatic control devices, information processing and in systems of automation of scientific research.
Целью изобретени вл етс повышение быстродействи за счет параллельного вычислени среднего арифметического хран щихс в пам ти чисел за врем , не завис щее от их количества .The aim of the invention is to increase speed by comparing the arithmetic mean of the numbers stored in the memory in parallel over time, independent of their number.
На чертеже представлена структурна схема устройства.The drawing shows a block diagram of the device.
Устройство содержит вход 1 запуска регистра сдвига 2, элемент ИЛИ 3, регистр сдвига 4, регистр 5, регистр 6, триггер 7, генератор 8 тактовых импульсов, элемент задержки 9, регистр 10, элемент задержки 11, блок 12 ассоциативной пам ти, разр дные вькоды блока 12, комбинационный сумматор 14, сумматор 15,элементы ИЛИ 16, выходы которых св заны со входами вычитател 17, коммутатор 18, элемент 19 задержки, элементы И 20 - 22, счетчик 23, вход 24 начальной установки разр дности среднего арифметического устройства, выход 25 устройства, пороговый элемент 26.The device contains input 1 for starting shift register 2, element OR 3, shift register 4, register 5, register 6, trigger 7, clock generator 8, delay element 9, register 10, delay element 11, associative memory block 12, bit The codes of block 12, combinational adder 14, adder 15, elements OR 16 whose outputs are connected to the inputs of subtractor 17, switch 18, delay element 19, elements 20–22, counter 23, input 24 of the initial setting of the average arithmetic unit, output 25 of the device, the threshold element 26.
Устройство работает следующим образом .The device works as follows.
Перед началом работы по входу 24 в счетчик 23 заноситс код М-требуе- мой разр дности результата (получаемого среднего арифметического).Before starting work on the input 24, the code M of the required bit size of the result (the arithmetic average value obtained) is entered into the counter 23.
Сигнал запуска, подаваемый по входу 1, устанавливает в ноль разр ды регистров 2,5,4,10, устанавлийа- ет в единичное состо ние триггер 7 и разр ды регистра 6, запускает генератор 8 тактовых импульсов, через первый элемент задержки 9 заносит единицу в младший разр д регистра 2. Импульс с генератора 8 через элемент задержки 11 инициирует опрос блока 12, на выходах которого формируютс сигналы совпадени дл всех слов, младший разр д которых равен единице. Информаци с вы- .ходов 13 подаетс на входы сумматора 14, на выходе которого формируетс двоичный код суммы числа совпадений . Полученное число поступает на первый вход сумматора 15, где складываетс со сдвинутым на один разр д содержимым регистра 10 (предварительно обнуленного сигналом за08402The trigger signal, input 1, sets register bits 2,5,4,10 to zero, sets trigger 1 and register register 6 in one state, generates 8 clock pulses, and delays unit 1 through the first delay element 9 in the low bit of register 2. The pulse from the generator 8 through the delay element 11 initiates polling of the block 12, at the outputs of which coincidence signals are generated for all words whose low bit is equal to one. The information from the outputs 13 is fed to the inputs of the adder 14, the output of which forms the binary code of the sum of the number of matches. The resulting number is fed to the first input of the adder 15, where it is added to the contents of register 10 shifted by one bit (the signal 08082
пуска через элементы ИЛИ 3) так,что i-й разр д регистра 10 соответствует при сложении (1 + 1)-му разр ду второго входа сумматора 15. Резуль5 тат заноситс на регистр 10, причем младший разр д (п-й) регистра 10 заноситс со сдвигом влево на регистр 4, начина .с т-го разр да. start through the elements OR 3) so that the i-th bit of the register 10 corresponds to the addition of the (1 + 1) -th bit of the second input of the adder 15. The result is entered into the register 10, and the least significant bit of the (n-th) register 10 is entered with a shift to the left by register 4, beginning with the t-th bit.
Импульс, сформированный генерато 0 ром импульсов 8, пройд через элемент задержки 19, вызывает сдвиг влево содержимого регистра 2 и, пройд через открытый единичным сигналом с выхода триггера 7 элемент И 21,вы 5 зывает сдвиг влево содержимого регистра 4. С формирование m генератором В следующего сигнала осуществл етс следующее обращение к блоку 12 и устройство работает аналогичноThe pulse generated by the generator 0 of pulses 8, passing through the delay element 19, causes a shift to the left of the contents of register 2 and, having passed through an open single signal from the output of the trigger 7 element AND 21, you are left to shift to the left of the contents of register 4. With the formation of m generator B the next signal, the next call is to block 12 and the device operates in the same way as
20 описанному способу до тех пор, пока на выходе переполнени сдвига регистра 2 не будет сформирован сигнал единичного уровн (соответствует 1-му циклу опроса блока 12, где 1 разр дность чисел, хран щихс в блоке 12), который устанавливает триггер 7 в ноль. Сигнал с инверсного выхода триггера 7 поступает на элементы И 20, 22, разреша работу вы читател 17 и сдвиг содержимого регистра 4 вправо.20 until the output of the register 2 shift overflow produces a single level signal (corresponding to the 1st polling cycle of block 12, where 1 is the digit number stored in block 12), which sets trigger 7 to zero. The signal from the inverse output of the trigger 7 goes to the elements And 20, 22, allowing the reader 17 to work and the register 4 to shift to the right.
Код числа, хран щегос в регистре 10, подаетс через элементы ИЛИ 16 на вход порогового элемента 26 и вы35 читател 17. Если это число меньше количества К чисел в блоке 12, то в (т+1)-й разр д регистра 4 заноситс ноль, а в регистр 5 через коммутатор 18 - исходное число. Если этоThe code of the number stored in register 10 is fed through the elements OR 16 to the input of threshold element 26 and reader 35. If this number is less than the number of K numbers in block 12, then (t + 1) -th bit of register 4 is entered , and in register 5 through the switch 18 is the original number. If this
40 число больше или равно К, то в (т+ Ч-1)-й разр д регистра 4 заноситс единица , а в регистр 5 через коммутатор 18 заноситс разность между числом, поступившим на вход вычитател 17 и40 the number is greater than or equal to K, then in (t + H-1) -th bit of register 4 is entered one, and in register 5 through the switch 18 the difference between the number received at the input of subtractor 17 and
45 числом К. Работа вычитател 17 синхронизируетс тактовым сигналом,задержанным элементом 11 задержки через элемент И 20. Этот же сигнал, дополнительно задержанный элементом45 number K. The operation of the subtractor 17 is synchronized by the clock signal delayed by the delay element 11 through the element 20. This same signal, additionally delayed by the element
50 19 задержки,формирует на входе элемента И 22 сигнал, по которому, производитс сброс в ноль регистра 10 и запись кода в регистр 5, а также запись сигнала в (т+1)-й разр д ре55 гистра 4, выполн ема одновременно со сдвигом вправо содержимого последнего . Кроме того, импульс с выхода элемента 11 задержки через элемент И 20 поступает на счетчик 23,50 19 delay, forms at the input of the element AND 22 a signal, which is used to reset the register 10 to zero and write the code to register 5, and also record the signal in (t + 1) -th bit of the register 55, performed simultaneously right shift the contents of the latter. In addition, the pulse from the output of the element 11 delay through the element And 20 is fed to the counter 23,
33
где происходит вычитание единицы из содержимого счетчика 23. В дальнейшем на каждый (j-1)-й вход (,3,. .., п-1) вычитател 17 поступает сигнал с j-ro выхода регистра 5, а на (з-1)-й вход узла вычитател 17 - сигнал с выхода регистра 4.where the unit is subtracted from the contents of the counter 23. Subsequently, each (j-1) -th input (, 3, ..., p-1) of the subtractor 17 receives a signal from the j-ro output of register 5, and on (z- 1) -th input of the subtractor node 17 - signal from the output of the register 4.
Описанна последовательность операции повтор етс до тех пор, пока содержимое счетчика 23 не станет равно нулю. При этом в регистре сдвига 4 будет сформировано среднее арифметическое с точностью до М разр дов, причем старший разр д среднего будет располагатьс справа.The described sequence of operations is repeated until the contents of the counter 23 is equal to zero. In this case, in the shift register 4, the arithmetic average will be formed with an accuracy of M bits, with the highest bit of the average being located on the right.
Пример. Пусть вычисл етс среднее арифметическое четьфех 4-рар дных чисел, записанных в чейках блока 12 в видеExample. Let the arithmetic average of the 4-rand numbers written in the cells of block 12 as
Пусть далее М 6. Тогда работа устройства до переключени триггера 7 иллюстрируетс таблицей 1.Let M 6 be next. Then, the operation of the device prior to trigger switching 7 is illustrated in Table 1.
Работа устройства после переключени управл ющего триггера 7 иллюстрируетс таблицей 2.The operation of the device after switching the control trigger 7 is illustrated in Table 2.
Полученный код 1010,11 соответствует дес тичному числу 10, 75, т.е. среднему арифметическому заданных чисел.The resulting code 1010.11 corresponds to a decimal number of 10, 75, i.e. arithmetic mean of given numbers.
Устройство позвол ет вычислить среднее арифметическое за число тактов (М + 1), независ щее от количества чисел К.The device allows to calculate the arithmetic average for the number of cycles (M + 1), independent of the number of numbers K.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864011506A SU1310840A1 (en) | 1986-01-13 | 1986-01-13 | Device for determining arithmetic mean value |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864011506A SU1310840A1 (en) | 1986-01-13 | 1986-01-13 | Device for determining arithmetic mean value |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1310840A1 true SU1310840A1 (en) | 1987-05-15 |
Family
ID=21217689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864011506A SU1310840A1 (en) | 1986-01-13 | 1986-01-13 | Device for determining arithmetic mean value |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1310840A1 (en) |
-
1986
- 1986-01-13 SU SU864011506A patent/SU1310840A1/en active
Non-Patent Citations (1)
Title |
---|
Патент DD № 93363, кл. G 11 С 15/00, 1972. Авторское свидетельство СССР .№ 619924, кл. G 06 F 15/36, 1975. Авторское свидетельство СССР № 1008751, кл. G 06 F 15/36, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1310840A1 (en) | Device for determining arithmetic mean value | |
SU1092519A1 (en) | Signature digital smoothing device | |
SU1462292A1 (en) | Device for searching for preset number | |
SU1647591A1 (en) | Matrix inversion device | |
SU1658169A1 (en) | Device for determining arithmetic average magnitude | |
SU1287181A1 (en) | Averaging device | |
SU943731A1 (en) | Device for code sequence analysis | |
SU1251071A1 (en) | Random number sequence generator | |
SU1116426A1 (en) | Device for searching numbers in given range | |
SU1297074A1 (en) | Control device for fast discrete orthogonal transform processors | |
SU1242938A1 (en) | Calculating device | |
SU1295417A1 (en) | Device for determining average value of additive non-stationary random process | |
SU1293727A1 (en) | Polyfunctional calculating device | |
SU1164753A1 (en) | Device for reading graphic information | |
SU1030797A1 (en) | Device for sorting mn-digit numbers | |
SU1019641A1 (en) | Reversible binary counter with error detection | |
SU1363187A1 (en) | Associative arithmetic device | |
SU824193A1 (en) | Extremum number determining device | |
SU404077A1 (en) | CONVERTER OF THE RIGHT BINARY-DECIMAL CRUSHES TO BINARY CRACKS | |
SU1019638A1 (en) | Number-frequency multiplier | |
SU842799A1 (en) | Multiplying device | |
SU1324070A2 (en) | Associative memory | |
SU699519A1 (en) | Device for converting binary numbers into binary-decimal numbers | |
SU1686437A1 (en) | Conveying device for calculating sums of products | |
SU1051556A1 (en) | Device for reducing information redundancy |