JPS594048B2 - Digital differential analyzer - Google Patents

Digital differential analyzer

Info

Publication number
JPS594048B2
JPS594048B2 JP52086092A JP8609277A JPS594048B2 JP S594048 B2 JPS594048 B2 JP S594048B2 JP 52086092 A JP52086092 A JP 52086092A JP 8609277 A JP8609277 A JP 8609277A JP S594048 B2 JPS594048 B2 JP S594048B2
Authority
JP
Japan
Prior art keywords
adder
register
output
input
overflow
Prior art date
Legal status (The legal status 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 status listed.)
Expired
Application number
JP52086092A
Other languages
Japanese (ja)
Other versions
JPS5422140A (en
Inventor
明 金湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Denshi KK
Original Assignee
Hitachi Denshi KK
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 Hitachi Denshi KK filed Critical Hitachi Denshi KK
Priority to JP52086092A priority Critical patent/JPS594048B2/en
Publication of JPS5422140A publication Critical patent/JPS5422140A/en
Publication of JPS594048B2 publication Critical patent/JPS594048B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Measurement Of Current Or Voltage (AREA)

Description

【発明の詳細な説明】 本発明は、デジタル微分解析機の改良に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to improvements in digital differential analyzers.

従来のデジタル微分解析機(以下DDAと略称する)の
基本的演算回路の例を第1図に示す。
An example of a basic arithmetic circuit of a conventional digital differential analyzer (hereinafter abbreviated as DDA) is shown in FIG.

1は二次増分入力△Yi〜△YnとYレジスタ2の内容
を加算する加算器、2は加算器1の出力を保持するYレ
ジスタ、3はYレジスタ2の内容と独立変数△Xの積と
後述のRレジスタ4の内容を加算する加算器、4は加算
器の出力を保持するRレジスタ、5は加算器1の二次増
分入力で△Yi(7)iは1〜nまでの正の整数である
1 is an adder that adds the secondary increment inputs △Yi to △Yn and the contents of Y register 2, 2 is a Y register that holds the output of adder 1, and 3 is the product of the contents of Y register 2 and independent variable △X. 4 is the R register that holds the output of the adder, 5 is the quadratic increment input of adder 1, and △Yi (7) i is the positive value from 1 to n. is an integer.

6は一次増分で独立変数△xである。6 is a linear increment and is an independent variable Δx.

TはRレジスタの桁上力出力△Zで、他の演算器の二次
増分入力となる。本図に於て、加算器1の演算は次のよ
うになる。Yi=Yi−1+Σ△Yj・・・・・・・・
・・・・・・・(1)iはイタレーシヨンのi番目を、
jは入力の番地を示し、nは入力数を示す。
T is the carry output ΔZ of the R register, which serves as a secondary increment input to other arithmetic units. In this figure, the operation of adder 1 is as follows. Yi=Yi-1+Σ△Yj・・・・・・・・・
・・・・・・・・・(1) i is the i-th iteration,
j indicates the input address, and n indicates the number of inputs.

Yiの範囲は−1<Yi<+1である。Yi−1とΣ△
Yjの値によつては、YiはYi<−1又はYi>+1
になる場合がある。
The range of Yi is -1<Yi<+1. Yi-1 and Σ△
Depending on the value of Yj, Yi is Yi<-1 or Yi>+1
It may become.

YiがYi<−1又はYi>+1になつた場合、加算器
1がオーバーフローしたことになる。Yiがオーバーフ
ローした時の加算器1の出力は次の例で示すように本来
の加算結果とは全然関係のない値となシ、演算を継続す
ることは無意味であわ、従来のDDAではこの時点で演
算を停止している。
If Yi becomes Yi<-1 or Yi>+1, adder 1 has overflowed. When Yi overflows, the output of adder 1 is a value completely unrelated to the original addition result, as shown in the following example, and it is pointless to continue the operation. The calculation is stopped at this point.

例えばYi−1−+ 0.812510=011012
Σ△Yj=+ 0.817510=000112添字の
10は10進数、2は2進数による表示であることを示
す。
For example, Yi-1-+ 0.812510=011012
ΣΔYj=+0.817510=000112 The subscript 10 indicates a decimal number, and 2 indicates a binary number.

Yi−1とΣ△Yjを加算すると結果はYi一+110
であるが2進演算では100002でこれは10進数に
直すと−110となる。
Adding Yi-1 and Σ△Yj, the result is Yi-1+110
However, in binary arithmetic, it is 100002, which becomes -110 when converted into a decimal number.

このことはオーバーフローした場合には正しい演算が行
なわれないことを示している。(2進数の負数は2の補
数で表わすものとする)Yiが負数になる場合も同様で
、加算器の出力は本来のYiとは関係のない値となる。
This indicates that the correct operation will not be performed in the event of an overflow. (A negative binary number is expressed as a two's complement number.) The same applies when Yi becomes a negative number, and the output of the adder becomes a value unrelated to the original Yi.

通常、演算を行う場合は、出力値が演算器の演算範囲を
超えないようスケール変換を行い、オーバーフローしな
いようにする。
Normally, when performing calculations, scale conversion is performed so that the output value does not exceed the calculation range of the calculation unit to prevent overflow.

しかしながら、自動制御系のシミュレーションや、オン
ライン制御を行う場合、条件によつて、一部の演算器が
オーバーフローすることは往々にしてあわうることであ
る。
However, when simulating an automatic control system or performing online control, it is often the case that some arithmetic units overflow depending on the conditions.

このような場合、アナログ計算機においてはオーバーフ
ローした場合、演算器の最大電圧を保持しながら継続し
て演算を行うことができるが、従来DDAに於ては、前
に述べたような理由で、演算器の一部又は全部がオーバ
ーフローするような演算は不可能である。本発明は加算
器1の出力がオーバーフローした時、Yレジスタ2に+
1又は−1の演算最大値を入力して飽和状態をシミユレ
ートし、継続的に、演算を行うことを目的としている。
第2図は、本発明の実施例で1〜7は第1図と同様であ
る。
In such a case, in an analog computer, if an overflow occurs, calculations can be continued while maintaining the maximum voltage of the calculation unit, but in conventional DDA, calculations cannot be performed for the reasons mentioned above. It is impossible to perform an operation where part or all of the container overflows. In the present invention, when the output of adder 1 overflows, +
The purpose is to simulate a saturated state by inputting the maximum calculation value of 1 or -1, and to perform calculations continuously.
FIG. 2 shows an embodiment of the present invention, and 1 to 7 are the same as those in FIG. 1.

8〜16の部分が第1図の回路に追加したもので、本発
明の中心部分である。
Sections 8 to 16 are added to the circuit of FIG. 1 and are the central portions of the present invention.

8はオーバーフロー及び極性検出器、9〜11はアンド
ゲート、12は加算器1の出力、13〜15は検出器8
の出力、16はアンドゲート9〜11のオア出力である
8 is an overflow and polarity detector, 9 to 11 are AND gates, 12 is the output of adder 1, and 13 to 15 are detector 8.
The output 16 is the OR output of AND gates 9-11.

この回路の動作は次のようになる。The operation of this circuit is as follows.

入力△Yi5とYレジスタ2の内容Yi−1を加算器1
で加算する。加算器の出力の値Yiは、N Yi=Yi−1+Σ△Yjとなる。
The input △Yi5 and the content Yi-1 of Y register 2 are added to adder 1.
Add with . The value Yi of the output of the adder is N Yi=Yi-1+ΣΔYj.

j=0 オーバフロー極性検出器8は加算器1の出力値Yiの値
によつて、出力13〜15のいづれかを出力する。
j=0 The overflow polarity detector 8 outputs any one of outputs 13 to 15 depending on the value of the output value Yi of the adder 1.

その条件は次の通vとなる。1≦Yi〈+1の時 13を出力し、アンドゲート9を開く Yiく−1の時 14を出力し、アンドゲート10を開く +1≦Yiの時 15を出力し、アンドゲート11を開く Yiの値によつてアンドゲート9〜11の内いづれか1
つのアンドゲートが開く。
The conditions are as follows. When 1≦Yi<+1, outputs 13, opens AND gate 9. When Yi is -1, outputs 14. Opens AND gate 10. When +1≦Yi, outputs 15, and opens AND gate 11. Depending on the value, one of AND gates 9 to 11
Two AND gates open.

これによジ、アンドゲート9が開いた時、Yレジスタ2
には加算器1の出力が入力される。
As a result, when AND gate 9 opens, Y register 2
The output of adder 1 is input to .

これは従来の演算と同様である。しかし、本発明ではア
ンドゲート10が開いた時−1がYレジスタ2に入力さ
れ、アンドゲート11が開いた時は+1がYレジスタ2
に入力される。アンドゲート10,11が開くのは、加
算器1が負又は正にオーバーフローした時であり、その
時Yレジスタ2には負又は正の最大値が入力されること
になる。Yレジスタ2以降の加算器3、Rレジスタ4、
△X入力6、△Z出力7の動作は第1図にて説明した従
来の演算動作と同じである。すなわち、Rレジスタ4の
内容とYレジスタ2の内容及び独立変数Δxが加算器3
によシ加算され、Rレジスタ4を介して桁土b出力△Z
7を出力する。以上説明したように本発明によれば、演
算器の一部又は全部がオーバーフローする可能性のある
演算回路例えば、自動制御回路のシミユレーシヨンやオ
ンラインに於ける自動制御の演算回路にDDAを使用す
ることができる。
This is similar to conventional calculations. However, in the present invention, when the AND gate 10 opens, -1 is input to the Y register 2, and when the AND gate 11 opens, +1 is input to the Y register 2.
is input. The AND gates 10 and 11 open when the adder 1 overflows negatively or positively, and at that time, the maximum negative or positive value is input to the Y register 2. Adder 3 after Y register 2, R register 4,
The operations of the △X input 6 and △Z output 7 are the same as the conventional arithmetic operation explained in FIG. That is, the contents of the R register 4, the contents of the Y register 2, and the independent variable Δx are
digit b output △Z via R register 4
Outputs 7. As explained above, according to the present invention, a DDA can be used in an arithmetic circuit where part or all of the arithmetic unit may overflow, such as a simulation of an automatic control circuit or an online automatic control arithmetic circuit. Can be done.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は従来のデジタル微分解析機の基本的演算回路を
示すプロツク図、第2図は本発明の実施例を示すプロツ
ク図。 1:加算器、2:レジスタ、5:ヮ汨摯、加算器1入力
、加算器2入力、8:オーバーフロ一及び極性検出器、
9〜11:ゲート、12:加算器1出力、13〜15:
検出器出力、16:ゲート出力。
FIG. 1 is a block diagram showing the basic arithmetic circuit of a conventional digital differential analyzer, and FIG. 2 is a block diagram showing an embodiment of the present invention. 1: adder, 2: register, 5: adder 1 input, adder 2 input, 8: overflow and polarity detector,
9-11: Gate, 12: Adder 1 output, 13-15:
Detector output, 16: Gate output.

Claims (1)

【特許請求の範囲】[Claims] 1 積分値を保持するYレジスタと、該Yレジスタの内
容と二次増分の和を加算するための加算器に於て、加算
器のオーバーフローとその極性を検出し、その結果によ
り、Yレジスタの入力を切替え、加算器の出力が正の極
性でオーバーフローした時は+1を、負の極性でオーバ
ーフローした時は−1を、オーバーフローしない時は、
加算器の出力をYレジスタにそれぞれ書き込む手段を備
えたことを特徴とするデジタル微分解析機。
1. In the Y register that holds the integral value and the adder that adds the contents of the Y register and the sum of the quadratic increment, the overflow of the adder and its polarity are detected, and based on the results, the Y register is Switch the input, when the output of the adder is positive polarity and overflows, it is +1, when it is negative polarity and overflows, it is -1, and when there is no overflow,
A digital differential analyzer characterized by comprising means for writing the outputs of the adders into Y registers.
JP52086092A 1977-07-20 1977-07-20 Digital differential analyzer Expired JPS594048B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52086092A JPS594048B2 (en) 1977-07-20 1977-07-20 Digital differential analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52086092A JPS594048B2 (en) 1977-07-20 1977-07-20 Digital differential analyzer

Publications (2)

Publication Number Publication Date
JPS5422140A JPS5422140A (en) 1979-02-19
JPS594048B2 true JPS594048B2 (en) 1984-01-27

Family

ID=13877055

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52086092A Expired JPS594048B2 (en) 1977-07-20 1977-07-20 Digital differential analyzer

Country Status (1)

Country Link
JP (1) JPS594048B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57132268A (en) * 1981-02-09 1982-08-16 Victor Co Of Japan Ltd Digital signal processing circuit

Also Published As

Publication number Publication date
JPS5422140A (en) 1979-02-19

Similar Documents

Publication Publication Date Title
GB940523A (en) Instruction counter with sequential address checking means
JPS54159831A (en) Adder and subtractor for numbers different in data length using counter circuit
JPH03135627A (en) Fuzzy arithmetic unit
JPS594048B2 (en) Digital differential analyzer
JPH0464091B2 (en)
GB945773A (en) Variable increment computer
Forsythe How do you solve a quadratic equation?
JP2705162B2 (en) Arithmetic processing unit
JPS5825458Y2 (en) index display device
JPS63254525A (en) Dividing device
JP2653134B2 (en) Arithmetic processing unit
SU583431A1 (en) Device for computing
SU593211A1 (en) Digital computer
SU972517A1 (en) Device for performing rapid fourier transform
Leinward et al. Dynamic Boolean Algebras
JPH0797312B2 (en) Arithmetic unit
SU661549A1 (en) Arithmetic device
SU598095A1 (en) Hybrid computer for solving heat-conduction non-linear problems
JPS5936781B2 (en) Inner and outer integral methods of digital differential analyzer
JP2561639B2 (en) Arithmetic logic unit
SU1501052A1 (en) Function computing device
JP2556904B2 (en) High-speed adder / subtractor
JPS5944656B2 (en) Integration method of digital differential analyzer
GB909441A (en) Improvements relating to digital computers
JPS60230266A (en) Arithmetic unit