SU1162052A1 - Converter of code with sign digit to two's complement form - Google Patents

Converter of code with sign digit to two's complement form Download PDF

Info

Publication number
SU1162052A1
SU1162052A1 SU843700984A SU3700984A SU1162052A1 SU 1162052 A1 SU1162052 A1 SU 1162052A1 SU 843700984 A SU843700984 A SU 843700984A SU 3700984 A SU3700984 A SU 3700984A SU 1162052 A1 SU1162052 A1 SU 1162052A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
group
blocks
inputs
Prior art date
Application number
SU843700984A
Other languages
Russian (ru)
Inventor
Vasilij V Aristov
Nataliya N Mozhchil
Original Assignee
Inst Modelirovaniya V Energeti
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 Inst Modelirovaniya V Energeti filed Critical Inst Modelirovaniya V Energeti
Priority to SU843700984A priority Critical patent/SU1162052A1/en
Application granted granted Critical
Publication of SU1162052A1 publication Critical patent/SU1162052A1/en

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

Изобретение относится к цифровой вычислительной технике, в частности к устройствам для обработки данных с воздействием при вычислениях над числами с основаниями, отличными 5The invention relates to digital computing, in particular to devices for processing data with an impact when calculating over numbers with bases other than 5

от традиционных, и может быть использовано в тех отраслях промышленности, где используются управляющие, моделирующие и вычислительные машины и устройства, работающие в знакораэрядной системе счисления с основаниями 1,0,1, при переходе к представлению чисел в двоичном дополнительном коде.from traditional, and can be used in those industries that use control, modeling and computing machines and devices operating in a sign-based numeral system with bases 1,0,1, in the transition to the representation of numbers in the binary additional code.

Цель изобретения - повышение 15The purpose of the invention is to increase 15

быстродействия.performance.

На фиг.1 изображена блок-схема Предлагаемого преобразователя,' на фиг.2 - блок-схема группы блоков управляемого инвертирования. 20Figure 1 shows a block diagram of the Proposed Converter, 'figure 2 is a block diagram of a group of blocks of controlled inversion. 20

Преобразователь знакоразрядного кода в дополнительный двоичный код содержит элемент 1 задержки, элемент НЕ 2, элемент ИЗ, первую группу 4 блоков управляемого инвер- 25 тирования, триггеры 5 и 6, элемент НЕ 7, блок 8 памяти, вторую группу 9 блоков управляемого инвертирования. Блок 8 памяти имеет четыре выхода: выход 10 старших раз- 30 рядов; выход 11 признака обнуления; выход 12 младшего разряда; выход 13 инверсного преобразователя. Группа блоков управляемого инвертирования имеет первый и второй информа- 35 ционные входы, вход 14 сброса, управляющий вход 15, первый тактовый вход 16, связанный через элемент НЕ 2 с тактовым входом 17 преобразователя и второй тактовый вход 18. .40The converter of the digit-by-bit code to the additional binary code contains delay element 1, element NOT 2, element FROM, first group 4 blocks of controlled inversion 25, triggers 5 and 6, element NOT 7, block 8 of memory, second group 9 blocks of controlled inversion. Memory block 8 has four outputs: output of 10 high-order rows; exit 11 zero reset sign; output 12 low order; output 13 inverse transducer. The group of controllable inversion units has the first and second information inputs, the reset input 14, the control input 15, the first clock input 16 connected via the HE 2 element to the clock input 17 of the converter and the second clock input 18. .40

элемент И 21, элемент НЕРАВНОЗНАЧНОСТЬ 22, выходной триггер 23. Выходы триггеров 23 и 20 являются соответственно первым и вторым выходами 24 и 25 блока управляемого инвертирования.element And 21, element UNEQUAL 22, output trigger 23. The outputs of the triggers 23 and 20 are respectively the first and second outputs 24 and 25 of the controlled inversion unit.

