SU1478213A1 - Sine and cosine computer - Google Patents

Sine and cosine computer Download PDF

Info

Publication number
SU1478213A1
SU1478213A1 SU864114268A SU4114268A SU1478213A1 SU 1478213 A1 SU1478213 A1 SU 1478213A1 SU 864114268 A SU864114268 A SU 864114268A SU 4114268 A SU4114268 A SU 4114268A SU 1478213 A1 SU1478213 A1 SU 1478213A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
multiplexer
inputs
control
Prior art date
Application number
SU864114268A
Other languages
Russian (ru)
Inventor
Тамара Степановна Панова
Николай Алексеевич Лукин
Original Assignee
Предприятие П/Я В-2969
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 Предприятие П/Я В-2969 filed Critical Предприятие П/Я В-2969
Priority to SU864114268A priority Critical patent/SU1478213A1/en
Application granted granted Critical
Publication of SU1478213A1 publication Critical patent/SU1478213A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано дл  вычислени  функций синуса и косинуса. Целью изобретени   вл етс  повышение производительности при сохранении заданной точности. Устройство содержит блок 1 управлени , операционный блок 2, блок 3 пам ти, мультиплексоры 4-9, триггер 10, элемент И 11, элемент НЕ 12. Поставленна  цель достигаетс  введением новых элементов и св зей. 3 ил.The invention relates to computing and can be used to compute sine and cosine functions. The aim of the invention is to increase productivity while maintaining a given accuracy. The device contains a control unit 1, an operation unit 2, a memory unit 3, multiplexers 4-9, trigger 10, element 11, and element NOT 12. The goal is achieved by introducing new elements and connections. 3 il.

Description

При вычислении функции созХ в случае , если аргумент функции cosX находитс  в I или TV квадранте,на первом управл ющем входе мультиплексора 4 и первом входе элемента И 1 1 устанавливаютс  логические нули или логические единицу. При прохождении на второй вход элемента И 11 единичного управл ющего сигнала с выхода 36 блока 1 управлени  на втором управл ющем входе мультиплексора 4 устанавливаетс  нулевой сигнал.When calculating the function XX, if the argument of the cosX function is in the I or TV quadrant, logical zeros or a logical unit are set at the first control input of multiplexer 4 and the first input of the And 1 1 element. When passing to the second input element And 11 of a single control signal from the output 36 of the control unit 1, a zero signal is set at the second control input of the multiplexer 4.

В случае, если аргумент функции cosX отрицателен, то на управл ющих входах мультиплексора 4 устанавливаетс  код 01 или 10. При этом на его выходе устанавливаетс  логическа  единицаоIn case the argument of the cosX function is negative, then the control inputs of multiplexer 4 are set to code 01 or 10. At the output of the control, the logical unit

При вычислении функции ginX дл  обеспечени  запоминани  знака функции на второй вход элемента И 11 с выхода 36 поступает нулевой сигнал. В соответствии с таблицей на выходе первого мультиплексора 4 устанавливаетс  нулевой сигнал дл  sinX О, и единичный дп  sinX J.O, т.е. аналогично функции cosX.When calculating the function ginX, to ensure that the sign of the function is memorized, a zero signal arrives at the second input of And 11 from output 36. In accordance with the table at the output of the first multiplexer 4, a zero signal is set for sinX 0, and a single dp sinX J.O, i.e. similar to the cosX function.

Сигнал с выхода мультиплексора 4 поступает на информационный вход The signal from the output of multiplexer 4 is fed to the information input

триггера 10 и по стробирующему импульсу с выхода 17 переводит его в нулевое состо ние (дл  cosX О, sinX 0) или в единичное состо ниеthe trigger 10 and the gate pulse from the output 17 translates it into the zero state (for cosX O, sinX 0) or into the single state

(дл со8Х 0, )0(for co8X 0,) 0

Следующий такт начинаетс  с обращени  в блок 3 пам ти за константой А .The next clock begins by referring to memory block 3 for constant A.

