SU1298739A1 - Device for shifting operands - Google Patents
Device for shifting operands Download PDFInfo
- Publication number
- SU1298739A1 SU1298739A1 SU853969495A SU3969495A SU1298739A1 SU 1298739 A1 SU1298739 A1 SU 1298739A1 SU 853969495 A SU853969495 A SU 853969495A SU 3969495 A SU3969495 A SU 3969495A SU 1298739 A1 SU1298739 A1 SU 1298739A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- code
- node
- shift
- output
- Prior art date
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в высокопроизводительных системах обработки информации. Целью изобретени вл етс расширение функциональных возможностей за счет выполнени арифметических и циклических сдвигов. Поставленна цель достигаетс за счет того, что устройство, содержащее узел I односторонних сдвигов, преобразователь 2 пр мого кода в дополнительный код, коммутатор 4 и блок 5 элементов И, содержит узел 3 дешифрации с соответствующими св з ми. 4 ил. i (Л с: 1/7 Фиг.1The invention relates to computing and can be used in high-performance information processing systems. The aim of the invention is to enhance the functionality by performing arithmetic and cyclic shifts. This goal is achieved due to the fact that the device containing node I of one-sided shifts, converter 2 direct code to an additional code, switch 4 and block 5 of elements I, contain node 3 decryption with appropriate connections. 4 il. i (L s: 1/7 Figure 1
Description
Изобретение относитс к области вычислительной техники и может быть использовано в высокопроизводительных системах обработки информации.The invention relates to the field of computing and can be used in high-performance information processing systems.
Целью изобретени вл етс рас- ширение функциональных возможностей за счет выполнени арифметических и циклических сдвигов.The aim of the invention is to enhance the functionality by performing arithmetic and cyclic shifts.
На фиг. 1 изображена структурна схема устройства дл сдвига операн- дон; на фиг. 2 - функциональна схема узла односторонних сдвигов при количестве разр дов, равном восьми; на фиг. 3 - схема преобразовател пр мого кода в дополнительный код; на фиг. 4 - функциональна схема узла дешифрации.FIG. 1 shows a block diagram of a device for shifting the operand; in fig. 2 - functional diagram of the one-way shifts node with the number of bits equal to eight; in fig. 3 is a diagram of a direct code to additional code converter; in fig. 4 - a functional decoding node scheme.
Устройство дл сдвига операндов (фиг.1) содержит узел 1 односторонних сдвигов, преобразователь 2 пр мо го кода в дополнительный код, узел 3 дешифрации, коммутатор А, блок 5 элементов И, вход 6 знака устройства , информационный вход 7 устройства , вход 8 типа сдвига устройства, выходы 9-12 узла 3 дешифрации, инфор-, мационные входы 13 и 14 узла 1 односторонних сдвигов, вход 15 величины сдвига устройства, вход 16 величины сдвига узла 1 односторонних сдвигов выход 17 устройства.The device for shifting operands (FIG. 1) contains a node 1 for one-sided shifts, a direct code-to-additional code converter 2, a decryption node 3, switch A, a block of 5 And elements, an input 6 of the device sign, information input 7 of the device, input 8 device shift, outputs 9-12 of decoding node 3, informational and mation inputs 13 and 14 of node 1 for one-sided shifts, input 15 for the device shift, input 16 for the shift for node 1 for one-side shifts for device 17.
Узел 1 односторонних сдвигов (фиг.2) содержит мультиплексоры 18.Site 1 one-way shifts (figure 2) contains multiplexers 18.
Преобразователь 2 пр мого кода вConverter 2 direct code to
дополнительный код (фиг.З) содержит группы 19 и 20 элементов ИСКЛЮЧАЮЩЕЕ ИЛИ, группу 21 элементов И.Узел 3 дешифрации (фиг,4) содержит элемент НЕ 22, элемент И-НЕ 23, элемент ИЛИ 24, :элемент НЕ 25, элементы И 26,27.the additional code (FIG. 3) contains groups 19 and 20 of the EXCLUSIVE OR elements, a group of 21 elements I. The decryption node 3 (FIG, 4) contains the element NOT 22, the element AND-NO 23, the element OR 24,: the element NOT 25, the elements And 26.27.
Цифры над входами (выходами) указывают номера разр дов.The numbers above the inputs (outputs) indicate the number of bits.
Узел 1 односторонних сдвигов пр ед- назначен дл выполнени односторонних сдвигов вправо кодов, установленных на входе 14. В освобождаемые разр ды вдвигаютс биты кода, установленного на входе 13. На входе 16 устанавливаетс код величины сдвига, который пе- редаетс на управл кацие входы всех мультиплексоров 18. На выходе 17 формируетс сдвинутый код.The node 1 for one-way shifts is one-assigned to perform one-way shifts for the right of the codes set at input 14. The bits of the code set at input 13 are pushed into the bits to be released. At the input 16, the code for the value of the shift is transmitted to all control inputs multiplexers 18. A shifted code is generated at output 17.
Преобразователь .2 предназначен дл Converter .2 is intended for
преобразовани пр мого кода, установ ленного на входе 15, в дополнительный код при формировании на выходе 12 единичного сигнала.converting the direct code set at input 15 into an additional code when generating a single signal at output 12.
5 five
О 5 About 5
20 20
2525
3535
0 0
г „ g „
5555
При установке на выходе 12 логического нул код со входа 15 транзитом передаетс на выход.When installed at the output 12 of the logical zero, the code from the input 15 is transited to the output.
Узел 3 дешифрации предназначен и, дл дешифрации кода типа сдвига, устанавливаемого на входе 8 с учетом кода величины сдвига на входе 15, и формировани управл юш1их сигналов на выходах 9-12 при следующих кодах типов сдвига, устанавливаемых на разр дах 0/2J входа 8; 001 - сдвиг вправо логический (ПЛ); 011(010) - сдвиг влево логическийDecoding node 3 is designed to decipher the type of shift code set at input 8, taking into account the code of the shift value at input 15, and generate control signals at outputs 9-12 with the following shift type codes set at bits 0 / 2J of input 8 ; 001 - right shift logical (PL); 011 (010) - left shift logical
(ЛЛ); 00 - сдвиг вправо арифметический(LL); 00 - arithmetic right shift
(ПА) ;(PA);
110 - сдвиг влево циклический (ЛЦ); 100 - сдвиг вправо циклический (ПЦ).110 - cyclic left shift (LC); 100 - right shift cyclical (PC).
Коммутатор 4 предназначен дл передачи на вход 13 узла 1 либо кода со входа 7 (без учета крайнего левого разр да), либо кода знака со входа 6 на все разр ды выхода, либо формировани нулевого кода на входе 13 узла.1.The switch 4 is designed to transmit to input 13 of node 1 either a code from input 7 (without taking into account the leftmost bit), or a sign code from input 6 to all output bits, or to form a zero code at input 13 of the node.
При этом, есл и на выходе 11 установлена логическа единица, то на выходе коммутатора 4 формируетс нулевой Код, независимо от значени сигнала на выходе 10. Если на выходе 11 установлен логический ноль, то при установке на выходе 10 логической единицы на все разр ды входа 13 передаетс код знака со входа 6. При установке на выходе 10 логического нул на вход 13 передаетс код со входа 7.At the same time, if a logical unit is set at the output 11, then a zero code is formed at the output of the switch 4, regardless of the signal value at the output 10. If a logical zero is set at the output 11, then at the output 10 of the logical unit for all bits of the input 13, the sign code is transmitted from input 6. When the logical zero is set at output 10, the code from input 7 is transmitted to input 13.
Устройство дл сдвига операндов функционирует следующим образом.The device for shifting the operands operates as follows.
Исходное состо ние устройства может быть произвольным. Дл осуществлени сдвига на входе 7 устройст ва устанавливают код сдвигаемого операнда , на входе 6 устанавливают код знака операнда (при арифметическом сдвиге, вправо). На входе 8 устанавливают код типа сдвига. В устройстве предусмотрены следующие типы сдвигов и соответствующие им коды: сдвиг вправо логический (Ш1); сдвиг влево логический (ЛЛ); сдвиг вправо арифметический (ПА); сдвиг влево циклический (ЛЦ); сдвиг вправо циклический (ПЦ).The initial state of the device can be arbitrary. To implement the shift at the input 7 of the device, set the code of the shifted operand, at the input 6 set the sign code of the operand (for the arithmetic shift, to the right). Input 8 sets the shift type code. The device provides the following types of shifts and the corresponding codes: right shift logical (Ш1); left shift logical (LL); Arithmetic right shift (PA); left shift cyclical (LC); right shift cyclical (PC).
На входе 15 усуанавливаетс код величины сдвига.At input 15, the shift magnitude code is established.
На выходе 17 формируетс код сдвинутого операнда.At output 17, a shifted operand code is generated.
Рассмотрим бо.пее подробно работу устройства при каждом типе сдвига на величину, не равную нулю, т.е. при кодах на входе 15, отличных от нулевого . При любом типе сдвига в узле 1 осуществл ютс односторонние сдвиги вправо кода, установленного на входе 14, с вдвиганием в освобождаемые разр ды битов кода, установленного на входе 13. При сдвиге вправо логическом (ПЛ) на выходах 10 и 11 устанавливаетс код 11. Следовательно, на входе 13 сформируетс нулевой код Код с входа 15 транзитом передаетс на вход 16 узла 1, так как на выходеLet us consider in more detail the operation of the device for each type of shift by an amount not equal to zero, i.e with input codes of 15, other than zero. For any type of shift in node 1, one-sided shifts to the right of the code set at input 14 are performed by pushing the code set at input 13 to the bits of the code set at input 13. When the shift to the right, the code 11 is set to 11. Therefore , a zero code is formed at the input 13. The code from the input 15 is transmitted to the input 16 of node 1, since the output
12установлен логический ноль. Код со входа 7 транзитом передаетс на вход 1А, так как на выходе 9 установлена логическа единица. В узле 1 осуществл етс сдвиг кода, установленного на входе 14, вправо на величину , заданную кодом на входе 15.12 is set to a logical zero. The code from input 7 is transited to input 1A, since a logical unit is established at output 9. In node 1, the code set at input 14 is shifted to the right by the value specified by code at input 15.
В освобождаемые разр ды вдвигаетс логический ноль, так как на входеA logical zero is pushed into the bits to be released, since at the input
13сформирован нулевой код. На выходе 17 формируетс логический сдвинутый вправо код.13 formed a zero code. At output 17, a logical right-shifted code is generated.
Аналогично осуществл етс сдвиг вправо арифметический (ПА), с тем отличием , что в освобождаемые разр ды в узле 1 вдвигаетс значение знака. На всех разр дах входа 13 установлено значение знака со входа 6 устройства , так как на выходах 10 и 11 установлен код 10.The arithmetic (PA) is shifted to the right in the same way, with the difference that the sign value is pushed into the discharged bits in the node 1. All digits of input 13 are set to the character from input 6 of the device, since code 10 is set at outputs 10 and 11.
Аналогично осуществл етс сдвиг вправо циклический (ПЦ), с тем отличием , что в освобождаемые разр ды в узле 1 осуществл етс вдвигание бит кода, установленного на входе 7. Этот код (без крайнего левого разр да ) передан на вход 13 узла 1, так как на выходах 10 и 11 установлен код 00..The cyclic right shift is performed in the same way, with the difference that the bits of the code set at input 7 are inserted into the discharged bits in node 1. This code (without the leftmost bit) is transmitted to input 13 of node 1, so as on outputs 10 and 11, code 00 is set.
При сдвиге влево логическом (ПЛ) на выходах 10 и 11 устанавливаетс код 00. На вход 13 узла 1 передаетс код со входа 7 устройства (без крайнего левого бита). На входе 14 формируетс нулевой код, так как на выходе 9 установлен логический ноль. На входе 16 устанавливаетс дополнительный код от кода, установленного на входе 15, так как на выходе 12 устанавливаетс логическа единица. В узел 1 осуществл етс сдвиг вправо нулевого кода, установленного на входе 14, на величину.When shifting to the left logical (PL) code 00 is set at outputs 10 and 11. The code from input 7 of the device is transmitted to input 13 of node 1 (without the leftmost bit). A zero code is generated at input 14, since a logical zero is set at output 9. An additional code is established at the input 16 from the code set at the input 15, since a logical unit is established at the output 12. In node 1, the zero code set at input 14 is shifted to the right by an amount.
определ емую дополнительным кодом от заданного кода величины сдвига на входе 15. В освобождаемые разр ды в узле 1 вдвигаютс биты сдвигае- мого кода, начина с крайнего правого бита, так как этот код установлен на входе 13 узла 1. В итоге на выходе 17 устройства сформируетс сдвинутый логически влево код операнда .determined by an additional code from a given code of the shift value at input 15. The bits of the shifted code are moved into the discharged bits in node 1, starting with the rightmost bit, since this code is set at input 13 of node 1. As a result, at device 17 the operand code shifted logically to the left is generated.
Аналогично осуществл етс сдвиг влево циклический, с тем отличием, что в крайние правые разр ды сдвинутого кода будут переданы сигналыSimilarly, the left-hand cyclic shift is performed, with the difference that signals will be transmitted to the rightmost bits of the shifted code.
(биты) крайних левых разр дов сдвигаемого кода, так как он передаетс со входа 7 на вход 14. На выходе 9 устанавливаетс логическа единица и в узле 1 осуществл етс сдвиг вправо на величину, равную дополнительному коду значени на входе 15 устройства .(bits) of the leftmost bits of the shifted code, as it is transmitted from input 7 to input 14. At output 9, a logical unit is set and in node 1 the value is shifted to the right by an amount equal to the additional code of the value at the input 15 of the device.
При нулевом коде величины сдвига на входе 15 устройства на входе 16With a zero code, the magnitude of the shift at the input 15 of the device at the input 16
узла 1 также устанавливаетс нулевой код. В узле 1 осуществл етс нулевой сдвиг. На выходе 9 узла 3 устанавливаетс логическа единица независимо от кода на входе 8. В результате код со входа 7 транзитом передаетс на выход 17 устройства, что и требуетс при нулевых сдвигах.Node 1 also sets a zero code. Node 1 is zero offset. The output 9 of node 3 is set to a logical unit regardless of the code at input 8. As a result, the code from input 7 is transited to the output 17 of the device, which is required for zero shifts.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853969495A SU1298739A1 (en) | 1985-10-25 | 1985-10-25 | Device for shifting operands |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853969495A SU1298739A1 (en) | 1985-10-25 | 1985-10-25 | Device for shifting operands |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1298739A1 true SU1298739A1 (en) | 1987-03-23 |
Family
ID=21202740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853969495A SU1298739A1 (en) | 1985-10-25 | 1985-10-25 | Device for shifting operands |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1298739A1 (en) |
-
1985
- 1985-10-25 SU SU853969495A patent/SU1298739A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4139899, кл. 340-172,5, опублик. 1979. Патент US № 3887799, кл. 235-164, опублик. 1975. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR910003486A (en) | Bit order switch | |
SU1298739A1 (en) | Device for shifting operands | |
US5729725A (en) | Mask data generator and bit field operation circuit | |
RU2018927C1 (en) | Modulo 3 adder | |
SU1300462A1 (en) | Device for adding | |
RU2022332C1 (en) | Orthogonal digital signal generator | |
SU1295527A1 (en) | System for decoding binary sequences | |
RU2021630C1 (en) | Modulo 3 adder | |
SU1259249A1 (en) | Sequential adder of codes with irrational bases | |
RU2051406C1 (en) | Device for generation of faber-schauder signals | |
SU1246091A1 (en) | Device for extracting square root | |
SU1605935A3 (en) | Method and apparatus for recoding m-digit coded words | |
SU976440A2 (en) | Device for multiplying numbers by modulus | |
SU1136144A1 (en) | Cray code-to-binary code translator | |
SU1001086A1 (en) | Device for multiplying by modulus | |
RU2149442C1 (en) | Device for modulo seven multiplication | |
SU1689940A1 (en) | Device for driving system of discrete orthogonal functions | |
SU1228098A1 (en) | Device for shifting information | |
SU1269128A1 (en) | Device for random generation of permutations | |
SU945988A1 (en) | Device for majority decoding of binary codes | |
SU1283753A1 (en) | Device for dividing binary numbers | |
RU2020556C1 (en) | Device for forming overflow signal | |
SU1282135A1 (en) | Device for shifting information with checking | |
SU1283749A2 (en) | Device for multiplexing n-bit binary code | |
SU1298735A1 (en) | Device for replacing and mixing number sequences |