JPS58201138A - Digital signal processing circuit - Google Patents
Digital signal processing circuitInfo
- Publication number
- JPS58201138A JPS58201138A JP57085309A JP8530982A JPS58201138A JP S58201138 A JPS58201138 A JP S58201138A JP 57085309 A JP57085309 A JP 57085309A JP 8530982 A JP8530982 A JP 8530982A JP S58201138 A JPS58201138 A JP S58201138A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- circuit
- memory
- instruction code
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/34—Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes
- G06F9/345—Addressing or accessing the instruction operand or the result ; Formation of operand address; Addressing modes of multiple operands or results
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
発明の技術分野
本発明は、命令コードに応じてメモリから読出したデー
タの演算を高速に実行するディジタル信号処理回路に関
するものである。DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a digital signal processing circuit that performs arithmetic operations on data read from a memory at high speed in accordance with an instruction code.
従来技術と問題点
命令コードに応じて演算を実行する従来の構成を第1図
に示すものであり、同図に於て、TRは(2)
命令コードをセットする命令レジスタ、ADHはアドレ
スト回路3Mはデータを記憶するメモ1ハCN 、Tは
各部を制御する制御回路、DBはデータバス、AR,B
Rは入力レジスタ、ALUは演算回路、ACCはアキュ
ムレータである。第2図は動作説明図であり、(a)は
動作サイクルクロック。Prior art and problems A conventional configuration for executing operations according to an instruction code is shown in Fig. 1. In the figure, TR is an instruction register (2) for setting an instruction code, and ADH is an address register. The circuit 3M is a memory 1c which stores data, T is a control circuit which controls each part, DB is a data bus, AR, B
R is an input register, ALU is an arithmetic circuit, and ACC is an accumulator. FIG. 2 is an explanatory diagram of the operation, and (a) is an operation cycle clock.
(blは命令コード、(C)は命令レジスタIRの内容
。(bl is the instruction code, (C) is the contents of the instruction register IR.
(d+はデータバス上のデータ、(e)は大力レジスタ
ARの内容、(f)は入力レジスタBRの内容、(g)
は演算回路ALUの動作、(h)はアキュムレータAC
Cの内容を示すものである。(d+ is the data on the data bus, (e) is the content of the large register AR, (f) is the content of the input register BR, (g)
is the operation of the arithmetic circuit ALU, (h) is the accumulator AC
This shows the contents of C.
命令レジスタIRに命令コードがセットされると、それ
に含まれたアドレス情報がアドレス回路ADRに、又制
御情報が制御回路CNTにそれぞれ加えられ、制御回路
CNTは制御情報に従って点線で示す制御線により各部
の制御を行う。又アドレス回路ADHによりメモリMの
アドレス信号が作成されてメモリMのアクセスが行われ
る。このメモリMから読出されたデータは、データバス
DBを介して入力レジスタARに入力され、同様(3)
の操作で次のサイクルの命令コードに従っテ大刀レジス
タBRにデータが入力される。入力レジスタAR,BR
のデータは、演算回路A L Uにより演算されて演算
結果がアキュムレータACCにセットされる。When the instruction code is set in the instruction register IR, the address information contained therein is added to the address circuit ADR, and the control information is added to the control circuit CNT, and the control circuit CNT controls each section according to the control information by control lines indicated by dotted lines. control. Further, an address signal for the memory M is created by the address circuit ADH, and the memory M is accessed. The data read from the memory M is input to the input register AR via the data bus DB, and by the same operation (3), the data is input to the long sword register BR according to the instruction code of the next cycle. Input register AR, BR
The data is calculated by the calculation circuit ALU, and the calculation result is set in the accumulator ACC.
第2図に於ては、(1)の命令による動作と、(2)の
命令による動作とを矢印で示している。即ち演算結果を
得るまでのサイクル数は5サイクルを要することになり
、総てパイプライン処理と考えた場合でも、一つの演算
結果を得るために3サイクルを要することになる。In FIG. 2, arrows indicate the operation according to the command (1) and the operation according to the command (2). That is, 5 cycles are required to obtain a calculation result, and even if all processes are considered to be pipeline processing, 3 cycles are required to obtain a single calculation result.
又(定数×変数)の演算の場合、第3図に示すように、
ROM等のメモリM1がら続出した定数データとRAM
等のメモリM2がら続出した変数データとをそれぞれ入
力レジスタAR,BRを介して演算回路ALUに入力し
て演算し、アキュムレータACCに演算結果をセットす
る。この場合メモリM1は順次歩進するアドレス信号で
アクセスされて定数データが読出され、メモリM2は命
令コードに含まれるアドレス情報によりアクセス(4)
されて変数データが読出されて、同時に各レジスタAR
,BRにデータがセットされる。In addition, in the case of the operation of (constant x variable), as shown in Figure 3,
Constant data and RAM keep coming out of memory M1 such as ROM
The variable data sequentially outputted from the memory M2, etc., are input to the arithmetic circuit ALU via the input registers AR and BR, and arithmetic is performed, and the result of the arithmetic operation is set in the accumulator ACC. In this case, memory M1 is accessed by sequentially incrementing address signals to read constant data, memory M2 is accessed (4) by address information included in the instruction code to read variable data, and at the same time each register AR
, BR.
しかし、 (変数×変数)の演算を行う必要が生じる場
合もあり、その場合は第4図に示すように、メモリM2
から読出した変数データを入力レジスタAR,BRにそ
れぞれ入力することができる構成とすればよいことにな
るが、先ず入力レジスタARにメモリM2から読出した
変数データをセットし9次に入力レジスタBRにメモリ
M2から読出した変数データをセットすることになり、
メモリM2から2回に分けて変数データの読出しを行う
ことになるから、 (定数×変数)の演算の場合より処
理速度が遅くなる。However, there may be cases where it is necessary to perform the calculation (variable x variable), and in that case, as shown in Figure 4, the memory M2
It would be sufficient if the configuration was such that the variable data read from the memory M2 can be input to the input registers AR and BR, respectively. First, the variable data read from the memory M2 is set in the input register AR, and then the variable data read from the memory M2 is input to the input register BR. The variable data read from memory M2 will be set,
Since the variable data is read out twice from the memory M2, the processing speed is slower than in the case of the (constant×variable) operation.
発明の目的
本発明は、メモリからのデータ読出しを少ないサイクル
数で行うことができるようにして、演算速度を向上させ
ると共に、外部拡張メモリを用いた演算も高速化するこ
とができるようにすることを目的とするものである。以
下実施例について詳細に説明する。OBJECT OF THE INVENTION The present invention is to improve the calculation speed by making it possible to read data from a memory in a small number of cycles, and also to make it possible to speed up calculations using an external expansion memory. The purpose is to Examples will be described in detail below.
(5)
発明の実施例
第5図は1本発明の一実施例のブロック図であり、IR
は命令レジスタ、ADRI、ADH2はアドレス回路、
MEMI、MEM2はメモリ、CNTは点線で示す制御
線により各部を制御する制御回路、AR,BRは入力レ
ジスタ、ALUは演算回路、ACCはアキュムレータで
ある。命令レジスタIRにセットされる命令コードには
、2個のアドレス情報を含むもので、それぞれアドレス
回路ADRI、ADR2に加えられる。又制御情報は制
御回路CNTに加えられる。従ってメモリMEMI、M
EM2はアドレス回路ADRI、ADR2からのアドレ
ス信号によりアクセスされて、同時にデータが読出され
、入力レジスタAR。(5) Embodiment of the invention FIG. 5 is a block diagram of an embodiment of the invention.
is an instruction register, ADRI, ADH2 are address circuits,
MEMI and MEM2 are memories, CNT is a control circuit that controls various parts by control lines indicated by dotted lines, AR and BR are input registers, ALU is an arithmetic circuit, and ACC is an accumulator. The instruction code set in the instruction register IR includes two pieces of address information, which are respectively applied to address circuits ADRI and ADR2. Control information is also applied to the control circuit CNT. Therefore memory MEMI, M
EM2 is accessed by address signals from address circuits ADRI and ADR2, and data is simultaneously read out from input register AR.
BRにセットされる。そして演算回路ALUにより演算
されて、演算結果はアキュムレータACCにセットされ
る。Set to BR. Then, the calculation circuit ALU performs calculation, and the calculation result is set in the accumulator ACC.
第6図は動作説明図であり、(a)は動作サイクルクロ
ック、山)は命令コード、(C)は命令レジスタIRの
内容、(d)は入力レジスタARの内容、(e)は入(
6)
カレジスタBRの内容、(f)は演算回路ALUの動作
、(g)はアキュムレータACCの内容を示すものであ
る。命令コード(1)については、矢印で示すように、
命令レジスタTRにセットされた後、それに含まれるア
ドレス情報により、それぞれメモリMEMI、MEM2
から読出されたデータが、(d)及び(elに示すよう
に、入力レジスタAR,BRに入力され、それらのデー
タが演算回路ALUで演算されて、(g)に示すように
、アキュムレータACCにセットされる。従って従来例
(第2図参照)と比較して1サイクル少ないものとなる
。FIG. 6 is an explanatory diagram of the operation, where (a) is the operating cycle clock, (mountain) is the instruction code, (C) is the content of the instruction register IR, (d) is the content of the input register AR, and (e) is the input (
6) The contents of the cash register BR, (f) the operation of the arithmetic circuit ALU, and (g) the contents of the accumulator ACC. For instruction code (1), as shown by the arrow,
After being set in the instruction register TR, the addresses of the memories MEMI and MEM2 are set according to the address information contained therein.
The data read from is input to the input registers AR and BR as shown in (d) and (el), and these data are calculated in the arithmetic circuit ALU and then input to the accumulator ACC as shown in (g). Therefore, the number of cycles is reduced by one cycle compared to the conventional example (see FIG. 2).
第7図は本発明の他の実施例のブロック図であり、第5
図と同一符号は同一部分を示すものであって、5ELI
〜5EL3はセレクタ、MEM3は定数等を記憶した読
取専用メモリ(ROM>等のメモリ、MEM4は外部拡
張メモリ、DBはデータバスである。命令レジスタIR
に命令コードがセットされると、アドレス情報がそれぞ
れアドレス回路ADRI、ADR2に加えられ、制御情
報が制御回路CNTに加えられ9例えば(定数×(7)
変数)の演算を行う場合、定数データが記憶されたメモ
リMEM3がアクセス可能となり、又変数データが記憶
されたメモリMEMI、MEM2の何れか一方がアクセ
ス可能となると共に、セレクタSEL 1の制御により
、アクセス可能のメモリにアドレス信号が加えられる。FIG. 7 is a block diagram of another embodiment of the present invention;
The same symbols as in the figure indicate the same parts, and 5ELI
~5EL3 is a selector, MEM3 is a read-only memory (ROM>, etc.) that stores constants, etc., MEM4 is an external expansion memory, and DB is a data bus.Instruction register IR
When the instruction code is set to , address information is added to the address circuits ADRI and ADR2, respectively, and control information is added to the control circuit CNT. The stored memory MEM3 becomes accessible, and one of the memories MEMI and MEM2 storing variable data becomes accessible, and an address signal is applied to the accessible memory under the control of the selector SEL1.
即ちメモリMEM1をアクセス可能とした場合は、セレ
クタ5EL1はアドレス回路ADR2からのアドレス信
号をメモリMEM1に加えるように切換動作し、メモリ
MEM1から変数データが読出され、同時にメモリME
M3から定数データが読出される。That is, when the memory MEM1 is made accessible, the selector 5EL1 performs a switching operation so as to apply the address signal from the address circuit ADR2 to the memory MEM1, variable data is read from the memory MEM1, and at the same time, the memory MEM1 is
Constant data is read from M3.
又セレクタ5EL2はメモリMBM1の続出データを選
択し、セレクタ5EL3はデータバスDB上のメモリM
EM3の続出データを選択する。Further, the selector 5EL2 selects successive data in the memory MBM1, and the selector 5EL3 selects successive data in the memory MBM1 on the data bus DB.
Select the continuation data of EM3.
従って入力レジスタARには変数データ、入力レジスタ
BRには定数データがそれぞれセットされて、演算回路
ALUによる(定数×変数)の演算が行われることにな
る。なおこのときの変数データがメモリMEM2に記憶
されている場合には。Therefore, variable data is set in the input register AR, constant data is set in the input register BR, and the calculation of (constant x variable) is performed by the calculation circuit ALU. Note that if the variable data at this time is stored in the memory MEM2.
メモリMEM2がアクセス可能となり、アドレス(8)
回路ADR2からのアドレス信号によりアクセスされる
ことになる。The memory MEM2 becomes accessible and is accessed by the address signal from the address (8) circuit ADR2.
又(変数×変数)の演算の場合は、第5図に示す実施例
と同様に、メモリMEMI、MEM2がそれぞれアドレ
ス回路ADR1,ADR2からのアドレス信号によりア
クセスされて、同時に読出された変数データは、セレク
タ5EL2,5EL3を介して入力レジスタAR,BR
にセットされて、演算回路ALUにより演算され、演算
結果はアキュムレータACCにセットされる。In addition, in the case of the operation of (variable x variable), the memories MEMI and MEM2 are accessed by the address signals from the address circuits ADR1 and ADR2, respectively, and the variable data read out at the same time is , input registers AR and BR via selectors 5EL2 and 5EL3.
is set, the calculation is performed by the calculation circuit ALU, and the calculation result is set in the accumulator ACC.
セレクタ5EL2により選択されて、入力レジスタAR
又は入力レジスタBRに入力される。従って、メモリM
EM1〜MBM3の何れかの続出データと外部拡張メモ
リMEM4の続出データとの演算を行うことができ、入
力レジスタAR,BRには同時にデータをセットできる
ので、演算処理を高速化することができる。Selected by selector 5EL2, input register AR
Or it is input to the input register BR. Therefore, memory M
It is possible to perform arithmetic operations on successive data from any of EM1 to MBM3 and successive data from external expansion memory MEM4, and data can be set in input registers AR and BR at the same time, thereby speeding up the arithmetic processing.
又メモリMEMI、MEM2を1個のメモリと(9)
みなすしてデータの続出制御を行うことも可能であり、
この場合は同一の7ドレス信号を各メモリMEM1.M
EM2に加えてアクセスすることになる。前述の如くメ
モリの各種の選択制御が可能となるものである。It is also possible to control the continuous flow of data by regarding the memories MEMI and MEM2 as one memory (9).
In this case, the same 7dress signals are sent to each memory MEM1. M
It will be accessed in addition to EM2. As described above, various types of memory selection control are possible.
発明の詳細
な説明したように1本発明は、命令コードに2個のアド
レス情報を含ませて、それぞれのアドレス情報を加える
アドレス回路ADRI、ADR2を設け、同時に2個の
メモリのアクセスを可能として、入力レジスタAR,B
Rに同時にデータをセットすることができるから、演算
処理を高速化することができることになる。更にセレク
タにより、アドレス信号の選択や、入力レジスタAR、
BRへのデータを、メモリ又はデータバスからセットで
きるので、各種のデータが記憶された複数のメモリの選
択制御により演算処理を行うことができる。従って外部
拡張メモリを用いた場合でも演算処理を高速で行うこと
ができる。DETAILED DESCRIPTION OF THE INVENTION As described above, the present invention includes two pieces of address information in an instruction code, and provides address circuits ADRI and ADR2 that add each piece of address information, thereby making it possible to access two memories at the same time. , input register AR, B
Since data can be set in R at the same time, arithmetic processing can be speeded up. Furthermore, the selector allows selection of address signals, input register AR,
Since data to the BR can be set from memory or a data bus, arithmetic processing can be performed by selectively controlling a plurality of memories in which various types of data are stored. Therefore, even when an external expansion memory is used, arithmetic processing can be performed at high speed.
(10)
第1図は従来のディジタル信号処理回路のブロック図、
第2図は第1図の動作説明図、第3図及び第4図は従来
の演算処理の説明用ブロック図。
第5図は本発明の一実施例のブロック図、第6図は第5
図の動作説明図、第7図は本発明の他の実施例のブロッ
ク図である。
IRは命令レジスタ、CNTは制御回路、DBはデータ
バス、ADRI、A、DR2はアドレス回路、MEMI
〜MEM3はメモリ、MEM4は外部拡張メモリ、5R
LL〜5EL3はセレクタ。
ALUは演算回路、ACCはアキュムレータ。
AR,BRは入力レジスタである。
特許出願人 富士通株式会社
代理人弁理士 玉蟲久五部 外3名
(11)
第1図
第2図
(1m)
第3図
□□
第5図
第6図(10) Figure 1 is a block diagram of a conventional digital signal processing circuit.
FIG. 2 is an explanatory diagram of the operation of FIG. 1, and FIGS. 3 and 4 are block diagrams for explaining conventional arithmetic processing. FIG. 5 is a block diagram of an embodiment of the present invention, and FIG. 6 is a block diagram of an embodiment of the present invention.
FIG. 7 is a block diagram of another embodiment of the present invention. IR is an instruction register, CNT is a control circuit, DB is a data bus, ADRI, A, DR2 are address circuits, MEMI
~MEM3 is memory, MEM4 is external expansion memory, 5R
LL~5EL3 are selectors. ALU is an arithmetic circuit, and ACC is an accumulator. AR and BR are input registers. Patent applicant Fujitsu Ltd. Representative Patent Attorney Gobe Tamamushi and 3 other people (11) Figure 1 Figure 2 (1m) Figure 3 □□ Figure 5 Figure 6
Claims (2)
演算を行うディジタル信号処理回路に於て。 前記命令コードをセットする命令レジスタ、該命令レジ
スタにセットされた命令コードに付加された2個のアド
レス情報をそれぞれ入力するアドレス回路、該アドレス
回路からのアドレス情報によりアクセスされる少なくと
も2個のメモリ、該2個のメモリからそれぞれ読出した
データ又はデータバスを介したデータを入力する2個の
入力レジスタ、該2個の入力レジスタからのデータの演
算を行う演算回路とを備えたことを特徴とするディジタ
ル信号処理回路。(1) In a digital signal processing circuit that performs calculations on data read from memory according to an instruction code. an instruction register for setting the instruction code; an address circuit for inputting two pieces of address information added to the instruction code set in the instruction register; and at least two memories accessed by the address information from the address circuit. , comprising two input registers into which data respectively read from the two memories or data via a data bus are input, and an arithmetic circuit which performs arithmetic operations on the data from the two input registers. digital signal processing circuit.
演算を行うディジタル信号処理回路に於て。 前記命令コードをセットする命令レジスタ、該命令レジ
スタにセットされた命令コードに付加され(1) た2個のアドレス情報をそれぞれ入力するアドレス回路
、該アドレス回路からのアドレス情報を選択するセレク
タ、該セレクタにより選択されたアドレス情報又は前記
アドレスレジスタからのアドレス情報によりアクセスさ
れる少なくとも2個のメモリ、該2個のメモリから読出
したデータ又はデータバスを介したデータを選択する2
個のセレクタ、該2個のセレクタにより選択したデータ
をそれぞれ入力する2個の入力レジスタ、該2個の入力
レジスタからのデータの演算を行う演算回路とを備えた
ことを特徴とするディジタル信号処理回路。(2) In a digital signal processing circuit that performs arithmetic operations on data read from memory in accordance with an instruction code. an instruction register for setting the instruction code; an address circuit for inputting the two pieces of address information (1) added to the instruction code set in the instruction register; a selector for selecting address information from the address circuit; At least two memories accessed by address information selected by a selector or address information from the address register, selecting data read from the two memories or data via a data bus 2
A digital signal processing system comprising: a selector, two input registers into which data selected by the two selectors are respectively input, and an arithmetic circuit that performs an arithmetic operation on data from the two input registers. circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57085309A JPS58201138A (en) | 1982-05-20 | 1982-05-20 | Digital signal processing circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57085309A JPS58201138A (en) | 1982-05-20 | 1982-05-20 | Digital signal processing circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS58201138A true JPS58201138A (en) | 1983-11-22 |
JPH03652B2 JPH03652B2 (en) | 1991-01-08 |
Family
ID=13854994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57085309A Granted JPS58201138A (en) | 1982-05-20 | 1982-05-20 | Digital signal processing circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58201138A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60124730A (en) * | 1983-12-10 | 1985-07-03 | Sony Corp | Digital operation circuit |
-
1982
- 1982-05-20 JP JP57085309A patent/JPS58201138A/en active Granted
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60124730A (en) * | 1983-12-10 | 1985-07-03 | Sony Corp | Digital operation circuit |
Also Published As
Publication number | Publication date |
---|---|
JPH03652B2 (en) | 1991-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4651274A (en) | Vector data processor | |
JPH08106375A (en) | Signal processing computing element | |
JPS59174948A (en) | Information processing device | |
JP3237858B2 (en) | Arithmetic unit | |
US4870563A (en) | Information processing apparatus having a mask function | |
US4394735A (en) | Data processor controlled by microprograms | |
US4253142A (en) | Method and apparatus for speeding up the determination of a microinstruction address in a data processing system | |
JPS58201138A (en) | Digital signal processing circuit | |
US5761737A (en) | Data driven type information processing apparatus having improved generation number translation | |
JP2793357B2 (en) | Parallel processing unit | |
JP3088956B2 (en) | Arithmetic unit | |
JP3526773B2 (en) | Multiprocessor device and control method thereof | |
JP4315626B2 (en) | Information processing method in memory controller of data driven information processing apparatus | |
JPH07160575A (en) | Memory system | |
JPS6382530A (en) | Semiconductor storage device | |
JPH04278636A (en) | Microprogram controller | |
JP3392413B2 (en) | Two-level micro control system and method | |
US5822775A (en) | Efficient data processing method for coefficient data in a digital dignal, processor | |
JPS6260755B2 (en) | ||
JP2573711B2 (en) | Micro subroutine control method | |
JPS59223846A (en) | Arithmetic processor | |
JPS6210733A (en) | Addition control method | |
JPH0895781A (en) | Arithmetic and logic unit of processor | |
JPH0778730B2 (en) | Information processing equipment | |
JPH0668055A (en) | Digital signal processor |