На выход 34 блока 1 управлени  сOn the output 34 of the control unit 1 with

второго адресного выхода блока 37 пам ти микропрограмм через группу 41 мультиплексоров проходит адрес регистра адреса констант регистров группы )4, содержащего адрес константыthe second address output of block 37 of the firmware memory through the group of 41 multiplexers passes the address of the register of the address of the constants of the registers of the group 4) containing the address of the constant

е - Содержимое регистра адреса констант поступает на,первый вход арифметико-логического блока 46 к,пройд  через регистр 50 и первый информационный выход коммутатора 53,устанавливаетс  на выходе 14 блока 3 пам тиe - The contents of the address register of the constants enter the first input of the arithmetic logic unit 46, pass through the register 50 and the first information output of the switch 53, is set at the output 14 of the memory block 3

По сигналам обращени  на выходе 16 блока 3 пам ти устанавливаетс  константа А, и по управл ющему сигналу записываетс  в регистр 51 операционного блока 2.By the inversion signals at the output 16 of the memory unit 3, a constant A is set, and the control signal is written to the register 51 of the operation unit 2.

В этом же такте в блоке 55 умножени  перемножаетс  содержимое регистров 47 и 48 и значение произведени  Р Описываетс  в регистр 49. In the same clock cycle in multiplication unit 55, the contents of registers 47 and 48 are multiplied and the value of product P is described in register 49.

;;

Кроме того, в этом жеAlso in this

тактеtact

VV

формируетс  адрес константы А Дл  этоаthe address of the constant A is formed

го арифметико-логический блок 46 к значению адреса константы Af() добавл ет единицу, Адрес константы А Ј записываетс  в регистр адреса констант регистров 54 группы.The arithmetic logic block 46 to the value of the address of the constant Af () adds one, the address of the constant A А is written to the address register of the constants of the registers 54 of the group.

R следующем такте значени  константы через арифметико-логический блок 46 с выхода 29 операционного блока 2 через мультиплексоры 7-9 и 6 поступает на вход 24 операционного блока 2 и записываетс  в регистр 48. The next step, the value of the constant, through the arithmetic logic unit 46 from the output 29 of the operation unit 2, via multiplexers 7-9 and 6, is fed to the input 24 of the operation unit 2 and is written to the register 48.

Затем в этом же такте в регистр 47 записываетс  значение Р„ дл  чего оно пересылаетс  в него из регистра 49 через мультиплексор 52 и арифметико-логический блок 46,Then, in the same cycle, the value of P is recorded in the register 47 for which it is sent to it from the register 49 via the multiplexer 52 and the arithmetic logic unit 46,

В очередном такте по очередной микрокоманде аналогично описанному производ тс  операции: обращение в блок 3 пам ти за значением константы At и запись At в регистр 51;In the next clock cycle, the next micro-command is performed in the same way as described: contacting memory block 3 for the value of the constant At and writing At to the register 51;

ооoo

аналогично, увеличением адреса константы A j на единицу определ ют адрес константы А и записывают его в регистр адреса констант регистров групгГы 54; в этом же такте содержимо регистров 47 и 48 перемножаетс  и результат ,Р записываетс  в третий регистр 44.similarly, increasing the address of the constant A j by one determines the address of the constant A and writes it to the register of the address of the constants of the group 54 registers; in the same clock cycle the registers 47 and 48 are multiplied together and the result, P is written in the third register 44.