Конструкция и функционирование блоков 19 подробно описаны в [2^ .The design and operation of blocks 19 are described in detail in [2].

Предлагаемое устройство реализует преобразование знакоразрядного представления числа в дополнительный двоичный код по мере поступления числа, начиная со старшего разряда, в том случае, когда в каждом такте поступает' по два разряда преобразуемого числа.The proposed device implements the conversion of the digit-significant representation of a number into an additional binary code as the number arrives, starting with the most significant digit, in the case when two digits of the number being converted are received in each clock cycle.

При наличии знакоразрядного представления числа (старшие разряды числа находятся слева) для получения дополнительного двоичного кода достаточно в исходном коде дописать слева ноль в дополнительном разряде, а затем над разрядами, стоящими левее каждой отрицательной единицы до ближайшей любой единицы включительно выполнить инверсные преобразования, а над остальными - прямые преобразования согласно табл.1.If there is a digit-significant representation of the number (the most significant digits of the number are on the left), to obtain an additional binary code, it is enough to add a zero to the left in the additional digit in the source code, and then on the bits to the nearest any unit to the nearest any unit inclusively, inversely, and inverse - direct conversion according to Table 1.

Таблица!Table!

Цифра избы- _Digit abundance _

точного кода 1exact code 1

ИнверсноеInverse

преобразование 0conversion 0

Прямое преобразование 1 0 1Direct conversion 1 0 1

Группа блоков управляемого инвертирования (фиг.2) состоит из одинаковых блоков 19, каждый из которых содержит триггер-маску 20, Пример.The group of blocks of controlled inversion (figure 2) consists of identical blocks 19, each of which contains a trigger mask 20, Example.

Исходное числоInitial number

Области инверсного преобразованияInverse Transform Areas

Получение представление и будет дополнительным кодом исходногоGetting the view and will be additional source code

45 числа.45 numbers.

Дополнительный разрядExtra bit

О 0 7 0 0 7 1 1 0 I 1—1-1 1__1O 0 7 0 0 7 1 1 0 I 1—1-1 1__1

Дополнительный кодAdditional code

110 1 1110 1110 1 1110 1

,55 .55

Для того , чтобы формировать его поступления по два раздополнительный двоичный код зна-,ί, ряда , необходимо в каждом так-ί коразрядного числа в процессе те.’In order to form his incomes by two additional binary codes of the sign-,, series, it is necessary in each so-ί co-row number in the process of those. ’

3 1162052 43 1162052 4

преобразовать два поступающих в ; устройство разряда с учетом описанного правила преобразования?convert two incoming in ; Discharge device taking into account the described conversion rules?

выработать признаки, определяющие влияние поступающих разрядов на предшествующие}develop the signs that determine the impact of incoming discharges on previous ones}

по выработанным признакам произвести преобразование предварительно принятых разрядов согласно описанному правилу формирования полнительиого двоичного кода разрядного числа.according to the developed characteristics, to transform the previously accepted bits in accordance with the described rule of the formation of the full binary code of the bit number.

Последовательность работы лапаемого устройства состоитThe sequence of the lap device consists

задании на информационном входе . устройства последовательности пар цифр в избыточной знакоразрядной системе счисления, задании на тактовом входе 17 синхронизирующей серии £т и снятии результата на выходах преобразователя после обработки последней пары разрядов.job on the information entry. devices of a sequence of pairs of digits in a redundant sign-digit numeral system, setting a clock series £ t at the clock input 17 and removing the result at the converter outputs after processing the last pair of digits.

Преобразование в каждом такте двух поступающих разрядов в соответствии с правилом формирования дополнительного двоичного кодаConversion in each clock cycle of two incoming bits in accordance with the rule for the formation of an additional binary code

дозиакопредвdoziakopredv

производится блоком 8 памяти (фиг.1) по выходам 10 и 12. Формирование признаков, определяющих влияние двух текущих разрядов наproduced by the memory unit 8 (FIG. 1) at the outputs 10 and 12. Formation of the signs determining the influence of the two current digits

5 предшествующие, производится блоком 8 памяти по выходу 13 и вторым элементом НЕ 7. Преобразование предварительно принятых разрядов соглас но описанному правилу производится5 preceding, is performed by memory block 8 at output 13 and the second element is NOT 7. Conversion of previously accepted bits according to the described rule is performed

