RU2018932C1 - Multiplication and division matrix unit - Google Patents
Multiplication and division matrix unit Download PDFInfo
- Publication number
- RU2018932C1 RU2018932C1 SU5012468A RU2018932C1 RU 2018932 C1 RU2018932 C1 RU 2018932C1 SU 5012468 A SU5012468 A SU 5012468A RU 2018932 C1 RU2018932 C1 RU 2018932C1
- Authority
- RU
- Russia
- Prior art keywords
- input
- type
- output
- cell
- cells
- Prior art date
Links
Images
Landscapes
- Complex Calculations (AREA)
Abstract
Description
Изобретение относится к вычислительной технике и может быть применено в быстродействующих арифметических устройствах для выполнения операций умножения и деления чисел. The invention relates to computer technology and can be applied in high-speed arithmetic devices for performing operations of multiplication and division of numbers.
Известны матричные устройства для умножения и деления, построенные из ячеек нескольких типов [1]. Known matrix devices for multiplication and division, built from cells of several types [1].
Недостатками этих устройств являются большое количество аппаратуры, неоднородность структуры из-за нерегулярности связей между ячейками и применение ячеек нескольких типов. The disadvantages of these devices are a large number of equipment, heterogeneity of the structure due to irregular connections between cells and the use of several types of cells.
Наиболее близким по технической сущности к изобретению является матричное устройство для умножения и деления, содержащее матрицу ячеек из k строк и m столбцов, группы из k элементов ИЛИ, первую группу из k-1 элементов И, вторую группу из k-1 элементов И, третью группу из m элементов И и дополнительную строку из k ячеек, причем первый и второй выходы i-й ячейки строк с первой по k-ю (i = 1,...,m-1) соединены с первым и вторым входами (i+1)-й ячейки этой же строки соответственно, третий выход (i+1)-й ячейки строк с первой по k-ю соединен с третьим входом i-й ячейки этой же строки, четвертый выход j-й ячейки (j = 1,...,k-1) столбцов с второго по m-й соединен с четвертым входом (j+1)-й ячейки столбцов с первого по (m-1)-й соответственно, пятый выход j-й ячейки столбцов с первого по m-й соединен с пятым входом (j+1)-й ячейки этого же столбца, пятый вход ячеек с первой по m-ю первой строки соединен с соответствующим разрядом первого информационного входа устройства, первый выход ячеек с первой по k-ю m-го столбца соединен с третьим входом этой же ячейки, четвертый выход ячеек с первой по m-ю k-й строки соединен с соответствующим разрядом первого выхода устройства, первый вход режима работы устройства соединен с первыми входами элементов И первой, второй и третьей групп, с первыми входами элементов ИЛИ группы и с первым входом первой ячейки первого столбца, вторые входы элементов ИЛИ группы соединены с соответствующими разрядами второго информационного входа устройства, вторые входы элементов И второй и третьей групп соединены с соответствующими разрядами третьего информационного входа устройства, выходы элементов ИЛИ с первого по k-й группы соединены с вторыми входами ячеек с первой по k-ю первого столбца соответственно, выходы элементов И с первого по m-й третьей группы соединены с четвертыми входами ячеек с первой по m-ю первой строки соответственно, выходы элементов И с первого по (k-1)-й второй группы соединены с четвертыми входами ячеек с второй по k-ю m-го столбца соответственно, выходы элементов И с первого по (k-1)-й первой группы соединены с первыми входами ячеек с второй по k-ю первого столбца соответственно, третий выход ячеек с первой по (k-1)-ю первого столбца соединен с четвертым входом ячеек с второй по k-ю дополнительной строки соответственно и с вторым входом элементов И с первого по (k-1)-й первой группы соответственно, третий выход k-й ячейки первого столбца соединен с четвертым входом k-й ячейки дополнительной строки, четвертый выход ячеек с первой по (k-1)-ю первого столбца соединен с пятым входом ячеек с второй по k-ю дополнительной строки соответственно, первый и второй выходы j-й ячейки дополнительной строки соединены с первым и вторым входами (j+1)-й ячейки этой же строки соответственно, третий выход (j+1)-й ячейки дополнительной строки соединен с третьим входом j-й ячейки этой же строки, первый выход k-й ячейки дополнительной строки соединен с третьим входом этой же ячейки, первый вход первой ячейки дополнительной строки соединен с пятым входом этой же ячейки и входом уровня логического "0" устройства, второй вход режима работы устройства соединен с вторым входом первой ячейки дополнительной строки, четвертый выход ячеек с первой по k-ю дополнительной строки соединен с выходами соответствующих разрядов второго выхода устройства [2]. The closest in technical essence to the invention is a matrix device for multiplication and division, containing a matrix of cells of k rows and m columns, a group of k elements OR, a first group of k-1 elements AND, a second group of k-1 elements AND, a third a group of m AND elements and an additional row of k cells, with the first and second outputs of the i-th cell of rows from the first to k-th (i = 1, ..., m-1) connected to the first and second inputs (i + 1) -th cell of the same row, respectively, the third output of the (i + 1) -th cell of rows one through k is connected to the third input of the i-th cell the same row, the fourth output of the jth cell (j = 1, ..., k-1) of the second to mth columns is connected to the fourth input of the (j + 1) -th cell of the columns from first to (m-1 ) respectively, the fifth output of the jth cell of the columns from the first to the mth is connected to the fifth input of the (j + 1) th cell of the same column, the fifth input of the cells from the first to mth of the first row is connected to the corresponding bit of the first information input of the device, the first output of the cells from the first to the kth mth column is connected to the third input of the same cell, the fourth output of the cells from the first to the mth kth row is connected with the corresponding time the poison of the first output of the device, the first input of the operating mode of the device is connected to the first inputs of the AND elements of the first, second and third groups, with the first inputs of the elements of the OR group and with the first input of the first cell of the first column, the second inputs of the elements of the OR group are connected to the corresponding bits of the second information input devices, the second inputs of the elements And the second and third groups are connected to the corresponding bits of the third information input of the device, the outputs of the OR elements from the first to the k-th group are connected to the second inputs dams of cells from the first to the k-th first column, respectively, the outputs of the And elements from the first to the m-th third group are connected to the fourth inputs of the cells from the first to the m-th first row, respectively, the outputs of the And elements from the first to (k-1) - of the second group are connected to the fourth inputs of cells from the second to the k-th mth column, respectively, the outputs of the elements And from the first to (k-1) of the first group are connected to the first inputs of the cells from the second to k-th first column, respectively the third output of cells from the first to (k-1) -th first column is connected to the fourth input of cells from the second the kth additional row, respectively, and with the second input of AND elements from the first to the (k-1) first group, respectively, the third output of the kth cell of the first column is connected to the fourth input of the kth cell of the additional row, the fourth cell output from the first to the (k-1) th first column is connected to the fifth input of cells from the second to k-th additional row, respectively, the first and second outputs of the j-th cell of the additional row are connected to the first and second inputs of the (j + 1) -th cells of the same row, respectively, the third output of the (j + 1) -th cell of the additional row connected to the third input of the jth cell of the same row, the first output of the kth cell of the additional row is connected to the third input of the same cell, the first input of the first cell of the additional row is connected to the fifth input of the same cell and the input of the logic level “0” of the device, the second input of the operation mode of the device is connected to the second input of the first cell of the additional line, the fourth output of the cells from the first to the k-th additional line is connected to the outputs of the corresponding bits of the second output of the device [2].
Кроме этого, ячейка матричного устройства для умножения и деления содержит одноразрядный сумматор, элемент ИСКЛЮЧАЮЩЕЕ ИЛИ и элемент И, причем первый вход ячейки соединен с ее первым выходом и первым входом элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, второй вход которого соединен с выходом элемента И, первый вход которого соединен с вторым входом ячейки и вторым ее выходом, третий вход которой соединен с входом переноса одноразрядного сумматора, первый вход которого соединен с выходом элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, выход переноса одноразрядного сумматора соединен с третьим выходом ячейки, четвертый вход которой соединен с вторым входом одноразрядного сумматора, выход которого соединен с четвертым выходом ячейки, пятый вход которой соединен с ее пятым выходом и вторым входом элемента И. In addition, the cell of the matrix device for multiplication and division contains a single-bit adder, an EXCLUSIVE OR element, and an AND element, the first input of the cell being connected to its first output and the first input of the EXCLUSIVE OR element, the second input of which is connected to the output of the AND element, the first input of which is connected with the second input of the cell and its second output, the third input of which is connected to the transfer input of the single-bit adder, the first input of which is connected to the output of the EXCLUSIVE OR element, the transfer output of the single-bit adder is Inonii to a third cell output, a fourth input connected to a second input one-bit adder, the output of which is connected to the fourth output of the cell, a fifth input connected to the fifth output and its second input member I.
Недостатком этого устройства является большое количество аппаратуры из-за нерационального использования (особенно при делении чисел) ячеек дополнительной строки. The disadvantage of this device is the large amount of equipment due to the irrational use (especially when dividing numbers) of cells of an additional row.
Целью изобретения является сокращение аппаратурных затрат. The aim of the invention is to reduce hardware costs.
Цель достигается тем, что в матричное устройство для умножения и деления, содержащее матрицу ячеек первого типа из k строк и m столбцов, причем первый и второй выходы i-й ячейки первого типа (i = 1,...,m-1) строк с первой по k-ю соединены с первым и вторым входами (i+1)-й ячейки первого типа этой же строки соответственно, третий выход (i+1)-й ячейки первого типа строк с первой по k-ю соединен с третьим входом i-й ячейки первого типа этой же строки, четвертый выход j-й ячейки первого типа (j = 1,...k-1) столбцов с второго по m-й соединен с четвертым входом (j+1)-й ячейки первого типа столбцов с первого по (m-1)-й соответственно, пятый выход j-й ячейки первого типа столбцов с первого по m-й соединен с пятым входом (j+1)-й ячейки первого типа этого же столбца, пятый вход ячеек первого типа с первого по m-ю первой строки соединен с соответствующим разрядом первого информационного входа устройства, первый выход ячеек первого типа с первой по k-ю m-го столбца соединен с третьим входом этой же ячейки, четвертый выход ячеек первого типа с первой по m-ю k-й строки соединен с соответствующим разрядом первого выхода устройства, введены k ячеек второго типа, причем первый и второй выходы ячеек второго типа с первой по k-ю соединены соответственно с первым и вторым входами ячеек первого типа с первой по k-ю первого столбца соответственно, третий выход первой ячейки второго типа соединен с выходом переполнения устройства, первый вход первой ячейки второго типа соединен с входом уровня логической "1" устройства, второй вход ячеек второго типа с первой по k-ю соединен с соответствующим разрядом второго информационного входа устройства, третий вход ячеек второго типа с первой по k-ю соединен с третьим выходом ячеек первого типа с первой по k-ю первого столбца соответственно, четвертый вход ячеек второго типа с второй по k-ю соединен с четвертым выходом ячеек первого типа с первой по (k-1)-ю первого столбца соответственно, пятый выход ячеек второго типа с первой по (k-1)-ю соединен с пятым входом ячеек второго типа с второй по k-ю соответственно, третий выход ячеек второго типа с второй по k-ю соединен с шестым входом ячеек второго типа с первой по (k-1)-ю соответственно, шестой вход k-й ячейки второго типа соединен с входом логического "0" устройства, четвертый выход ячеек второго типа с первой по (k-1)-ю соединен с первым входом ячеек второго типа с второй по k-ю соответственно и с выходами соответствующих разрядов второго выхода устройства, пятый вход первой ячейки второго типа соединен с входом режима работы устройства, четвертый выход k-й ячейки второго типа соединен с выходом младшего разряда второго выхода устройства, четвертый вход каждой ячейки первого типа первой строки и m-го столбца соединен с входом соответствующего разряда третьего информационного входа устройства, четвертый вход первой ячейки второго типа соединен с входом старшего разряда третьего информационного входа устройства. The goal is achieved in that in a matrix device for multiplication and division, containing a matrix of cells of the first type of k rows and m columns, the first and second outputs of the i-th cell of the first type (i = 1, ..., m-1) of rows from the first to the kth are connected to the first and second inputs of the (i + 1) -th cell of the first type of the same row, respectively, the third output of the (i + 1) -th cell of the first type of rows from the first to k-th is connected to the third input i-th cell of the first type of the same row, the fourth output of the j-th cell of the first type (j = 1, ... k-1) of columns from the second to the m-th is connected to the fourth input of the (j + 1) -th cell of the first type of columns from the first to the (m-1) th, respectively, the fifth output of the j-th cell of the first type of the first to m-th columns is connected to the fifth input of the (j + 1) -th cell of the first type of the same column, the fifth input the first type of cells from the first to the mth first row is connected to the corresponding bit of the first information input of the device, the first output of the first type cells from the first to the kth mth column is connected to the third input of the same cell, the fourth output of the first type cells from the first on the m-th k-th line is connected to the corresponding bit of the first output of the device, in k cells are of the second type, and the first and second outputs of the cells of the second type from the first to the kth are connected respectively to the first and second inputs of the cells of the first type from the first to the kth of the first column, respectively, the third output of the first cell of the second type is connected to the overflow output devices, the first input of the first cell of the second type is connected to the input level of the logical "1" device, the second input of the cells of the second type from the first to the kth is connected to the corresponding bit of the second information input of the device, the third input of the cells of the second type with the kth is connected to the third output of the cells of the first type from the first to the kth of the first column, respectively, the fourth input of the cells of the second type from the second to the kth is connected to the fourth output of the cells of the first type from the first to (k-1) of the first column, respectively, the fifth output of cells of the second type from the first to (k-1) th is connected to the fifth input of cells of the second type from the second to k-th, respectively, the third output of cells of the second type from second to k-th is connected to the sixth input of cells the second type from the first to (k-1) -th, respectively, the sixth input of the k-th cell of the second type is connected to the input logical "0" device, the fourth output of the cells of the second type from the first to (k-1) -th is connected to the first input of the cells of the second type from the second to the k-th, respectively, and with the outputs of the corresponding bits of the second output of the device, the fifth input of the first cell of the second type connected to the input of the operating mode of the device, the fourth output of the k-th cell of the second type is connected to the output of the least significant bit of the second output of the device, the fourth input of each cell of the first type of the first row and m-th column is connected to the input of the corresponding bit of the third information stroke device, the fourth input of the first cell of the second type is connected to the input of the third MSB data input device.
Цель достигается также тем, что ячейка второго типа содержит одноразрядный сумматор, два элемента И, два элемента ИЛИ, элемент 2И-2ИЛИ и элемент НЕ, причем первый вход ячейки соединен с первым входом первого элемента И, выход которого соединен с первым входом первого элемента ИЛИ и с первым выходом ячейки, второй вход которой соединен с первым входом второго элемента ИЛИ, выход которого соединен с вторым выходом ячейки, третий вход которой соединен с входом переноса одноразрядного сумматора, первый вход которого соединен с четвертым входом ячейки, третий выход которой соединен с выходом второго элемента И, первый вход которого соединен с выходом элемента НЕ и первым входом элемента 2И-2ИЛИ, второй вход которого соединен с выходом суммы одноразрядного сумматора, выход переноса которого соединен с вторым входом элемента И и с третьим входом элемента 2И-2ИЛИ, выход которого соединен с четвертым выходом ячейки, пятый вход которой соединен с четвертым входом элемента 2И-2ИЛИ, с вторым входом второго элемента ИЛИ, с вторым входом первого элемента И, с входом элемента НЕ и с пятым выходом ячейки, шестой вход которой соединен с вторым входом пеpвого элемента ИЛИ, выход которого соединен с вторым входом одноразрядного сумматора. The goal is also achieved by the fact that the cell of the second type contains a single-bit adder, two AND elements, two OR elements, 2I-2 OR element and NOT element, the first input of the cell being connected to the first input of the first AND element, the output of which is connected to the first input of the first OR element and with the first output of the cell, the second input of which is connected to the first input of the second OR element, the output of which is connected to the second output of the cell, the third input of which is connected to the transfer input of the single-bit adder, the first input of which is connected to the fourth input cell, the third output of which is connected to the output of the second element And, the first input of which is connected to the output of the element NOT and the first input of the element 2I-2OR, the second input of which is connected to the output of the sum of a single-bit adder, the transfer output of which is connected to the second input of the element And and the third the input of the 2I-2OR element, the output of which is connected to the fourth output of the cell, the fifth input of which is connected to the fourth input of the 2I-2OR element, with the second input of the second OR element, with the second input of the first AND element, with the input of the element NOT and with the fifth output m cell sixth input which is connected to second input of first OR gate whose output is connected to a second input one-bit adder.
Предлагаемое матричное устройство для умножения и деления содержит такие отличительные черты, как k ячеек второго типа с соответствующими связями, которые отсутствуют во всех аналогах и благодаря которым достигается положительный эффект - сокращение аппаратурных затрат. The proposed matrix device for multiplication and division contains such distinguishing features as k cells of the second type with corresponding connections that are absent in all analogues and due to which a positive effect is achieved - a reduction in hardware costs.
Введение k ячеек второго типа, которые при выполнении операции умножения преобразуют двухрядный код старшей части произведения в однорядный, а при выполнении операции деления используются как знаковые ячейки в каждом ряду, позволяет сократить аппаратурные затраты. The introduction of k cells of the second type, which, when performing the multiplication operation, transform the two-row code of the senior part of the work into single-row code, and when performing the division operation, are used as symbolic cells in each row, reduces the hardware costs.
Таким образом, так как в предлагаемом техническом решении имеются отличительные признаки, отсутствующие во всех аналогах и благодаря которым достигается положительный эффект, то техническое решение соответствует критерию "существенные отличия". Thus, since the proposed technical solution has distinctive features that are absent in all analogues and due to which a positive effect is achieved, the technical solution meets the criterion of "significant differences".
На фиг.1 приведена структурная схема матричного устройства для умножения и деления для конкретного случая m = 4 и k = 4; на фиг.2 - функциональная схема ячейки первого типа матричного устройства для умножения и деления; на фиг. 3 - функциональная схема ячейки второго типа матричного устройства для умножения и деления. Figure 1 shows the structural diagram of a matrix device for multiplication and division for a particular case m = 4 and k = 4; figure 2 is a functional diagram of a cell of the first type of matrix device for multiplication and division; in FIG. 3 is a functional diagram of a cell of a second type of matrix device for multiplication and division.
Матричное устройство для умножения и деления (фиг.1) содержит матрицу ячеек 1 первого типа из четырех строк и четырех столбцов и четыре ячейки 2 второго типа, первый 3, второй 4 и третий 5 информационные входы устройства, вход 6 режима работы устройства, входы 70 и 71 уровня логического "0" и уровня логической "1" устройства соответственно, первый 8 и второй 9 выходы устройства и выход 10 переполнения устройства.The matrix device for multiplication and division (Fig. 1) contains a matrix of
Первый и второй выходы i-й ячейки первого типа строк с первой по четвертую (i = 1, 2, 3) соединены с первым и вторым входами (i+1)-й ячейки первого типа этой же строки соответственно, третий выход (i+1)-й ячейки первого типа строк с первой по четвертую соединен с третьим входом i-й ячейки первого типа этой же строки, четвертый выход j-й ячейки первого типа (j = 1, 2, 3) столбцов с второго по m-й соединен с четвертым входом (j+1)-й ячейки первого типа столбцов с первого по третий соответственно, пятый выход j-й ячейки первого типа столбцов с первого по четвертый соединен с пятым входом (j+1)-й ячейки первого типа этого же столбца, пятый вход ячеек первого типа с первой по четвертую первой строки соединен с соответствующим разрядом 31-34 первого информационного входа 3 устройства, первый выход ячеек первого типа с первой по четвертую четвертого столбца соединен с третьим входом этой же ячейки, четвертый выход ячеек первого типа с первой по четвертую четвертой строки соединен с соответствующим разрядом 81-84 первого выхода 8 устройства. Первый и второй выходы ячеек второго типа с первой по четвертую соединены соответственно с первым и вторым входами ячеек первого типа с первой по четвертую первого столбца соответственно, третий выход первой ячейки втрого типа соединен с выходом 10 переполнения устройства, первый вход первой ячейки второго типа соединен с входом 71 уровня логической "1" устройства, второй вход ячеек второго типа с первой по четвертую соединен с соответствующим разрядом 41-44 второго информационного входа 4 устройства, третий вход ячеек второго типа с первой по четвертую соединен с третьим выходом ячеек первого типа с первой по четвертую первого столбца соответственно, четвертый вход ячеек второго типа с второй по четвертую соединен с четвертым выходом ячеек первого типа с первой по третью первого столбца соответственно, пятый выход ячеек второго типа с первой по третью соединен с пятым входом ячеек второго типа с второй по четвертую соответственно, третий выход ячеек второго типа с второй по четвертую соединен с шестым входом ячеек второго типа с первой по третью соответственно, шестой вход четвертой ячейки второго типа соединен с входом 70 логического "0" устройства, четвертый выход ячеек второго типа с первой по третью соединен с первым входом ячеек второго типа с второй по четвертую соответственно с и выходами соответствующих разрядов 91-93второго выхода 9 устройства, пятый вход первой ячейки второго типа соединен с входом 6 режима работы устройства, четвертый выход четвертой ячейки второго типа соединен с выходом младшего разряда 94 второго выхода 9 устройства. Четвертый вход ячейки первого типа первой строки и четвертого столбца соединен с входом соответствующего разряда 52-56третьего информационного входа 5 устройства, четвертый вход первой ячейки второго типа соединен с входом старшего разряда 51 третьего информационного входа 5 устройства.The first and second outputs of the i-th cell of the first type of rows from the first to the fourth (i = 1, 2, 3) are connected to the first and second inputs of the (i + 1) -th cell of the first type of the same row, respectively, the third output (i + 1) the first cell of the first type of rows from the first to the fourth is connected to the third input of the i-th cell of the first type of the same row, the fourth output of the j-th cell of the first type (j = 1, 2, 3) columns from the second to the m connected to the fourth input of the (j + 1) -th cell of the first type of columns from first to third, respectively, the fifth output of the j-th cell of the first type of columns from first to fourth inen with the fifth input of the (j + 1) -th cell of the first type of the same column, the fifth input of the cells of the first type from the first to the fourth of the first row is connected to the corresponding bit 3 1 -3 4 of the
Ячейка первого типа (фиг.2) содержит одноразрядный сумматор 11, элемент И 12, элемент ИСКЛЮЧАЮЩЕЕ ИЛИ 13, входы 14-18 с первого по пятый соответственно и выходы 19-23 с первого по пятый соответственно. The cell of the first type (figure 2) contains a single-
Ячейка второго типа (фиг.3) содержит одноразрядный сумматор 24, первый 25 и второй 26 элементы И, первый 27 и второй 28 элементы ИЛИ, элемент 2И-2ИЛИ 29, элемент НЕ 30, входы 31-36 с первого по шестой соответственно и выходы 37-41 с первого по пятый соответственно. The cell of the second type (figure 3) contains a single-
Ячейка 1 предназначена для выполнения разрядных операций в составе матричного устройства для умножения и деления. Так, при выполнении операции умножения в ячейке 1 осуществляются умножение разряда множителя, поступающего по входу 15 ячейки 1, на разряд множимого, поступающий по входу 18 ячейки 1, и подсуммирование полученного разряда частичного произведения, транзитом проходящего через элемент ИСКЛЮЧАЮЩЕЕ ИЛИ 13 (так как на входе 14 ячейки 1 установлен уровень логического "0"), на одноразрядном сумматоре 11 к разряду суммы частичного произведения, поступающему по входу 17 ячейки 1, с учетом переноса, поступающего по входу 16 ячейки 1 из ячейки, обрабатывающей соседний младший разряд. Результат суммирования поступает в виде значения суммы и переноса на выходы 22 и 21 ячейки 1 соответственно. При выполнении операции деления (используется метод деления без восстановления остатка) в ячейке 1 осуществляется определение разряда нового остатка. Этот разряд получается путем прибавления разряда делителя, поступающего по входу 18 ячейки 1, транзитом проходящего через элемент И 12 (так как на входе 15 ячейки 1 установлен уровень логической "1") и проинвертированного на элементе ИСКЛЮЧАЮЩЕЕ ИЛИ 13 (если на входе 14 ячейки 1 установлен уровень логической "1", в противном случае разряд делителя не преобразовывается), к разряду предыдущего остатка, поступающему по входу 16 ячейки 1, на одноразрядном сумматоре 11 с учетом переноса, поступающего по входу 16 ячейки 1 из ячейки, обрабатывающей соседний младший разряд. Результат этого суммирования поступает в виде значения суммы и переноса на выходы 22 и 21 ячейки 1 соответственно.
Ячейка 2 предназначена для формиpования управляющих сигналов для ячеек 1, а также выполнения операций над старшими разрядами в составе матричного устройства для умножения и деления. Так, при выполнении операции умножения ячейка 2 предназначена для формирования на ее выходе 37 уровня логического "0" для передачи на выход 38 ячейки 2 разряда множителя, поступающего на ее вход 32, для приведения переносов в старшей части произведения, сформиpованной в двухрядном коде в виде разрядов сумм и переносов по входам 34 и 33 ячеек 2. Результат приведения переносов в каждой ячейке 2 поступает в виде значения суммы и переноса на ее выходы 40 и 39 соответственно. При выполнении операции деления ячейка 2 предназначена для формирования на ее выходе 40 разряда частного, равного значению переноса одноразрядного сумматора 24 ячейки 2, на выходе 37 ячейки 2 разряда частного, полученного на предыдущей строке матрицы (либо уровня логической "1" для первой строки), на выходе 38 ячейки 2 - уровня логической "1".
Для определенности работу матричного устройства для умножения и деления рассмотрим на примере реализации устройства, приведенном на фиг.1 для m = 4 и k = 4. For definiteness, we will consider the operation of the matrix device for multiplication and division using an example implementation of the device shown in Fig. 1 for m = 4 and k = 4.
При умножении (на входе 6 режима работы устройства установлен уровень логического "0") на вход 3 поступает четырехразрядное множимое Х1Х2Х3Х4, на вход 4 - четырехразрядный множитель Y1Y2Y3Y4, а на вход 5 можно подать восьмиразрядное слагаемое ZoZ1Z2Z3Z4Z5Z6Z7. Умножение выполняется, начиная
со старших разрядов множителя, при этом на первой строке ячеек 1 выполняется умножение множимого Х1Х2Х3Х4 на старший разряд множителя Y1 и производится сложение получившегося частичного произведения с разрядами Z1Z2Z3Z4, на второй строке ячеек 1 выполняется умножение множимого Х1Х2Х3Х4 на разряд множителя Y2 и производится сложение получившегося частичного произведения с результатом сложения, поступающим с выходов сумм ячеек 1 с второй по четвертую первой строки и разрядом Z5, на третьей строке ячеек 1 выполняется умножение множимого Х1Х2Х3Х4 на разряд множителя Y3 и производится сложение получившегося частичного произведения с результатом сложения, поступающим с выходов сумм ячеек 1 с второй по четвертую второй строки и разрядом Z6, на четвертой строке ячеек 1 выполняется умножение множимого X1Х2Х3Х4 на разряд множителя Y4 и производится сложение получившегося частичного произведения с результатом сложения, поступающим с выходов сумм ячеек 1 с второй по четвертую третьей строки, и разрядом Z7, на ячейках 2 производится приведение переносов в старшей части произведения, сформированной в двухрядном коде и поступающей в виде сумм и переносов с выходов 22 и 21 ячеек 1 первого столбца с учетом разряда Zо. В результате на выходах 10, 9 и 8 формируется произведение
P = X1X2X3X4 * Y1Y2Y3Y4 +
+ ZoZ1Z2Z3Z4Z5Z6Z7, четыре младших разряда которого поступают на выход 8 с выходов 22 ячеек 1 четвертой строки, четыре старших разряда - на выход 9 с выходов 40 ячеек 2, а сигнал переполнения - на выход 10 переполнения устройства.When multiplying (at the input 6 of the device operation mode the logical level is “0”), input 4 receives a four-digit multiplier X 1 X 2 X 3 X 4 , input 4 receives a four-digit multiplier Y 1 Y 2 Y 3 Y 4 , and
from the most significant bits of the factor, while on the first line of
P = X 1 X 2 X 3 X 4 * Y 1 Y 2 Y 3 Y 4 +
+ Z o Z 1 Z 2 Z 3 Z 4 Z 5 Z 6 Z 7 , the four least significant bits of which are
При делении (на входе 6 режима работы устройства установлен уровень логической "1") на вход 3 поступает четырехразрядный делитель 0, Х1Х2Х3Х4, на вход 5 - восьмиразрядное делимое Zo, Z1Z2Z3Z4Z5Z6Z7. Предполагается, что делитель является нормализованной положительной дробью, а делимое меньше или равно удвоенному делителю.When dividing (at the input 6 of the device operation mode the logical level is “1”), input 4 receives a four-digit divider 0, X 1 X 2 X 3 X 4 ,
Так как на входе 7 устройства присутствует уровень логической "1", то в первой строке ячеек 1 и в первой ячейке 2 из делимого вычитается делитель (в устройстве вычитание делителя из делимого или очередного остатка заменяется сложением с дополнительным кодом делителя). На выходе 40 первой ячейки 2 формируется старший разряд частного, а на выходах 22 ячеек 1 первой строки - разряды очередного остатка, который поступает на входы 17 ячеек 1 второй строки и к которому прибавляется прямой или дополнительный код делителя в зависимости от значения сигнала на выходе 40 первой ячейки 2. Если сигнал на выходе 40 равен единице, то прибавляется дополнительный код делителя, в противном случае - прямой. Since the logic level “1” is present at
На выходе 40 второй ячейки 2 формируется второй разряд частного, а на выходах 22 ячеек 1 второй строки - разряды очередного остатка, и т.д. В итоге на выходах 40 ячеек 2 с первой по четвертую формируются четыре разряда частного, а на выходах 22 ячеек 1 четвертой строки - четыре разряда остатка, причем знаковый разряд остатка формиpуется на выходе 40 четвертой ячейки 2, при это положительному остатку соответствует уровень логической "1", а отрицательному - уровень логического "0". At the
Произведем сравнение предлагаемого и известного устройств по аппаратурным затратам. Let us compare the proposed and known devices for hardware costs.
Для выполнения деления восьмиразрядного делимого на четырехразрядный делитель в известном устройстве требуется 24 ячейки первого типа (матрица 6*4 ячеек первого типа) и 16 элементов типа И, ИЛИ. В предлагаемом устройстве для этого случая требуется 16 ячеек первого типа и четыре ячейки второго типа (см. фиг.1). Так как ячейка второго типа по аппаратурным затратам соответствует ячейке первого типа плюс четыре элемента типа И, ИЛИ, НЕ, то в предлагаемом устройстве требуется количество аппаратуры, равное аппаратуре 20-и ячеек первого типа и 16-и элементов типа И, ИЛИ, НЕ. Следовательно, для построения предлагаемого устройства требуется меньше аппаратуры, чем для известного на величину, равную количеству аппаратуры четырех ячеек первого типа. To perform the division of an eight-bit divisible by a four-bit divider in the known device, 24 cells of the first type (a matrix of 6 * 4 cells of the first type) and 16 elements of the type AND, OR are required. In the proposed device for this case requires 16 cells of the first type and four cells of the second type (see figure 1). Since the cell of the second type in terms of hardware costs corresponds to the cell of the first type plus four elements of the type AND, OR, NOT, the proposed device requires an amount of equipment equal to the equipment of 20 cells of the first type and 16 elements of the type AND, OR, NOT. Therefore, to build the proposed device requires less equipment than for the known one by an amount equal to the number of equipment of four cells of the first type.
Для выполнения умножения четырехразрядного множимого на четырехразрядный множитель в известном и предлагаемом устройствах требуется равное количество аппаратуры. Отметим, что в известном устройстве на аппаратуре, необходимой для выполнения умножения четырехразрядного множимого на четырехразрядный множитель, можно выполнить деление только семиразрядного делимого на трехразрядный делитель, а в предлагаемом (при тех же условиях) - выполнить деление восьмиразрядного делимого на четырехразрядный делитель. Таким образом, в предлагаемом матричном устройстве для умножения и деления сокращаются аппаратурные затраты. To perform the multiplication of a four-digit multiplier by a four-digit factor in the known and proposed devices, an equal amount of equipment is required. Note that in the known device on the equipment necessary to multiply a four-digit multiplier by a four-digit factor, it is possible to divide only a seven-digit divisible by a three-digit divider, and in the proposed (under the same conditions) division of an eight-digit divisible by a four-digit divider. Thus, in the proposed matrix device for multiplication and division, hardware costs are reduced.
Технико-экономическое преимущество предлагаемого матричного устройства для умножения и деления по сравнению с устройством-прототипом заключается в сокращении аппаратурных затрат примерно на 16%. The technical and economic advantage of the proposed matrix device for multiplication and division compared with the prototype device is to reduce hardware costs by about 16%.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU5012468 RU2018932C1 (en) | 1991-07-03 | 1991-07-03 | Multiplication and division matrix unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU5012468 RU2018932C1 (en) | 1991-07-03 | 1991-07-03 | Multiplication and division matrix unit |
Publications (1)
Publication Number | Publication Date |
---|---|
RU2018932C1 true RU2018932C1 (en) | 1994-08-30 |
Family
ID=21589480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU5012468 RU2018932C1 (en) | 1991-07-03 | 1991-07-03 | Multiplication and division matrix unit |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU2018932C1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2498393C1 (en) * | 2012-07-27 | 2013-11-10 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования Вятский государственный университет ФГБОУ ВПО "ВятГУ" | Method of exact division of integer binary numbers, starting from least significant bit |
-
1991
- 1991-07-03 RU SU5012468 patent/RU2018932C1/en active
Non-Patent Citations (2)
Title |
---|
1. White G. A versatill celluar arrays for binary arithmetic.- Radio and Electronic - Engineer, 1971, v.41, N 10, p.463-464. * |
2. Авторское свидетельство СССР N 1024910, кл. G 06F 7/52, 1982. * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2498393C1 (en) * | 2012-07-27 | 2013-11-10 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования Вятский государственный университет ФГБОУ ВПО "ВятГУ" | Method of exact division of integer binary numbers, starting from least significant bit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4594678A (en) | Digital parallel computing circuit for computing p=xy+z in a shortened time | |
JPS61502288A (en) | X×Y bit array multiplier/accumulator circuit | |
US4868777A (en) | High speed multiplier utilizing signed-digit and carry-save operands | |
US4104729A (en) | Digital multiplier | |
US5111422A (en) | Circuit arrangement for calculating product sums | |
US6065033A (en) | Wallace-tree multipliers using half and full adders | |
RU2018932C1 (en) | Multiplication and division matrix unit | |
US4839850A (en) | Apparatus for bit-parallel addition of binary numbers | |
US3462589A (en) | Parallel digital arithmetic unit utilizing a signed-digit format | |
JPH0418336B2 (en) | ||
US3890496A (en) | Variable 8421 BCD multiplier | |
EP0067862B1 (en) | Prime or relatively prime radix data processing system | |
SU1247863A1 (en) | Matrix device for dividing | |
SU1541599A1 (en) | Matrix computing device | |
SU1149245A1 (en) | Array calculating device | |
RU2386998C1 (en) | Method and device for binary-coded decimal multiplication | |
SU1124284A1 (en) | Matrix computing device | |
SU1578711A1 (en) | Multiplying device | |
SU1134948A1 (en) | Matrix calculating device | |
SU1073771A1 (en) | Device for multiplying binary-coded decimal digits | |
SU1462297A1 (en) | Matrix division device | |
SU1259254A1 (en) | Device for multiplying numbers | |
SU1310810A1 (en) | Device for multiplying with accumulation | |
SU1283751A1 (en) | Device for multiplying complex numbers | |
SU1670685A1 (en) | Multiplier unit |