SU1086424A1 - Translator from binary code to binary-coded decimal code and vice versa - Google Patents

Translator from binary code to binary-coded decimal code and vice versa Download PDF

Info

Publication number
SU1086424A1
SU1086424A1 SU823514148A SU3514148A SU1086424A1 SU 1086424 A1 SU1086424 A1 SU 1086424A1 SU 823514148 A SU823514148 A SU 823514148A SU 3514148 A SU3514148 A SU 3514148A SU 1086424 A1 SU1086424 A1 SU 1086424A1
Authority
SU
USSR - Soviet Union
Prior art keywords
binary
input
inputs
output
outputs
Prior art date
Application number
SU823514148A
Other languages
Russian (ru)
Inventor
Юрий Павлович Барметов
Сергей Алексеевич Боев
Юрий Иванович Евтеев
Original Assignee
Воронежский технологический институт
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 Воронежский технологический институт filed Critical Воронежский технологический институт
Priority to SU823514148A priority Critical patent/SU1086424A1/en
Application granted granted Critical
Publication of SU1086424A1 publication Critical patent/SU1086424A1/en

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

ПРЕОБРАЗОВАТЕЛЬ ДВОИЧНОГО КОДА В ДВОИЧНО-ДЕСЯТИЧНЬЙ И ОБРАТНО, содержащий регистр двоичного кода, регистр двоично-дес тичного кода, сумматор, блок хранени  эквивалентов, выход которого соединен с первым информационным входом сумматора, генератор импульсов, первый и второй элементы И, элемент ИЛИ, отличающийс  тем, что, с целью повьшени  быстродействи , в него введены первый и второй многоразр дные коммутаторы, первый, второй и третий одноразр дные коммутаторы, счетчик, дешифратор, триггер и элемент И-НЕ, причем сумматор и блок хранени  эквивалентов выполнены двоичными, выходы счетчика соединены с разр дными входами дешифратора и блока хранени  эквивалентов, выходы дешифратора соединены с первой группой информационных входов регистр двоич но-дес тйчного кода, выходы которого соединены с входами элемента И-НЕ и с первой группой информационных входов первого многоразр дного коммутатора , втора  группа информационных входов которого  вл етс  первой группой информационных входов преобразовател , управл ющий вход которого соединен с первыми управл ющими входами первого и второго одноразр дных коммутаторов, первым входом элемента ИЛИ и запрещающим входом де- шифратора, выход переноса сумматора соединен с управл ющим входом- дешифратора и информагционным входом первого одноразр дного коммутатора, второй управл ющий вход которого соединен с выходом старшего разр да регистра двоично-дес тичного кода, втора  группа информационных входов которого соединена с выходами первоQ б го многоразр дного коммутатора, уп (Л равл ющий вход которого соединен с выходом триггера, подключенного к (Управл ющему входу второго многоразр дного коммутатора и первому управл ющему входу третьего одноразр дного коммутатора, второй управл ющий ход которого  вл етс  входом начальной установки преобразоватеоо л  и соединен с входами сброса триг05 гера, счетчика, регистров двоичного и двоично-дес тичного кодов, выходы которых  вл ютс  соответственно первой и второй группами информационных выходов преобразовател , втора  группа информационных входов которого соединена с первыми информационными входами второго многоразр дного коммутатора , вторы)е информационные входы которого соединены с выходами сумматора , а выходы соединены с инфорцаIционными входами регистра двоичного кода, вход записи которого соединен с выходом первого элемента И, первый и второй входы которого соответственBINARY CONVERTER BINARY-DECIMAL AND BACKWARD containing the binary code register, binary-decimal code register, adder, equivalent storage unit, the output of which is connected to the first information input of the adder, pulse generator, first and second elements AND, OR element, different by the fact that, in order to improve the speed, the first and second multi-bit switches, the first, second and third one-bit switches, a counter, a decoder, a trigger and an NAND element, and an accumulator The equivalents are binary, the outputs of the counter are connected to the bit inputs of the decoder and the storage unit of equivalents, the outputs of the decoder are connected to the first group of information inputs a register of binary-ten key code, the outputs of which are connected to the inputs of the NAND element and the first group of information inputs of the first a multidisk switch, the second group of information inputs of which is the first group of information inputs of the converter, the input of which is connected to the first control by the moves of the first and second one-bit switches, the first input of the OR element and the inhibiting input of the decoder, the transfer output of the adder is connected to the control input-decoder and the information input of the first one-bit switch, the second control input of which is connected to the binary - a local code, the second group of information inputs of which is connected to the outputs of the first multi-bit switch, the pack (the equal input of which is connected to the output of the trigger connected to (The control input of the second multi-bit switch and the first control input of the third one-bit switch, the second control path of which is the input of the initial installation of the converter and connected to the reset inputs of the trigger, counter, registers of the binary and binary-decimal codes, outputs which are respectively the first and second groups of information outputs of the converter, the second group of information inputs of which are connected to the first information inputs of the second multi-bit switch, the second) e informational inputs of which are connected to the outputs of the adder, and the outputs are connected to the informational inputs of the binary code register, the input of which is connected to the output of the first element And, the first and second inputs of which respectively

Description

но соединены с выходами первого и третьего одноразр дных коммутаторов, информационный вход третьего одноразр дного коммутатора соединен с выходом генератора импульсов, подключенного к счетному входу счетчика, вход генератора импульсов соединен с выходом второго одноразр дного коммутатора , соединенного с установочным входом триггера, и  вл етс  вьгходом окончани  преобразовани  преобразовател , выход элемента И-НЕ соединенbut connected to the outputs of the first and third single-digit switches, the information input of the third single-digit switch is connected to the output of the pulse generator connected to the counter input of the counter, the input of the pulse generator is connected to the output of the second single-bit switch connected to the trigger input, and is input the end of the conversion of the converter, the output of the element is NOT connected

с BTopbiM управл ющим входом второго одноразр дного коммутатора, информационный вход которого соединен с выходом второго элемента И, входы которого соединены с выходами регистра двоичного кода, вход записи регистра двоично-дес тичного кода соединен с выходом элемента ИЛИ, второй вход которого соединен с выходом третьего одноразр дного коммутатора,выход регистра двоичного кода подключен к второму информационному входу сумматора.The BTopbiM control input of the second one-bit switch, the information input of which is connected to the output of the second element I, whose inputs are connected to the outputs of the binary code register, the input of the record of the register of the binary-decimal code is connected to the output of the element OR, the second input of which is connected to the output of the third a one-bit switch, the output of the binary code register is connected to the second information input of the adder.

Изобретение относитс  к области цифровой вычислительной техники и может быть использовано в специализированных устройствах и вычислительных машинах..The invention relates to the field of digital computing and can be used in specialized devices and computers.

Известен преобразователь двоичного кода в двоично-дес тичный и обратно , содержащий регистр двоичного числа, регистр двоично-дес тичного числа, формирователь эквивалентов, переключатель эквивалентов, одноразр дный сумматор и блок управлени миA known binary-to-decimal converter and vice versa comprising a binary number register, a binary-decimal register, a driver of equivalents, a switch of equivalents, a one-bit adder and a control block.

Недостаток данного преобразовател  состоит в низком быстродействии что  вл етс  следствием последовательной обработки значений разр дов. Наиболее близким к предлагаемому по технической сущности и схемному решению  вл етс  преобразователь двоичного кода в двоично-дес тичный и двоично-дес тичного кода в двоичный , содержащий регистр двоичного числа, блок двоично-дес тичных эквивалентов , двоично-дес тнчньй : сумматор регистр двоично-дес тичных чисел, распределитель импульсов, схему сравнени , генератор импульсов, первый и второй элементы И, элемент ИЛИ, элемент НЕ, первую, вторую, третью и четвертую группь элементов И, примем выходы распределител  импульсов подключены к входам первой и второй групп элементов И, к вторым входам которых присоединены выходы разр дов двоичного регистра, выходы элементов И первой и второй групп подключены к входам блока двоично-дес тичных эквивалентов, выходы которого подклю чены к входам двоично-дес тичногоThe disadvantage of this converter is the low speed, which is a consequence of the sequential processing of the bit values. The closest to the proposed technical essence and circuit design is a binary code converter into binary-decimal and binary-decimal code into binary, containing a binary number register, a block of binary-decimal equivalents, a binary-decimal: adder decimal numbers, pulse distributor, comparison circuit, pulse generator, first and second elements AND, element OR, element NOT, first, second, third and fourth group of elements AND, we will take the outputs of the pulse distributor connected to odes first and second group of AND gates to the second inputs of which are connected outputs bit binary register rows, and outputs components of the first and second groups are connected to the inputs of the block of binary-coded decimal equivalents, which yields to Con cheny inputs the binary coded decimal

сумматора, выходы которого соединены с входами регистра двоично-дес тичны чисел С 2 3.adder, the outputs of which are connected to the inputs of the register binary-decimal numbers C 2 3.

Недостаток этого преобразовател  состоит в относительно низкой средней скорости преобразовани  в режиме преобра- овани  двоичного кода в двоино-дес тичный , св занной с последовательным опросом всех разр дов двоичного числа.The disadvantage of this converter is the relatively low average conversion rate in the binary-to-decimal conversion mode associated with sequential polling of all bits of the binary number.

Целью изобретени   вл етс  повышение быстродействи  преобразовател The aim of the invention is to increase the speed of the converter.

Поставленна  цель достигаетс  тем, что в преобразователь двоичного кода в двоично-дес тичный и обратно, содержащий регистр, двоичного кода, регистр двоично-дес тичного кода, сумматор, блок хранени  эквивалентов выход которого соединен с первым информационным входом сумматора, генератор импульсов, первый и второй элементы И, элемент ИЛИ, введены первый и второй многоразр дные -коммутаторы , первый, второй и третий одноразр дные коммутаторы, счетчик, дешифратор, триггер и элемент И-НЕ, причем сумматор и блок хранени  эквивалентов выполнены двоичными, выходы счетчика соединены с разр дными входами дешифратора и блока хранени  эквивалентов, выходы дешифратора соединены с первой группой информационных входов регистра двоично-дес тичного кода, выходы которого соединены с входами элемента И-НЕ и с первой группой информационных входов первого многоразр дного коммутатора, втора  группа информационных входов которого  вл етс  первой группой информационных входов преобразовател , управл ющий вход которого соединен с первыми управл ющими входами первого и второго одноразр дных коммутаторов, первым входом элемента ИЛИ и запрещающим входом дешифратора, выход переноса сумматора соединен с управл ющим входом дешифратора и информационным входом первого одноразр дного коммутатора , второй управл ющий вход которого соединен с выходом старшего разр да регистра двоично-дес тичного кода, втора  группа информационных входов которого соединена с выходами первого многоразр дного коммутатора, управл ющий вход которого соединен с выходом триггера, подключенного к управл ющему входу второго многоразр дного коммутатора и первому управл ющему входу третьего одноразр д ного коммутатора, второй управл ющий вход которого  вл етс  входом началь ной установки преобразовател  и соединен с входами сброса триггера, счетчика, регистров двоичного и двои но-дес тичного кодов, выходы которых  вл ютс  соответственно первой и второй группами информационных выходов преобразовател , втора  группа информационных входов которого соеди нена с первыми информационными входа ми второго многоразр дного коммутатора , вторые информационные входы которого соединены с выходами сумматора , а вьпсоды соединены с информационными входами регистра двоичного кода, вход записи которого соединен с выходом первого элемента И, первый и.второй входы которого соответствен-40 The goal is achieved by the fact that a binary-to-binary-decimal converter and vice versa containing a register, a binary code, a binary-decimal code register, an adder, an equivalent storage unit whose output is connected to the first information input of the adder, a pulse generator, the first and the second AND elements, the OR element, the first and second multi-bit switches, the first, second and third single-bit switches, the counter, the decoder, the trigger, and the NAND element, are introduced, the adder and the equivalent storage unit S are binary, the counter outputs are connected to the bit inputs of the decoder and the storage unit of equivalents, the outputs of the decoder are connected to the first group of information inputs of the binary-decimal code register, the outputs of which are connected to the inputs of the AND-NAND element and to the first group of information inputs of the first multi-bit switch , the second group of information inputs of which is the first group of information inputs of the converter, the control input of which is connected to the first control inputs of the first and second one the main switches, the first input of the OR element and the forbidding input of the decoder, the transfer output of the adder is connected to the control input of the decoder and the information input of the first one-bit switch, the second control input of which is connected to the output of the higher bit of the register of the binary-decimal code, the second group informational inputs of which are connected to the outputs of the first multi-bit switch, the control input of which is connected to the output of a trigger connected to the control input of the second multi-bit the switch and the first control input of the third one-bit switch, the second control input of which is the input of the initial setup of the converter and is connected to the reset inputs of the trigger, counter, binary and decimal code registers, the outputs of which are respectively the first and the second groups of information outputs of the converter, the second group of information inputs of which is connected to the first information inputs of the second multi-bit switch, the second information inputs of which are connected to Connected to the outputs of the adder, and vspdsody connected to the information inputs of the binary code register, the recording entry of which is connected to the output of the first element And, the first and second inputs of which respectively-40

но соединены с выходами первого и третьего одноразр дных коммутаторов, информационный вход третьего одноразр дного коммутатора соединен с выходом генератора импульсов, подключенного к счетному входу счетчика, вход генератора импульсов соединен с выходом второго одноразр дного коммутатора , соединенного с установочным входом триггера, и  вл етс  выходом окончани  преобразовани  преобразовател , выход элемента И-НЕ соединен с вторым управл ющим входом второго одноразр дного коммутатора, информационный вход которого соединен с выходом второго элемента И, входы которого соединены с выходами регистра двоичного кода, вход записиbut connected to the outputs of the first and third single-digit switches, the information input of the third single-digit switch is connected to the output of the pulse generator connected to the counter input of the counter, the input of the pulse generator is connected to the output of the second single-bit switch connected to the trigger input, and is the output the conversion end of the converter, the output of the NAND element is connected to the second control input of the second one-bit switch, whose information input is connected to you Odom second AND gate, whose inputs are connected to the binary outputs of the register, record entry

л ющем входе 23 преобразовател  до подачи кода числа устанавливаетс  высокий потенциал. На информационный вход 18 преобразовател  подаетрегистра двоично-дес тичного кода соединен с выходом элемента ИЛИ, второй вход которого соединен с выходом третьего одноразр дного коммутатора, выход регистра двоичного кода подключен к второму информационному входу cyviMaTopa. На чертеже приведена структурна  схема предлагаемого преобразовател . Преобразователь содержит многоразр дные коммутаторы 1 и 2, триггер 3, элемент И 4, регистр 5 двоичного кода, двоичный блок 6 хранени  эквивалентов, двоичный сумматор 7, одноразр дные коммутаторы 8-10, элемент И 11, генератор 12 импульсов, счетчик 13, элемент ИЛИ 14, элемент И-НЕ 15, регистр 16 двоично-дес тичного кода, дешифратор 17. Коммутатор 1 предназначен дл  передачи в регистр 5 инвертированного двоичного кода с информационного входа 18 преобразовател  или пр мого кода с выхода сумматора 7. Коммутатор 2 осуществл ет передачу кода с информационного входа 19 преобразовател  или с выходов регистра 16 двоично-дес тичного кода. Выходы регистров 5 и 16  вл ютс  первой 20 и второй 21 группами вьпсодов преобразовател , выход 22 которого  вл етс  выходом конца преобразовани . Управл ющий вход 23 задает выбор закона преобразовани , а вход начальной установки 24 осуществл ет подготовку преобразовател  к работе. Предлагаемый преобразователь работает следующим образом. В режиме преобразовани  двоичного /числа вдвоично-дес тичное на управ-, с  двоичный код. Строб, приход щий по входу 24 преобразовател , передним фронтом производит установку регистров 5 и 16 и счетчика 13 в нулевое состо ние. Задним фронтом стробового сигнала двоичный код, подаваемый по входу 18 преобразовател , заноситс  в регистр двоичного кода 5, триггер 3 переводитс  в единичное состо ние, обеспечива  проход сигналов стробировани  с генератора 12 через одноразр дный коммутатор 9 и элемент И 4 на регистр 5 двоичного кода, а также пересылку результата вычитани  с выхода сумматора 7 через коммутатор 1 на вход регистра 5. Высокий потенциал на управл ющем входе 23 разрешает проход сигнала с выхода разр да переноса сумматора 7 через коммутатор 8 на вход элемента И 4, который формирует сигнал занесени  информации в регист 5 по результату вычитани . Второй коммутатор 10 высоким потенциалом на управл ющем входе устанавливаетс  на пропуск сигнала с элемента И 11 на вход генератора 12 импульсов, и этот же потенциал на управл ющем входе 23 разрешает раб.оту дешифратора 17. Предлагаемый преобразователь позвол ет использовать одни и те же коды двоичных эквивалентов в обоих режимах преобразовани , поэтому двоичный код, проход  через коммутатор 1, инвертируетс . После занесени  двоичного кода в регистр 5 вклюfчаетс  генератор 12 импульсов. Счетчик 13 формирует первый адрес выборки двоичного эквивалента из блока , 6 хранени  эквивалентов. Двоичный эквивалент из блока 6 подаетс  по первому информационному входу сумматора 7, по второму информационному входу которого подаетс  инвертирован ный код преобразуемого двоичного чис ла с выхода регистра 5. В сзмматоре 7 происходит вычитание двоичного эквивалента из кода преобразуемого чис ла, и если вычитание имеет отрицательный результат, о чем говорит высокий потенциал на выходе переноса сумматора, то двоичный код преобразуемого числа остаетс  в регистре 5 без изменени , так как прохождение , стробового сигнала на вход регистра 5через элемент И 4 запрещего нулевым потенциалом с выхода одноразр дного коммутатора 8. Соответствующее значение разр да регистра 16 также остаетс  нулевым, так как высокий потенциал на выходе переноса сумматора 7 запрещает формирование импульса низкого потенциал дешифратора 17. Счетчик 13 формирует следующий адрес выборки двоичного эквивалента из блока 6. Если вычитание вновь имеет отрицательный резуль тат, то процесс повтор етс . В блоке 6хранени  эквивалентов хран тс  двоичные коды чисел 1,2,4,8,10,20, 40,80,100,200,400,800,1000, 2000, 4000, 8000 и т.д. Количество хранимь двоичных чисел определ етс  разр дностью преобразуемых двоичных чисел. Вычитание двоичных эквивалентов из кода преобразуемого числа начинаетс  с большего двоичного эквивалента, т.е. по первому адресу блока 6 хранитс  больший двоичный эквивалент. В случае успешного вычитани  двоичного эквивалента из кода преобразуемого числа на выходе разр да переноса двоичного сумматора 7 устанавливаетс  нулевой потенциал, который, поступа  на дешифратор 17, разрешает формирование сигнала установки в единичное состо ние соответствующего разр да регистра 16. Номер разр да заносимой единицы определ етс  счетчиком 13. Нулевой потенциал с выхода переноса сумматора 7, проход  через коммутатор 8 на вход элемента И 4, инвертируетс  и разрешает проход стробового сигнала занесени  на вход регистра 5. Результат вычитани  с выхода сумматора 7 через коммутатор 1 заноситс  в регистр 5. Процесс вычислени  повтор етс , но с двоичными эквивалентами сравниваетс  уже результат вычитани , полученный в предьщущем цикле вычислени . Преобразование продолжаетс  до тех пор, пока элемент И 11 не зафиксирует нулевой результат в регистре 5. В этом случае элементом И 11 и коммутатором to формируетс  сигнал выключени  генератора 12,останавливающий формирование импульсов на выходе элемента И 4. Этим же сигналом осуществл етс  перевод триггера 3 в нулевое состо ние, обеспечивающее пропуск в устройство нового кода дл  преобразовани  и строба его занесени . Готовность устройства к приему нового кода подтверждаетс  низким потенциалом, устанавливающимс  на выходе 22 устройства. После выключени  генератора сигналом с выхода элемента И 11 в регистре 16 содержитс  двоично-дес тичный эквивалент преобразуемого двоичного числа. В режиме преобразовани  двоичнодес тичного числа в двоичное на управл ющий вход 23 преобразовател  подаетс  нулевой потенциал, который запрещает работу дешифратора 17, разрешает проход сигнала через коммутатор 8 со старшего разр да регистра 16 на вход элемента И 4, переводит второй коммутатор 10 на пропуск сигнала окончани  преобразовани  с эле мента И-НЕ 15. На информационньш вход 18, преобразовател  подаетс  двоично-дес тичный код числа, а на вход 24 преобразовател  - строб с канала. Передним фронтом строб прои водит начальную установку (установк в нулевое состо ние) регистров 5 и 16 и счетчика 13. По заднему фронту стробового сигнала производитс  запись двоично-дес тичного кода в регистр 16. Задним фронтом стробово го сигнала осуществл етс  перевод триггера 3 в единичное состо ние, обеспечивающее переключение коммута тора 2 на инвертирование и пропуск кода с инверсного вьпсода регистра 16 на информационный вход этого регистра . Второй информационный вход преобразовател  отключаетс . Коммут тор 9 высоким потенциалом переводит на пропуск сигнала с выхода генератора 12 на стробоный вход регистра 16 через элемент. ИЛИ 14, который открыт нулевым потенциалом, установленным на управл ющем входе 23 преобразовател . После записи двоичнодес тичного числа в регистр 16 вклю чаетс  генератор импульсов 12. Счет чик 13 формирует первьш адрес выборки двоичного эквивалента из блок 6 хранени  эквивалентов. Двоичный эквивалент с выхода блока 6 подаетс на первый вход сумматора 7, где он суммируетс  с кодом, поданным с регистра 5 по второму входу сумматора 7 . В первом такте работы устройства с выхода регистра 5 по второму входу сумматора 7 подаетс  нулевой код, так как регистр 5 обнулен. Код с сум матора 7 через коммутатор 1 подаетс на информационный вход регистра 5. Выход старшего разр да регистра 16 управл ет прохождением тактового сигнала через элемент И 4 на стробовый вход регистра 5. В случае единичного значени  старшего разр да регистра 16 элемент И 4 открываетс  пропуска  стробовый импульс с выхода коммутатора 9, и код с выхода сумматора 7 заноситс  в регистр 5 двоичного кода. Если же старший разр д в регистре 16 имеет нулевое значение то содержимое регистра 5 остаетс  неизменным. В следующем такте пр бразовани  код в регистре 16 сдвигаетс  на один разр д в сторону старших разр дов. Счетчиком 13 формируетс  следующий адрес выборки двоичного эквивалента из блока 6. Содержимое регистра 16 посто нно анализируетс  на нуль. В случае наличи  нул  во всех разр дах регистра 16 единичный пот нциал с выхода элемента И-НЕ 15, проход  через коммутатор 10, инвертируетс  и -выключает генератор 12 иКшульСов, после чего в регистре 5 будет содержатьс  двоичный эквивалент двоичнодес тичного числа, записанного в регистр 16. Ппедлагаемое изобретение позвол ет повысить среднТою скорость преобразовани  двоичного числа в двоично-дес тичное по сравнению с устройствомпрототипом , в котором двоично-дес тичное число получаетс  после опроса всех разр дов двоичного кода (быстродействие преобразовател -прототипа определ етс  разр дностью двоичного числа, предлагаемое устройство позвол ет завершать преобразование, не формиру  нулевые значени  после последней значащей единицы двоичнодес тичного числа, т.е. сокраща  врем  преобразовани  на число тактов, необходимое дл  формировани  оставшихс  нулевых разр дов)-, упростить устройство преобразовател  за счет замены двоично-дес тичного сумматора двоичным, меньшим по объему, исключени  группы элементов И и схемы сравнени  (замена двух групп элементов И с открытым коллектором или трем  состо ни ми на выходе двум  коммутаторами не приводит к увеличению аппаратурных затрат, введение элементов И, И-НЕ и коммутаторов компенсируетс  удалением группы элементов И); упростить согласование преобразовател  со специализированными устройствами и процессорами вычислительных машин, выпускаемых промьшшенностью (если в преобразователе-прототипе в режиме преобразовани  двоично-дес тичного кода в двоичный на входах двоично-дес тичного числа код необходимо держать посто нно , то предлагаемый преобразователь после занесени  кодов в регистры работает автономно, подтвержда  свою готовность к очередному циклу работы вьвдачей сигнала низкого потенциала в канал).At the input terminal 23 of the converter, a high potential is established before the supply of the number code. To the information input 18, the converter supplies the register of the binary-decimal code connected to the output of the OR element, the second input of which is connected to the output of the third one-bit switch, the output of the binary code register is connected to the second information input of cyviMaTopa. The drawing shows a structural diagram of the proposed Converter. The converter contains multi-bit switches 1 and 2, trigger 3, element 4, binary code register 5, binary equivalent storage block 6, binary adder 7, single-bit switches 8-10, element 11, pulse generator 12, counter 13, element OR 14, element AND-NOT 15, register 16 of the binary-decimal code, decoder 17. Switch 1 is designed to transmit inverted binary code to register 5 from information input 18 of the converter or direct code from the output of adder 7. Switch 2 transmits code from information input A code 19 converter or from the outputs of the register 16 of the binary-decimal code. The outputs of registers 5 and 16 are the first 20 and second 21 groups of transducer outputs, the output 22 of which is the output of the conversion end. The control input 23 sets the selection of the conversion law, and the input of the initial installation 24 performs the preparation of the converter for operation. The proposed Converter works as follows. In the binary / number conversion mode, double-decimal to control-, with binary code. The strobe arriving at the converter input 24, with the leading edge, sets the registers 5 and 16 and the counter 13 to the zero state. With the falling edge of the strobe signal, the binary code supplied via converter input 18 is entered into binary code register 5, trigger 3 is switched to the one state, allowing the strobe signals from the generator 12 to pass through the one-bit switch 9 and the And 4 element to binary code register 5, and sending the result of the subtraction from the output of the adder 7 through the switch 1 to the input of the register 5. The high potential at the control input 23 allows the signal to pass from the output of the transfer of the adder 7 through the switch 8 to the input of the And 4 element which generates a signal for entering information into register 5 according to the result of the subtraction. The second switch 10 at a high potential at the control input is set to pass a signal from the element 11 to the input of the generator 12 pulses, and the same potential at the control input 23 permits the operation of the decoder 17. The proposed converter allows the use of the same binary codes equivalents in both conversion modes, so the binary code, the pass through switch 1, is inverted. After entering the binary code into register 5, the generator of 12 pulses is turned on. The counter 13 forms the first sampling address of the binary equivalent from the block, 6 storage equivalents. The binary equivalent of block 6 is fed to the first information input of adder 7, the second information input of which is fed to the inverted code of the binary number being converted from the register 5 output. In the sender 7, the binary equivalent is subtracted from the number being converted, and if the subtraction has a negative result as evidenced by the high potential at the transfer output of the adder, the binary code of the number to be converted remains in register 5 unchanged, since the passage of the strobe signal to the input of the register 5An element 4 is prohibited by a zero potential from the output of the one-bit switch 8. The corresponding bit value of register 16 also remains zero, since the high potential at the transfer output of the adder 7 prohibits the formation of a low potential of the decoder 17. The counter 13 forms the next binary equivalent address from block 6. If the subtraction again has a negative result, the process is repeated. In the equivalent storage unit 6, binary codes of numbers 1,2,4,8,10,20, 40,80,100,200,400,800,1000, 2000, 4000, 8000, etc. are stored. The number of stored binary numbers is determined by the width of the converted binary numbers. The subtraction of binary equivalents from the code of the number being converted starts with a larger binary equivalent, i.e. at the first address of block 6, a larger binary equivalent is stored. In case of successful subtraction of the binary equivalent from the code of the number to be converted, the output potential of the transfer of binary adder 7 is set to zero, which, arriving at the decoder 17, allows the formation of a setting signal in the unit state of the corresponding register bit 16. counter 13. The zero potential from the transfer output of the adder 7, the passage through the switch 8 to the input of the element 4, inverts and allows the passage of the strobe signal to the input of the register 5. Re ultat subtracting the output from the adder 7 via the switch 1 to the register zanosits 5. The process of calculating is repeated, but with the binary equivalents compared subtraction result already obtained in predschuschem calculating cycle. The conversion continues until the And 11 element detects a zero result in the register 5. In this case, the And 11 element and the switch to form the generator 12 turn off signal, stopping the formation of pulses at the output of the And 4 element. The same signal performs the trigger 3 translation to the zero state, providing a pass to the device of a new code for conversion and strobe of its entry. The readiness of the device to receive a new code is confirmed by the low potential established at the output 22 of the device. After the generator is turned off by a signal from the output of element 11, register 16 contains the binary-decimal equivalent of the binary number being converted. In the binary-to-binary number conversion mode, a zero potential is applied to the control input 23 of the converter, which inhibits the operation of the decoder 17, permits the signal passing through the switch 8 from the high bit of the register 16 to the input of the And 4 element, switches the second switch 10 to skip the ending signal conversions from the NAND 15 element. Information input 18, the converter is supplied with a binary-decimal number code, and the input 24 of the converter is supplied with a gate from the channel. The leading edge of the strobe is the initial setting (set to zero state) of registers 5 and 16 and counter 13. On the falling edge of the strobe signal, the binary-decimal code is written to the register 16. By the falling edge of the strobe signal, the trigger 3 is converted into a single a state that ensures switching of the switch 2 to inverting and skipping the code from the inverse of the register 16 to the information input of this register. The second information input of the converter is turned off. A high potential switch 9 translates to a skip signal from the output of the generator 12 to the strobe input of the register 16 through the element. OR 14, which is open to zero potential set at converter control input 23. After writing the binary number to the register 16, the pulse generator 12 is turned on. The counter 13 forms the first sampling address of the binary equivalent from the equivalent storage unit 6. The binary equivalent from the output of block 6 is fed to the first input of the adder 7, where it is summed with the code fed from register 5 to the second input of the adder 7. In the first cycle of operation of the device from the output of the register 5, the zero input is applied to the second input of the adder 7, since the register 5 is reset. The code from summator 7 through switch 1 is fed to the information input of register 5. The output of the high bit of register 16 controls the passage of the clock signal through element 4 to the gate input of register 5. In the case of a single value of the high bit of register 16, element 4 opens skip the gate pulse from the output of the switch 9, and the code from the output of the adder 7 is entered into the register 5 of the binary code. If the high order bit in register 16 is zero, then the contents of register 5 remain unchanged. In the next clock cycle, the code in register 16 is shifted by one bit towards the higher bits. The counter 13 forms the next sampling address of the binary equivalent from block 6. The contents of register 16 are constantly parsed to zero. In the case of zero in all bits of register 16, the unit potnitsial from the output of the element IS-NOT 15, the passage through switch 10, is inverted and turns off the generator 12, Ck, then the register 5 will contain the binary equivalent of the binary number written in the register 16. The proposed invention allows to increase the average speed of converting a binary number to a binary-decimal compared to a prototype device, in which a binary-decimal number is obtained after polling all bits of the binary code (fast The conversion of the converter prototype is determined by the binary number, the proposed device allows you to complete the conversion without generating zero values after the last significant digit of the binary number, i.e., reducing the conversion time by the number of cycles needed to form the remaining zero bits) - , to simplify the device of the converter by replacing the binary-decimal adder with a binary, smaller one, excluding the group of elements And and the comparison circuit (replacing two groups of elements And with an open m collector or tri-state at the output of two switches does not increase the cost of hardware, the introduction of the AND, NAND and switches compensated removal element group I); to simplify the coordination of the converter with specialized devices and processors of computers manufactured by industry (if in the converter-prototype in the conversion mode of a binary-decimal code to binary at the inputs of a binary-decimal number, the code must be kept constant, then the proposed converter after entering the codes into registers It works autonomously, confirming its readiness for the next cycle of operation by outputting a low potential signal to the channel).

Обнуление регистров в устройствепрототипе производитс  путем подачи нулевых кодов на входы устройства.The zeroing of the registers in the device prototype is performed by applying zero codes to the inputs of the device.

ЯI

19nineteen

1818

LL

//

//

f /f /

f6f6

на что затрачиваетс  дополнительное врем . Этот недостаток исключаетс  в предлагаемом преобразователе.that takes extra time. This disadvantage is eliminated in the proposed converter.

/4 (/four (

f:f:

LL

ll

ff

1212

--

7V7V

1717

Claims (1)

ПРЕОБРАЗОВАТЕЛЬ ДВОИЧНОГО КОДА В ДВОИЧНО-ДЕСЯТИЧНЫЙ И ОБРАТНО, содержащий регистр двоичного кода, регистр двоично—десятичного кода, сумматор, блок хранения эквивалентов, выход которого соединен с первым информационным входом сумматора, генератор импульсов, первый и второй элементы И, элемент ИЛИ, отличающийся тем, что, с целью повышения быстродействия, в него введены первый и второй многоразрядные коммутаторы, первый, второй и третий одноразрядные коммутаторы, счетчик, дешифратор, триггер и элемент И-НЕ, причем сумматор и блок хранения эквивалентов выполнены двоичными, выходы счетчика соединены с разрядными входами дешифратора и блока хранения эквивалентов, выходы дешифратора соединены с первой группой информационных входов регистра двоично-десятичного кода, выходы которого соединены с входами элемента И-НЕ и с первой группой информационных входов первого многоразрядного коммутатора, вторая группа информацион ных входов которого является первой группой информационных входов преобразователя, управляющий вход которого соединен с первыми управляющими входами первого и второго одноразрядных коммутаторов, первым входом элемента ИЛИ и запрещающим входом дешифратора, выход переноса сумматора соединен с управляющим входом дешифратора и информационным входом первого одноразрядного коммутатора, второй управляющий вход которого соединен с выходом старшего разряда регистра двоично-десятичного кода, вторая группа информационных входов которого' соединена с выходами первого многоразрядного коммутатора, управляющий вход которого соединен с ' выходом триггера, подключенного к (Управляющему входу второго многоразрядного коммутатора и первому управляющему входу третьего одноразрядного коммутатора, второй управляющий .вход которого является входом начальной установки преобразовате. ля и соединен с входами сброса триггера, счетчика, регистров двоичного и двоично-десятичного кодов, выходы которых являются соответственно первой и второй группами информационных выходов преобразователя, вторая груп' па информационных входов которого соединена с первыми информационными входами второго многоразрядного коммутатора, вторые информационные входы которого соединены с выходами сумматора, а выходы соединены с инфорца•ционными входами регистра двоичного кода, вход записи которого соединен с выходом первого элемента И, первый и второй входы которого соответствен но соединены с выходами первого и третьего одноразрядных коммутаторов, информационный вход третьего одноразрядного коммутатора соединен с выходом генератора импульсов, подключенного к счетному входу счетчика, вход генератора импульсов соединен с выходом второго одноразрядного коммутатора, соединенного с установочным входом триггера, и является выходом окончания преобразования преобразователя, выход элемента И-НЕ соединен с вторым управляющим входом второго одноразрядного коммутатора, информационный вход которого соединен с выходом второго элемента И, входы которого соединены с выходами регистра двоичного кода, вход записи регистра двоично-десятичного кода соединен с выходом элемента ИЛИ, второй вход которого соединен с выходом третьего одноразрядного коммутатора,выход регис тра двоичного кода подключен к второму информационному входу сумматора.Binary code to binary, decimal and reverse, containing a binary register, a binary-decimal register, an adder, an equivalent storage unit, the output of which is connected to the first information input of the adder, a pulse generator, the first and second AND elements, the OR element, characterized in that, in order to improve performance, the first and second multi-bit switches, the first, second and third single-bit switches, a counter, a decoder, a trigger and an NAND element are introduced into it, moreover, an adder and a storage unit the equivalents are binary, the outputs of the counter are connected to the bit inputs of the decoder and the equivalent storage unit, the outputs of the decoder are connected to the first group of information inputs of the binary-decimal code register, the outputs of which are connected to the inputs of the AND gate and the first group of information inputs of the first multi-bit switch, the second the group of information inputs of which is the first group of information inputs of the converter, the control input of which is connected to the first control inputs of the of the first and second one-bit switches, the first input of the OR element and the inhibitory input of the decoder, the adder transfer output is connected to the control input of the decoder and the information input of the first one-bit switch, the second control input of which is connected to the high-order output of the binary-decimal code register, the second group of information inputs of which 'connected to the outputs of the first multi-bit switch, the control input of which is connected to the' output of the trigger connected to (Control input of the second about a multi-bit switch and the first control input of the third single-bit switch, the second control input of which is the input of the initial installation of the converter. It is connected to the reset inputs of the trigger, counter, registers of binary and binary decimal codes, the outputs of which are, respectively, the first and second groups of information outputs of the converter, the second group of information inputs of which are connected to the first information inputs of the second multi-bit switch, the second information inputs of which are connected to the outputs of the adder, and the outputs are connected to the information inputs of the binary code register, the recording input of which is connected to the output of the first AND element, the first the first and second inputs of which are respectively connected to the outputs of the first and third one-bit switches, the information input of the third one-bit switch is connected to the output of the pulse generator connected to the counting input of the counter, the input of the pulse generator is connected to the output of the second one-bit switch connected to the installation input of the trigger, and is the output of the end of the conversion of the Converter, the output of the element AND is NOT connected to the second control input of the second one-bit switch, inform the input of which is connected to the output of the second AND element, whose inputs are connected to the outputs of the binary code register, the input of the binary decimal register register is connected to the output of the OR element, the second input of which is connected to the output of the third one-bit switch, the output of the binary code register is connected to the second information input of the adder.
SU823514148A 1982-11-18 1982-11-18 Translator from binary code to binary-coded decimal code and vice versa SU1086424A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU823514148A SU1086424A1 (en) 1982-11-18 1982-11-18 Translator from binary code to binary-coded decimal code and vice versa

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU823514148A SU1086424A1 (en) 1982-11-18 1982-11-18 Translator from binary code to binary-coded decimal code and vice versa

Publications (1)

Publication Number Publication Date
SU1086424A1 true SU1086424A1 (en) 1984-04-15

Family

ID=21036600

Family Applications (1)

Application Number Title Priority Date Filing Date
SU823514148A SU1086424A1 (en) 1982-11-18 1982-11-18 Translator from binary code to binary-coded decimal code and vice versa

Country Status (1)

Country Link
SU (1) SU1086424A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР № 526886, кл. G 06 F 5/02, 1974. 2. Авторское свидетельство СССР № 732853, кл. G 06 F 5/02, 1977 (прототип). *

Similar Documents

Publication Publication Date Title
SU1086424A1 (en) Translator from binary code to binary-coded decimal code and vice versa
SU1149243A1 (en) Reversible binary code-to-binary coded decimal code translator
SU432487A1 (en) CONVERTER BINDING-DECIMAL CODE TO UNITARY CODE
SU1046927A1 (en) Multichannel d-a converter
SU1097994A1 (en) Device for transforming binary code to code of number system with negative radix
SU694867A1 (en) Device for the digital averaging of binary -coded signals
SU1285605A1 (en) Code converter
SU1056220A1 (en) Device for linearizing characteristics of transducers
SU732853A1 (en) Binary to binary decimal and vice versa converter
SU1751859A1 (en) Multichannel converter of series-to-parallel code
SU1264170A1 (en) Differentiating device
SU439801A1 (en) Device for converting ten numbers to binary
SU1557683A1 (en) Device for conversion of number from position code to residue class system number
SU999140A1 (en) Code converter
SU368598A1 (en) CONVERTER BINARY DECIMAL CODE "12222" TO UNITARY CODE
SU1709530A1 (en) Code-to-frequency converter
SU436393A1 (en) PULSE SIGNAL STORAGE
SU1001092A1 (en) Digital function converter
SU1275425A1 (en) Device for converting binary code to binary-coded decimal code
SU826562A1 (en) Multichannel code-to-time interval converter
SU1667261A1 (en) Parallel-to-serial converter
SU746550A1 (en) Code-to-probability converter
SU647693A1 (en) Time-to-probability converter
SU902248A1 (en) Device for conversion of time interval to code
SU1697071A1 (en) Orthogonal signal generator