10 первым 5 и вторым 6 триггерами и первой 4 и второй 9 группами блоков управляемого инвертирования.10 first 5 and second 6 triggers and the first 4 and second 9 groups of blocks of controlled inversion.

Табл.2 является таблицей истин15 ности блока 8 памяти, выполненного в виде ПЗУ, в котором 8 *, 8^, 8/Table 2 is the truth table of memory block 8, made in the form of a ROM, in which 8 *, 8 ^, 8 /

|И 8^ - входные адресные сигналы, '| And 8 ^ - input address signals, '

)а 1.0, 11, 12 и 13 - выходные, причем 8, - положительная часть стар20 шего из двух (нечетного) разряда;') a 1.0, 11, 12, and 13 are weekends, with 8 being the positive part of the old of two (odd) digits;

8 £ - отрицательная часть старшего из двух (нечетного) разряда, 8\ положительная часть младшего из двух (четного) разряда, 8^- отри25 дательная часть младшего из двух (четного) разряда.£ 8 is the negative part of the highest of two (odd) digits, 8 \ is the positive part of the younger of two (even) digits, 8 ^ is the negative part of the younger of the two (even) digits.

Таблица 2table 2

Вход в; entrance at; н n Выходы Outputs г 1 1 * +· 1 1 1 g one 1 * + · one one one л l 10 Старший разряд 10 senior level 11 Признак обнуления 11 Sign of zeroing 12 Младший разряд 12 Junior level 13 Признак инверсного преобразования 13 Sign of the inverse transform 0 0 0 0 , 0 , 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 one 1 one 1 one 1 one 1 one 0 0 0 0 1 one 0 0 0 0 1 one 1 one 0 0 0 0 0 0 1 one 1 one 0 0 0 0 0 0 0 0 0 0 1 one 0 0 0 0 1 one 1 one 0 0 1 one о about 1 one 0 0 1 one 0 0 1 one 1 one 1 one 0 0 1 one 1 one 0 0 1 one 1 one 1 one 1 one 0 0 1 one 1 one 1 one 1 one 1 one 0 0 1 one 1 one 0 0 0 0 0 0 1 one 1 one 0 0 1 one 1 one 0 0 0 0 1 one 0 0 1 one 1 one 0 0 1 one 0 0 1 one 0 0 1 one 1 one 1 one 0 0 1 one 0 0 1 one 1 one 1' one' 1 one 0 0 0 0

66

11620521162052

Продолжение табл.2Continuation of table 2

ВходыInputs

ВыходыOutputs

8 8 ' ί I I V I_:_ ί I I v I _: _ 10 Старший разряд 10 senior level 11 Признак обнуления 11 Sign of zeroing 12 Младший разряд 12 Junior level 13 Признак инверсного преобразования 13 Sign of the inverse transform 1 one 1 one 0 0 0 0 0 0 0 0 0 0 . 0 . 0 1 one 1 one 0 0 1 one 1 one 1. ' one. ' 1 one 1 one 1 one 1 one 1 one 0 0 0 0 1 . one . 1 one 0 0 1 one 1 one 1 one 1 one 1 one 1 one 0 0 0 0

Разряды на информационный вход преобразователя, а следовательно, и на адресный вход блока 8 памяти поступают на отрицательному перепаду синхронизирующей серии на тактовом входе 17.Discharges to the information input of the converter, and consequently, to the address input of the memory block 8, arrive at the negative differential of the synchronizing series at the clock input 17.

