RU2059290C1 - Device for neuron modeling - Google Patents
Device for neuron modeling Download PDFInfo
- Publication number
- RU2059290C1 RU2059290C1 SU5013518A RU2059290C1 RU 2059290 C1 RU2059290 C1 RU 2059290C1 SU 5013518 A SU5013518 A SU 5013518A RU 2059290 C1 RU2059290 C1 RU 2059290C1
- Authority
- RU
- Russia
- Prior art keywords
- inputs
- input
- output
- register
- elements
- Prior art date
Links
Images
Landscapes
- Complex Calculations (AREA)
Abstract
Description
Изобретение относится к бионике и вычислительной технике и может быть использовано в качестве элемента нейроподобных сетей для моделирования биологических процессов, а также для построения параллельных нейрокомпьютерных и вычислительных систем для решения задач распознавания образов, обработки и анализа изображений, цифровой обработки сигналов, систем алгебраических уравнений, матричных и векторных операций. The invention relates to bionics and computer engineering and can be used as an element of neural networks for modeling biological processes, as well as for building parallel neurocomputer and computing systems for solving problems of pattern recognition, image processing and analysis, digital signal processing, systems of algebraic equations, matrix and vector operations.
Из известных технических решений наиболее близким по технической сущности к предлагаемому объекту является устройство для моделирования нейрона, содержащее n блоков изменения синаптических весов, первые и вторые входы которых являются соответственно первой и второй группами информационных входов устройства, а третьи входы группой установочных входов устройства, сумматор, первые n входов которого подключены к выходам n блоков изменения синаптических весов, первый регистр, выход которого подключен к n+1 входу сумматора, а вход через первый вход первого элемента И соединен с выходом сумматора, связанного через первый вход второго элемента И с входом второго регистра, вход и выход которого соединены с соответствующими входами логического блока, содержащего первый и второй триггеры, с третьего по шестой элементы И и элемент ИЛИ, выход которого совместно с выходами сумматора, второго элемента И и второго регистра являются информационными выходами устройства, а вторые входы первого и второго элементов И, входы сброса первого и второго триггеров, первые входы третьего и четвертого элементов И подключены соответственно к управляющим входам устройства. Of the known technical solutions, the closest in technical essence to the proposed object is a device for simulating a neuron containing n blocks of synaptic weight changes, the first and second inputs of which are the first and second groups of information inputs of the device, and the third inputs are the group of installation inputs of the device, adder, the first n inputs of which are connected to the outputs of n blocks of synaptic balance changes, the first register, the output of which is connected to the n + 1 input of the adder, and the input through the first the first input of the first element And is connected to the output of the adder connected through the first input of the second element And to the input of the second register, the input and output of which is connected to the corresponding inputs of the logical block containing the first and second triggers, from the third to the sixth elements AND and the OR element, output which together with the outputs of the adder, the second element And and the second register are the information outputs of the device, and the second inputs of the first and second elements And, the reset inputs of the first and second triggers, the first inputs of the third and four of the elements AND are connected respectively to the control inputs of the device.
Недостатком устройства является то, что оно позволяет реализовать только два типа моделей нейрона: модель градуального нейрона с линейной аналоговой асимметричной выходной характеристикой вида Yвыхi= maxO;Pi} и модель формального нейрона с асимметричной ступенчатой выходной характеристикой вида Yвыхi sign (Pi).The disadvantage of this device is that it allows you to implement only two types of neuron models: a gradual neuron model with a linear analog asymmetric output characteristic of the form Y output = maxO; P i } and a formal neuron model with an asymmetric step output characteristic of the form Y output i sign (P i ) .
В то же время при моделировании нейронных сетей и при построении современных нейрокомпьютеров, наряду с указанными, получили широкое применение модели градуального нейрона с нелинейными аналоговыми выходными характеристиками как симметричного, так и асимметричного (фиг.1,в) вида, а также модели формального нейрона с симметричными и асимметричными ступенчатыми выходными характеристиками (фиг.1,г-ж). При этом многочисленные исследования доказали, что в зависимости от типа модели нейрона и вида его выходной характеристики существенным образом меняются свойства и функции нейроноподобных сетей, реализуемых на их основе. В связи с этим невозможность реализации в известном устройстве моделей нейрона с выходными характеристиками, представленными на фиг.1,б ж, существенным образом ограничивает его функциональные возможности и область практического применения. At the same time, when modeling neural networks and building modern neurocomputers, along with the indicated ones, widespread use were made of the degree neuron model with non-linear analog output characteristics of both symmetric and asymmetric (Fig. 1, c) form, as well as the model of formal neuron with symmetric and asymmetric step output characteristics (Fig. 1, gf). Moreover, numerous studies have shown that, depending on the type of neuron model and the type of its output characteristic, the properties and functions of neuron-like networks implemented on their basis change significantly. In this regard, the inability to implement in a known device models of a neuron with the output characteristics shown in Fig. 1, b, significantly limits its functionality and the scope of practical application.
Техническим эффектом изобретения является расширение функциональных возможностей устройства. The technical effect of the invention is to expand the functionality of the device.
Технический эффект достигается тем, что в известное устройство, содержащее n блоков изменения синаптических весов, сумматор, два регистра, первый и второй элементы И и логический блок, содержащий два триггера, с третьего по шестой элементы И и элемент ИЛИ, причем, первая и вторая группы информационных входов устройства подключены соответственно к первым и вторым входам n блоков изменения синаптических весов, выходы которых соединены с первого по n входами сумматора, n+1 вход которого соединен с выходом первого регистра, вход которого соединен с выходом первого элемента И, первый вход которого соединен с выходом сумматора, первым входом второго элемента И и является первым информационным выходом устройства, выход второго элемента И является вторым информационным выходом устройства и соединен с входом второго регистра и через первый вход логического блока подключен к входу установки в единицу первого триггера, выход второго регистра является третьим информационным выходом устройства и через второй вход логического блока соединен с первым входом третьего элемента И, выход которого соединен с первым входом элемента ИЛИ, выход которого является четвертым информационным выходом устройства, первый и второй управляющие входы которого соединены с вторыми входами первого и второго элементов И соответственно, группа установочных входов устройства соединена с третьими входами n блоков изменения синаптических весов, третий управляющий вход устройства соединен с входом сброса первого триггера, четвертый управляющий вход устройства соединен с первым входом четвертого элемента, введены третий регистр, а в логический блок дополнительно введены четвертый и пятый регистры, с третьего по пятый триггеры, с седьмого по тридцатый элементы И и две группы дополнительных входов, первая из которых соединена с выходами с первого по восьмой третьего регистра, а вторая с прямыми и инверсными выходами двух старших разрядов второго регистра, причем первый вход четвертого элемента И соединен с первыми входами с пятого по седьмой элементов И, выходы элементов И с четвертого по седьмой соединены с входами установки в единицу триггеров с второго по пятый соответственно, входы сброса которых соединены с входом сброса первого триггера, прямой и инверсный выходы старшего разряда второго регистра соединены через дополнительные входы второй группы с вторыми входами четвертого и шестого и пятого и седьмого элементов И соответственно, прямой и инверсный выходы второго разряда соединены через дополнительные входы второй группы с третьими входами шестого и седьмого и четвертого и пятого элементов И соответственно, выход второго триггера соединен с вторым входом третьего элемента И и первыми входами элементов И с восьмого по пятнадцатый, первый вход третьего элемента И соединен с вторыми входами восьмого и девятого и первым входом шестнадцатого элемента И, второй вход которого соединен с выходом пятого триггера и первыми входами элементов И с семнадцатого по девятнадцатый, выход третьего триггера соединен с первыми входами элементов И с двадцатого по двадцать третий, выход четвертого триггера соединен с первыми входами элементов И с двадцать четвертого по тридцатый, пятый и шестой управляющие входы устройства соединены с установочными входами четвертого и пятого регистров соответственно, выход четвертого регистра соединен с его информационным входом и вторыми входами десятого, с двенадцатого по пятнадцатый, и с двадцать четвертого по тридцатый элементов И, пpямой выход первого триггера соединен с третьими входами десятого, двенадцатого и пятнадцатого элементов И, инверсный выход первого триггера соединен с вторым входом одиннадцатого элемента И, выход пятого регистра соединен с его информационным входом и вторым входом элементов И с семнадцатого по двадцать третий и с третьим входом одиннадцатого элементов И, седьмой управляющий вход устройства соединен с информационным входом третьего регистра, первый выход которого соединен через соответствующий дополнительный вход первой группы с третьим входом третьего регистра соединен через соответствующий дополнительный вход первой группы с третьими входами восьмого, двадцать четвертого, шестнадцатого и двадцатого элементов И, третий выход третьего регистра через соответствующий дополнительный вход первой группы соединен третьими входами семнадцатого, двадцать первого и двадцать шестого элементов И и четвертыми входами десятого и одиннадцатого элементов И, пятый выход третьего регистра соединен через соответствующий дополнительный вход первой группы с третьими входами восемнадцатого, двадцать второго и двадцать седьмого элементов И и четвертым входом двенадцатого элемента И, шестой выход третьего регистра через соответствующий дополнительный вход первой группы соединен с третьими входами тринадцатого, девятнадцатого, двадцать третьего и двадцать восьмого элементов И, седьмой выход третьего регистра соединен через соответствующий дополнительный вход первой группы с третьими входами четырнадцатого и двадцать девятого элементов И, восьмой выход третьего регистра соединен через соответствующий дополнительный вход первой группы с четвертым входом пятнадцатого и третьим входом тридцатого элементов И, выходы элементов И с восьмого по тридцатый соединены с второго по двадцать четвертый входами элемента ИЛИ. The technical effect is achieved by the fact that in a known device containing n blocks of changes in synaptic weights, an adder, two registers, the first and second elements AND, and a logical block containing two triggers, the third through sixth elements AND, and the OR element, and the first and second groups of information inputs of the device are connected respectively to the first and second inputs of n blocks of change of synaptic weights, the outputs of which are connected from the first to n inputs of the adder, n + 1 input of which is connected to the output of the first register, the input of which is connected n with the output of the first element And, the first input of which is connected to the output of the adder, the first input of the second element And is the first information output of the device, the output of the second element And is the second information output of the device and is connected to the input of the second register and is connected to the first input of the logic block the installation input to the unit of the first trigger, the output of the second register is the third information output of the device and through the second input of the logical unit is connected to the first input of the third element And, the output to otorogo connected to the first input of the OR element, the output of which is the fourth information output of the device, the first and second control inputs of which are connected to the second inputs of the first and second elements And, accordingly, the group of installation inputs of the device is connected to the third inputs of n blocks of change of synaptic weights, the third control input the device is connected to the reset input of the first trigger, the fourth control input of the device is connected to the first input of the fourth element, the third register is entered, and in the logical the fourth and fifth registers, from the third to fifth triggers, from the seventh to the thirtieth AND elements and two groups of additional inputs, the first of which is connected to the outputs from the first to the eighth of the third register, and the second to the direct and inverse outputs of the two upper bits the second register, with the first input of the fourth element And connected to the first inputs from the fifth to seventh elements And, the outputs of the elements And from the fourth to seventh connected to the inputs of the installation in the unit of triggers from the second to fifth, respectively but, the reset inputs of which are connected to the reset input of the first trigger, the direct and inverse outputs of the highest order of the second register are connected through additional inputs of the second group to the second inputs of the fourth and sixth and fifth and seventh elements. And accordingly, the direct and inverse outputs of the second category are connected through additional inputs the second group with the third inputs of the sixth and seventh and fourth and fifth elements And, respectively, the output of the second trigger is connected to the second input of the third element And the first inputs of the element Comrade And from the eighth to the fifteenth, the first input of the third element And is connected to the second inputs of the eighth and ninth and the first input of the sixteenth element And, the second input of which is connected to the output of the fifth trigger and the first inputs of the elements And from seventeenth to nineteenth, the output of the third trigger is connected to the first the inputs of the elements And from the twentieth through the twenty third, the output of the fourth trigger is connected to the first inputs of the elements And from the twenty-fourth to the thirty, fifth and sixth control inputs of the device are connected to the installation by the moves of the fourth and fifth registers, respectively, the output of the fourth register is connected to its information input and the second inputs of the tenth, twelfth to fifteenth, and from the twenty-fourth to thirtieth elements of And, the direct output of the first trigger is connected to the third inputs of the tenth, twelfth and fifteenth elements of And, the inverse output of the first trigger is connected to the second input of the eleventh element And, the output of the fifth register is connected to its information input and the second input of the elements And from the seventeenth to the twenty third and with the third input of the eleventh element And, the seventh control input of the device is connected to the information input of the third register, the first output of which is connected through the corresponding additional input of the first group to the third input of the third register is connected through the corresponding additional input of the first group with the third inputs of the eighth, twenty fourth, sixteenth and of the twentieth elements And, the third output of the third register through the corresponding additional input of the first group is connected by the third inputs of the seventeenth , the twenty-first and twenty-sixth elements And and the fourth inputs of the tenth and eleventh elements And, the fifth output of the third register is connected through the corresponding additional input of the first group with the third inputs of the eighteenth, twenty-second and twenty-seventh elements And and the fourth input of the twelfth element And, the sixth output of the third register through the corresponding additional input of the first group is connected to the third inputs of the thirteenth, nineteenth, twenty third and twenty eighth elements And, the seventh in the output of the third register is connected through the corresponding additional input of the first group with the third inputs of the fourteenth and twenty-ninth elements And, the eighth output of the third register is connected through the corresponding additional input of the first group with the fourth input of the fifteenth and third input of the thirty element And, the outputs of the elements And from the eighth to the thirtieth from the second to the twenty-fourth inputs of the OR element.
Таким образом, введение седьмого элемента И и с третьего по пятый триггеры и их новые взаимосвязи с имевшимися ранее четвертым, пятым, шестым элементами И и вторым триггером позволяют осуществить через вторую группу дополнительных входов логического блока анализ знаковых разрядов двоичного значения мембранного потенциала Рi реализуемой модели нейрона. При этом наличие в знаковых разрядах комбинации 00 свидетельствует о положительном значении Рi, 11 об отрицательном значении Pi, а комбинации 01 и 10 о положительном и отрицательном переполнении разрядной сетки второго регистра. Эта информация в сочетании с выбранным кодом операции, который записывается в дополнительно введенный третий регистр через седьмой управляющий вход устройства и записанными в дополнительно введенные четвертый и пятый регистры константами +1 и -1, проходя через дополнительно введенные с восьмого по тридцатый элементы И, обеспечивает настройку устройства на реализации моделей нейрона с любой из представленных на фиг.1 выходных характеристик, что обеспечивает существенное расширение функциональных возможностей устройства.Thus, the introduction of the seventh element And and the third to fifth triggers and their new relationships with the previously available fourth, fifth, sixth elements And and the second trigger allow the analysis of the sign bits of the binary value of the membrane potential P i of the implemented model through the second group of additional inputs of the logical unit neuron. In this case, the presence in the sign bits of combination 00 indicates a positive value of P i , 11 indicates a negative value of P i , and a combination of 01 and 10 indicates a positive and negative overflow of the discharge grid of the second register. This information in combination with the selected operation code, which is written to the additionally entered third register through the seventh control input of the device and the constants +1 and -1 written to the additionally entered fourth and fifth registers, passing through the additional elements And, entered from the eighth to thirtieth, provides the setting devices for implementing models of a neuron with any of the output characteristics shown in FIG. 1, which provides a significant expansion of the device’s functionality.
На фиг. 1 представлены выходные характеристики моделей нейрона, реализуемые устройством; на фиг.2 структурная схема устройства для моделирования нейрона; на фиг.3 структурная схема блока изменения синаптических весов; на фиг.4 структурная схема логического блока; на фиг.5 временная диаграмма работы устройства для моделирования нейрона в режиме градуального или формального нейронов; на фиг.6 временная диаграмма работы устройства для моделирования нейрона в режиме интегратора. In FIG. 1 shows the output characteristics of neuron models implemented by the device; figure 2 is a structural diagram of a device for modeling a neuron; figure 3 is a structural diagram of a block for changing synaptic weights; figure 4 is a structural diagram of a logical block; figure 5 is a timing diagram of the operation of a device for modeling a neuron in the mode of degree or formal neurons; Fig.6 is a timing diagram of the operation of a device for modeling a neuron in integrator mode.
Устройство содержит (фиг. 2) информационные входы 11,1n и 21,2n блоков изменения синаптических весов 31,3n, установочные входы 41,4n, сумматор 5, первый регистр 6, первый элемент И7, второй элемент И8, второй регистр 9, логический блок 10, третий регистр 11, управляющие входы 12,13,14,15,16,17,18, информационные выходы 19,20,21,22. Информационные входы 11,1n, 21,2n подключены соответственно к первым и вторым входам n блоков изменения синаптических весов 31,3n, третьи входы которых являются установочными входами 41,4n устройства. Выходы n блоков изменения синаптических весов 31,3n подключены к n входам сумматора 5, n+1 вход которого подсоединен к выходу первого регистра 6. Вход первого регистра 6 через первый вход первого элемента И 7 подключен к выходу сумматора 5, который, кроме того, через первый вход второго элемента И 8 подключен к входу второго регистра 9 и первому входу логического блока 10. Выход второго регистра 9 подключен к второму входу логического блока 10, первая группа дополнительных входов которого подключена к выходам третьего регистра 11. Вторая группа дополнительных входов логического блока 10 подключена соответственно к прямым и инверсным выходам двух старших разрядов второго регистра 9. Вторые входы первого 7 и второго 8 элементов И, третий, четвертый, пятый и шестой входы логического блока 10, вход третьего регистра 11 являются управляющими входами 12,13,14,15,16,17,18 устройства. Выход сумматора 5, выход второго элемента И8, выход второго регистра 9 и выход логического блока 10 являются информационными выходами 19,20,21,22 устройства.The device contains (Fig. 2)
Каждый j-й (j=1,n) блок изменения синаптических весов 3j(фиг.3) содержит информационные входы 1j, 2j, установочный вход 4j, множительное устройство 23, выход 24, сумматор 25 и регистр 26.Each j-th (j = 1, n) unit for changing synaptic weights 3 j (Fig. 3) contains
Логический блок 10 (фиг. 4) содержит вход 27, который является первым входом этого блока и подключается к выходу второго элемента И 8 (фиг.2), входы 28,29,30,31, образующие вторую группу дополнительных входов этого блока и подключающиеся соответственно к прямым и инверсным выходам двух старших разрядов второго регистра 9 (фиг.2), вход 32, являющийся вторым входом этого блока и пдключающийся к выходу второго регистра 9 (фиг.2), с четвертого по седьмой элементы И 34,33,36,35 соответственно, с второго по пятый триггеры 37,38,39,40 соответственно, четвертый регистр 41, первый триггер 42, пятый регистр 43, третий элемент И 44, с восьмого по тридцатый элементы И 45,50,51,53,56,60,64,66,47,54,58,62,48,55,59,63,46, 49,52,57,61,65,67 соответственно, выходы которых совместно с выходом третьего элемента И 44 соединены с первого по двадцать четвертый входами элемента ИЛИ 68, выход которого является четвертым информационным выходом 22 устройства, входы 69,70,71,72, являющиеся соответственно третьим 14, четвертым 15, пятым 16 и шестым 17 управляющими входами устройства (фиг.2), входы 73-80. образующие первую группу дополнительных входов этого блока и подключающиеся соответственно к выходам с первого по восьмой третьего регистра 11 (фиг.2). Logical block 10 (Fig. 4) contains an
Регистры 26 n блоков изменения синаптических весов 31,3n(фиг.3), второй 9 и третий 11 регистры устройства (фиг.2), а также регистры 41 и 43 логического блока 10 (фиг.4) выполнены в виде m-разрядных, а первый регистр 6 в виде (m-2)-разрядного стандартных сдвиговых регистров. Триггеры 37,38,39,40,42 логического блока 10 (фиг. 4) являются стандартными RS- триггерами. В качестве множительного устройства 23 (фиг.3) блоков изменения синаптических весов 31,3nиспользуется стандартное множительное устройство (с алгоритмом умножения младшими разрядами вперед) последовательно-параллельного типа. Принцип построения и функционирования указанных стандартных устройств известны Нешумова К.А. Электронные вычислительные машины и системы. М. Высшая школа, 1989, с.93-171; Соловьев Г.Н. Арифметические устройства ЭВМ. М. Энергия, 1978, с.7-149).Registers 26 n of the synaptic weight change blocks 3 1 , 3 n (Fig. 3), the second 9 and third 11 device registers (Fig. 2), as well as the
Устройство работает следующим образом. The device operates as follows.
Перед началом работы n регистров множительных устройств 23 (фиг.3), служащих для приема входных сигналов xi,1,xi,n, n регистров 26, служащих для записи начальных и хранения текущих значений синаптических весов τ i,1 τ i,n n блоков изменения синаптических весов 31,3n, первый регистр 6, второй регистр 9, третий регистр 11, триггеры 37,38,39,40,42 и регистры 41,43 логического блока 10 устанавливаются в нулевое состояние. После этого осуществляется настройка устройства на требуемый режим функционирования. Для этого через установочные входы 41,4n в регистры 26 блоков 31,3n-1изменения синаптических весов задают в виде m-разрядных двоичных модифицированных (два разряда на знак) кодов начальные значения синаптических весов γ0,1 γo,n-1 а в регистр 26 блока 3n задают требуемое m-разрядное двоичное значение (в модифицированном коде) порога нейрона θi. При этом, в регистр множительного устройства 23 (предназначенный для приема входного сигнала) блока 3n изменения синаптических весов записывается m-разрядный двоичный модифицированный дополнительный код числа (-1), которое там постоянно хранится. В регистр 41 логического блока 10, через вход 71 (фиг.4), являющийся управляющим входом 16 устройства (фиг.2) записывается двоичный модифицированный m-разрядный код числа (+1), которое там постоянно хранится, а в регистр 43 логического блока 10, через вход 72, являющийся управляющим входом 17 устройства (фиг.2 и 4), записывается двоичный дополнительный модифицированный m-разрядный код числа (-1), которое там постоянно хранится. Затем через управляющий вход 18 в третий регистр 11 (фиг. 2) записывается требуемый код операции в виде 8-разрядного двоичного кода, в соответствии с которым устройство настраивается на реализацию выбранной модели нейрона. При коде операции 10000000 устройство реализует модель градуального нейрона с линейной аналоговой асимметричной выходной характеристикой (фиг.1,а), при коде 01000000 модель градуального нейрона с нелинейной аналоговой симметрией выходной характеристикой (фиг. 1, б) при коде 00100000 модель градуального нейрона с нелинейной аналоговой асимметричной выходной характеристикой (фиг.1,в) при коде 00010000 модель формального нейрона с симметричной ступенчатой выходной характеристикой (фиг.1,г), при коде 000010000 модель формального нейрона с симметричной трехзначной ступенчатой выходной характеристикой (фиг.1,д), при коде 00000100 модель формального нейрона с симметричной ступенчатой выходной характеристикой (фиг.1,е), при коде 00000010 модель формального нейрона с асимметричной ступенчатой выходной характеристикой (фиг. 1. ж) и при коде 00000001 модель формального нейрона с асимметричной ступенчатой выходной характеристикой (фиг. 1, к). При коде операции 00000000 логический блок 10 отключается и устройство работает в режимах интегратора, сумматора, подсчета скалярного произведения векторов. После задания кода операции устройство готово к приему m-разрядных модифицированных кодов входных сигналов xi,1, xi,n-1 и сигналов приращений Δ γi,1 Δ γi,n-1 которые могут поступать соответственно на информационные входы 11,1n-1 и 21,2n-1устройства.Before you start n registers of multiplying devices 23 (figure 3), used to receive input signals x i, 1 , x i, n ,
Временная диаграмма работы устройства в режиме моделирования нейрона представлена на фиг.5. В течение первых m тактов осуществляется прием m-разрядных модифицированных двоичных кодов входных сигналов xi,1,xi,n-1 и Δ γi,1 Δ γi,n-1 и одновременно выдачу m-разрядного модифицированного двоичного кода выходного сигнала Yвыхi-1(полученного на предыдущем i-1 шаге) на информационном выходе 22 устройства. При этом в течение первых m тактов времени в блоках 31,3n-1 изменения синаптических весов происходит суммирование (в сумматорах 25) поступающих приращений Δ γi,1 Δ γi,n-1 с хранящимися в регистрах 26 значениями синаптических весов γi-1,1,γi-1,n-1, полученными на предыдущем i-1 шаге. В результате в регистрах 26 блоков 31,3n-1 изменения синаптических весов в данном i шаге формируются текущие значения синаптических весов
γ i,1 γ i-1,1 + Δ γi,1 γ i,n-1
γi-1,n-1 + Δ γi,n-1
В течение последующих (2m-2) тактов времени в блоках 31,3nизменения синаптических весов происходит умножение, в множительных устройствах 23 (фиг. 3), поступивших входных сигналов xi,1,xi,n-1 на текущие значения синаптических весов γ i,1 γi,n-1 и умножение величины порога θi на (-1) и затем полученные (2m-2)-разрядные произведения в модифицированном двоичном коде суммируются на сумматоре 5. Другими словами, в течение указанных (2m-2) тактов времени на выходе комбинационного сумматора 5 формируется (2m-2)-разрядный модифицированный двоичный код числа
Pi= xi,j•γi,j-θi.The timing diagram of the operation of the device in the simulation mode of the neuron is presented in figure 5. During the first m clocks, m-bit modified binary codes of the input signals x i, 1 , x i, n-1 and Δ γ i, 1 Δ γ i, n-1 are received and simultaneously the m-bit modified binary output code is output Y output i-1 (obtained in the previous i-1 step) at the
γ i, 1 γ i-1,1 + Δ γ i, 1 γ i, n-1
γ i-1, n-1 + Δ γ i, n-1
Over the next (2m-2) clock cycles in blocks 3 1 , 3 n of the change in the synaptic weights, multiplication takes place in multipliers 23 (Fig. 3) of the input signals x i, 1 , x i, n-1 by the current values synaptic weights γ i, 1 γ i, n-1 and multiplying the threshold θ i by (-1) and then the resulting (2m-2) -bit products in the modified binary code are summed on adder 5. In other words, during the indicated ( 2m-2) time steps at the output of the combinational adder 5, a (2m-2) -bit modified binary code of the number is generated
P i = x i, j • γ i, j -θ i .
Как видно из временной диаграммы на фиг.5, под действием управляющих сигналов f13, поступающих через управляющий вход 13 на второй вход второго элемента И 8, старшие m разрядов ((m-2) значащих и два знаковых разряда) числа Pi записываются во второй регистр 9. При этом, после записи самого старшего m разряда числа Pi на управляющий вход 15 подается управляющий сигнал f15 (фиг.5), под действием которого элементы И 33,34,35,36 логического блока 10 (фиг. 4) открываются и в зависимости от значения двух старших (знаковых) разрядов второго регистра 9 осуществляется переход в единичное состояние одного из триггеров 37,38,39,40 логического блока 10. Так, если в знаковых разрядах второго регистра 9 имеется комбинация 00 (т.е. число Piположительное или равно нулю), то в единичное состояние переходит триггер 37, если 10 (отрицательное переполнение), то в единичное состояние переходит триггер 38, если 01 (положительное переполнение), то триггер 39, и если 11 (число Pi отрицательное), то триггер 40. Записанный в третий регистр 11 на начальном этапе код операции в виде восьмиразрядного кода поступает на первую группу дополнительных входов 73-80 логического блока 10. В зависимости от заданного кода операции и состояния триггеров 37,38,39,40 выбирается определенная группа элементов И среди множества этих элементов И 44-67 и реализуется требуемая модель нейрона и его выходная характеристика. При коде операции 10000000 на вход 73 первой группы дополнительных входов логического блока 10 поступает единичный сигнал, открывающий схему И 44 логического блока 10 (фиг.4), Если число Pi во втором регистре 9 больше или равно нулю (т.е. в знаковых разрядах регистра 9 комбинация 00 и триггер 37 в единичном состоянии (фиг. 4), то она в следующие m тактов времени с выхода регистра 9 через второй вход 32 логического блока 10 и через элемент И 44 и элемент ИЛИ 68 логического блока 10 поступает на выход 22 устройства. Если Pi < 0, то триггер 37 логического блока 10 будет в нулевом состоянии, схема И 44 логического блока 10 будет закрыта и в течение следующих m тактов времени на выходе 22 устройства будет выдаваться ноль. Иными словами, в этом режиме устройство реализует функции градуального нейрона с линейной аналоговой выходной характеристикой (фиг.1,a)
Pi= xi,j•γi,j-θi
Yвых i= max0;Pi}
После выдачи m-разрядного модифицированного двоичного кода числа Yвыхi на вход 69 логического блока 10, являющийся управляющий входом 14 устройства, подается единичный сигнал f14 (фиг. 5), сбрасывающий триггеры 37,38,39,40 и 42 в нулевое состояние и описанная выше процедура полностью повторяется.As can be seen from the timing diagram in figure 5, under the influence of the control signals f 13 received through the
P i = x i, j • γ i, j -θ i
Y O i = max0; P i}
After issuing the m-bit modified binary code of the number Y oi, the
При коде операции 01000000 на вход 74 первой группы дополнительных входов логического блока 10 подается единичный сигнал, который открывает соответствующую группу элементов И 45,46,47,48 логического блока 10 (фиг.4). Тогда если величина Pi ≥0 (т.е. в знаковых разрядах регистра 9 комбинация 00 и триггер 37 в единичном состоянии), то она с выхода регистра 9 через второй вход 32 логического блока 10, через элемент И 45 и элемент ИЛИ 68 логического блока 10 поступает в течение m тактов времени на выход 2 устройства. Если в знаковых разрядах второго регистра 9 комбинация 01 (т.е. регистр 39 в единичном состоянии), то это свидетельствует о положительном переполнении, т. е. величина Pi превышает наибольшее положительное число, помещающееся в разрядную сетку второго регистра 9 (в качестве максимального положительного числа выбрана величина +1, так как в устройстве используются модифицированные двоичные коды с фиксированной запятой перед старшим разрядом). В этом случае из регистра 41 величина (+1) (записанная в регистр 41 на начальном этапе) через элемент И 46 и элемент ИЛИ 68 логического блока 10 (фиг.4) поступает на выход 22 устройства. Если величина Pi<0 (в знаковых разрядах второго регистра комбинация 11 и триггер 40 в единичном состоянии), то она с выхода регистра 9 через второй вход 32. элемент И 47 и элемент ИЛИ 68 логического блока 10 поступает на выход 22 устройства. Если в знаковых разрядах второго регистра 9 комбинация 10 (т.е. отрицательное переполнение), то с выхода регистра 43 через элемент И 48, элемент ИЛИ 68 логического блока 10 на выход 22 устройства поступает максимальное отрицательное число -1, которое может поместиться в разрядной сетке регистра 9.When the operation code 01000000 to the
В результате в данном режиме устройства реализует алгоритм градуального нейрона с нелинейной аналоговой симметричной выходной характеристикой (фиг. 1,б)
Pi= xi,j•γi,j-θi
Yвых i= P
При коде операции 00100000 на вход 75 первой группы дополнительных входов логического блока 10 подается единичный сигнал, отпирающий схемы И 49,50 логического блока 10 (фиг.4). Тогда, если Pi ≥ 0 (в знаковых разрядах второго регистра 9 через второй вход 32, схему И 50, схему ИЛИ 68 логического блока 10 поступает в течение m тактов на выход 22 устройства. Если имеет место положительное переполнение (в знаковых разрядах второго регистра 9 комбинация 01 и триггер 39 в единичном состоянии), то величина (+1) с выхода регистра 41 через схему И 49 и схему ИЛИ 68 поступает на выход 22 устройства. В остальных случаях, т.е. когда Pi < 0 или имеет место отрицательное переполнение на выходе 22 устройства в течение m тактов будет выдаваться ноль, т.е. при данном режиме устройство реализует алгоритм градуального нейрона с нелинейной аналоговой несимметричной характеристикой (фиг.1,в)
Pi= xi,j•γi,j-θi
Yвых i= 1
При коде операции 00010000 на вход 76 первой группы дополнительных входов логического блока 10 поступает единичный сигнал и отпирает схемы И 51,52,53,54,55 логического блока 10. Тогда, если Pi>0 (есть хоть одна единица в значащих разрядах кода числа Pi и триггер 42 находится в единичном состоянии), то триггер 37 в единичном состоянии и величина (+1) с выхода регистра 41 через схему И 51 и схему ИЛИ 68 логического блока 10 (фиг.4) поступает на выход 22 устройства. Аналогичная ситуация происходит и в том случае, когда имеет место положительное переполнение разрядной сетки регистра 9 и триггер 39 находится в единичном состоянии и отпирает схему И 52 логического блока 10. Если Pi 0 (и знаковые и значащие разряды равны нулю), то триггер 42 в нулевом состоянии, триггер 37 в единичном состоянии и величина (-1) с выхода регистра 43 через схему И 53 и схему ИЛИ 68 логического блока 10 происходит на выход 22 устройства. Такая же ситуация происходит при Рi < 0 или отрицательном переполнении, только в этих случаях величина (-1) проходит на выход 22 устройства соответственно через схему И 54 или схему И 55 логического блока 10. В данном режиме устройство реализует алгоритм формального нейрона с симметричной ступенчатой выходной характеристикой (фиг.1,г):
Pi= xi,j•γi,j-θi
Yвых i=
При коде операции 00001000 на вход 77 первой группы дополнительных входов логического блока 10 поступает единичный сигнал и отпирает схемы И 56, 57, 58, 59 логического блока 10. Тогда если Pi > 0 (или имеет место положительное переполнение) и триггер 37 (или триггер 39) в единичном состоянии, то величина (+1) с выхода регистра 41 через элемент И 56 (или элемент И 57) и схему ИЛИ 68 логического блока 10 поступает на выход 22 устройства, Если Pi 0 схемы И 56.57,58,59 заперты и на выходе 22 устройства в течение m тактов будет поступать ноль. Когда Pi < 0 (или имеет место отрицательное переполнение) и триггер 40 (или триггер 38) в единичном состоянии, то с выхода регистра 43 величина (-1) проходит через элемент И 58 (или элемент И 59) и схему ИЛИ 68 логического блока 10 на выход 22 устройства. В этом режиме устройство реализует алгоритм формального нейрона с симметричной трехзначной ступенчатой выходной характеристикой (фиг.1,д):
Pi= xi,j•γi,j-θi
Yвых i=
При коде операции 00000100 на вход 78 первой группы дополнительных входов логического блока 10 поступает единичный сигнал, который отпирает схемы И 60,61,62,63 логического блока 20 (фиг.4). Тогда, если Pi≥0 (или есть положительное переполнение) и триггер 37 (или триггер 39) в единичном состоянии, то величина (+1) с выхода регистра 41 через схему И 60 (или схему И 61) и схему ИЛИ 68 логического блока 10 поступает на выход 22 устройства. Если Pi <0 (или отрицательное переполнение) и триггер 40 (или триггер 38) в единичном состоянии, то величина (-1) с выхода регистра 43 через схему И 62 (или схему И 63) и схему ИЛИ 68 логического блока 10 поступает на выход устройства. В этом режиме устройство реализует алгоритм формального нейрона с симметричной ступенчатой выходной характеристикой (фиг,1,е)
Pi= xi,j•γi,j-θi
Yвых i=
При коде операции 00000010 на вход 79 первой группы дополнительных входов логического блока 10 поступает единичный сигнал, отпирающий схемы И 64,65 логического блока 10 (фиг.4). Тогда если Pi≥0 (или есть положительное переполнение) и триггер 37 (или триггер 39) в единичном состоянии, то величина (+1) с выхода регистра 41 через схему И 64 (или схему И 65) и схему ИЛИ 68 логического блока 10 поступает на выход 22 устройства. В остальных случаях (Pi<0 или отрицательное переполнение) схемы И 64,65 будут закрыты и на выходе 22 устройства будет ноль. В этом режиме устройство реализует алгоритм формального нейрона с асимметричной ступенчатой выходной характеристикой (фиг.1,ж).As a result, in this mode, the device implements a gradual neuron algorithm with a nonlinear analog symmetric output characteristic (Fig. 1, b)
P i = x i, j • γ i, j -θ i
Y o i = P
When the operation code 00100000 to the
P i = x i, j • γ i, j -θ i
Y o i = 1
When operation code 00010000, a single signal is input to the
P i = x i, j • γ i, j -θ i
Y o i =
When the operation code is 00001000, a single signal is input to the
P i = x i, j • γ i, j -θ i
Y o i =
When the operation code 00000100 to the
P i = x i, j • γ i, j -θ i
Y o i =
When the operation code 00000010 at the
Pi= xi,j•γi,j-θi
Yвых i=
При коде операции 00000001 на вход 80 первой группы дополнительных входов логического блока 10 поступает единичный сигнал и отпирает схемы И 66,67 логического блока 10 (фиг.4). Тогда, если Pi>0 (или есть положительное переполнение) и триггер 37 (или триггер 39 находится в единичном состоянии, то величина (+1) с выхода регистра 41 через схему И 66 (или схему И 67) и схему ИЛИ 68 логического блока поступает на выход 22 устройства. В остальных случаях (Pi ≅0 или отрицательное переполнение) на выходе 22 устройства будет ноль. В этом режиме устройство реализует алгоритм формального нейрона с асимметричной ступенчатой выходной характеристикой (фиг.1,к).P i = x i, j • γ i, j -θ i
Y o i =
When the operation code 00000001 to the
Pi= xi,j•γi,j-θi
Yвых i=
Из приведенного описания работы устройства видно, что при его функционировании в режиме градуального или формального нейронов водные сигналы xi,1, xi,n-1 могут поступать на входы 11,1n-1 только с интервалом (2m-2) тактов (где m разрядность двоичных кодов сигналов xi,j) (фиг.5). Это позволяет естественным образом моделировать период рефрактерности нейрона и менять его путем изменения параметра m.P i = x i, j • γ i, j -θ i
Y o i =
From the above description of the operation of the device, it can be seen that when it operates in the mode of degree or formal neurons, water signals x i, 1 , x i, n-1 can be supplied to the
Операцию скалярного произведения векторов можно реализовать, если в качестве компонент одного вектора взять значения синаптических весов γ i,1 γ i,n а в качестве компонент другого вектора входные сигналы xi,1,xi,n. При этом в регистр 11 записывается код операции 00000000, при котором логический бок 10 отключается. Тогда в течение (2m-2) тактов времени на выходе сумматора 5 формируется (2m-2)-разрядный двоичный модифицированный код числа
xi,j•γi,j, являющегося скалярным произведением векторов и , которое поступает на выход 19 устройства. Если на управляющие входы 12 и 13 поступают управляющие сигналы f12 и f13 так, как это показано на фиг.5, то на информационном выходе 20 устройства будут формироваться только m старших разрядов скалярного произведения. Эти же m старших разрядов скалярного произведения записываются во второй регистр 9, где в случае необходимости они могут храниться и в требуемые моменты времени выдаваться на информационном выходе 21 устройства. Возможность получения и выдачи скалярного произведения в виде (2m-2)-разрядного или m-разрядного двоичного кода позволяет реализовать указанную операцию с требуемой точностью.The scalar product operation of vectors can be realized if we take the values of synaptic weights γ i, 1 γ i, n as components of one vector and the input signals x i, 1 , x i, n as components of another vector. In this case, the operation code 00000000 is recorded in the register 11, in which the logical side 10 is turned off. Then, during (2m-2) clock cycles, an (2m-2) -bit binary modified code number is generated at the output of adder 5
x i, j • γ i, j , which is the scalar product of vectors and which is output 19 of the device. If control inputs f 12 and f 13 are supplied to control
При настройке устройства на режим цифрового интегратора, работающего по формуле прямоугольников, используется только один j блок изменения синаптических весов 3j, а в регистр 11 записывается код операции 00000000, при котором логический блок 10 отключается. Перед началом работы в регистр 26 j блока изменения синаптических весов 3jзаписывается начальное значение подинтегральной функции Yo,j. Временная диаграмма работы устройства в этом режиме приведена на фиг.6. В течение первых m тактов времени на вход 1j поступает значение независимой переменной Δ tj, которое записывается в регистр множительного устройства 23, на вход 2j значение приращения подинтегральной функции ΔYi,j, которое суммируется в сумматоре 25 с начальным значением этой функции Yo,j и полученное текущее значение подинтегральной функции Yi,j= Yo,j + ΔYi,j записывается в регистр 26, на выходе 20 устройства формируется приращение интеграла Δ Pi-1.j, полученное на предыдущем i-1 шаге. В течение следующих (2m-2) тактов в множительном устройстве 23 блока 3j реализуется умножение Yi,j на Δtj и на выходе сумматора 5 формируется (2m-2)-разрядное значение приращения интеграла Δ Pi,j Δ tj · ( Y i-1,j + Δ Y i,j )
При этом, под действием управляющих сигналов f12 и f13 (фиг.6), первые (m-2) младших разрядов записываются в первый регистр 6, являющийся регистром остатка, а остальные m старших разрядов ((m-2) значащих и два знаковых во второй регистр 9, из которого они могут быть считаны в любой требуемый момент времени на информационный выход 21 устройства. При поступлении новых значений входных сигналов, описанная процедура полностью повторяется.When configuring the device to the digital integrator mode, which works according to the rectangle formula, only one j block of synaptic weight change 3 j is used , and operation code 00000000 is written in register 11, at which logic block 10 is turned off. Before starting work in the register 26 j of the synaptic balance change unit 3 j , the initial value of the integrand Y o, j is recorded. The timing diagram of the operation of the device in this mode is shown in Fig.6. During the first m clock cycles,
Moreover, under the influence of the control signals f 12 and f 13 (Fig.6), the first (m-2) lower order bits are written in the first register 6, which is the remainder register, and the remaining m high order bits ((m-2) significant and two iconic in the second register 9, from which they can be read at any desired time to the information output of the device 21. Upon receipt of new values of the input signals, the described procedure is completely repeated.
Наряду с описанными режимами устройство может выполнять функции сумматора входных сигналов xi,1,xi,n, для чего достаточно задать все значения синаптических весов γ i,1 γin равными 1, и использовать информационный выход 19 устройства.Along with the described modes, the device can perform the functions of an adder of input signals x i, 1 , x i, n , for which it is enough to set all the values of the synaptic weights γ i, 1 γ i n equal to 1, and use the information output 19 of the device.
Таким образом, использование новых элементов: третий регистр, с третьего по пятый триггеры, с седьмого по тридцатый элементы И, четвертый и пятый регистры и взаимосвязи между ними выгодно отличает предлагаемое устройство от прототипа, так как позволяет не только реализовать все его режимы работы, но и существенно их расширить за счет реализации алгоритмов градуального нейрона с нелинейными выходными характеристиками и алгоритмов формального нейрона с различными выходными ступенчатыми характеристиками, что значительно расширяет его функциональные возможности. Thus, the use of new elements: the third register, the third through fifth triggers, the seventh through the thirtieth AND elements, the fourth and fifth registers and the relationships between them distinguishes the proposed device from the prototype, as it allows not only to implement all its operating modes, but and significantly expand them by implementing gradual neuron algorithms with non-linear output characteristics and formal neuron algorithms with various output step characteristics, which significantly expands its function National features.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU5013518 RU2059290C1 (en) | 1991-09-10 | 1991-09-10 | Device for neuron modeling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU5013518 RU2059290C1 (en) | 1991-09-10 | 1991-09-10 | Device for neuron modeling |
Publications (1)
Publication Number | Publication Date |
---|---|
RU2059290C1 true RU2059290C1 (en) | 1996-04-27 |
Family
ID=21590027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU5013518 RU2059290C1 (en) | 1991-09-10 | 1991-09-10 | Device for neuron modeling |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU2059290C1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2579958C1 (en) * | 2014-12-25 | 2016-04-10 | Федеральное государственное бюджетное образовательное учреждение высшего образования "Донской государственный технический университет" | Artificial neuron |
-
1991
- 1991-09-10 RU SU5013518 patent/RU2059290C1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР N 1479944, кл. G 06G 7/60, 1989. * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2579958C1 (en) * | 2014-12-25 | 2016-04-10 | Федеральное государственное бюджетное образовательное учреждение высшего образования "Донской государственный технический университет" | Artificial neuron |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Alomar et al. | Digital implementation of a single dynamical node reservoir computer | |
US4135249A (en) | Signed double precision multiplication logic | |
US3878985A (en) | Serial-parallel multiplier using booth{3 s algorithm with combined carry-borrow feature | |
RU2059290C1 (en) | Device for neuron modeling | |
Bezborah | A hardware architecture for training of artificial neural networks using particle swarm optimization | |
Chen et al. | Neural network implementation on a FPGA | |
US3514757A (en) | Computer system for solving mathematical equations | |
Sarvan et al. | Implementation of ANN training module on field programmable gate arrays | |
RU2050585C1 (en) | Random process generator | |
RU2799035C1 (en) | Conveyor totalizer by modulo | |
Dawwd et al. | Implementation of Wavelet network using an FPGA | |
Rossmann et al. | short-and long-term dynamics in a stochastic pulse stream neuron implemented in FPGA | |
SU696451A1 (en) | Pulse number multiplier | |
RU2029368C1 (en) | Device for simulating neurons | |
RU2420804C1 (en) | Neural network number-to-frequency converter | |
SU1608728A1 (en) | Device for adaptive compression of data | |
RU2211481C2 (en) | Random-number generator | |
KR100202947B1 (en) | A pipelined binary multiplier | |
Meissner | Real-time digital differential analyzer (dart) | |
RU2028661C1 (en) | Function calculator | |
RU2116670C1 (en) | Information search engine | |
Fan et al. | Power-efficient and Multiplier-less FPGA Implementation of Self-adaptive Leaky Integrate-and-Fire Neuron | |
SU817726A1 (en) | Device for solving integral equations | |
RU1831715C (en) | Device for neuron simulation | |
SU648988A1 (en) | Digital arrangement for solving simultaneous linear algebraic equations |