В следующем такте по очередной микрокоманде А 0 Р через мультиплексор 52 поступает на первый вход арифметико-логического блока 46 и складываетс  со значением константы -А. Результат сложени  Р + А формируетс  на выходе 29 операционного блока 2 и записываетс  через мультиплексоры 7 - 9 и 6 и вход 24 операционного блока 2 в регистр 48 операционного блока 2о Далее микрокоманды последних двух тактов циклически пов тер ютс  до тех пор, пока не будет вычислено выражение ((( Р + ) X х Р + А) Р + А) Р + At. Результа записываетс  в регистр 49„In the next clock cycle, according to the next microinstruction, A 0 P, through multiplexer 52, enters the first input of the arithmetic logic unit 46 and adds to the constant value -A. The result of adding P + A is generated at the output 29 of the operation unit 2 and recorded through multiplexers 7-9 and 6 and the input 24 of the operation unit 2 into the register 48 of the operation unit 2o. Next, the microcommands of the last two cycles are cyclically lost until expression (((Р +) X х Р + А) Р + А) Р + At. The result is written to register 49.

Следующий такт начинаетс  с обращени  в блок 3 пам ти за константой А записи ее в регистр 5i . Содержимое регистра 48 умножаетс  на содержимое регистра 47 и результат, как и в предыдущих случа х, записываетс  в регистр 49The next clock cycle begins with reference to memory block 3 for the constant A of writing it to register 5i. The contents of register 48 are multiplied by the contents of register 47 and the result, as in the previous cases, is written to register 49

В этом же такте, аналогично формированию очередной константы, формируетс  адрес очередного командноIn the same tact, similarly to the formation of the next constant, the address of the next command is formed.

1one

10ten

1515

2020

30 thirty

40 45 40 45

47К Л 1847K L 18

го спорт. В случае с выход  34 блока f управлени  поступает адрес регистра группы 54, отведенного под счетчик команд.go sport In the case of the output 34 of the control unit f, the address of the register of the group 54 allocated for the instruction counter is received.

В следующем.такте содержимое регистра 49 пересылаетс  на первый вход арифметико-логического блока 46, складываетс  с полученный результат F(X) формируетс  на четвертом выходе 29 операционного устройства 2.In the next step, the contents of register 49 are forwarded to the first input of the arithmetic logic unit 46, added to the obtained result F (X) is formed at the fourth output 29 of the operating device 2.

Значение функции F(x) сдвигаетс  на один разр д, т„е0 по управл ющим сигналам с выхода 36 блока 1 управлени  пропускаетс  информаци  с вторых входов мультиплексоров 6-9. При этом на выходе мультиплексора 8 устанавливаетс  нулевой сигнал, а на выходах остальных мультиплексоров - информаци  с 1 по 31 разр ды. Сдвинутое на один разр д значение F(X) записываетс  в один из регистров группы 54 по адресу, поступившему из блока 1 управлени .The value of the function F (x) is shifted by one bit, that is, e0, according to the control signals from the output 36 of the control unit 1, the information from the second inputs of the multiplexers 6-9 is passed. At the same time, a zero signal is set at the output of the multiplexer 8, and information from 1 to 31 bits is set at the outputs of the remaining multiplexers. The value of F (X) shifted by one bit is written to one of the registers of group 54 at the address received from control block 1.

В этом же такте с выходов 36 формируетс  управл ющий сигнал анализа перехода по условию, который разрешает прохождение информации о знаке функции с выхода триггера 10 через мультиплексор 39 на вход установки в триггера 42,Начальный адрес, микропрограммы функции выбираетс  так, что в данном такте адрес очередной микрокоманды имеет четное значение (триггер 42 находитс  в нулевом состо нии)In the same clock cycle, from the outputs 36 a control signal is generated for the condition analysis that allows the passage of information about the sign of the function from the output of the trigger 10 through the multiplexer 39 to the installation input to the trigger 42, the Start address, the function firmware is selected so that in this cycle the address the next microcommand has an even value (trigger 42 is in the zero state)

В случае, если на выходе триггера 10 устанавливаетс  логический О (функци  П), то состо ние триггера 42 не измен етс  На этом вычисление функции cosX заканчиваетс In the event that a logic O (function P) is set at the output of the trigger 10, then the state of the trigger 42 does not change. This completes the calculation of the cosX function

2525