На первом выходе 10 блока 8 .памяти формируется преобразованный старший (нечетный) текущий разряд/ на втором выходе 11 - признак сигнала обнуления/ на третьем выходе 12 - преобразованный младший (четный) текущий разряд и на четвертом выходе 13 - признак инверсного преобразования. Четные разряды через первый триггер 5 переписываются в первую группу 4 блоков управляемого инвертирования, а нечетные через второй триггер 6 - во вторую группу 9. Область инверсного преобразования в каждой группе блоков управляемого инвертирования формируется состояниями соответствующей совокупности триггеров масок 20, при этом на второй информационный вход первой группы 4 блоков управляемого инвертирования подается константа ”1”, а на второй информационный вход второй группы 9 - инверсное значение четного разряда, что необходимо для правильного задания области инверсного преобразования для четных и нечетных разрядов.At the first output 10 of block 8., A transformed senior (odd) current discharge is formed / at the second output 11 - a zero signal indication / at the third output 12 - transformed low (even) current discharge and at the fourth output 13 - a sign of the inverse transformation. Even-numbered digits through the first trigger 5 are rewritten to the first group of 4 controlled inversion blocks, and odd digits through the second trigger 6 to the second group 9. The area of inverse transformation in each group of controlled inverting blocks is formed by the states of the corresponding set of trigger masks 20, while the second information input The first group 4 blocks of controlled inversion is supplied with the constant ”1”, and the second information input of the second group 9 is the inverse value of the even digit, which is necessary for correct the ability to set the inverse transform domain for even and odd digits.

В зависимости от значения сигнала на управляющем входе 15 и состояния триггера-маски 20 информация с первого информационного входа блока 19 записывается в выходной триггер 23 либо в прямом, либо в инверсном коде. Запись осуществляется по положительному перепаду синхронизирующей частоты £т, поступающей на второй тактовый вход 18,Depending on the value of the signal at the control input 15 and the status of the trigger mask 20, information from the first information input of the block 19 is recorded in the output trigger 23 either in the direct or inverse code. Recording is carried out on the positive differential clock frequency £ t received at the second clock input 18,

Информация с второго информационного входа блока 19 черезInformation from the second information input of block 19 through

25 триггер-маску 20 поступает на второй выход блока 19. Запись информации осуществляется по положительному перепаду инверсной синхронизирующей серии £т, поступающей на первый тактирующий вход 16 группы блоков управляемого инвертирования. 25, the trigger mask 20 is supplied to the second output of block 19. Information is recorded on the positive differential of the inverse synchronization series £ t , which arrives at the first clock input 16 of a group of blocks of controlled inverting.

При поступлении положительного им- . пульса на обнуляющий вход осуществляется сброс триггера-маски в ну35 левое состояние.Upon receipt of a positive im-. pulse to the zero input, the mask trigger is reset to the left state.

Элемент. 1 задержки, первый элемент НЕ 2 и элемент И 3 обеспечивают требуемую для правильной работы устройства последовательность управ40 ляющих, тактирующих и обнуляющих импульсов, при которой в каждом такте вначале производится прием пары разрядов и считывание соответствующей этой паре информации из блока 8Element. 1 delay, the first element NOT 2 and the element 3 provide the sequence of control, clocking and zeroing pulses required for proper operation of the device, at which in each step a pair of digits is first received and the information corresponding to this pair is received from block 8

45 памяти, затем занесение информации в триггеры 5 и 6 и по первому информационному входу - в выходные триггеры 23 блоков 19 первой 4 и второй 9 групп блоков управляемого инвер50 тирования и, наконец, подготовка триггеров-масок 20 модулей 19 первой 4 и второй 9 групп для следующего такта, состоящая в предварительном обнулении (при наличии45 memory, then entering information into triggers 5 and 6 and on the first information input - on the output triggers 23 blocks 19 of the first 4 and second 9 groups of blocks of controlled inverting, and finally preparing the trigger masks 20 modules 19 of the first 4 and second 9 groups for the next measure, consisting of a preliminary zeroing (if

55 соответствующего признака) всех триггеров—масок 20 первой 4 и второй 9 групп и последующей записи информации по второму информационному входу первой 4 и второй 9 групп55 of the corresponding attribute) of all triggers — masks 20 of the first 4 and second 9 groups and the subsequent recording of information on the second information input of the first 4 and second 9 groups

Ί 1162052 8Ί 1162052 8

блоков управляемого инвертирования .blocks of controlled inversion.

