SU657433A1 - Information shifting arrangement - Google Patents

Information shifting arrangement

Info

Publication number
SU657433A1
SU657433A1 SU772464708A SU2464708A SU657433A1 SU 657433 A1 SU657433 A1 SU 657433A1 SU 772464708 A SU772464708 A SU 772464708A SU 2464708 A SU2464708 A SU 2464708A SU 657433 A1 SU657433 A1 SU 657433A1
Authority
SU
USSR - Soviet Union
Prior art keywords
bits
shift
shift register
reverse
register
Prior art date
Application number
SU772464708A
Other languages
Russian (ru)
Inventor
Михаил Григорьевич Дубров
Олег Андреевич Соколов
Original Assignee
Предприятие П/Я А-3327
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 Предприятие П/Я А-3327 filed Critical Предприятие П/Я А-3327
Priority to SU772464708A priority Critical patent/SU657433A1/en
Application granted granted Critical
Publication of SU657433A1 publication Critical patent/SU657433A1/en

Links

Landscapes

  • Complex Calculations (AREA)
  • Error Detection And Correction (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

Изобретение огносигс  к обпасги авгомагики и вы числительной техники и мо жет быть использовано в устройствах сдвига чисел. Известно устройство дл  сдвига инфор мации, содержащее регистр сдвига, в котором осуществл етс  сдвиг чисел, узлы управлени  сдвигом l. Недостатком подобных устройств  &л етс  невысокое быстродействие, так ка в этих устройствах сдвиг числа на N разр дов осуществл етс  aa-N тактов. Пр большой величине N врем  выполнени  оп рации сдвига в подобных устройствах велико . Наиболее близким по технической сути к за вл емому  вл етс  устройство дл  сдвига чисел, содержащее реверсивный регистр сдвига, два элемента И, реверсивный счетчик, две схемы сравнени  и блок управлени , причем выход млаг.. шего разр да реверсивного регистра сдви га подключен к первому входу первого, а Ы)1ход старшего разр да .- к первому входу второго элемента И, выход первого элемента И подключен ко входу старшего, а выход второго элемента И - к входу младшего разр да реверсивного регнсура сдвига, установочные входы реверсивного счетчика и входы первой схемы сравнени  подключены к информационным входам устройства, выходы реверсивного счетч ка подключены ко входам второй схемы сравнени , выходы схем сравнени  - ко входам блока управлени , выходы которого подключены к соответствующим управл к дим входам реверсивного регистра сдвига и реверсивного счетчика 2. Однако в этом устройстве после выполнени  операции сдвига возможно налзгЕчие дополнительной информации, что искажает достоверность результата операции. Целью изобретени   вл етс  повышение достоверности сдвига информации. Поставленна  цель достигаетс  тем, что введен регистр сдвига, установочный вход которого подключен к выходу первой схемы сравнени , а управл к иие входы к соогЕ4етствующим управл ющим входам реверсивного регистра сдвига и к выходу первой схемы сравнени , выход младшего разр да дополнительного реверсивного регистра подключен ко второму входу первого, выход старшего разр да . ко второму входу второго элемента И, а выходы разр дов дополнительного регистра сдвига соединены со входами усгановки в ноль одноименных разр дов реверсивно го регистра сдвига. На чертеже приведена схема устройства Устройство содержит реверсивный регистр 1 сдвига, элементы 2, 3 И, регистр 4 сдвига, блок 5 управлени , схемы 6, 7 сравнени , реверсивный счетчик 8. Выход младшего разр да реверсивного регистра 1 с 1вига через элемент 2 И ключен к входу старшего разр да, а выход старшего разр да через элемент 3 И подключен к входу младшего разр да. Управл ющие входы сдвига реверсивного регистра 1 сдвига и регистра 4 сдвига под ключены соответственно к первому и вто рому выходам блока 5 управлени , третий и четвертый выходы которого соединены соответственно со входами сложени  и вычитани  реверсивного счегчика 8. Выход реверсивного счегчика 8 подключен . ко входу схемы 6 сравнени , выход которой соединен с первым входом блока 5 управлени  и с управп клдим входом чтени  регистра 4 сдвига. Первый выход схе мы 7 сравнени  соединен со вторым входом блока 5 управлени , а второй выход соединен со входом установки в I регистра 4 сдвига. Выходы разр дов регист ра 4 сдвига соединены со входами установки в О соответствующих разр дов ч реверсивного регистра 1 сдвига, а выходы старшего и младшего разр дов соединены со вторыми входами элементов 2, 3 И соответственно. Устройство работает следующим образом . При величине сдвига N € у (п. - числ разр дов реверсивного регистра 1 сдвига осуществл етс  сдвиг числа, нахоД5пцегос в реверсивном регистре 1 сдвига в соответствующую сторону на заданное число разр дов. При величине сдвигаЫ у в реверсивном регистре 1 сдвига осушествл етс  циклический сдвиг числа в противополож ную сторону (по сравнению с заданным направлением сдвига), при этом сдваг осуществл етс  на{п-Ы) разр дов. После окончани  операции сдш5га в реверсивном регистре 1 сдвига фиксируютс  только те разр ды исходного числа, которые поступили по цепи переноса, остальные разр ды устанавливаютс  в О. Сигналы сдвига вырабатываютс  блоком 5 ynpai лени . Величина сдвига поступает в реверсивный счетчик 8 и схему сравнени  7. 7 сравнени  вырабатывает сигналы управлени  направлением сдвига, которые поступают в блок 5 управлени . В реверсивном счетчике 8 осуществл етс  подсчет числа сдвигов, при этом реверюив- ный счетчик 8 работает или на вычитание (N4-9- на сложение(Ы J-), сигналы сложени  и вычитани  поступают от блока 5 управлени . Момент окончани  операции сдвига фиксируетс  схемой 6 сравнени  при нулевом состо нии реверсивного счетчика 8, или когда его состо ние равно П . Регистр 4 сдвига используетс  дл  фиксации результата сдвига и дл  управлени  элементами 2, 3 И при циклическом сдвиге. При величине сдвигаК у перед началом сдвига сигналом с выхода схемы 7 сравнени  все разр ды регистра сдвига устанавливаютс  в 1. Сигналы сдвига , поступающие в реверсивный регистр 1 сдвига одновременно поступают на управление сдвигом в регистр 4 сдвига. Код в регистре 4 сдвига сдвигаетс  на то же количество .разр дов и в ту же сторону, что и число в реверсивном регистре 1 сдвига. Так как сдвиг в регистре 4 сдвига не циклический, после окончани  сдвига (n-N) разр дов в нем будут иметь нулевое значение: при сдвиге влево(n-N) младших разр дов, при сдвиге BnpaBo(ii-N) старших разр дов. После окончани  сдвига по сигналу от схемы 6 сравнени  осуществл етс  чтение содержимого регистра 4 сдвига и, в результате, (и-N) разр дов реверсивного регистра 1 сдвига сохран т свои значени , а остальные будут установлены в Cf сигналами с выходов разр дов регистра 4 сдвига. Сигналы с выходов старшего и младшего раэр дов (сигналы переполнени ) используютс  дл  управлени  элементами 2, 3 И в цеп х переноса реверсивного регистра 1 . сдвига. При величине сдвигаЫ - - все разр ды регистра 4 сдвига имеют нулевое значение (перед сдвигом не устанавливаютс  в ) и поэтому чтение содержимого регистра 4 сдвига в конце опера1ЩИ не искажает результата операции в реверсивном регистре 1 сдвига.The invention of fire ogosigs to automagics and computational techniques can be used in devices for shifting numbers. A device for shifting information is known, which contains a shift register in which numbers are shifted, shift control nodes l. The disadvantage of such devices & low speed, as in these devices the shift of the number by N bits is carried out aa-N cycles. For large N, the time it takes to perform a shift operation in such devices is large. The closest in technical terms to the claimed is a device for shifting numbers, containing a reversible shift register, two AND elements, a reversible counter, two comparison circuits and a control unit, with the output of the lower reversing shift register connected to the first the input of the first, and Ы) 1 input of the higher discharge .- to the first input of the second element I, the output of the first element I connected to the input of the older one, and the output of the second element I to the input of the lower discharge reversing shift offset, the installation inputs of the reversible counter and the inputs of the first comparison circuit are connected to the information inputs of the device, the outputs of the reversible counter are connected to the inputs of the second comparison circuit, the outputs of the comparison circuits - to the inputs of the control unit, the outputs of which are connected to the corresponding controls of the reversible shift register 2 and reversible counter 2. However This device may have additional information after performing the shift operation, which distorts the accuracy of the result of the operation. The aim of the invention is to increase the reliability of information shift. The goal is achieved by the introduction of a shift register, the setup input of which is connected to the output of the first comparison circuit, and the control inputs to the corresponding EE4 control inputs of the reverse shift register and the output of the first comparison circuit, the output of the low-order additional reverse register is connected to the second the first entry, the output of the older bit. to the second input of the second element, And, and the outputs of the bits of the additional shift register are connected to the inputs of setting the zero of the same name bits of the reversible shift register. The drawing shows a diagram of the device. The device contains a reverse shift register 1, elements 2, 3, shift register 4, control unit 5, comparison circuits 6, 7, reversible counter 8. The low-order output of the reverse register 1 from 1 through element 2 is turned on to the input of the high bit, and the output of the high bit through the element 3 And is connected to the input of the lower bit. Shift control inputs of the reverse shift register 1 and shift register 4 are connected respectively to the first and second outputs of control unit 5, the third and fourth outputs of which are connected to the addition and subtraction inputs of the reverse lock 8, respectively. The output of the reverse lock pin 8 is connected. to the input of the comparison circuit 6, the output of which is connected to the first input of the control unit 5 and with the control input to the reading of the shift register 4. The first output of the comparison circuit 7 is connected to the second input of the control unit 5, and the second output is connected to the installation input in the I register 4 of the shift. The outputs of the bits of the 4 shift register are connected to the installation inputs in O of the corresponding bits of the reverse shift register 1, and the high and low bits of the bits are connected to the second inputs of elements 2, 3 AND, respectively. The device works as follows. When the shift value is N € y (p. - the number of digits of the reverse shift register 1, the number shift is found. It is found in the reverse shift register 1 in the corresponding direction by a specified number of bits. When the shift value is in the reverse shift register 1, the shift is cyclic numbers in the opposite direction (as compared with a given direction of shear), while shifting is performed by (n-S) bits. After the completion of the operation of the shift in the reverse shift register 1, only those bits of the initial number that are received along the transfer chain are fixed, the remaining bits are set to O. The shift signals are generated by the 5 ynpai block. The magnitude of the shift enters the reversible counter 8 and the comparison circuit 7. 7 the comparison generates the shift direction control signals, which are fed to the control unit 5. In the reversible counter 8, the number of shifts is counted, while the reversible counter 8 is operated or subtracted (N4-9-for addition (LJ-), the addition and subtraction signals come from control unit 5. The end of the shift operation is fixed by the circuit 6 comparisons in the zero state of the reversible counter 8, or when its state is equal to P. Shift register 4 is used to fix the result of the shift and to control the elements 2, 3 AND during the cyclic shift. compare Not all the bits of the shift register are set to 1. The shift signals entering the reverse shift register 1 simultaneously arrive at the shift control in the shift register 4. The code in the shift register 4 is shifted by the same amount of bits and in the same direction as the number in the reverse shift register 1. Since the shift in shift register 4 is not cyclic, after the end of the shift (nN) the bits in it will have a zero value: when shifting to the left (nN), the lower bits, when shifting BnpaBo (ii-N) older bits After the end of the shift by the signal from the comparison circuit 6, the contents of the shift register 4 are read and, as a result, the (and-N) bits of the reverse shift register 1 retain their values, and the rest are set to Cf by signals from the outputs of the bits of the register 4 shear. Signals from the outputs of the high and low rads (overflow signals) are used to control elements 2, 3 and in the transfer chains of the reversible register 1. shear. With a shift value of - -, all bits of the shift register 4 have a zero value (they are not set before the shift) and therefore reading the contents of shift register 4 at the end of the operation does not distort the result of the operation in the reverse shift register 1.

Рассмотрим работу предлагаемого устройства на примере сдвига числа 1О11.О1110ОИ влево и вправо на 4 и 9 разр дов. Результаты операции сдвига и состо ние реверсивного регистра 1 сдвига и регистра 4 сдвига после выполнени  операции приведены в таблице. При сдвиге влево и вправо на 4 разр да (примеры 1, 2) осуществл етс  сдвигConsider the operation of the proposed device by the example of a shift of the number 1O11.O1110OI left and right by 4 and 9 bits. The results of the shift operation and the state of the reverse shift register 1 and shift register 4 after the operation is performed are shown in the table. When shifting left and right by 4 bits (examples 1, 2), the

числа в реверсивном регистре 1 сдвига, в регистре 4 сдвига все разр ды установлены в О и на резулыгат операции не вли ют. При сдвиге вправо на 9 раэр дов осуществл етс  циклический сдвиг влево на 3 разр да, при этом освобождающиес  старише разр ды по цепи циклического переноса (через элемент И з) поступают на вход младших разр дов.the numbers in the reverse shift register 1, in the shift register 4, all bits are set to 0 and the result of the operation is not affected. When shifting to the right by 9 rads, the cyclic shift to the left by 3 bits is performed, while the older bits are released along the cyclic transfer chain (through the element I 3) are fed to the input of the lower bits.

Код в регистре 4 сдвига сдвигаетс  на 3 разр да влево, младшие три разр да после операции установ тс  в О, в остальных разр дах будут записаны . После чтени  содержимого регистра 4 сдвига в реверсивном регистре 1 сдвига сохран тс  три младших разр да, старшие дев ть разр дов будут установлены в О, что соответствует сдвигу исходного числа на 9 разр дов вправо. При сдвиге на 9 разр дов осуществл етс  циклический сдвиг содержимого реверсивного регистра 1 сдвига на три разр5ща вправо, освобождающиес  младшие разр ды через элемент 2 И поступают на вход старших разр дов. В регистре 4 сдвига после окончани  сдвига три старших разр де установ тс  в О, а дев ть мпадших в . После чтени  содержимого реThe code in shift register 4 is shifted by 3 bits to the left, the lower three bits after the operation are set to O, the remaining bits will be written. After reading the contents of register 4 shifts in the reverse shift register 1, three lower bits are stored, the older nine bits will be set to O, which corresponds to a shift of the original number by 9 bits to the right. When shifting by 9 bits, the contents of the reverse shift register 1 are shifted by three bits to the right, the lower bits are released through item 2, and are fed to the input of the higher bits. In shift register 4, after the end of the shift, the three most significant bits are set to O, and nine bits are set to. After reading the contents of the re

гисгра 4 сдвига в реверсивном регистре 1 сдвига сохран тс  только три старших разр да, что соответствует сдвигу исходного числа на 9 разр дов влево.Gisgra 4 shifts in the reverse shift register 1 only three high-order bits are saved, which corresponds to a shift of the initial number by 9 bits to the left.

Таким , в предлагаемом устройстве исходное число может быть сдввенуто на любое число разр дов в любую сторону, при этом максимальное врем  выполнени  сетерации не превышает тактов , где п - разрадность реверсивного регистра 1 сдвига.Thus, in the proposed device, the initial number can be shifted to any number of bits in either direction, with the maximum time for performing the iteration does not exceed ticks, where n is the difference of the reverse shift register 1.

Claims (2)

1.Букреев И. Н. и др. Mикpoa eктpoнные схемы цифровых устройствам.,1.Bukreev, I.N., et al. Microwave, Digital device digital circuits., Сов, Радио, 1975, с. 139, рис. 4.10.Owls, Radio, 1975, p. 139, fig. 4.10. 2.Авторское свидетельство СССР2. USSR author's certificate № 382146, кл, С 19/00, 1971.No. 382146, class, C 19/00, 1971.
SU772464708A 1977-03-21 1977-03-21 Information shifting arrangement SU657433A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU772464708A SU657433A1 (en) 1977-03-21 1977-03-21 Information shifting arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU772464708A SU657433A1 (en) 1977-03-21 1977-03-21 Information shifting arrangement

Publications (1)

Publication Number Publication Date
SU657433A1 true SU657433A1 (en) 1979-04-15

Family

ID=20700346

Family Applications (1)

Application Number Title Priority Date Filing Date
SU772464708A SU657433A1 (en) 1977-03-21 1977-03-21 Information shifting arrangement

Country Status (1)

Country Link
SU (1) SU657433A1 (en)

Similar Documents

Publication Publication Date Title
SU657433A1 (en) Information shifting arrangement
SU741322A1 (en) Shifting memory
SU494745A1 (en) Device for the synthesis of multi-cycle scheme
SU492873A1 (en) Binary subtraction device
SU1201855A1 (en) Device for comparing binary numbers
SU602939A1 (en) Information shifting arrangement
SU547767A2 (en) Variable priority device
SU1653154A1 (en) Frequency divider
SU758140A1 (en) Device for serials discriminating of units from n-digit binary code
SU790346A1 (en) Pulse counter
RU1791818C (en) Device for control of modulo three residual code
SU556500A1 (en) Memory register for shift register
SU437072A1 (en) Firmware Control
SU1168934A1 (en) Device for modulo p adding and subtracting numwers
SU911519A1 (en) Device for computing elementary functions
SU744635A2 (en) Vector argument determining device
SU639019A2 (en) Permanent storage
SU608159A1 (en) Microprogramme-control arrangement
RU1805473C (en) Unit for homogeneous structure
SU444190A1 (en) Apparatus for calculating ordered selection functions
SU656218A1 (en) Counter with error correction
SU1282135A1 (en) Device for shifting information with checking
SU485445A1 (en) Device for comparing binary numbers
SU760088A1 (en) Device for comparing numbers with two thresholds
SU486317A1 (en) Device for searching for numbers in a given range