SU1157548A1 - Linear approximator - Google Patents

Linear approximator Download PDF

Info

Publication number
SU1157548A1
SU1157548A1 SU833557788A SU3557788A SU1157548A1 SU 1157548 A1 SU1157548 A1 SU 1157548A1 SU 833557788 A SU833557788 A SU 833557788A SU 3557788 A SU3557788 A SU 3557788A SU 1157548 A1 SU1157548 A1 SU 1157548A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
register
outputs
approximator
Prior art date
Application number
SU833557788A
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 SU833557788A priority Critical patent/SU1157548A1/en
Application granted granted Critical
Publication of SU1157548A1 publication Critical patent/SU1157548A1/en

Links

Description

нен с управл ющим входом первого ключа, выход четвертого такта генератора тактовых импульсов, соединен с вторьм входом элемента И и вторым входом опроса perHC- f начш1ьно1 о смещени , Г-й ( ) выход которого соединен с информационным входом (1, 1)-го трехканального демультиплексора, первый выход («,j)-го трехканального демульти плексора (2,М-1,)Г) объединен с вторым выходом («-1,j )-го и третьим выходом (f-2,j)-ro трехканальных демультиплексоров и подключен к информационному входу (f-1, j + 1)-ro трехканального демультиплексора , блок сравнени  длины содер дит сумматор-вычитатель длины отрезка аппроксимации, группу элементов ИЛИ и элемент ИЛИ, причем первый выход (1, j)-ro () трехканального демультиплексора соединен с первым входом У -го элемента ИЛИ группы, выход которого соединен с информационным входом (JJ-J)TO разр да сумматора-вычитател  длины отрезка аппроксимадаи, инФормащюнные выходы которого соединены с выходамиnot connected with the control input of the first key, the output of the fourth clock pulse generator, is connected to the second input of the AND element and the second polling input perHC- f is the first 1 offset, Gth () whose output is connected to the information input (1, 1) -th three-channel demultiplexer, the first output (", j) of the three-channel demultiplexer (2, M-1,) D) is combined with the second output (" -1, j) -th and third output (f-2, j) -ro three-channel demultiplexers and is connected to the information input (f-1, j + 1) -ro of the three-channel demultiplexer, the length comparison unit contains the matator-subtractor of the length of the approximation segment, the group of elements OR, and the element OR, the first output (1, j) -ro () of the three-channel demultiplexer is connected to the first input of the th -th element OR of the group, the output of which is connected to the information input (JJ-J) TO the size of the adder-subtractor of the length of a segment of the approximation, the informative outputs of which are connected to the outputs