и в следующем такте по изменившемус  адресу формируетс  набор управл ющих сигналов, необходимых дл  обращени  за очередным командным словом и его приемом.,and in the next clock cycle, a set of control signals necessary for calling up the next command word and its reception is formed at the changed address.

В случае, если на выходе триггера 10 устанавливаетс  логическа  I (функци  0) триггер 42 переходит в единичное состо ние, увеличива ,тем самым, значени  адреса микрокоманды на единицу.If the output of the trigger 10 is set to logical I (function 0), the trigger 42 goes into one state, thereby increasing the address of the microcommand by one.

В следующем такте по этому адресу на выходах 17,35, 36 и 34, выходах блока i управлени  формируютс  сигналы, в соответствии с которыми значение функции F(X) по вл етс  на первом входе арифметико-логическогоIn the next clock cycle, at this address, the outputs 17.35, 36, and 34, the outputs of the control block i, generate signals, according to which the value of the function F (X) appears at the first input of the arithmetic logic logic

блока Д6, которое инпертирует содержимое первого входа и добавл ет единицу в младший разр д, Тгвс функции присваиваетс  отрицательное значениеBlock D6, which injects the contents of the first input and adds one to the least significant bit. Tgvs function is assigned a negative value.

На этом вычисление функции (дл  сокХ 0) заканчиваетс ,,This is where the calculation of the function (for xX 0) ends

Дл  вычислени  функции sinX необходимо при формировании приведенного аргумента Xv изменить значение тридцатого разр да, кода аргумента на противоположное. Дл  этого при формировании X управл ющим сигналом с выходов 36 блока 1 управлени  открываетс  второй информационныйTo calculate the sinX function, it is necessary to change the value of the thirtieth bit, the argument code, to the opposite when forming the reduced argument Xv. For this, when generating X with the control signal from the outputs 36 of the control unit 1, the second information

вход мультиплексора 5„ При этом на первый информационный вход мультиплексора 6 поступает проинвертиро- ванное значение тридцатого разр да кода аргумента.input multiplexer 5 “At the same time, the first information input of multiplexer 6 receives the inverted value of the thirtieth digit of the argument code.

R остальном вычисление функции sinX аналогично вычислению функции cosX.R the rest of the calculation of the function sinX is similar to the calculation of the function cosX.

Claims (1)

