SU1485232A1 - Divider - Google Patents
Divider Download PDFInfo
- Publication number
- SU1485232A1 SU1485232A1 SU874314222A SU4314222A SU1485232A1 SU 1485232 A1 SU1485232 A1 SU 1485232A1 SU 874314222 A SU874314222 A SU 874314222A SU 4314222 A SU4314222 A SU 4314222A SU 1485232 A1 SU1485232 A1 SU 1485232A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- register
- input
- code
- fibonacci
- output
- Prior art date
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
Изобретение относится к вычислительной технике и может быть использовано в арифметических устройствах, функционирующих в кодах Фибоначчи, для деления чисел пополам. Цель изобретения - повышение быстродействия. Устройство содержит регистр I делимого, счетчик 2 по моду<г лю два, блок 3 управления, регистр 4 половин весов 1-кода Фибоначчи, сумматор 5, регистр 6 частного, инфор·*·’ мационный вход 7 устройства, вход 8 начальной установки устройства, вход 9 константы устройства, выход 10 устройства. Осуществляется деление чисел в 1-коде Фибоначчи пополам за время, в два раза меньшее, чем в известном устройстве для деления.The invention relates to computing and can be used in arithmetic devices operating in Fibonacci codes for dividing numbers in half. The purpose of the invention is to increase speed. The device contains the register I of the dividend, the counter 2 modulo <two, the control block 3, the register 4 half-weights of the Fibonacci 1-code, the adder 5, the register 6 private, the information input 7 of the device 7, the input 8 of the initial installation of the device , input 9 of the device constant, output 10 of the device. The division of numbers in the Fibonacci 1-code in half in half the time, two times smaller than in the known device for division.
1 з.п. ф-лы, 2 ил., 2 табл.1 hp f-ly, 2 ill., 2 tab.
©©
№·ι*№ · ι *
0000
СПSP
ьоyo
СаЭSaE
юYu
ЯI
33
14852321485232
4four
Изобретение относится к вычислительной технике и может быть использовано в арифметических устройствах, функционирующих в кодах Фибоначчи, для деления чисел пополам.The invention relates to computing and can be used in arithmetic devices operating in Fibonacci codes for dividing numbers in half.
Целью изобретения является повышение быстродействия.The aim of the invention is to increase speed.
На фиг. 1 представлена схема устройства для деления; на фиг. 2 - схема блока управления.FIG. 1 shows a diagram of a device for dividing; in fig. 2 - control unit diagram.
Устройство содержит (фиг. 1) регистр 1 делимого, предназначенный для хранения и сдвига на два разряда в сторону старших разрядов 1-кода/ Фибонадчи делимого, счетчик 2 по модулю два, который вырабатывает сигнал коррекции кода частного, блок 3 управления, регистр 4 половины весов 1-кода Фибоначчи, предназначенный для формирования путем сдвига в сторону младших разрядов последовательности кодов половин весов Ί-кода Фибоначчи, сумматор 5 и регистр 6 частного, информационный вход 7, с которого в регистр I делимого заносится код делимого, вход 8 начальной установки, с которого поступает сигнал записи в регистр 1 делимого и регистр 4 половин весов 1-кода Фибоначчи, вход 9 константы, выход 10, входы 11 и 12 блока 3 управления и выходы 13— 16 блока 3 управления.The device contains (Fig. 1) divisible register 1 for storing and shifting two digits in the direction of the higher digits of the 1-code / Fibonacci divisible, counter 2 modulo two, which generates the correction code of the private code, control unit 3, register 4 half of the 1-Fibonacci weights, designed to form, by shifting towards the lower digits, a sequence of half-weights of the онач-Fibonacci code, adder 5 and register 6 private, information input 7, from which divisible code is entered into register I of the dividend, input 8 is initial of the installation from which the signal is written to the register 1 of the dividend and the register 4 is the half of the weights of the 1 Fibonacci code, input 9 is constant, output 10, inputs 11 and 12 of control unit 3, and outputs 13-16 of control unit 3.
Блок 3 управления (фиг. 2) содержит табличный узел 17 анализа и триггеры 18 и 19.The control unit 3 (FIG. 2) contains a table analysis node 17 and triggers 18 and 19.
Кодировка табличного узла 17 анализа приведена в табл. 1.The coding table analysis node 17 is given in table. one.
В η-разрядном 1-коде Фибоначчи некоторое число А представляется вIn the η-bit 1 Fibonacci code, a number A is represented in
. виде. the form
А=ап„, ср, (п-1) + .. .+аоц>( (0), где а-£ ^0, Ц - двоичная цифра в ΐ-мA = a n „, cf, (n-1) + ... + A o c> ( (0), where a - £ ^ 0, C is a binary digit in ΐ-m
разряде кода;code discharge;
(ί) - вес ΐ-г.о разряда кода, равный ΐ-му числу Фибоначчи.(ί) - the weight of the ΐ-go of the digit code, equal to the ΐ-th Fibonacci number.
Число, равное половине А, можно записать следующим образом:A number equal to half A can be written as follows:
тогда при делении 1-кода Фибоначчи пополам код чАстного будет получаться путем суммирования кодов половин весов единичных разрядов Ι-кбда Фибоначчи. Весу каждого разряда Т.-кодаthen, when dividing a Fibonacci code in half, the private code will be obtained by summing the codes of the half weights of the Ι-kbda Fibonacci unit digits. The weight of each digit T.-code
Фибоначчи поставлен в соответствие код целой части его половины.Fibonacci code for the integer part of its half is assigned.
В табл. 2 приведены коды половинIn tab. 2 shows half codes
ГR
весов девяти первых разрядов 1-ксща Фибоначчи. Код половины веса ί-го разряда получается путем сдвига на ϊ разрядов в сторону младших разрядов кода половины нулевого (старшего) разряда.the weights of the nine first digits of 1-ksch Fibonacci. The code of half the weight of the ίth digit is obtained by shifting by ϊ digits towards the lower digits of the code of half zero (senior) digit.
Для получения погрешности результата, не превышающей единицу, надо добавить к коду частного, полученного· в результате сложения кодов половин весов единичных разрядов делимого, код коррекции. Величина коррекции равна целой части половины числа единичных разрядов с. нечетными весами 1-кода Фибоначчи делимого. Коррекцию результата можно вводить как в конце операции деления, так и в ее. процессе. В предлагаемом устройстве используется второй способ. Таким образом, частное от деления числа в 1-коде Фибоначчи на два имеет видTo obtain an error of a result not exceeding one, it is necessary to add a correction code to the code of a particular one obtained as a result of adding the codes of half weights of unit digits of the dividend. The magnitude of the correction is equal to the integer part of half the number of single digits c. odd weights of 1-Fibonacci divisible code. The result correction can be entered both at the end of the division operation and in it. process. In the proposed device uses the second method. Thus, the quotient of dividing a number in a Fibonacci 1-code by two is
кto
5 = ΣΖ а;В; +Ф,5 = ΣΖ a; B; + F,
ί=0ί = 0
где а; - двоичная цифра в ΐ-м разряде кода делимого;where is a; - binary digit in the ΐth digit of the code of the dividend;
Βό - код половины веса ί-го разряда;Βό is the code of half the weight of the ίth digit;
¢1 - код коррекции.¢ 1 - correction code.
При делении пополам анализ значения разрядов 1-кода Фибоначчи делимого начинается со старших разрядов, и так как делимое представлено в минимальной форме, то анализируют по два разряда, рассматривая три возможных случая: "00", "01", "10".When dividing in half, the analysis of the digits of the 1-Fibonacci code of the dividend begins with the higher digits, and since the dividend is represented in minimal form, it is analyzed in two digits, considering three possible cases: "00", "01", "10".
Устройство (фиг. 1) работает следующим образом.The device (Fig. 1) works as follows.
По сигналу, поступающему на вход 8 устройства, производится запись в регистр 1 делимого кода делимого, поступающего на информационный вход 7 устройства, а в регистр 4 - кода половины веса старшего разряда 1-кода Фибоначчи используемой разрядной сетки, поступающего на информационный вход регистра 4 с входа 9 устройства .The signal input to the device 8 is used to write into register 1 of the dividend divisible code that arrives at device information input 7, and to register 4, the half weight code of the high-order bit of the 1 Fibonacci bit grid used, which arrives at the information input of register 4 Input 9 device.
Каждый такт работы устройства начинается с анализа двух старших разрядов регистра I делимого, поступающих на входы блока 3 управления. В результате анализа формируются уп52Each cycle of operation of the device begins with the analysis of the two most significant bits of the register I of the dividend, arriving at the inputs of the control unit 3. As a result of the analysis formed up52
66
5 10852 5 10852
равляющие сигналы, определяющие последовательность действий в устройстве в текущем такте.driving signals that determine the sequence of actions in the device in the current cycle.
Если значения двух анализируемых разрядов делимого равны "10", то 5 If the values of two analyzed digits of the dividend are equal to "10", then 5
происходит суммирование содержимого регистра 4 половины весов разрядов 1-кода Фибоначчи и регистра 6 частного в сумматоре 5, результат запи- -,θ сывается в регистр 6 частного, затем содержимое регистра 1 делимого сдвигается на два разряда в сторону старших разрядов, а содержимое регистра 4 половин весов разрядов 1-кода Фи- 15 боначчи - на два разряда в сторону младших разрядов, и начинается следующий такт работы. Если значения двух анализируемых разрядов "01", то происходит сдвиг на один разряд в 20the register of the half of the weights of the bits of the 1 Fibonacci code and the private register 6 in the adder 5 is summed, the result is recorded, the θ is written into the private register 6, then the contents of the register 1 of the dividend are shifted by two bits to the high bits, half of the weights of the bits of the 1-code Fi- 15 baconci code — two digits in the direction of the lower digits, and the next work cycle begins. If the values of the two analyzed digits "01", then there is a shift by one digit in 2 0
сторону младших разрядов содержимого регистра 4 кодов половин весов разрядов 1-кода Фибоначчи, затем в сумматоре складывается содержимое1 регистров 4 и 6. После этого происхо- 25 дит сдвиг на один разряд в сторону младших разрядов содержимого регистра 4 и сдвиг на два разряда в сторону старших разрядов содержимого регистра 1. Начинается следующий такт работы. Если содержимое анализируемых разрядов делимого "00", то в текущем такте работы происходит сдвиг на два разряда содержимого регистра 1 в сторону старших разрядов и содержимого регистра 4 в сторону младших разрядов. В каждом такте работы устройства! при суммировании на сумматоре содержимого регистров’ 4 и 6 значение младшего разряда регистра 4 подается на счетный вход счетчика 2, ,the side of the lower bits of the register contents 4 codes of the half weights of the bits of the 1 Fibonacci code, then in the adder the contents of 1 registers 4 and 6 are added. After this, the 25 bits of the register 4 are shifted to the low bits of the register 4 and two bits are shifted to the side senior bits of the contents of the register 1. The next clock cycle begins. If the contents of the analyzed bits of the dividend "00", then in the current clock cycle there is a shift by two bits from the contents of register 1 towards the high bits and the contents of register 4 towards the low bits. In each step of the device! when summing up the registers' 4 and 6 on the adder, the value of the lower digit of register 4 is fed to the counting input of counter 2,,
который по управляющему сигналу, поступающему на вход разрешения, подсчитывает количество суммируемых половин весов разрядов 1-кода ФибоначчЬwhich, using the control signal received at the resolution input, calculates the number of summable half scales of 1-bit Fibonacci bits
чи, содержащих "1" в младшем разряде.chi containing "1" in the low order.
Это указывает на то, что разряд-1-кода Фибоначчи делимого из рассматриваемой на данном этапе такта работы пары разрядов, содержащий "1", имеет дд нечётное значение веса. Когда значение счетчика 2 становится равным двум, то в этом же такте работы на вход переноса сумматора 5 подается "1", пос35This indicates that the discharge-1-Fibonacci code of the dividend from the pair of digits considered at this stage, containing "1", has an odd value of weight. When the value of counter 2 becomes equal to two, then in the same work cycle, "1" is applied to the transfer input of adder 5, pos35
ле чего счетчик 2 обнуляется. Сигналом конца операции деления является равенство нулю содержимого регистра 1 .what is it that counter 2 is reset. The signal of the end of the division operation is the equality to zero of the contents of register 1.
Из описания работы устройства видно, что максимальное количество так55The description of the operation of the device shows that the maximum number is 55
тов, за которые производится операция деления 1-кода Фибоначчи пополам, равно максимально возможному числу единиц в 1-коде Фибоначчи разрядностью п. Учитывая минимальную форму представления чисел в 1-коде Фибоначчи, максимальное число тактов работы устройства равно п/2. Дополнительный положительный эффект изобретения состоит в сокращении аппаратурных затратThe combo for which the operation of dividing a Fibonacci 1-code in half is performed is equal to the maximum possible number of units in a Fibonacci 1-code of digit length. Considering the minimal form of representing numbers in a 1-Fibonacci code, the maximum number of device operation cycles is n / 2. An additional positive effect of the invention is to reduce hardware costs.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874314222A SU1485232A1 (en) | 1987-10-06 | 1987-10-06 | Divider |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU874314222A SU1485232A1 (en) | 1987-10-06 | 1987-10-06 | Divider |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1485232A1 true SU1485232A1 (en) | 1989-06-07 |
Family
ID=21330893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU874314222A SU1485232A1 (en) | 1987-10-06 | 1987-10-06 | Divider |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1485232A1 (en) |
-
1987
- 1987-10-06 SU SU874314222A patent/SU1485232A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1485232A1 (en) | Divider | |
JPS6248857B2 (en) | ||
SU1716609A1 (en) | Encoder of reed-solomon code | |
SU363119A1 (en) | REGISTER OF SHIFT | |
SU451991A1 (en) | Device for converting binary to decimal code to binary | |
SU1097999A1 (en) | Device for dividing n-digit numbers | |
SU737948A1 (en) | Pseudostochastic adder | |
SU1711151A1 (en) | Device to divide the numbers | |
SU391560A1 (en) | DEVICE FOR CONSTRUCTION IN SQUARES | |
SU549808A1 (en) | Dividing device | |
SU1716504A1 (en) | A device for multiplying the elements of a Galois field GF (2 @) with the formative polynomial F (x) = x @ + X @ + x @ + x @ +1 | |
SU960807A2 (en) | Function converter | |
SU491129A1 (en) | Device for raising binary numbers to the third degree | |
SU758145A1 (en) | Square rooting device | |
SU1693600A1 (en) | Division device | |
SU1332321A2 (en) | Device for approximately computing the inverse value of normalized binary fraction | |
SU1229757A1 (en) | Multiplying device | |
SU741275A1 (en) | Stochastic device for multiplying and dividing | |
SU1803913A1 (en) | Division device | |
SU824203A1 (en) | Device for adding n-digit decimal numbers | |
SU1488829A1 (en) | Polynominal multiplier | |
SU760090A1 (en) | Arithmetci device | |
SU913376A1 (en) | Non-linear time probability converter | |
SU1262480A1 (en) | Dividing device | |
SU481042A1 (en) | Device for solving systems of linear algebraic equations |