длины отрезка аппроксиматора, а знаковый выход подключен к входу установки в ноль первого триггера, третий выход (M,J )-го (,15 трехканального демультиплексора соеда1нен с вторым входом jl-го элемента ИЛИ группы и У -м входом элемента ИЛИ блока сравнени  длины, выход которого подключен к входу установки в ноль второго, триггера, выходы второго , третьего и четвертого тактов генератора тактовых импульсов соединены соответственно с входом установки режима вычитани , входом сброса и входом установки режима сложени  сумматора-вычитател  длины отрезка аппроксимации, выходы реверсивного счетчика коэффициента наклона соединены с входами блока пам ти , выходы которого соединены с вхог дами .буферного регистра, j-й выход входногорегистра соединен с первм и адресными входами ( «, р-х (1 - ,Й) трехканальных демультиплексоров,/-и выход буферного регистра соединен с вторьм адресными входами (,/)-х (Т7М) трехканальиых демультиплексоров .the length of the length of the approximator, and the sign output is connected to the installation input to zero of the first trigger, the third output (M, J) -th (, 15 three-channel demultiplexer connects to the second input of the jl-th element OR group and the V th input of the OR element of the length comparison unit whose output is connected to the installation input to zero of the second, trigger, the outputs of the second, third and fourth cycles of the clock generator are connected respectively to the installation input of the subtraction mode, the reset input and the installation input of the addition mode of the length-adder the approximation segment, the outputs of the tilt coefficient reversible counter are connected to the inputs of the memory unit, the outputs of which are connected to the inputs of the buffer register, the jth output of the input register is connected to the first and address inputs (", px (1 -, Y) of three-channel demultiplexers , / - and the output of the buffer register is connected to the second address inputs (, /) - x (T7M) of three-channel demultiplexers.

Изобретение относитс  к вычислительной технике, к устройствам обработки информации. Цель изобретени  - повышение быстродействи . На фиг.1 представлена- блок-схема аппроксиматора; на фиг.2 - функционапьна  схема блока сравнени  линий; на фиг.3 -функциональна  схема блок сравнени  длины; на фиг.4 - функциональна  схема блока управлени ; на фиг.5 - карта состо ни   чеек накопи тел ; на фиг.6 - графики, по сн ющие работу аппроксиматора; на фиг.7 блок-схема работы аппроксиматора. Аппроксиматор состоит из блока.1 пам ти, блока 2 сравнени  линий, блока 3 сравнени  дпины, входного ре гистра 4, буферного регистра 5 и бло ка 6 управлени . Вход 7 служит дл  начапьного значени  коэффициента наклона аппроксимирующей пр мой, вход 8 - дл  смещени  ее начальной точки. вход 9 - дл  аппроксимируемой кривой в виде последовательности единичных приращений (фиг.6). Вход 10  вл етс  входом запуска аппроксиматора, выход 11 - выходом синхроимпульса выдачи коэффициента наклона, выходы 12 - D -выходами дпины отрезка аппроксимации. Сигнап Конец работы выдаетс  на выходе t3. Информационными входами блока 2 сравнени  линий  вл ютс  входы t4 и 15, вход 16 опроса блока 2, выходы 18 и 19 блока 2, входы 20-22 блока 3 сравнени  дпины и его выходы 23 и 24, а также входы 25 и 26 блока б управлени  и его выходы 17 и 27. Блок 2 сравнени  линий содержит (фиг.2) регистр 28 начального смещени  и матрицу M)(N трехканальных демультиплексоров 29, где N - число разр дов, а + 1, Д- предельное отклонение линий. 3 Блок 3 сравнени  длины Сфиг.З) с держит сумматор-вычитатель 30 длины отрезка аппроксимации, группу 31 элементов ИЛИ, элемент 1ШИ 32. Блок 6 управлени  (фиг.4) содержит управл емый генератор 33 тактовых импульсов (ГТИ), триггер 34 включени , триггер 35 знака погреш ности, ключи 36 и 37, элемент ИЛИ 38,элемент И 39, формирователь 40, регистр 41 коэффициента наклона, реверсивный счетчик 42 коэффициента наклона. В блоке 6 управлени  (фиг.4) вход установки в единицу триггера 34 включени  соеди ен с вх дом 10 запуска аппрокеиматора. Пр мой выход триггера 34 соединен с входом запуска ГТИ 33 и первы информационным входом ключа 36, упр|авл ю1дий вход которого соединен с вькодом третьего такта ГТИ 33. Первый выход ключа 36 соединен с вы ходом И синхроимпульса выдачи коэф фициента наклона аппрокеиматора и входом опроса регистра 41 коэффици ента наклона, выходы которого соеди нены с входами 7 коэффициента накло на аппрокеиматора и информационными входами реверсивного счетчика 42 коэффициента наклона. Выходы послед ) сего подключены к информационным входам регистра 41 коэффициента наклона . Инверсный выход триггера 34 включени  соединен с вторым информационным входом первого ключа 36, второй выход его соединен с управл ющим входом второго ключа 37, первый и второй выходы которого соединены соответственно с входами суммирова ,ни  и входом вычитани  реверсивного счетчика 42 коэффициента наклона. Управл ющий вход счетчика 42 подключен к выходу элемента ИЛИ 38. Вькод четвертого такта ГТИ 33 соединен с вторым входом элемента И 39, а выход первого такта ГТИ 33 подключен к первому входу элемента ИЛИ 38 и к входу установки в единицу триггера 35. Пр мой и инверсный выходы триггера 35 соединены соответственно с nepBbw и вторым ийформационными входами ключа 37. Йнверсньсй выход триггера 34 подключен к первому входу элемента И 39,выход которого соединен с Ьторьви входом элемента ИЛИ 38 блока Ь управ 484 лени  и с выходом 13 сигнала окончани  работы аппрокеиматора. . В блоке 2 сравнени  линий (фиг.2) информационные входы регистра 28 начального смещени  соединены с входом 8 начального смещени  аппроксиматора . Первый и второй входы опроса регистра 28 через группу входов 16 блока 2 и группу выходов 17 блока 6 управлени  соединены соответственно с выходами второго и четвертого тактов Гта 33. Ч-й (-(«(Тм) выход регистра 28 соединён с информационными входом (, 1)го трехканального демультиплексора 29. Первый выход (l,j )-го трехкан ального демультиплексора 29 ( 2,M-1, j 1 ,/) объединен с вторьм выходом (-1,})-го и третьим выходом (-2,j)-ro трехканапьных демультиплексоров 29 и подключен к информационному входу (-1, i+1)-ro трехка- , напьного демультиплексора 29. Первьй выход (l,j)-ro (j 1,N) трехканального демультиплексора 29 через выход 19 блока 2 сравнени  линий и вход 21 блока 3 сравнени  длины соединен с, первым входом j -го элемента ИЛИ группы 31. Третий выход (M,j )-го (j 1,N) трехканального демультиплексора 29 через выход 18 блока 2 сравнени  линий и вход 20 блока 3 сравнени  длины соединен с вторым входом J -го элемента ИЛИ группы 31 и j -м входом элемента ИЛИ 32 блока 3 сравнени  длины. Кроме того, в блоке 3 выход J -го элемента ИЛИ группы 31 соединен с информационным входом (N-j)-ro разр да сумматора-вычитател  30 длины отрезка аппроксимации, информационные выхода которого соединены с выходами 12 длины отрезка аппроксимации аппрокеиматора, а знаковый выход через выход 23 блока 3 сравнени  и вход 25 блока 6 управлени  подключен к входу установки в ноль триггера 34. Выход элемента ИЛИ 32 через %ыход 4 блока 3 и вход 26 блока 6 управени  соединен с входом установки ноль триггера 35. Выходы второго, ретьего и четвертого тактов ГТИ 33 ерез группу выходов 17 блока 6 правлени  и группу входов 22 блока сравнени  длины соединены соответтвенно с входом установки режима ычитани , входом сброса и входомThe invention relates to computing technology, information processing devices. The purpose of the invention is to increase speed. Figure 1 presents the block diagram of the approximator; 2 shows a functional block diagram of a line comparison; Fig. 3 is a functional block length comparison block; 4 is a functional block diagram of the control unit; Fig. 5 shows a cell condition map of accumulators; 6 shows graphs explaining the operation of the approximator; Fig.7 block diagram of the approximator. The approximator consists of a block 1 of memory, a block 2 for comparing lines, a block 3 for comparing data, an input register 4, a buffer register 5, and a block 6 for control. Input 7 is used for the initial value of the slope of the approximating straight line, input 8 is used to offset its starting point. input 9 is for the approximated curve as a sequence of single increments (Fig. 6). Input 10 is the start input of the approximator, output 11 is the output of the sync pulse issuing the slope factor, and outputs 12 are the D outputs of the distance of the approximation segment. The end of operation signal is output at output t3. The information inputs of the line comparison unit 2 are the inputs t4 and 15, the polling input 16 of the unit 2, the outputs 18 and 19 of the unit 2, the inputs 20-22 of the comparison unit 3, and its outputs 23 and 24, as well as the inputs 25 and 26 of the control unit b and its outputs are 17 and 27. Line comparison unit 2 contains (FIG. 2) the initial offset register 28 and matrix M) (N three-channel demultiplexers 29, where N is the number of bits and +1, D is the maximum deviation of the lines. 3 Block 3 compares the length of FIG. 3) with holding the adder-subtractor 30 of the length of the approximation segment, a group of 31 elements OR, the element 1 of the 32. The control unit 6 (FIG. 4) with holds a controlled clock pulse generator (GTI), a trigger trigger 34, an error sign trigger 35, keys 36 and 37, an OR element 38, an AND element 39, a driver 40, a slope coefficient register 41, a slope reversal counter 42. In control unit 6 (FIG. 4), the installation input into trigger unit 34 of switching on is connected to input 10 of the launch of the approximator. The direct output of the trigger 34 is connected to the start input of the GTI 33 and the first information input of the key 36, the control | which input is connected to the code of the third cycle of the GTI 33. The first output of the key 36 is connected to the output of the sync pulse of the approximator output and the polling input the slope coefficient register 41, the outputs of which are connected to the inputs 7 of the slope coefficient on the approximator and the information inputs of the reversible counter 42 of the slope coefficient. The outputs of the latter are connected to the information inputs of the tilt coefficient register 41. The inverse output of the activation trigger 34 is connected to the second information input of the first key 36, its second output is connected to the control input of the second key 37, the first and second outputs of which are connected respectively to the summing inputs, and to the subtraction input of the reversible tilt coefficient counter 42. The control input of the counter 42 is connected to the output of the OR element 38. The code of the fourth cycle of the GTI 33 is connected to the second input of the AND 39 element, and the output of the first cycle of the GTI 33 is connected to the first input of the OR 38 element and to the input of the unit of the trigger 35. the inverse outputs of the trigger 35 are connected respectively to the nepBbw and the second informational inputs of the key 37. The trigger output 34 of the trigger is connected to the first input of the AND 39 element, the output of which is connected to the third input of the OR element 38 of the control unit 484 lazy and with the output 13 of the end of work signal Ator. . In block 2 of the line comparison (Fig. 2), the information inputs of the initial bias register 28 are connected to the initial bias input 8 of the approximator. The first and second polling inputs of register 28 through a group of inputs 16 of block 2 and a group of outputs 17 of control block 6 are connected respectively to the outputs of the second and fourth cycles GTA 33. The second (- ("(Tm)) output of register 28 is connected to information inputs (, 1) of the three-channel demultiplexer 29. The first output (l, j) of the three-channel demultiplexer 29 (2, M-1, j 1, /) is combined with the third output (-1,}) and the third output (-2 , j) -ro of three-channel demultiplexers 29 and connected to the information input (-1, i + 1) -ro of a three-set, direct demultiplexer 29. First output (l, j) -ro (j 1 , N) three-channel demultiplexer 29 through the output 19 of block 2 of the line comparison 2 and the input 21 of block 3 of the length comparison are connected to the first input of the j-th element of OR of group 31. The third output (M, j) of the (j 1, N) three-channel demultiplexer 29 through the output 18 of the line comparing unit 2 and the input 20 of the length comparing unit 3 is connected to the second input of the Jth OR element of group 31 and the jth input of the OR element 32 of the length comparing unit 3. In addition, in block 3, the output of the jth OR element of group 31 is connected to the information input (Nj) -ro of the length of the approximator-subtractor 30 for the length of the approximation segment, the information outputs of which are connected to the outputs 12 for the length of the approximator approximation segment, and the sign output through the output 23 of the comparator unit 3 and the input 25 of the control unit 6 is connected to the installation input to zero of the trigger 34. The output of the OR element 32 is% output 4 of the unit 3 and the input 26 of the control unit 6 is connected to the installation input of the zero trigger 35. The outputs of the second, second and fourth cycles GTI 33 through groups The outputs 17 of the control unit 6 and the group of inputs 22 of the length comparison unit are connected respectively to the read mode setting input, the reset input and the input

установки режима сложени  сумматоравычитател  30 длины отрезка аппроксиматдии . Выход формт-гровател  40 че-. рез группу выходов 17 блока 6 управлени  и группу входов 22 блока 3 сравнени  длины соединен с входом установки в единицу разр да сумматора-вычитател  30 дпины отрезка аппроксимации.setting the addition mode of the totalizer 30 of the length of the approximation segment. The output of the formt-grower is 40 people. A group of outputs 17 of the control unit 6 and a group of inputs 22 of the length comparison unit 3 are connected to the installation input of the unit of the subtractor 30 dpina of the approximation segment.

Вькоды реверсивного счетчика 42 коэффициента наклона через выходы 27 блока 6 управлени  соединены с входами блока 1:пам ти, выходы которого соединены с входами буферного регистра 5,Vykoda reversible tilt coefficient counter 42 through the outputs 27 of the control unit 6 is connected to the inputs of block 1: the memory, the outputs of which are connected to the inputs of the buffer register 5,

Информадион{Пз1е входы входного регистра 4 соединены с входом 9 аппроксимируемой кривой.1-й выход входного регистра 4 (J, 1,N) через вход 14 блока 2 сравнени  линий соединен ., с первыми адресными входами (5J) (-1 jM) трехканальных демультиплексоров 29, а J-и выход буферного регистра 5 через вход 15 блока 2 сравнени  линий соединен с вторыми адресными входами (f ,j)x (l i jМ) трехканальных демультиплексоров 29.The information {input inputs of the input register 4 is connected to the input 9 of the approximated curve. The 1st output of the input register 4 (J, 1, N) is connected through the input 14 of the line comparison unit 2, connected to the first address inputs (5J) (-1 jM) three-channel demultiplexers 29, and the J- and output of the buffer register 5 through the input 15 of the line comparison unit 2 are connected to the second address inputs (f, j) x (li jМ) of the three-channel demultiplexers 29.

Блок I пам ти представл ет собой накопитель запоминающего устройства, в котором в единичном состо нии наход тс  . TljL(.2K 1) -е р азр дные  чейки (, ) 5 где ( номер адреса накопител ,, а Р - разр дност счетчика 42, Таким образом, данные коды завис т только от количества разр дов коэф4)ициентов наклона интерполирующей пр мой, но не завис т от его вида и ддтины Пр мой,, т.е. данные коды  вл ютс  универсальными, и может быть использован накопитель посто нного запоминающего устройстваMemory block I is a memory drive in which it is in a single state. TljL (.2K 1) -e r spontaneous cells (,) 5 where (the address of the accumulator is, and Р is the size of the counter 42, Thus, these codes depend only on the number of digits of the coefficient 4) of the slopes of the interpolating direct , but does not depend on its type and my dt, Pr. These codes are universal, and a Permanent Storage Drive can be used.

Если каждому разр ду поставить в соответствие шаг по Х, а шаги . по У делать в том случа:е, когда в данном разр де, содержитс  единица, то дл  а-го получаем ступенчатую , котора  интерполирует пр мую , имеющую коэффициент наклона, равный двоичной дроби вида 0,00.,.0 Где е/щница находитс  на. (м месте после зап той.If each unit is assigned an X step, and a step. on Y do in the case: e, when this unit contains a unit, then for a-th we get a stepped one, which interpolates the direct one, which has a slope factor equal to a binary fraction of the form 0.00.,. 0 Where e / shchnitsa is on. (m place after zapyu.

Последовательность импульсов интерполирующа  пр мую, коэффициент наклона которой не  вл етс  простой дробью, можно получить, суммиру  описанные последовательности. Например , дл  пр мой с наклономA sequence of interpolating direct pulses, the slope of which is not a simple fraction, can be obtained by summing the described sequences. For example, for direct tilt

0,10110 надо логически сложить последовательности , записанные в первом , третьем и четвертом адресах, т.е. одновременно считать эти адреса , образом, блок 1 пам ти формирует сразу всю последовательность интерполирующих импульсов.0,10110 it is necessary to add up the sequences written in the first, third and fourth addresses, i.e. at the same time, read these addresses in the manner that memory block 1 generates the entire sequence of interpolating pulses.

Работу аппроксиматора рассмотрим на конкретном примере.We will consider the approximator's work on a concrete example.

Пусть , тогда блок 1 пам ти, буферньй регистр 5, входной регистр 4 и блок 2 сравнени  линий имеют23 разр да, а сумматор-вычитатель 30-24 разр да, счетчик 42 и регистр 41 коэффициента наклона - по 5 разр дов . Пусть максимальна  погрешность равна двум, тогда количество разр дов регистра 28 начального смещени , равное количеству адресов блока 2 сравнени  линий, равно п тиLet, then, the memory block 1, the buffer register 5, the input register 4 and the line comparison block 2 have 23 bits, and the adder-subtractor 30-24 bits, the counter 42 and the register 41 of the slope factor - 5 bits each. Let the maximum error be equal to two, then the number of bits of the register 28 initial offset, equal to the number of addresses of the block 2 comparison lines, is equal to five

Пусть начальное смещение равно 2 т.е. записана единица в первом разр  де регистра 28. Аппроксимируема  крива  I записываетс  в регистр 4 в виде последовательности единичных приращений (фиг.6), Так как ее суммарное приращение равно дев ти, в счетчик 42 в качестве начального знчени  записываетс  число 0,01010.Let the initial offset be 2 i.e. the unit is recorded in the first digit of the register 28. The approximable curve I is written into register 4 as a sequence of unit increments (Fig. 6). Since its total increment is nine, the number 0,01010 is written to the counter 42 as the initial value.

Далее поступает сигнал на вход 10 запуска аппроксиматора, который устанавливает в единицу триггер 34 включени . Сигнал с его выхода разрешает работу ГТИ 33, который формирует тактовые сигналы, начина  с первого. Кроме того, на выходе формировател  40 формируетс  сигнал начальной установки, которьм записывает единицу в старший разр д сумматора-вычитател  30,Next, a signal arrives at the trigger input 10 of the approximator, which sets the trigger trigger 34 to the unit. The signal from its output enables the operation of the GTI 33, which generates clock signals, starting from the first. In addition, at the output of the imaging unit 40, a setup signal is generated, which writes a unit to the high-order bit of the subtractor 30,

Импульс первого такта, пройд  через элемент 38, поступает на опрос счетчика 42 (фиг.7), вследствие чего число 0,01010 переписываетс  в регистр 41 и считываютс  второй и четвертый адреса блока 1 пам ти. В регистр 5 записываетс  23-разр дна  последовательность единичных приращений , соответствующа  пр мой с наклоном 0,01010 (последовательность а, фиг.6) .The pulse of the first clock stroke, passing through the element 38, enters the interrogation of the counter 42 (Fig. 7), as a result of which the number 0.01010 is rewritten into the register 41 and the second and fourth addresses of the memory block 1 are read. Register 5 records a 23-bit sequence of single increments, corresponding to a straight line with a slope of 0.0010 (sequence a, fig.6).

Вторым тактом опрошен регистр 28. Импульс с его первого разр да поступает на соответствующий трехканаль- ный демультиплексор 29 блока 2 сравнени  линий. Так как в первом разр де последовательностей а а i наход тс  нули, импульс проходит наThe second clock polled the register 28. An impulse from its first bit is fed to the corresponding three-channel demultiplexer 29 of the line comparing unit 2. Since the first bit of the sequences a and i are zeros, the pulse travels on

второй выход демультиплексора 29 ервого разр да первого адреса блока 2 и оттуда на вход демультиплексора 29 второго разр да первого ад реса (крива  & , фиг.6). Во втором § азр де имеетс  единица в последовательности f , поэтому импульс переходит на второй адрес блока 2. В третьем разр де имеетс  единица в последовательности , следовательно tQ импульс переходит на первый адрес блока 2, и так до п того разр да, после которого импульс поступает на выход 18 блока 2 сра внени  линий (фиг,6). Таким образом в этом бло- is ке путь прохождени  импульсов опроса повтор ет кривую погрешности и заканиваетс  там, где погрешность по аболютному значению больше Л с В даном , случае погрешность отрицательна, 2@ мпульс,формируетс  на п том выходе 18-й группы, поступает на группу вхоов 20 блока 3 ср,авнени  длины (фиг.З) и через функциональную группу 3.1 элемента ИЛИ на вход соответ- 25 ствующего разр да сумматора-вычктател  30,а через элемент ИЛИ 32 на выход 24.the second output of the demultiplexer 29 of the first bit of the first address of the block 2 and from there to the input of the demultiplexer 29 of the second bit of the first address (curve & FIG. 6). In the second §, the delta has one in the sequence f, therefore the pulse passes to the second address of block 2. In the third bit there is one in the sequence, hence the tQ pulse passes to the first address of block 2, and so on until the fifth digit, after which the pulse arrives at the output 18 of the block 2 of the center lines (Fig. 6). Thus, in this block, the path of the polling pulses repeats the error curve and is scanned where the absolute value error is greater than L s dan, the error case is negative, 2 @ mp pulse, is formed at the fifth output of the 18th group, enters on the group Vkhov 20 of the block 3 cf, the length of length (Fig. 3) and through the functional group 3.1 of the element OR to the input of the corresponding bit of the adder 30, and through the element OR 32 to the output 24.

Заметим, что разр ды сумматоравычитател  30 расположены в обратном 30 пор дке (сверху с,тарший разр д), i.е. выход последнего разр да блока 2 подключен к входу младшего разр да сумматора-вычитател  30, выход предпоследнего разр да блока. 2 - jj к входу второго разр да сулматоравычитател  30, и т.д. до выхода первого разр да блока 2 (слева фиг.2), который подключен к входу старшего разр да сумматора- д вычитател  30. ,Note that the bits of totalizer 30 are located in the reverse 30th order (top c, top head), i.e. the output of the last bit of block 2 is connected to the input of the lower bit of the adder-subtractor 30, the output of the penultimate bit of the block. 2 - jj to the input of the second bit of the sumator 30, etc. before the output of the first bit of block 2 (on the left of Fig. 2), which is connected to the input of the higher bit of the adder - subtractor 30.,

Блок 3 сравнени  длины работает следуюш 1м образом.The length comparison unit 3 operates in the following manner.

Место,,в котором погрешнюсть превышает Л , запоминаетс  в виде еди- S , записанной в соответствующий азр д счетчйка-вычитател  3,0-. При следующем варианте нппроксиьшрующе- , го отрезка сумматор-вьгчитатель 30 переводитс  в режим вычитани . Если 5 длина отрезка, в котором погрешность находитс  в пределах норм,ы, увеличиваетс , то из имеющихс  чисел вычитаетс  число,, содержащее единицу в более младшем разр де (более ниж- S5 нем) ,, и в, результате получаетс  положительное число, т.е. ноль в знаковом разр де сумматора-вычитател  30The location, in which the error exceeds L, is remembered as a single S recorded in the corresponding register of the subtractor 3.0 -. In a further embodiment of the routing leg, the adder reader 30 is put into subtraction mode. If 5 the length of the segment in which the error is within the norm, s, increases, then the number that contains the unit in the lower order (lower than S5) is subtracted from the available numbers, and in, the result is a positive number, t . zero in sign demator subtractor 30

обнул етс  и повтор етс  опрос блока 2 сравнени  линий (фиг.7), Носумматор-вычитатель 30 в это врем  переведен в режим сложени , поэтому импульс с блока 2 записываетс  в сумматор-вычитатель 30 и, тем самым запоминаетс  нова  длина отрезка аппроксимации. Таким образом блок 3 сравнени  осуще.ствл ет сравнение дли текущего и предыдущего отрезков аппроксимации и запоминает текущий, если он больше пред 1дущего, т.е. выбираетс  лучший вариант аппроксимирующей пр мой, О том, что текущий вариант хуже предыдущего Чдлина, погрешность которой не выходит за дрпустимые пределы, стала меньше) сигнализирует по вление единицы в знаковом разр де сумматора-вычитател  30.The interrogation of line comparing unit 2 (Fig. 7) is nullified and repeated; The summator-subtractor 30 is at this time transferred to the addition mode; therefore, the pulse from block 2 is recorded in adder-subtractor 30, and thus the new length of the approximation segment is memorized. Thus, the comparison unit 3 performs a comparison of the lengths of the current and previous segments of the approximation and remembers the current if it is more than the previous one, i.e. the best variant of the approximating direct is chosen, the fact that the current version is worse than the previous Chdlin, the error of which does not go beyond the permissible limits, has become less) indicates the appearance of a unit in the sign de sum of the subtractor 30.

Возвраща сь к лримеру, запомним, чтю в качестве начальной установки сумматора-вычитател  30 бьша записана единица в его старший разр д. С блока 2 сравнени  линий поступает импульс на п тый от старшего разр д. Это происходит во врем  действи  второго Такта, которьй из ГТИ 33 поступает на вход установки режима вычитани  cy p aтopa-вычитaтeл  30.Returning to the recorder, remember that as the initial setting of the subtractor 30, the unit is recorded in its most significant bit. From block 2 of the line comparison, the pulse arrives for the fifth time from the most significant bit. This occurs during the second Tact, which GTI 33 is fed to the input of the setting of the subtraction mode cy p atopa-subtractor 30.

Так как при вычитании получилось положительное число, триггер 34 остаетс  S единичном состо нии. Триггер 35 знака первьи тактом установлен в единичное состо ние. При сравнении линий погрешность выходит за нижнюю границу, импульс формируе,тс  на п том- разр де группы выходов 18 и по ,ступает на вход 20 блока 3. В этом случае по вл етс  импульс на выходе элемента I-UIH 32, поступает на вход 26 блока 6 и устанавливает в ноль триггер 35,Since the subtraction produced a positive number, the trigger 34 remains in the S unit state. The trigger 35 of the first character is set to one. When comparing the lines, the error goes beyond the lower boundary, the pulse is formed, the TC in the fifth volume of the group of outputs 18 and in, is input to the input 20 of unit 3. In this case, a pulse appears at the output of the I-UIH 32 element, which enters the input 26 block 6 and sets to zero the trigger 35,

Таким образом, триггер 35  вл етс  триггером знака погрешности. При данном состо нии триггеров 34 и 35 импульс третьего такта с выхода ключа 36 поступает на вход ключа 37, а с его вьгхода на вход вычитани  едиНИ15 реверсивного счетчика 42, что измен ет коэффициент наклона пр мой, которьй равен 0,01001. Кроме того, такт всегда обнул ет сумматор-вычитатель 30. Все это соответствует алгоритму (фиг.7).Thus, the trigger 35 is the trigger of the sign of error. In this state of the triggers 34 and 35, the pulse of the third cycle from the output of the switch 36 is fed to the input of the switch 37, and from its input to the input of the subtraction unit 15 of the reversing counter 42, which changes the slope factor of the straight line, which is equal to 0.01001. In addition, the clock always zeroed the adder-subtractor 30. All this corresponds to the algorithm (Fig.7).

Четвертым тактом (фиг.7) проведен второй опрос блока 2 сравнени  линий по входз 16 (фиг.2), но при этом 9 сумматор-вьгчитатель 30 блока 3 нахо дитс  в режга е сложени , так как на его вход установки режима сложени  поступает четвертьй такт ГТИ 33 А так как в третьем такте сумматорг вычитатель 30 обнулен, в нем записы ваетс  единица в п том от старшего разр де. Далее снова следует опрос блока 1 пам ти (фиг.7) и в буферном регис ре 5 записываетс  последовательност единичнь1х приращений, сооТветсвую ща  пр мой В на графике ((Х) (фиг,6). При опросе блока 2 импульс проходит по пути, соответствующему варианту кривой fi (фиг.6). Погрешность выходит за пределы отрицатель допуска, поэтому по сигналу с выхода 2А блока 3 триггер 35 устано лен в ноль, и число в счетчике 42 коэффициента наклона оп ть уменьшаетс  на единицу и равно 0,01000. Это соответствует варианту (фиг.6). Здесь погрешность выходит за пределы положительного допуска, поэтому импульс с блока 2 поступает на один из входов 21 группы и не формирует импульс на выходе 24 бло ,ка 3 сравнени  длины. Триггер 35 остаетс  в единичном состо нии и по импульсу с выхода ключа 37 со цержимое счетчика 42 коэффициента наклона увеличиваетс  и рав«р 0,01001 В этом случае при опросе блока 2 flo втором такте из числа записанного в сумматоре-выЧитателе 30, вычитаетс  большее, что приводит к изменению знакового разр да сумматоравычитател  30 и, следовательноj к 48 по влению импульса на входе 25 блока 6 и к установке в ноль триггера 3. В результате этого третий такт с выхода ключа 36 поступает на выход 11 синхроимпульса выдачи коэффициента блока 6 и на вход опроса регистра 41 коэффициента наклона . При этом содержимое регистра 41, предыдущее значение коэффициента наклона, переписываетс  в счетчик 42 .и формируетс  на входе 7 аппроксиматора дл  записи его во внешние устройства . Переключение триггера 34 приводит к тому, что четвертый такт с выхода элемента И 39 поступает на выход 13 сигнала окончани  работы аппроксиматора и через элемент ИЛИ Э8 на опрос счетчика 42. Кроме того, этот же такт, как и раньше, опрашивает блок 2 сравнени  линий с переводом сумматора-вычитател  30 в режим сложени . По сигналу с выхода 11 аппроксиматора выведено найденное наилучшее значение коэффициента наклона аппроксимирующего отрезка, содержащеес  в регистре 41 и счетчике 42 коэффициента наклона, а длина отрезка, представленна  в позиционном коде в сумматоре-вычитателе 30, может быть считана в любой момент после формировани  сигнала Конец на выходе 13 аппроксиматора. Таким образом, за четыре цикла работы аппроксиматора (1б-ть тактов) определена максимально возможна  лина аппроксимации исходной кривой заданной погрешностью и найдены араметры аппроксимирующего отрезка.The fourth cycle (Fig. 7) carried out the second survey of block 2 comparing lines at inputs 16 (Fig. 2), but at the same time 9 adder-reader 30 of block 3 is in addition mode, as a quarter of it arrives at its input of setting addition mode Tick GTI 33 And since in the third tick the subtractor 30 is set to zero, there is a unit in the fifth of the highest bit. Next, the interrogation of memory block 1 follows again (Fig. 7) and in the buffer register 5, a sequence of one increments is recorded, corresponding to direct B on the graph ((X) (Fig. 6). When interrogating block 2, the pulse passes along the path The error fi exceeds the limits of the tolerance minus, therefore the signal from output 2A of block 3 sets trigger 35 to zero, and the number in the counter 42 of the slope factor again decreases by one and is equal to 0.01000. This corresponds to the variant (Fig. 6). Here the error goes beyond the positive therefore, the pulse from block 2 is fed to one of the inputs 21 of the group and does not generate a pulse at the output 24 of the block, compared to length 3. The trigger 35 remains in the single state and the pulse from the output of the key 37 increases from the counter of the slope coefficient 42 and equal to p 0,01001 In this case, when polling block 2 flo from the second clock from the number recorded in adder 30, more is subtracted, which leads to a change in the sign bit of summator 30 and, therefore, to 48 the appearance of a pulse at input 25 of block 6 and to set to zero the trigger 3. In As a result, the third clock cycle from the output of the key 36 is fed to the output 11 of the sync pulse issuing the coefficient of block 6 and to the polling input of the register 41 of the slope coefficient. At the same time, the contents of register 41, the previous value of the slope coefficient, is rewritten into counter 42. and is formed at the input 7 of the approximator for recording it to external devices. Switching the trigger 34 causes the fourth clock cycle from the output of the AND 39 element to output 13 of the approximation end signal and through the OR E8 element to poll counter 42. In addition, the same clock, as before, is polled by block 2 comparing lines transferring the subtractor 30 to the addition mode. The signal from the output 11 of the approximator yielded the best value found for the slope coefficient of the approximating segment contained in the register 41 and the slope coefficient counter 42, and the length of the segment represented in the positional code in the subtractor 30 can be read at any time after generating the signal output 13 approximator. Thus, for the four cycles of operation of the approximator (1b-th cycles), the maximum possible approximation line of the initial curve with a given error is determined and the parameters of the approximating segment are found.

КTO

кГ CSkg CS

ЧH

::

5five

2626

f I gjgl /1 gtgf t g g| / o o t Ш 0 f I gjgl / 1 gtgf t g g | / o o t Ш 0

/ Wflfl/fniiflrbbHi(tf bl0tfflff / Wflfl / fniiflrbbHi (tf bl0tfflff

Фиг 6Fig 6

Claims (2)

ЛИНЕЙНЫЙ АППРОКСИМАТОР, содержащий входной регистр и блок управления, причем информационные входы аппроксиматора подключены к входам входного регистра, отличающийся тем, что, с целью повышения быстродействия, в него введены блок памяти, буферный регистр блок сравнения длины и блок сравнения линий, причем блок управления содержит регистр коэффициента наклона, реверсивный'счетчик коэффициента наклона, два триггера, два ключа, генератор тактовых импульсов, элемент И и элемент ИЛИ, причем вход запуска аппроксиматора соединен с входом установки в Г первого триггера, прямой выход которого соединен с вхо* дом запуска генератора тактовых импульсов и первым информационным входом первого ключа, а первый выход первого ключа соединен с выходом синхроимпульса выдачи коэффициента наклона аппроксиматора и входом опроса регистра коэффициента наклона, выходы которого соединены с выходами коэффициента наклона аппроксиматора и информационными входами реверсивного счетчика коэффициента наклона, выходы которого подключены к информационным входам, регистра коэффициента наклона, инверсный выход первого триггера соединен с вторым информационным входом первого ключа, второй выход которого соединен с управляющим входом второго ключа, первый и второй выходы которых соединены соответственно с входом суммирования и входом вычитания реверсивного счетчика коэффициента наклона, управляющий вход которого подключен к выходу элемента ИЛИ блока управления, выход первого такта' генератора тактовых импульсов соединен с первым входом элемента ИЛИ блока управления и входом установки в единицу второго триггера, прямой и инверсный выходы которого соединены соответственно с первым и вторым информационными входами второго ключа, инверсный выход, первого триггера подключен к первому входу элемента И, выход которого соединен с вторым входом элемента ИЛИ блока управления и с выходом сигнала окончания работы аппроксиматора, блок сравнения линий содержит регистр начального смещения и матрицу из (где М=2в.+ 1, &- предельное отклонение линий, N - число разрядов) трехканальных демультиплексоров, причем информационные входы регистра начального смещения соединены с входом начального смещения аппроксиматора, первый вход опроса регистра начального смещенияA LINEAR APPROXIMATOR comprising an input register and a control unit, wherein the information inputs of the approximator are connected to the inputs of the input register, characterized in that, in order to improve performance, a memory unit, a buffer register, a length comparison unit and a line comparison unit are introduced into it, and the control unit contains tilt coefficient register, reversible tilt coefficient counter, two triggers, two keys, clock generator, AND element and OR element, and the approximator trigger input is connected to the set input The first flip-flop is connected to the first trigger, whose direct output is connected to the clock input * of the start pulse generator and the first information input of the first key, and the first output of the first key is connected to the sync pulse output of the approximator slope coefficient and the polling input of the slope coefficient register, the outputs of which are connected to the outputs approximator slope coefficient and information inputs of a reverse slope coefficient counter, the outputs of which are connected to information inputs, slope coefficient register, The rs output of the first trigger is connected to the second information input of the first key, the second output of which is connected to the control input of the second key, the first and second outputs of which are connected respectively to the summing input and the subtracting input of the slope coefficient counter, the control input of which is connected to the output of the OR element of the control unit , the output of the first cycle of the clock generator is connected to the first input of the OR element of the control unit and the installation input to the unit of the second trigger, direct and inverse the first outputs of which are connected respectively to the first and second information inputs of the second key, the inverse output of the first trigger is connected to the first input of the AND element, the output of which is connected to the second input of the OR element of the control unit and with the output of the approximator operation end signal, the line comparison unit contains an initial register displacements and a matrix of (where M = 2v. + 1, & is the maximum deviation of the lines, N is the number of bits) of three-channel demultiplexers, and the information inputs of the register of the initial offset are connected to the input of approximate bias of the approximator, the first input of the polling of the register of the initial bias СП м СП соединен с выходом второго такта генератора тактовых импульсов, выход третьего такта которого соеди1157548 нен с управляющим входом первого ключа, выход четвертого такта генератора тактовых импульсов, соединен с вторым входом элемента И и вторым входом опроса регистра начального смещения, 1 -й ( 4 =1,М) выход которого соединен с информационным входом (1, 1)-го трехканального демультиплексора, первый выход (♦,j)-г о трехканального демультиплексораSP m SP connected to the output of the second cycle of the clock generator, the output of the third cycle which is connected 1157548 is not connected with the control input of the first key, the output of the fourth cycle of the clock generator is connected to the second input of the element And the second input of the polling register of the initial offset, 1st (4 = 1, M) the output of which is connected to the information input of the (1, 1) -th three-channel demultiplexer, the first output of (♦, j) -g about a three-channel demultiplexer (<=2,М-1,j=ТрЗ) объединен с вторым выходом (i-1,j )-го и третьим выходом (l-2,j)-ro трехканальных демультиплексоров й подключен к информационному входу (1-1, J + 1.)to трехканального демультиплексора, блок сравнения длины содержит сумматор-вычитатель длины отрезка аппроксимации, группу элементов ИЛИ и элемент ИЛИ, причем первый выход (1, j )-го (j =T,W) трехканального демультиплексора соединен с первым входом / -го элемента ИЛИ группы, выход которого соединен с информационным входом (W-j)-ro разряда сумматора-вычитателя длины отрезка аппроксимации, информационные выходы которого соединены с выходами длины отрезка аппроксиматора, а знаковый выход подключен к входу установки в ноль первого триггера, третий выход (И, J )-го (1=1,15) трехканального демультиплексора соединен с вторым входом / -го элемента ИЛИ группы и j ~м входом элемента ИЛИ блока сравнения длины, выход которого подключен к входу установки в ноль второго, триггера, выходы второго, третьего и четвертого тактов генератора тактовых импульсов соединены соответственно с входом установки режима вычитания, входом сброса и входом установки режима сложения сумматора-вычитателя длины отрезка аппроксимации, выходы реверсивного счетчика коэффициента наклона соединены с входами блока памяти, выходы которого соединены с вхо.“ . дами буферного регистра, j-й выход входного'регистра соединен с первыми адресными входами (i,j)-x (ί=1,Μ) трехканальных демультиплексоров,)-й выход буферного регистра соединен с вторым адресными входами (<’,/)-х (4=Т7М) трехканальных демультиплексоров.(<= 2, M-1, j = Tr3) is combined with the second output of the (i-1, j) -th and third output (l-2, j) -ro of three-channel demultiplexers and is connected to the information input (1-1, J + 1.) to a three-channel demultiplexer, the length comparison unit contains an adder-subtractor of the length of the approximation segment, a group of OR elements, and an OR element, and the first output of the (1, j) th (j = T, W) three-channel demultiplexer is connected to the first input / -th element of the OR group, the output of which is connected to the information input (Wj) -ro of the category of the adder-subtractor of the length of the approximation segment, information the outputs of which are connected to the outputs of the length of the approximator segment, and the sign output is connected to the input of the first trigger to zero, the third output of the (I, J) -th (1 = 1.15) three-channel demultiplexer is connected to the second input of the / -th element of the OR group and j ~ m the input of the OR element of the length comparison unit, the output of which is connected to the zero input of the second, trigger, the outputs of the second, third and fourth clock cycles of the clock generator are connected respectively to the input of the subtraction mode setting, the reset input and the mode setting input with dix adder-subtracter length segment approximation yields reversing the slope of the counter are connected to inputs of the storage unit, whose outputs are connected to WMOs. ". dams of the buffer register, the jth output of the input'register is connected to the first address inputs (i, j) -x (ί = 1, Μ) of the three-channel demultiplexers,) the th output of the buffer register is connected to the second address inputs (<', /) x (4 = T7M) three-channel demultiplexers.
SU833557788A 1983-02-23 1983-02-23 Linear approximator SU1157548A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU833557788A SU1157548A1 (en) 1983-02-23 1983-02-23 Linear approximator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU833557788A SU1157548A1 (en) 1983-02-23 1983-02-23 Linear approximator

Publications (1)

Publication Number Publication Date
SU1157548A1 true SU1157548A1 (en) 1985-05-23

Family

ID=21051502

Family Applications (1)

Application Number Title Priority Date Filing Date
SU833557788A SU1157548A1 (en) 1983-02-23 1983-02-23 Linear approximator

Country Status (1)

Country Link
SU (1) SU1157548A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5001419A (en) * 1988-09-28 1991-03-19 Abb Power T & D Company Inc. Method of deriving an AC waveform from two phase shifted electrical signals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 257150, кл. F 06 F-15/353, 1969. Авторское свидетельство СССР № 696498, кл. G 06 F 15/353, 1979. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5001419A (en) * 1988-09-28 1991-03-19 Abb Power T & D Company Inc. Method of deriving an AC waveform from two phase shifted electrical signals

Similar Documents

Publication Publication Date Title
SU1157548A1 (en) Linear approximator
SU1120343A1 (en) Function generator
Fowler Anthyphairetic ratio and Eudoxan proportion
SU1647591A1 (en) Matrix inversion device
SU1552210A1 (en) Dividing device
SU1697071A1 (en) Orthogonal signal generator
SU1734212A1 (en) Device for computing of modulo @@@+1 reminder
SU1100621A1 (en) Function generator
SU1444815A1 (en) Device for implementing fast hartley transform
SU1275425A1 (en) Device for converting binary code to binary-coded decimal code
SU1492478A1 (en) Servo analog-to-digital converter
SU1444820A1 (en) Device for converting matrices and solving linear equation systems
SU1394239A1 (en) Logical storage device
SU528588A1 (en) Interpolator for Step Plotter
SU783787A1 (en) Converter of binary code into binary-decimal code of degrees and minutes
SU1262530A1 (en) Analog-digital device for calculating values of polynominal function
SU734870A1 (en) Device for shaping pulse codes of pseudorandom trains
SU1064458A1 (en) Code/pdm converter
SU1319024A1 (en) Device for determining argument of vector
SU1383321A1 (en) Smooth periodic function generator
SU1236465A1 (en) Device for calculating values of trigonometric functions
SU1264170A1 (en) Differentiating device
SU1615744A2 (en) Digital linear interpolator
SU1401448A1 (en) Apparatus for implementing boolean symmetrical functions
SU1170461A1 (en) Calculating device