SU1265763A1 - Dividing device - Google Patents

Dividing device Download PDF

Info

Publication number
SU1265763A1
SU1265763A1 SU853906535A SU3906535A SU1265763A1 SU 1265763 A1 SU1265763 A1 SU 1265763A1 SU 853906535 A SU853906535 A SU 853906535A SU 3906535 A SU3906535 A SU 3906535A SU 1265763 A1 SU1265763 A1 SU 1265763A1
Authority
SU
USSR - Soviet Union
Prior art keywords
quotient
register
bit
private
outputs
Prior art date
Application number
SU853906535A
Other languages
Russian (ru)
Inventor
Владимир Анатольевич Анейчик
Владимир Юрьевич Иванов
Александр Михайлович Шерстобоев
Original Assignee
Предприятие П/Я М-5339
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 Предприятие П/Я М-5339 filed Critical Предприятие П/Я М-5339
Priority to SU853906535A priority Critical patent/SU1265763A1/en
Application granted granted Critical
Publication of SU1265763A1 publication Critical patent/SU1265763A1/en

Links

Landscapes

  • Error Detection And Correction (AREA)

Abstract

Изобретение относитс  к области вычислительной техники. Цель изобретени  - расширение области применени  за счет обеспечени  возможности обработки чисел, представленных дополнительным кодом. Устройство содержит регистры делимого и делител , сумматор округлени , умножитель. шифратор цифр частного, блок формировани  частного, содержащий сумматор-вычитатель и регистр, блок управлени  , триггер знака делимого, две группы элементов сложени  по модулю два, элемент сложени  по модулю два и блок формировани  очередного остатка, содержащий сумматор вычитатель. Сущность изобретени  заключаетс  в том, что дл  обработки операндов в дополнительном коде старшие (k ьЗ) разр дов делимого и делител  инвертируютс  в случае отрицательных операндов и используютс  дл  формировани  К .разр дов частi ного, а схемы устройства настраи (Л ваютс  на определенный режим работы в .зависимости от знаков делимого и делител . 2 ил.This invention relates to the field of computing. The purpose of the invention is to expand the scope of application by allowing the processing of numbers represented by an additional code. The device contains the registers of the dividend and the divider, the rounding adder, the multiplier. the digit encoder of the quotient, the quotient forming unit, containing the adder-subtractor and register, the control unit, the divisor sign trigger, two groups of modulo-two addition elements, the modulo-addition element, and the next remainder formation block, containing the adder-subtractor. The essence of the invention is that for processing operands in the additional code, the higher (k) s of the divisible and divisor bits are inverted in the case of negative operands and are used to form the K parts of the bits and the device circuits are tuned (L depending on the signs of the dividend and divisor. 2 Il.

Description

о аabout a

СПSP

9e

САCa

Изобретение относитс  к вычислительной технике и. может быть применено при разработке быстродействующих устройств делени , удобных дл  изготовлени  в составе больших интегральных схем.The invention relates to computing and. can be applied in the development of high-speed devices of division convenient for manufacturing as part of large integrated circuits.

Целью изобретени   вл етс  расширение области применени  устройства за счет обеспечени  возможности обработки чисел, представленных дополнительным кодом.The aim of the invention is to expand the field of application of the device by allowing the processing of numbers represented by an additional code.

На фиг. 1 изображена схема устройства дл  делени , на фиг. 2 схема блока управлени .FIG. 1 is a diagram of a device for dividing; FIG. 2 is a control block diagram.

Устройство дл  делени  двоичных чисел (фигИ) содержит П-разр дные регистры 1 и 2 соответственно делимого и делител , блок 3 формировани  частного, блок 4 управлени , триггер 5 знака делимого (k+3) элементов 6 сложени  по модулю два первой группы (, h - разр дность операндов), () элементов 7 сложени  по модулю два второй группы, элемент 8 сложени  по модулю два, .сумматор 9 округлени , шифратор 10 цифр частного, умножиФель 11 и блокA device for dividing binary numbers (FIG) contains U-bit registers 1 and 2, respectively, of a divisible and a divider, a private formation unit 3, a control unit 4, a trigger 5 for the divisible character (k + 3) of the addition elements 6 modulo two first group (, h is the size of operands), () of modulo-two addition elements 7 of the second group, modulation addition element 8, rounding modifier 9, 10-digit encoder, multiplier 11, and block

12формировани  очередного остатка. Блок 3 содержит сумматор-вычитатель12 forming the next balance. Block 3 contains an adder-subtractor

13и регистр 14, блок 12 - сумматорвычитатель 15.13 and register 14, block 12 - adder 15.

Устройство.имеет шину 16 ,значени  I, шину 17 пуска устройства и шину 18 числатактов.The device has a bus 16, the values of I, the bus 17 for starting the device and the bus 18 are number of strokes.

Блок 4 (фиг. 2) содержит генератор 19, счетчик ,20, элемент ИЛИ 21 и элемент И 22.Block 4 (Fig. 2) contains the generator 19, the counter, 20, the element OR 21 and the element And 22.

Устройство дл  делени  работает следующим образом.The device for dividing works as follows.

В исходном состо нии в регистре 1 хранитс  h -разр дный дополнительный код делимого, в регистре 2 - пIn the initial state in the register 1 the h-digit additional code of the dividend is stored, in the register 2 - n

-разр дный дополнительный код делител  (предполагаетс , что делимое и делитель - двоичные числа со знаком ) , в триггере 5 знак делимого, знак делител  - в старшем разр де регистра 2. Регистр 14 в исходном состо нии обнулен.-digit additional divisor code (it is assumed that the dividend and divisor are binary numbers with a sign), in trigger 5 is the sign of the dividend, the divisor sign is in the higher digit of the register 2. Register 14 has been reset in the initial state.

С выхода регистра 1 старшие .(k+3 разр дов поступают на одну группу входов элементов 6 сложени  по модулю два, причем на другую группу выходов поступает знаковый разр д делимого с триггера 5, на выходах этих элементов 6 сложени  по модулю два формируетс  обратный код Ck+S) старших разр дов делимого, если делимое - отрицательное число, либо пр мой код (k+3) старших разр дов делимого, если делимое -положительное число.Highs from register 1 output. (K + 3 bits are received for one group of inputs of addition elements 6 modulo two, and the other output group receives the sign bits of the dividend from trigger 5, and the opposite code is formed at the outputs of these addition elements 6 modulo two Ck + S) most significant bits of the dividend, if the dividend is a negative number, or a direct code (k + 3) most significant bits of the dividend, if the dividend is a positive number.

5 Старшие разр ды делител  с второго по (k+3)-и с выхода регистра 2 поступают на входы элементов 7 сложени  по модулю два второй группы, на которых происход т аналогичные 0 преобразовани . На элемент 8 сложени  по модулю два поступают знаки делимого и делител  с триггера 5 и старшего разр да регистра 2 соответственно . На этом элементе 8 сло5 жени  по модулю два формируетс  знак получаемого частного (в зависимости от знака делимого и делител ), который поступает на входы управлени  сумматора-вычитател  13 и сумматора20 вЫчитател  15.5 The highest bits of the divider from the second to (k + 3) - and from the output of the register 2 are fed to the inputs of the elements 7 of addition modulo two second groups, on which similar 0 transformations occur. Element 8 of modulo two receives the signs of the dividend and divisor from trigger 5 and high register register 2, respectively. On this modulo two element 8, the sign of the obtained quotient is formed (depending on the sign of the dividend and the divisor), which is fed to the control inputs of the adder-subtractor 13 and the adder 20 of the Subtractor 15.

С выходов элементов 7 сложени  по модулю два пр мой код старших разр дов делител  с второго по (k+3)-и поступает на вход сумматора 25 9 округлени , в котором производитс  прибавление к (k+3) старшим разр дам делител  единицы в их младший разр д . Этим устран етс  возможность получени  в шифраторе 10 частного 30 с избытком. На входы шифратора 10 поступает (k+3) старших разр дов делимого с выхода элементов 6 сложени  по модулю два и (k+3) разр дов округленного делител  с выхода сумма35 тора 9, причем старший разр д (k+3)разр дного кода округленного делител  принимает значение переноса из. старшего разр да сумматора 9. В шифраторе 10 формируетс  k -раз40 р дный пр мой код частного, причем частное формируетс  путем делени  усеченного делимого на усеченныйFrom the outputs of the modulo 7 elements, the two direct code of the higher digits of the divider from the second to (k + 3) -and enters the input of the adder 25 9 rounding, in which the unit divider is added to the (k + 3) bits of younger bit d. This eliminates the possibility of getting a private 30 in excess in the encoder 10. The inputs of the encoder 10 receive (k + 3) most significant bits of the dividend from the output of elements 6 of addition modulo two and (k + 3) bits of the rounded divider from the output of the sum of 35 torus 9, and the most significant bit (k + 3) of the bit code the rounded divider takes the value of the carry from. the older bit of the adder 9. In the encoder 10, a k-bit 40 regular direct code of the private is formed, and a quotient is formed by dividing the truncated divisible by the truncated

делитель.divider.

Абсолютна  погрешность (разностьAbsolute error (difference

между значением частного, получаемого при делении ii -разр дных чисел и значением частного, получаемого при делении усеченных (|с+3)-разр дных чисел) при этом находитс  в преде50 лах ,between the value of the quotient obtained by dividing ii-bit numbers and the value of the quotient obtained by dividing the truncated (| c + 3) -digit numbers) is in the limits,

О f : 2O f: 2

Claims (2)

При этом значение 1с-разр дного „ частного, получаемого в шифраторе 10 цифр, частного, может быть либо рав55 но значению k-разр дов частного, получаемого при делении h -разр дных чисел, лчбо меньше на единицу младшего разр да с весом 2 (в дальнейшем будем говорить соответст венно о точном и неточном значени х k-разр дного частного на выходе шифратора 10). Полученное k -разр дное частное с выхода шифратора 10 поступает на входь множител  умножител  11. На входы множимого умножител  11 поступает И -разр дный дополнительный код делимого с выхода регистра In this case, the value of 1s-bit private получ, obtained in the encoder 10 digits, private, can be either equal to 55 but the value of the k-bits of the particular, obtained by dividing h-bit numbers, is only one less than the smallest bit with a weight of 2 ( In the following, we will speak, respectively, of the exact and inaccurate values of the k-bit quotient at the output of the encoder 10). The resulting k-bit single quotient from the output of the encoder 10 is fed to the input of the multiplier multiplier 11. To the inputs of the multiplicand multiplier 11 enters And-bit additional code divisible from the output register 2. В умножителе 11 формируетс  произведение п -разр дного делител  на k-разр дное частное, причем, если делитель отрицательный, производитс  умножение в дополнительных кодах если делитель положительный, умножитель производит умножение в пр мых кодах. Выбор операции осуществл етс  знаковым разр дом h -разр дного кода делител . Сформированное в умножителе 11 произведение поступает на сумматор-вычитатель 15, с помощью которого формируетс  очеред ной остаток, который определ етс  как разность (сумма) содержимого регистра 1 и произведени , полученного в умножителе 11, если частное положительно (отрицательно). Знак .частного формируетс  на элементе 8 сложени  по модулю два, Таким образом, в кйждом такте работы устройства дл  делени  двоичных чисел формируетс  остаток и k-разр дное частное. Остаток,.полученный на выходе сумматора-вычитател  15, со сдвигом на (k-1) разр дов влево (в сторону старших разр дов ) подаетс  на информационные входы регистра 1. По заднему фронту импульса из блока 4 остаток заносит с  в регистр 1 и служит в следующем такте работы устройства в качестве делимого. k-разр дное частное с выхода шиф ратора 10 поступает еще и в суммато вычитатель 13, в котором осуществл  етс  корректировка частного, сформированного к данному такту. Коррек ци  частного производитс  путем при бавлени  (вычитани ) к (h-k+1) млад шим разр дам частного, полученного данному такту, 1 -разр дного частно го, полученного на текущем такте (причем корректирующей  вл етс  ста ша  его цифра), если частное положительно (отрицательно). По заднему фронту импульса из блока 4 скорректированное частное-записываетс  в 634 регистр-14. Таким образом, за (h-1)/ /(k-1) тактов работы устройства в регистре 14 сформировано rt-разр дное частное в дополнительном коде. Поскольку полученное таким образом частной может быть неточным, то может потребоватьс  коррекци  полученных частного и остатка. Дл  этого из остатка, полученного в регистре 1, необходимо вычесть (прибавить) делитель, если полученное h -разр дное частное положительно (отрицательно ) . Если в результате выполнени  зтой операции возникает перенос из старшего разр да (остаток по модулю меньше делител ), то полученное частное и остаток точные. Если переноса не возникает (остаток по модулю больше делител ), то частное и остаток неточные и их нужно скорректировать . В этом случае к полученному h-разр дному частному необходимо добавл ть (вычесть) единицу, если частное положительно (отрицательно ) . Точным значением остатка  вл етс  результат вычитани  (сложени ) содержимого регистров 1 и регистра 2, если частное положительно (отрицательно ) . В блоке 4 управлени  в исходном состо нии счетчик 20 обнулен. При поступлении сигнала пуска по шине 17 в счетчик 20 записываетс  у .4 число тактов делени . Поскольку число тактов делени  отлично от О, то элемент ИЛИ 21 устанавливаетс  в единичное состо ние и тем самым открьшаетс  элемент И 22. Импульсы генератора 19 начинают поступать на выход блока 4, с выхода которого они поступают на входы управлени  записью регистров 1,и 14, а также на вход вычитани  единицы счетчика 20. По заднему фронту мпульса в счетчике 20 число тактов уменьшаетс  на 1. После выполнетактов счетчик 20 обнуйетс , элемент ИПИ 21 устанавливаетс  в нулевое состо ние и элемент 22 закрываетс . Таким образом, лок 4 переходит в исходное состо ие . Формула изобретени  Устройство дл .делени , содержащее регистры делимого и делител , блок управлени , сумматор округлени , шифратор -цифр частного, блок формировани  частного, умножитель, блок формировани  очередного остатка j перва  группа информационных входов которого соединена с выходами регистра делимого, а втора .группа информационных входов - с выходами умножител , информационные входы которого соединены с выходами шифратора цифр частного и регистра делител , перва  группа входов шифратора цифр частного соединена с выходами сумматора округлени , вход переноса которого соединен с шиной значени  1 устройства, выходы шифратора циф частного соединены с информационными входами блока формировани  частного вход управлени  сдвигом которого со динен с выходом блока управлени  и входом управлени  записью регистра делимого, информационные входы кото рого соединены со сдвигом на k раз. р дов влево ( П - разр дность операндов) с выходами блока формиро вани  очередного остатка, отличающеес  тем, что, с целью расширени  области применени  за счет обеспечени  возможности обрабо ки чисел, представленных дополнительным кодомJ в него йведены две . группы элементов сложени  по модулю два, элемент сложени  по модулю два и триггер знака делимого, блок формировани  частного содержит суммато вычитатель и регистр, а блок форми7636 ровани  очередного остатка - сумматор-вычитатель , информагщонные входы и выходы которого  вл ютс  информационными входами и выходами блока формировани  очередного остатка , а управл ющий вход соединен с управл ющим входом сумматора-вычитател  блока формировани  частного и с выходом элемента сложени  по модулю два, первый вход которого соединен с первыми входами элементов сложени  по модулю два первой группы и выходом триггера знака делимого, а второй вход - с первыми входами элементов сложени  по модулю два второй группы и выходом первого разр да регистра делител , вторые входы элементов сложени  по модулю два первой группы соединены с выходами с первого по (К+3)-й регистра делимого, а выходы - с второй группой входов шифра тора цифр частного,.вторые входы элементов содожени  по модулю два второй группы соединены с выходами разр дов с второго по (k+2)-й регистра делител , а выходы -.с входами разр дов сумматора округлени , в блоке формировани  частного выходы регистра соединены с информационными входами старших разр дов сумматора -вычитате л  , выходы которого соединены с информационными входами регистра, вход управлени  записью которого соединен с входом управлени  сдвигом блока формировани  частного информационные входы которого соединены с входами младших разр дов сумматора-вычитател .2. In the multiplier 11, the product of the n-bit divider by the k-bit quotient is formed, and, if the divider is negative, multiplication is performed in additional codes if the divider is positive, the multiplier multiplies in direct codes. The operation is selected by a sign bit of the h-digit divider code. The product formed in multiplier 11 is fed to adder-subtractor 15, with which the next balance is formed, which is defined as the difference (sum) of the contents of register 1 and the product obtained in multiplier 11, if the quotient is positive (negative). The sign of a private is formed modulo two on the element 8. Thus, in each operation cycle of the device for dividing binary numbers, a remainder and a k-bit quotient are formed. The remainder received at the output of adder-subtractor 15, shifted by (k-1) bits to the left (towards the higher bits) is fed to the information inputs of register 1. On the falling edge of the pulse from block 4, the remainder is entered into register 1 and serves as the next operation of the device as a dividend. The k-bit quotient from the output of the encoder 10 also goes into the totalizer subtractor 13, in which the quotient generated by this clock is corrected. The correction of the quotient is made by adding (subtracting) to (h-k + 1) the younger discharge of the quotient obtained for a given tick, 1-bit quotient obtained at the current tic (and its corrective is a hundred). if the quotient is positive (negative). On the falling edge of the pulse from block 4, the corrected quotient is written to 634 register-14. Thus, for (h-1) / / (k-1) device operation cycles in register 14, an rt-bit quotient is formed in an additional code. Since the private obtained in this way may not be accurate, it may be necessary to correct the resulting private and residual. For this, it is necessary to subtract (add) the divider from the remainder obtained in register 1, if the resulting h is the bit quotient positive (negative). If, as a result of performing this operation, transfer occurs from the higher bit (modulo the remainder is less than the divisor), then the resulting quotient and the remainder are exact. If no transfer occurs (modulo the remainder is greater than the divisor), then the quotient and the remainder are inaccurate and need to be corrected. In this case, it is necessary to add (subtract) a unit to the received h-bit if the partial is positive (negative). The exact value of the remainder is the result of subtracting (adding) the contents of registers 1 and register 2 if the quotient is positive (negative). In block 4 of the control, in the initial state, the counter 20 is reset. When a start signal is received via bus 17, counter 20 records at .4 the number of division cycles. Since the number of division cycles is different from O, the OR element 21 is set to one and the element 22 is thus open. The pulses of the generator 19 begin to flow to the output of block 4, from which they go to the control inputs of the register 1, and 14, As well as to the input of the subtraction of the counter unit 20. On the trailing edge of the pulse in the counter 20, the number of ticks decreases by 1. After the execution of the counter 20 is reset, the FDI element 21 is set to zero and the element 22 is closed. Thus, Lok 4 goes to its original state. The invention The device for dividing, containing registers of a dividend and a divider, a control unit, a rounding adder, an encoder is a private digit, a private generation unit, a multiplier, a next remainder j formation unit whose first group of information inputs is connected to the outputs of the dividend register, and the second group information inputs - with the multiplier outputs, the information inputs of which are connected to the outputs of the encoder of private digits and the register divider, the first group of inputs of the encoder of private digits is connected to the outputs A rounding out dresser whose transfer input is connected to a device value bus 1, the private digit encoder outputs are connected to the information inputs of a private shift control input unit which is connected to the output of the control unit and the control record of the dividend register, whose information inputs are connected to a shift by k time. Rows to the left (P is the width of the operands) with the outputs of the block forming the next residue, characterized in that, in order to expand the scope of application by providing the possibility of processing the numbers represented by the additional code, two of them are introduced into it. modulo two groups of elements, modulo two addition elements and a divisible sign trigger, a private block contains a subtractor and a register, and the next remainder block is a totalizer – subtractor, whose information inputs and outputs are information inputs and outputs of a block of the next balance, and the control input is connected to the control input of the adder-subtractor of the private formation unit and with the output of the modulo two element, the first input of which is connected to the first inputs dami elements modulo two of the first group and the output of the sign of the dividend, and the second input - with the first inputs of the addition elements modulo two of the second group and the output of the first digit of the divider register, the second inputs of the addition elements modulo two of the first group are connected to the outputs from the first the (K + 3) th register of the dividend, and the outputs with the second group of inputs of the encoder of the quotient of the quotient, the second inputs of the modulo two of the second group are connected to the outputs of the bits from the second to (k + 2) th register , and exits -. with entrances r The rounding adder views, in the private formation block, the register outputs are connected to the higher-order information inputs of the adder, the outputs of which are connected to the information inputs of the register, the recording control input of which is connected to the shift control input of the private formation block whose information inputs are connected to the lower ones bits of the adder-subtractor.
SU853906535A 1985-06-07 1985-06-07 Dividing device SU1265763A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853906535A SU1265763A1 (en) 1985-06-07 1985-06-07 Dividing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853906535A SU1265763A1 (en) 1985-06-07 1985-06-07 Dividing device

Publications (1)

Publication Number Publication Date
SU1265763A1 true SU1265763A1 (en) 1986-10-23

Family

ID=21181192

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853906535A SU1265763A1 (en) 1985-06-07 1985-06-07 Dividing device

Country Status (1)

Country Link
SU (1) SU1265763A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1086427, кл. G 06 F 7/52, 1982. Авторское свидетельство СССР № 802962, кл. G 06 F 7/52, 1978. *

Similar Documents

Publication Publication Date Title
SU1265763A1 (en) Dividing device
SU1280624A1 (en) Device for multiplying the floating point numbers
US3500383A (en) Binary to binary coded decimal conversion apparatus
RU1783522C (en) Divider
SU1357946A1 (en) Device for division
SU1520510A1 (en) Dividing device
SU1397903A1 (en) Division device
SU1478212A1 (en) Divider
SU1767497A1 (en) Divider
SU1249551A1 (en) Dividing device
RU1783521C (en) Divider
SU1619255A1 (en) Division device
SU1056183A1 (en) Device for dividing numbers
SU479111A1 (en) A device for simultaneously performing arithmetic operations on a set of numbers
SU742933A1 (en) Device for dividing n-digit decimal numbers
SU1008733A1 (en) Binary number division device
SU1417010A1 (en) Number dividing device
SU1119006A1 (en) Device for dividing numbers
SU408305A1 (en) DEVICE FOR EXTRACTING SQUARE ROOT
SU1481746A1 (en) Device for dividing binary code
SU1285464A1 (en) Dividing device
SU1119008A1 (en) Device for multiplying binary numbers in complement representation
SU1173411A1 (en) Computing device
SU817702A1 (en) Number multiplying device
SU705478A1 (en) Computer device