Для формирования в коде результата знакового разряда первая группа 4 имеет на один блок 19 больше, чем вторая группа 9. В связи с этим поступление знакоразрядного кода числа на информационный вход устройства начинается с комбинации 00.In order to form the result of the sign bit in the code, the first group 4 has one more block 19 than the second group 9. In this connection, the receipt of the digit-significant code of the number at the information input of the device begins with the combination 00.

Знаковый и четные разряды результата сформируются на первых выходах 24 блоков 19 управляемого инвертирования первой группы 4 й первом триггере 5, а нечетные разряды - на первых выходах 24 второй группы 9 блоков управляемого инвертирования и втором триггера 6 не позже приема в триггеры 5 и 6 последней пары разрядов, сформированных блоком 8 памяти согласно входной информации, с учетом знака - на (п/2 + 1) такте, где η - разрядность преобразуемого знакоразрядного числа.Signed and even result bits will be formed at the first outputs of 24 blocks 19 controlled inversion of the first group of the 4th first trigger 5, and odd digits at the first outputs 24 of the second group 9 blocks of controlled inverting and second trigger 6 no later than admission to triggers 5 and 6 of the last pair bits formed by the memory block 8 according to the input information, taking into account the sign - on (n / 2 + 1) clock, where η is the digit capacity of the sign bit number being converted.

В табл.3 содержатся данные о аппаратурных затратах на преобразование, например, -16-разрядного числа в устройстве-прототипе и в предлагаемом устройстве.Table 3 contains data on the hardware costs of conversion, for example, -16-bit number in the device prototype and in the proposed device.

ТаблицаЗ Table3 Тип элемента Item type Устройствопрототип Device prototype Предлагаемое устройство The proposed device ПЗУ 16x4 16x4 rom - - 1 one Элемент ЗАПРЕТ Element BAN 1 one Элемент НЕ Item NOT 1 one 2 2 Элемент И Element And 17 17 16- sixteen- Элемент НЕ- Element NOT- \ \ РАВНОЗНАЧ- EQUAL VALUE НОСТЬ But 17 17 15 15 Триггер Trigger 33 33 32 32

2525

11620521162052

Claims (1)