Формула изобретени  Invention Formula Устройство дл  вычислени  функций синуса и косинуса, содержащее арифметико-логический блок, блок ум- A device for calculating sine and cosine functions, comprising an arithmetic logic unit, a smart block ствл и рходу признака знака функции блока управлени , соответствующие разр ды третьего выхода блока управлени  .подключены к управл ющим входам третьего мультиплексора и коммутатора , соответствующие разр ды четвертого выхода блока управлени  подключены к управл ющим входам четвертого , п того, шестого и седьмого мультиплексоров, выходы которых подключены через шину к информационным входам первого и второго регистров и регистров группы, выход признака результата операции арифметико-логи- ческбго блока подключен к входу признака результата операции блока управлени , вход кода операции блока управлени  подключен к выходу блока пам ти и к информационному входу п того регистра, выход которого подключен к первому информационному входу арифметико-логического блока, вход пуска устройства подключен к установочным входам регистров с первого по п тый, выход первого старшего разр да п того регистра подключен к первому управл ющему входу второго мультиплексора , с первого по четвертыйSigns of the sign of the function of the control unit corresponding to the bits of the third output of the control block. Connected to the control inputs of the third multiplexer and switch, the corresponding bits of the fourth output of the control block connected to the control inputs of the fourth, fifth, sixth and seventh multiplexers, outputs which are connected via bus to the information inputs of the first and second registers and registers of the group, the output of the sign of the result of the operation of the arithmetic-logic unit is connected to the input of the sign p As a result of the operation of the control unit, the input of the operation code of the control unit is connected to the output of the memory unit and to the information input of the fifth register, the output of which is connected to the first information input of the arithmetic logic unit, the device start input is connected to the setup inputs of registers one to five, the output of the first most significant bit of that register is connected to the first control input of the second multiplexer, from the first to the fourth ножени , блок управлени , два регист- зо информационные входы которого подcontrol unit, two register-informational inputs of which under р а, группу регистров и блок пам ти, причем разр ды первого выхода блока управлени  подключены к входу выборки блока пам ти, к синхровходам первого и второго регистров и регистров группы, разр ды выхода блока управлени  подключены к разр дам входа выбора регистров группы, разр ды третьего управл ющего выхода блока управлени  подключены к управл ющим входам блока умножени  и арифметико-логического блока, отличающеес  тем, что, с целью повышени  производительности при сохранении заданнойp a, a group of registers and a memory block, the bits of the first output of the control block are connected to the sample input of the memory block, to the synchronous inputs of the first and second registers and group registers, the bits of the output of the control block are connected to the bits of the input of the selection of register registers, bits The third control output of the control unit is connected to the control inputs of the multiplication unit and the arithmetic logic unit, characterized in that, in order to improve performance while maintaining the specified точности, в него введены семь мульти- „ формационным входам четвертого,п то-оprecision, it introduced seven multi-entry inputs of the fourth, n to-o плексоров, коммутатор, триггер, эле- И, элемент НЕ и три регистра, причем соответствующие разр ды четвертого выхода блока управлени  под- 1ключены к первому входу элемента И ;и к управл ющему входу первого муль- типлексора, соответствующие разр ды первого выхода блока управлени  подключены к синхровходам третьего,четвертого и п того регистров и триггера , информационный вход, вход установки в I и выход которого подключены соответственно к выходу второго мультиплексора, входу пуска устрой- plexors, switch, trigger, EI, element NOT and three registers, the corresponding bits of the fourth output of the control unit are connected to the first input of the I element, and to the control input of the first multiplexer, the corresponding bits of the first output of the control unit connected to the synchronous inputs of the third, fourth, and fifth registers and trigger, the information input, the installation input to I and the output of which are connected respectively to the output of the second multiplexer, the start input of the device 5050 5555 го и шестого мультиплексоров, выход второго старшего разр да арифметико- логического блока подключен к вторым информационным входам, четвертого и шестого мультиплексоров, выход первого мультиплексора подключен к третьему информационному входу четвертого мультиплексора, вход логического нул  устройства подключен к третьему информационному входу шестого мультиплексора и второму и третьему информационным входам п того мультиплексора , выход младших разр дов п того регистра подключен к первомуsecond and sixth multiplexers, the output of the second most significant bit of the arithmetic logic unit is connected to the second information inputs, the fourth and sixth multiplexers, the output of the first multiplexer is connected to the third information input of the fourth multiplexer, the logical input zero of the device is connected to the third information input of the sixth multiplexer and the second and the third information input of the fifth multiplexer, the output of the lower bits of the fifth register is connected to the first 5five Q Q ключены соответственно к входам логического нул , логической единицы9ло- гической единицы и логического нул  устройства, выход второго старшего разр да п того регистра подключен к второму входу элемента И, первому информационному входу первого мультиплексора и через элемент НЕ к второму информационному входу первого мультиплексора, выход элемента И под™ ключей к второму управл ющему входу второго мультиплексора9 выход первого старшего разр да арифметико-логического блока подключен к первым инare connected respectively to the inputs of logical zero, logical unit of logical unit and logical zero of the device, the output of the second most significant bit of the first register is connected to the second input of the AND element, the first information input of the first multiplexer and through the element NOT to the second information input of the first multiplexer, the output of the element And under the keys to the second control input of the second multiplexer, the output of the first high-order bit of the arithmetic logic unit is connected to the first input 5five го и шестого мультиплексоров, выход второго старшего разр да арифметико- логического блока подключен к вторым информационным входам, четвертого и шестого мультиплексоров, выход первого мультиплексора подключен к третьему информационному входу четвертого мультиплексора, вход логического нул  устройства подключен к третьему информационному входу шестого мультиплексора и второму и третьему информационным входам п того мультиплексора , выход младших разр дов п того регистра подключен к первомуsecond and sixth multiplexers, the output of the second most significant bit of the arithmetic logic unit is connected to the second information inputs, the fourth and sixth multiplexers, the output of the first multiplexer is connected to the third information input of the fourth multiplexer, the logical input zero of the device is connected to the third information input of the sixth multiplexer and the second and the third information input of the fifth multiplexer, the output of the lower bits of the fifth register is connected to the first информационному входу седьмого мультиплексора , второй и третий информационные нходы которого подключены к выходу младших разр дов арифметико- логического блока, первый и второй выходы коммутатора подключены соответственно к адресному и информационному входам блока пам ти, выходы первого и второго регистров подключены соответственно к первому и второму информационным входам блока умножени , выход которого подключен к ин77the information input of the seventh multiplexer, the second and third informational ports of which are connected to the output of the lower bits of the arithmetic logic unit, the first and second outputs of the switch are connected respectively to the address and informational inputs of the memory unit, the outputs of the first and second registers are connected respectively to the first and second informational the inputs of the multiplication unit, the output of which is connected to in77 Фиг. гFIG. g формационному пходу третьего рёгист-( ра, выход которого подключен к первому информационному входу третьего мультиплексора, второй информационный вход которого подключен к выходу группы регистров, выход третьего мультиплексора подключен к второму 0 информационному входу арифметико-логического блока и к информационному входу четвертого регистра, выход которого подключен к информационному входу коммутатора.the formation of the third ryogist- (pa whose output is connected to the first information input of the third multiplexer, the second information input of which is connected to the output of the group of registers connected to the information input of the switch. 3434 Фиг.зFig.z
SU864114268A 1986-09-01 1986-09-01 Sine and cosine computer SU1478213A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864114268A SU1478213A1 (en) 1986-09-01 1986-09-01 Sine and cosine computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864114268A SU1478213A1 (en) 1986-09-01 1986-09-01 Sine and cosine computer

Publications (1)

Publication Number Publication Date
SU1478213A1 true SU1478213A1 (en) 1989-05-07

Family

ID=21255349

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864114268A SU1478213A1 (en) 1986-09-01 1986-09-01 Sine and cosine computer

Country Status (1)

Country Link
SU (1) SU1478213A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР 1330627, кл. G 06 F 7/544, 1985. Авторское свидетельство СССР 1298740, кл G 06 F 7/544, 1985. *

Similar Documents

Publication Publication Date Title
GB1003921A (en) Computer cycling and control system
SU1478213A1 (en) Sine and cosine computer
SU1280624A1 (en) Device for multiplying the floating point numbers
SU802963A1 (en) Microprogramme-control device
SU1269145A1 (en) Microprocessor calculating device
SU968804A1 (en) Device for determining extremum numbers
SU826351A1 (en) Asynchronous control device
SU1195364A1 (en) Microprocessor
SU654948A2 (en) Digital electronic series-acting computer
SU955056A1 (en) Microprogram control device
SU1262516A1 (en) Microprogram control device
SU1259249A1 (en) Sequential adder of codes with irrational bases
SU888103A1 (en) Pulse-number code-to-range indicator code converter
RU2034330C1 (en) Operational unit
SU446880A1 (en) Device for generating addresses
SU593211A1 (en) Digital computer
SU1425674A1 (en) Controlled arithmetic device
SU922742A1 (en) Microprogramme-control device
SU1161944A1 (en) Device for modifying memory area address when debugging programs
SU588561A1 (en) Associative memory
SU561966A1 (en) Computing system for processing numbers and multidimensional vectors
SU888121A1 (en) Device for shaping execution addresses
SU928334A1 (en) Data input device
SU1201855A1 (en) Device for comparing binary numbers
SU1332328A1 (en) Processor