RU1795460C - Device for determining number of unities in binary code - Google Patents
Device for determining number of unities in binary codeInfo
- Publication number
- RU1795460C RU1795460C SU904799322A SU4799322A RU1795460C RU 1795460 C RU1795460 C RU 1795460C SU 904799322 A SU904799322 A SU 904799322A SU 4799322 A SU4799322 A SU 4799322A RU 1795460 C RU1795460 C RU 1795460C
- Authority
- RU
- Russia
- Prior art keywords
- unit
- units
- counting
- level
- input
- Prior art date
Links
Landscapes
- Hardware Redundancy (AREA)
Abstract
Изобретение относитс к области автоматики и вычислительной техники и может быть использовано при построении само- контролйруемых цифровых узлов. Цель изобретени - повышение достоверности определени числа единиц. Устройство содержит m уровней блоков подсчета единиц и элемент И.-.Каждый блок подсчета единиц содержит сумматор, группу элементов НЕ, коммутатор, регистр, узел сравнени , элемент неравнозначности. С помощью сумматоров производитс подсчет единиц контролируемого слова и результат запоминаетс на регистре. По тактовому импульсу коммутатор пропускает на входы сумматоров инвертированное входное число и про-, исходит сравнение Содержимого регистра с новым результатом подсчета числа единиц. Если два результата инверсны, устройство работает правильно. 2 ил.The invention relates to the field of automation and computer technology and can be used in the construction of self-controlled digital nodes. The purpose of the invention is to increase the reliability of determining the number of units. The device contains m levels of unit counting units and an AND element .-. Each unit counting unit contains an adder, a group of elements NOT, a switch, a register, a comparison unit, an ambiguity element. Using the adders, the units of the word under control are counted and the result is stored in a register. According to the clock pulse, the switch passes an inverted input number to the inputs of the adders and pro, the contents of the register are compared with the new result of counting the number of units. If the two results are inverse, the device is working correctly. 2 ill.
Description
, Изобретение относитс к автоматике и вычислительной технике и может быть использовано при построении цифровых узлов повышенной надежности. ГThe invention relates to automation and computer technology and can be used in the construction of digital nodes of high reliability. G
Цель изобретени - повышение достоверности определени числа единиц.The purpose of the invention is to increase the reliability of determining the number of units.
На фиг, 1 приведена функциональна схема устройства; на фиг. 2 - функциональна схема блока подсчета единиц.In Fig. 1 is a functional diagram of the device; in FIG. 2 is a functional diagram of a unit counting unit.
Устройство (фиг. 1)содержит m уровней блоков 1 подсчета единиц, первый информационный вход 2 блока 1, тактовый вход 3 устройства, второй информационный вход 4 блока 1, установочный вход 5 устройства, выходы б, 7 неисправности и переноса блока 1 соответственно, информационный выход 8 блока 1, вход 9 задани режима работы блока 1, информационный вход 10 устройства , информационный выход 11 устройства, выход 12 неисправности устройства, эле- ,мент И 13, установочный вход 14 блока 1, тактовый вход 15 блока 1.The device (Fig. 1) contains m levels of units 1 for counting units, the first information input 2 of the unit 1, the clock input 3 of the device, the second information input 4 of the unit 1, the installation input 5 of the device, outputs b, 7 of the fault and transfer of unit 1, respectively, information output 8 of unit 1, input 9 of setting the operating mode of unit 1, information input 10 of the device, information output 11 of the device, output 12 of the device malfunction, element 13, setting input 14 of unit 1, clock input 15 of unit 1.
Блок 1 подсчета единиц, изображенный на фиг. 2, содержит регистр 16, узел 17-срав- нени , элемент неравнозначности 18, триггер 19, группу 20элементов НЕ, коммутатор 21, уровней сумматоров 22.Unit 1, shown in FIG. 2, contains a register 16, a comparison node 17, an ambiguity element 18, a trigger 19, a group of elements 20 NOT, a switch 21, adder levels 22.
Устройство работает следующим образом . .The device operates as follows. .
В первом такте на первые информационные входы 2 блоков 1 первого уровн подаетс входное слово, на информационном выходе 11 последнего блока 1 первого уров- н формируютс разр ды 2°-2k t весовой функции. На выходах 7 переноса блоков 1 первого уровн формируютс разр ды 2k весовой функции, которые поступают на пер ЮIn the first clock cycle, an input word is supplied to the first information inputs 2 of the first level blocks 1, the bits 2 ° -2k t of the weight function are formed on the information output 11 of the last block 1 of the first level. At the outputs 7 of the transfer of blocks 1 of the first level, bits 2k of the weight function are formed, which are fed to the trans
ел J о оate j o oh
вые информационные входы 2 блоков 1 второго уровн , и т.д.high information inputs of 2 blocks 1 of the second level, etc.
По положительному переходу тактового сигнала ТИ на тактовом входе 3 устройства блоки 1 фиксируют значение своих выходных сигналов, действующих в первом такте. Во втором такте за счет смены сигналов на входах 9 задани режима работы инвертируютс входные сигналы на входах сумматоров 22 блоков 1 первого уровн . Входы 9 задани режима работы блоков 1 последующих уровней подключены к шине нулевого потенциала устройства, поэтому эти блоки 1 не инвертируют сигналы, поступающие на первые информационные входы 2.By a positive transition of the clock signal TI at the clock input 3 of the device, blocks 1 fix the value of their output signals that are active in the first clock cycle. In the second cycle, due to a change in the signals at the inputs 9 of the operation mode setting, the input signals at the inputs of the adders 22 of the first level blocks 1 are inverted. The inputs 9 for setting the operating mode of blocks 1 of subsequent levels are connected to the bus of the potential zero of the device, therefore these blocks 1 do not invert the signals received at the first information inputs 2.
При исправности блоков 1 предыдущих уровней инверси на входах блоков 1 последующих уровней получаетс автоматически. Этим обусловлено зануление входов 9 блоков 1 всех уровней, кроме первого. Иначе имела бы место двойна инверси сигналов на входах 2 этих блоков 1 и режим проверки нельз было бы осуществить.If the blocks 1 of the previous levels are in good working order, the inverse at the inputs of blocks 1 of the next levels is obtained automatically. This is due to the vanishing of the inputs of 9 blocks 1 of all levels except the first. Otherwise, there would be a double inversion of the signals at the inputs 2 of these blocks 1 and the verification mode could not be implemented.
Если в предыдущих блоках 1 ошибок не было, то сигналы на входах 2 любого из последующих блоков примут инверсное значение. При этом все свободные разр ды первых и вторых информационных входов 2, 4 первых блоков 1 всех уровней соединены с тактовым входом 3 устройства, смена сигналов которого обеспечивает условные инвертировани выходных сигналов блоков 1, если они работают безошибочно.If there were no errors in the previous blocks 1, then the signals at the inputs 2 of any of the subsequent blocks will take an inverse value. Moreover, all the free bits of the first and second information inputs 2, 4 of the first blocks 1 of all levels are connected to the clock input 3 of the device, the change of signals of which provides conditional inverting of the output signals of the blocks 1, if they work correctly.
Неисправность некоторого блока 1 ведет к ошибке сравнени выходных сигналов двух тактов его работы. Эта ошибка распростран етс на все последующие блоки. На выходах 6 заданных блоков 1 устанавливаетс нулевой сигнал, поступающий на выход 12 неисправности устройства через элемент И 13. Поиск неисправности сводитс к определению блока 1 с нулевым сигналом на выходе б, дл которого все предыдущие блоки 1 имели единичный сигнал на этом выходе- . A failure of some unit 1 leads to an error comparing the output signals of two clock cycles of its operation. This error extends to all subsequent blocks. At the outputs 6 of the given blocks 1, a zero signal is set, which goes to the device malfunction output 12 through the element And 13. The troubleshooting is reduced to the determination of block 1 with a zero signal at output b, for which all previous blocks 1 had a single signal at this output.
Рассмотрим работу блока 1 подсчета единиц. Основной функциональной частью этого блока вл етс группа сумматоров 22. Функции суммы и переноса полного Сумматора вл ютс самодвойственными, поэтому инверсией входных сигналов можно обнаружить любые константные неисправности на входах и выходах сумматора. Данное свойство сохран етс и дл матрицы сумматоров в целом. Проведенный анализ показал, что дл некоторых схем сумматоров обнаруживаютс и все константные неисправности промежуточных логических элементов. Константные неисправности группы элементов НЕ 20 и коммутатора 21Consider the work of unit 1 counting units. The main functional part of this block is the adder group 22. The sum and transfer functions of the total Adder are self-dual, therefore, by inverting the input signals, any constant faults at the inputs and outputs of the adder can be detected. This property is also preserved for the adder matrix as a whole. The analysis showed that for some adder circuits all constant faults of the intermediate logic elements are also detected. Constant failures of the group of elements NOT 20 and the switch 21
привод т к нарушению инверсии входных переменных во втором также работы, что такое может быть обнаружено средствами контрол .lead to a violation of the inversion of the input variables in the second also works that such can be detected by means of control.
В первом такте данные с входов 2 через коммутатор 21 поступают на входы первой линейки сумматоров 22, одновременно на входы 4 подаютс данные от блока 1, сто щего слева (или нули, если рассматриваемый блок вл етс первым блоком 1 уровн ). С выходов последних сумматоров 22 линеек код веса поступает на выходы 8 и выход переноса 7. По положительному перепаду сигнала на входе 15 выходные сигналы записываютс на регистр 16.In the first cycle, the data from inputs 2 through the switch 21 are fed to the inputs of the first line of adders 22, while data from the block 1, which is on the left (or zeros, if the block in question is the first block of the first level) are fed to the inputs 4. From the outputs of the last adders 22 lines, the weight code is supplied to outputs 8 and the transfer output 7. According to the positive edge of the signal at input 15, the output signals are written to register 16.
Во втором также в зависимости от подключени входа 9 данные со входов 2 .поступают на матрицу сумматоров либо через группу 20 элементов НЕ, либо без инверсии.In the second, depending on the connection of input 9, the data from inputs 2 also arrive at the adder matrix either through a group of 20 NOT elements or without inversion.
В последнем случае полагаетс , что инвертирование входных сигналов проводит предыдущий блок 1. Сигналы на входах 4 инвертируютс либо предыдущим блоком, либо изменением уровн сигнала тактовогоIn the latter case, it is assumed that the inverting of the input signals is performed by the previous block 1. The signals at the inputs 4 are inverted either by the previous block or by changing the level of the clock signal
импульса. При инверсии входных данных в услови х отсутстви ошибок выходные сигналы второго такта инверсны выходным сигналам первого такта.momentum. When the input data is inverted under conditions of no errors, the output signals of the second clock are inverse to the output signals of the first clock.
Узел 17 сравнени сравнивает вектор,The comparison node 17 compares the vector
записанный на регистре 16 в первом такте, с вектором на выходах сумматоров 22 последнего столбца блока, полученным во втором такте. Пусть в первом такте имеем вектор Vi D3D2DiDp, а во втором, если нетrecorded on the register 16 in the first cycle, with the vector at the outputs of the adders 22 of the last column of the block obtained in the second cycle. Let in the first step we have the vector Vi D3D2DiDp, and in the second, if not
ошибок, вектор N/2 63620iDo. Эти вектора сравниваютс поразр дно, согласно весу разр дов.errors, vector N / 2 63620iDo. These vectors are compared bit by bit according to the weight of the bits.
Если каждый разр д вектора. V2 инверсен соответствующему разр ду вектора Vi,If each bit is a vector. V2 is inverse to the corresponding bit of the vector Vi,
то на выходах узла 17 сравнени имеем наборы 01 или 10, иначе - сигналы 00 или 11. Обнаружение ошибки вызывает установку триггера 19 по спаду сигнала ТИ в нулевое состо ние и формирование нулевого .сигнала на контрольном выходе 6 блока. 1.then at the outputs of comparison node 17 we have sets 01 or 10, otherwise, signals 00 or 11. Detection of an error causes the trigger 19 to be set to drop the TI signal to the zero state and generate a zero signal at the control output 6 of the block. 1.
. Определим число m уровней устройства в зависимости от числа п разр дов информационного входа 10 устройства и числа. We determine the number m of device levels depending on the number n bits of the information input 10 of the device and the number
разр дов 8 входа 2 одного блока 1 подсчета единиц. Значение m определ етс из неравенства .bits 8 of input 2 of one unit 1 of counting units. The value of m is determined from the inequality.
5555
етem
1 или п 2 1 or n 2
ктct
Возьмем двоичный логарифм от обоих частей неравенства, откуда получимWe take the binary logarithm of both sides of the inequality, whence we get
d m d m
|П2 П| P2 P
общее число 1 задаетс выражением:the total number 1 is given by:
и ш-иЈг +and sh-iЈg +
+1+1
Примеры:Examples:
1), , , N 16+4+1 211),,, N 16 + 4 + 1 21
2) , , т ,66 - , N 32+4+1 35.2),, t, 66 -, N 32 + 4 + 1 35.
3) , , т (1п2450)/3 - , N 57+7+1 65.3),, t (1p2450) / 3 -, N 57 + 7 + 1 65.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU904799322A RU1795460C (en) | 1990-03-05 | 1990-03-05 | Device for determining number of unities in binary code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU904799322A RU1795460C (en) | 1990-03-05 | 1990-03-05 | Device for determining number of unities in binary code |
Publications (1)
Publication Number | Publication Date |
---|---|
RU1795460C true RU1795460C (en) | 1993-02-15 |
Family
ID=21500403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU904799322A RU1795460C (en) | 1990-03-05 | 1990-03-05 | Device for determining number of unities in binary code |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU1795460C (en) |
-
1990
- 1990-03-05 RU SU904799322A patent/RU1795460C/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1275778, кл. Н 03 М 7/12, 1984. Авторское свидетельство СССР Мг 1068943, кл.6 06 F 11/08, 1982. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5958558A (en) | Parallel cyclic redundant checking circuit | |
US3660646A (en) | Checking by pseudoduplication | |
US3555255A (en) | Error detection arrangement for data processing register | |
US3366930A (en) | Method and apparatus for rejecting noise in a data transmission system | |
US3699322A (en) | Self-checking combinational logic counter circuit | |
RU1795460C (en) | Device for determining number of unities in binary code | |
US3744024A (en) | Circuit for detecting the presence of other than one-bit-out-of-n bits | |
US3845282A (en) | Apparatus and method for unambiguous counter reading | |
US3909783A (en) | Coded information signal forming apparatus | |
SU1112366A1 (en) | Signature analyzer | |
SU1068942A1 (en) | Device for checking binary information in berger codes | |
US3149307A (en) | Parity check circuit | |
SU1732464A1 (en) | Counter of pulses in code | |
SU1072102A1 (en) | Analog-storage with self-check | |
SU818018A1 (en) | Device for checking the quantity of unities in code | |
SU1072058A1 (en) | Device for determining object reliability index | |
SU1478340A1 (en) | Fibonacci p-code check unit | |
SU370629A1 (en) | DEVICE FOR AUTOMATIC VERIFICATION OF CONVERTERS "ANGLE - CODE" | |
US3548376A (en) | Matrix collating system | |
SU1644392A1 (en) | Error protection device | |
SU437072A1 (en) | Firmware Control | |
SU1010651A1 (en) | Memory device having self-testing capability | |
SU562783A1 (en) | Device for control and diagnostics of digital circuits | |
SU1267415A1 (en) | Microprogram control device | |
SU1315972A1 (en) | Dividing device |