ПРЕОБРАЗОВАТЕЛЬ ЗНАКОРАЗРЯДНОГО КОДА В ДОПОЛНИТЕЛЬНЫЙ ДВОИЧНЫЙ КОД, содержащий первую группу последовательно соединенных блоков управляемого инвертирования, элемент задержки, первый элемент НЕ, элемент И и первый триггер, выход, которого соединен с первыми информационными входами первого блока управляемого инвертирования первой группы, вторые информационные входы которого являются входом логической единицы преобразователя,тактовый вход которого соединен с первым входом элемента И, выход которого соединен с входами сброса блоков управляемого инвертирования первой группы, первые тактовые входы которых соединены с выходом первого элемента НЕ, выход элемента задержки соединен с вторым входом элемента И, а тактовый вход первого триггера соединен с вторыми тактовыми входами блоков управляемого инвертирования первой группы, выхода которых являются первой группой информационных выходов преобразователя, отличающийся тем, что, с целью повышения быстродействия, в него введены блок памяти, второй триггер, второй элемент НЕ и вторая группа последовательно соединенных блоков управляемого инвертирования, первые информационные входы первого блока которых соединены с выводом второго триггера, управляющий вход которого соединен с выходом старшего разряда блока па*мяти,управляющий выход которого соединен с третьим входом элемента И, выход которого соединен с входами сброса блоков управляемого инвертирования второй группы, второй информационный вход первого блока которой через второй элемент НЕ соединен с выходом младшего разряда блока памяти и с управляющим входом первого триггера, выход инверсного преобразования блока памяти соединен с управляющими входами блоков управляемого инвертирования первой и второй групп, причем первые тактовые входы блоков управляемого инвертирования второй группы соединены с выходом первого элемента НЕ и входом элемента задержки, вход блока памяти является информационньм входом преобразователя, тактовый вход которого соединен с тактовыми входами первого и второго триггеров, входом первого элемента НЕ и вторыми тактовыми входами блоков управляемого инвертирования второй группы, выходы которых являются второй группой информационных выходов преобразователя.CONVERSION CONVERSION CODE TO ADDITIONAL BINARY CODE containing the first group of serially connected blocks of controlled inversion, delay element, first element NOT, AND element and the first trigger, the output of which is connected to the first information inputs of the first block of controlled inverting of the first group, the second information inputs of which are the input of the logical unit of the converter, the clock input of which is connected to the first input of the element I, the output of which is connected to the inputs of the reset of blocks y of the first group, the first clock inputs of which are connected to the output of the first element, the delay element output is connected to the second input of the I element, and the clock input of the first trigger is connected to the second clock inputs of the controlled inverting blocks of the first group, the outputs of which are the first group of information outputs of the converter , characterized in that, in order to improve speed, a memory block, a second trigger, a second element NOT and a second group of series-connected blocks are entered into it controlled inversion, the first information inputs of the first block of which are connected to the output of the second trigger, the control input of which is connected to the high-level output of the memory block, the control output of which is connected to the third input of the element I, the output of which is connected to the reset inputs of the controlled inverting blocks of the second group , the second information input of the first block of which through the second element is NOT connected to the low-order output of the memory block and to the control input of the first trigger, the output of the inverse transducer Formation of the memory block is connected to the control inputs of the controlled inverting units of the first and second groups, the first clock inputs of the controlled inverting blocks of the second group are connected to the output of the first element NOT and the input of the delay element, the memory block input is the information input of the converter whose clock input is connected to the clock inputs the first and second triggers, the input of the first element NOT and the second clock inputs of the blocks of the controlled inverting of the second group, the outputs of which are The second group of information outputs of the converter. 1162052 21162052 2
SU843700984A 1984-02-13 1984-02-13 Converter of code with sign digit to two's complement form SU1162052A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843700984A SU1162052A1 (en) 1984-02-13 1984-02-13 Converter of code with sign digit to two's complement form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843700984A SU1162052A1 (en) 1984-02-13 1984-02-13 Converter of code with sign digit to two's complement form

Publications (1)

Publication Number Publication Date
SU1162052A1 true SU1162052A1 (en) 1985-06-15

Family

ID=21103640

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843700984A SU1162052A1 (en) 1984-02-13 1984-02-13 Converter of code with sign digit to two's complement form

Country Status (1)

Country Link
SU (1) SU1162052A1 (en)

Similar Documents

Publication Publication Date Title
SU1162052A1 (en) Converter of code with sign digit to two's complement form
SU1034040A1 (en) Device for forming digital sequences
SU924698A1 (en) Device for adding in redundancy notation
SU1120350A1 (en) Stochastic multiplying device
SU403073A1 (en) TWO-TERM BINARY COUNTER
SU1265975A1 (en) Device for generating time intervals
SU857976A1 (en) Binary adder
SU1661758A1 (en) Arithmetic expander
SU801258A1 (en) N-digit binary counter
SU1448413A1 (en) Device for encoding cyclic codes
RU1791813C (en) Device for integer division by constant of @@@
SU1756879A1 (en) Device for determination of linearity of boolean functions
SU783787A1 (en) Converter of binary code into binary-decimal code of degrees and minutes
SU538492A1 (en) Pulse Sequence Counter
SU970359A1 (en) Random number generator
SU733109A1 (en) Reversible ternary n-bit pulse counter
SU1539774A1 (en) Pseudorandom series generator
SU905812A1 (en) Subscriber polling device
SU830377A1 (en) Device for determining maximum number code
SU758149A1 (en) Device for multiplying binary code by number represented in unitary code
SU1120322A1 (en) Digital function generator
SU459773A1 (en) Random Code Sensor
SU1430952A2 (en) Random markovъs process generator
SU738186A1 (en) Device for searching d-sequence
SU432485A1 (en) DEVICE FOR CONVERSION OF WHOLE TRINICAL AND BINARY NUMBERS INTO DECIMAL BINARY CODE