JPH0628033B2 - Processor - Google Patents

Processor

Info

Publication number
JPH0628033B2
JPH0628033B2 JP61093124A JP9312486A JPH0628033B2 JP H0628033 B2 JPH0628033 B2 JP H0628033B2 JP 61093124 A JP61093124 A JP 61093124A JP 9312486 A JP9312486 A JP 9312486A JP H0628033 B2 JPH0628033 B2 JP H0628033B2
Authority
JP
Japan
Prior art keywords
write
instruction
address
memory
writing
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 - Fee Related
Application number
JP61093124A
Other languages
Japanese (ja)
Other versions
JPS62248047A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP61093124A priority Critical patent/JPH0628033B2/en
Publication of JPS62248047A publication Critical patent/JPS62248047A/en
Publication of JPH0628033B2 publication Critical patent/JPH0628033B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、1命令で内蔵メモリを読み、書きできる1チ
ップ信号処理プロセッサ等のプロセッサ、特にメモリへ
の書込み制御に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor such as a one-chip signal processor capable of reading and writing a built-in memory with one instruction, and particularly to write control to the memory.

(従来の技術) 従来、1チップ信号処理プロセッサは、算術演算および
論理演算を行う演算部、該プロセッサの働きを制御する
制御部、命令およびデータを記憶する記憶部等を、1チ
ップに内蔵したものである。ここで、演算部は算術論理
ユニット(以下、ALUという)、乗算器等を、制御部は
命令レジスタ、命令デコーダ等を、記憶部は随時読み書
き可能なメモリ(以下、RAMという)、読出し専用メモ
リ(以下、ROMという)等を、それぞれ有している。
(Prior Art) Conventionally, a one-chip signal processor has a single-chip built-in arithmetic unit that performs arithmetic and logical operations, a control unit that controls the operation of the processor, a storage unit that stores instructions and data, and the like. It is a thing. Here, the arithmetic unit is an arithmetic logic unit (hereinafter referred to as ALU), a multiplier, etc., the control unit is an instruction register, an instruction decoder, etc., and the storage unit is a readable / writable memory (hereinafter referred to as RAM), a read-only memory. (Hereinafter, referred to as ROM) and the like, respectively.

この種のプロセッサでは、内蔵RAMの読出し(リード)
動作と書込み(ライト)動作を行うにはそれぞれ1命令
必要である。そのため、内蔵RAMを介して演算部で演算
を行う場合、必ず内蔵RAMのリード命令及びライト命令
を必要とする。通常、1チップ信号処理プロセッサで
は、内蔵RAMのリード命令及びライト命令が1クロック
で動作する。
In this type of processor, the internal RAM is read
One instruction is required for each of the operation and the write operation. Therefore, when an arithmetic unit performs an arithmetic operation via the built-in RAM, a read instruction and a write instruction for the built-in RAM are required. Normally, in the one-chip signal processor, the read instruction and the write instruction of the built-in RAM operate in one clock.

(発明が解決しようとする問題点) しかしながら、上記構成のプロセッサでは次のような問
題点があった。
(Problems to be Solved by the Invention) However, the processor having the above configuration has the following problems.

最近、デイジタル信号処理技術の進歩や、信号処理プロ
セッサの適用領域の拡大につれて該信号処理プロセッサ
に対する高性能化や、高機能化の要求が強まりつつあ
る。その要求の一つに、1命令(即ち、1クロック)で
内蔵RAMを読み、書きできるようにしたいという要求が
ある。
Recently, with the progress of digital signal processing technology and the expansion of the application area of the signal processing processor, there is an increasing demand for higher performance and higher functionality of the signal processing processor. One of the demands is a demand to read and write the internal RAM with one instruction (that is, one clock).

命令体系上、RAMの読出し/書込み命令を追加するには
2つの方法がある。第1の方法は、RAMの読出し命令と
書込み命令に加え、読出し/書込み命令を追加する方法
である。この方法は、命令の種類を増加させ、ハードウ
ェアが増加するという問題がある。
There are two methods for adding RAM read / write instructions in terms of instruction system. The first method is a method of adding a read / write command in addition to a read command and a write command of RAM. This method has a problem that the types of instructions are increased and the hardware is increased.

第2の方法は、RAMの読出し命令と書込み命令を削除
し、RAMの読出し/書込み命令に一本化する方法であ
る。この場合、RAMの読出し命令と書込み命令の機能
は、RAMの読出し/書込み命令で代替される。ところ
が、第2の方法でRAMの読出し機能を代替する場合、該R
AMの書込みを禁止する必要がある。これを実現するた
め、RAMの読出し/書込み命令内に、該RAMへの書込み禁
止を示すフィールドを設ける必要があるが、それによっ
てハードウェアの大型化を招くという問題が生じる。
The second method is a method of deleting a RAM read instruction and a write instruction and unifying them into a RAM read / write instruction. In this case, the functions of the RAM read and write instructions are replaced by the RAM read / write instructions. However, when the RAM read function is replaced by the second method, the R
It is necessary to prohibit the writing of AM. In order to realize this, it is necessary to provide a field indicating the write prohibition to the RAM in the read / write instruction of the RAM, but this causes a problem that the hardware becomes large.

本発明は前記従来技術が持っていた問題点として、ハー
ドウエアを大型化せずに、1命令(即ち、1クロック)
でメモリの読出しと書込みを行うことが困難である点に
ついて解決したプロセッサを提供するものである。
The present invention has a problem that the above-mentioned prior art has one instruction (that is, one clock) without increasing the size of hardware.
It is intended to provide a processor which solves the problem that it is difficult to read and write the memory.

(問題点を解決するための手段) 本発明は、前記問題点を解決するために、命令の形式を
規定する命令形式フィールド、メモリのリードアドレス
を発生する読出し用オフセット、及び該メモリのライト
アドレスを発生する書込み用オフセットを有する1命令
のうち、該命令形式フィールド及び書込み用オフセット
とインデックス用データとを演算してライトアドレス信
号を生成するライトアドレス生成回路と、前記ライトア
ドレス信号によってアドレスが指定され、そのアドレス
に対するデータの書込みが行われるメモリとを備え、前
記1命令によって前記メモリの読出しと書込みを1クロ
ックで実行するプロセッサにおいて、次のような手段を
設けている。
(Means for Solving Problems) In order to solve the above problems, the present invention provides an instruction format field that defines an instruction format, a read offset for generating a read address of a memory, and a write address of the memory. Out of one instruction having a write offset that generates a write address, a write address generation circuit that generates a write address signal by operating the instruction format field and write offset, and index data, and an address is specified by the write address signal. And a memory in which data is written to the address, and the following means are provided in the processor that executes the reading and writing of the memory in one clock by the one instruction.

即ち、本発明では、前記命令形式フィールド及び書込み
用オフセットをデコードして該書込み用オフセットが特
定の値を示したときに前記メモリへのデータの書込みを
禁止する書込み禁止信号を発生する書込み禁止手段を、
前記ライトアドレス生成回路に設けている。
That is, in the present invention, a write prohibition means for decoding the instruction format field and the write offset and generating a write prohibition signal for prohibiting the writing of data to the memory when the write offset shows a specific value. To
It is provided in the write address generation circuit.

(作用) 本発明によれば、以上のようにプロセッサを構成したの
で、書込み禁止手段は、書込み用オフセットの特定値を
検出すると、書込み禁止信号を発生する。この書込み禁
止信号により、メモリへの書込みが禁止され、それによ
ってハードウェアの大型化が抑制される。従って、前記
問題点を除去できるのである。
(Operation) According to the present invention, since the processor is configured as described above, the write inhibit means generates the write inhibit signal when detecting the specific value of the write offset. This write inhibit signal inhibits writing to the memory, thereby suppressing the increase in size of hardware. Therefore, the above problems can be eliminated.

(実施例) 第1図は本発明の一実施例を示す1チップ信号処理プロ
セッサの要部構成図、すなわち、ライトアドレス生成回
路の構成ブロック図である。
(Embodiment) FIG. 1 is a main part configuration diagram of a one-chip signal processor according to an embodiment of the present invention, that is, a configuration block diagram of a write address generation circuit.

このライトアドレス生成回路は、図示しないROM等から
読出された命令を一時記憶する命令レジスタ1、タイプ
識別用のANDゲート2、内蔵RAMの書込みを禁止する書込
み禁止手段であるNANDゲート3、ライトアドレス用のイ
ンデックスレジスタ4、及びライトアドレス生成用の2
入力6ビット加算回路5を備えている。ANDゲート2は
命令レジスタ1の出力信号A30,A31を入力してその論理
積を出力する回路、NANDゲート3は命令レジスタ1の出
力信号A0〜A29とANDゲート2の出力との論理積をとりそ
の反転信号である書込み禁止信号Sを出力する回路であ
る。インデックスレジスタ4はインデックス用のデータ
を一時記憶する回路、加算回路5は命令レジスタ1の出
力信号A0〜A5とインデックスレジスタ4の出力とを加算
してライトアドレス信号AD1〜AD6を出力する回路であ
る。
This write address generation circuit is composed of an instruction register 1 for temporarily storing an instruction read from a ROM (not shown), an AND gate 2 for type identification, a NAND gate 3 as a write prohibiting means for prohibiting writing to an internal RAM, and a write address. Index register 4 for write, and 2 for write address generation
An input 6-bit addition circuit 5 is provided. The AND gate 2 inputs the output signals A30 and A31 of the instruction register 1 and outputs a logical product of them. The NAND gate 3 takes a logical product of the output signals A0 to A29 of the instruction register 1 and the output of the AND gate 2. It is a circuit that outputs a write-inhibit signal S that is its inverted signal. The index register 4 is a circuit for temporarily storing index data, and the adder circuit 5 is a circuit for adding the output signals A0 to A5 of the instruction register 1 and the output of the index register 4 to output write address signals AD1 to AD6. .

なお、第1図では一般的な1チップ信号処理プロセッサ
が備えている演算部、記憶部等の主要部分が説明の便宜
上省略されているが、これら省略された演算部等は本実
施例のプロセッサにも当然設けられている。ここで、従
来と同様に、演算部はALU、乗算器等を、記憶部は命令
レジスタ1に与えるプログラム命令を格納するROM、ラ
イトアドレス信号AD1〜AD6で指定されたアドレスへデー
タを記憶するRAM等を、それぞれ有している。
Note that, in FIG. 1, main parts such as an arithmetic unit and a storage unit included in a general one-chip signal processor are omitted for convenience of description, but these omitted arithmetic units are the processors of this embodiment. Naturally it is also provided. Here, as in the conventional case, the arithmetic unit is an ALU, a multiplier, etc., the storage unit is a ROM for storing a program instruction given to the instruction register 1, and the RAM is for storing data at an address designated by the write address signals AD1 to AD6. And so on.

第2図は内蔵RAMを1命令(即ち、1クロック)で読
み、書きできる命令構成例を示す図である。第2図にお
いて「TYP」は命令の形式を規定するフィールド、「Rad
d」、「Wadd」はそれぞれ内蔵RAMのリードアドレス、ラ
イトアドレスを発生するオフセットである。内蔵RAMの
リードアドレス、ライトアドレスはそれぞれのオフセッ
トを演算することにより作られる。ライトアドレスは第
1図のライトアドレス生成回路で作られる。また、リー
ドアドレスは、リードアドレス生成回路で作られるが、
このリードアドレス生成回路は例えば第1図の回路にお
いてNANDゲート3を削除した回路で構成されている。
FIG. 2 is a diagram showing an instruction configuration example capable of reading and writing the built-in RAM with one instruction (that is, one clock). In Fig. 2, "TYP" is a field that defines the format of the command, "Rad
“D” and “Wadd” are offsets for generating the read address and the write address of the internal RAM, respectively. The read address and write address of the built-in RAM are created by calculating the respective offsets. The write address is created by the write address generation circuit shown in FIG. The read address is created by the read address generation circuit,
This read address generation circuit is composed of, for example, a circuit in which the NAND gate 3 is deleted in the circuit of FIG.

次に、内蔵RAMへの書込み動作を説明する。Next, the write operation to the internal RAM will be described.

先ず、内蔵RAMのライトアドレス信号AD1〜AD6は、メモ
リライト用オフセット「Wadd」(=ハード上の信号A5〜
A0)とインデックスレジスタ4との内容を加算回路5で
加算して生成される。このインデックスレジスタ4は図
示しない別の手段で更新される。
First, the write address signals AD1 to AD6 of the internal RAM are the memory write offset "Wadd" (= the signal A5 to
It is generated by adding the contents of A0) and the index register 4 in the adder circuit 5. This index register 4 is updated by another means not shown.

今、フィールド「TYP」が1,1で命令レジスタ1の出
力信号A5,A4,…,A0が1,1,…,1を示したとき、
書込み禁止信号Sは0になり、内蔵RAMへの書込みが禁
止される。また、命令レジスタ1の出力信号A5,A4,
…,A0が1,1,…,1でなかっとき、書込み禁止信号
Sは1になり、内蔵RAMへの書込みが許可される。この
ような構成にすれば、RAMへの書込み禁止が容易に実現
できる。
Now, when the field "TYP" is 1,1 and the output signals A5, A4, ..., A0 of the instruction register 1 indicate 1, 1, ..., 1,
The write inhibit signal S becomes 0, and writing to the internal RAM is prohibited. Also, the output signals A5, A4,
When A0 is not 1, 1, ..., 1, the write inhibit signal S becomes 1, and writing to the internal RAM is permitted. With such a configuration, it is possible to easily implement write prohibition to the RAM.

ここで問題となるのは、命令レジスタ1の出力信号A5,
A4,…,A0が1,1,…,1で、しかもRAMにデータを
書込みたい場合のみである。このような場合、出力信号
A5,A4,A3,A2,A1,A0を1,1,1,1,1,0に
し、インデックスレジスタ4の内容に1を加算しておけ
ば、該メモリアドレスと同じ番地にデータを書込むこと
ができる。しかし、出力信号A5〜A0がオール1で、しか
もRAMへ書込みたい場合は、オフセット「Radd」の長さ
が十分に長ければほとんど起らない。この例の場合、オ
フセット「Radd」の長さが6ビットで、出現確率が約2
%弱のため、インデックスレジスタ4の内容に1を加算
するという煩わしい操作をそれほど必要としない。
The problem here is that the output signal A5 of the instruction register 1
Only when A4, ..., A0 is 1, 1, ..., 1 and it is desired to write data to the RAM. In such cases, the output signal
If A5, A4, A3, A2, A1, A0 are set to 1,1,1,1,1,0 and 1 is added to the contents of the index register 4, the data is written at the same address as the memory address. be able to. However, if the output signals A5 to A0 are all 1 and it is desired to write to the RAM, if the length of the offset "Radd" is sufficiently long, it hardly occurs. In this example, the offset "Radd" has a length of 6 bits and an appearance probability of about 2
Since it is a little less than%, the troublesome operation of adding 1 to the content of the index register 4 is not required so much.

なお、最近の信号処理プロセッサでは、信号S,AD1〜A
D6は10ビット位必要とされている。このような場合、イ
ンデックスレジスタ4と加算器5のビット幅を延長して
メモリアドレス信号が作られる。オフセット「Radd」は
メモリアドレス信号が10ビット位までは6ビット位で十
分である。従って一般にはインデックスレジスタ4及び
加算器5は本実施例とは無関係に必要なものであり、本
実施例で特に増加したハードはNANDゲート3のみであ
る。
In the recent signal processor, the signals S and AD1 to A
About 10 bits are required for D6. In such a case, the memory address signal is generated by extending the bit width of the index register 4 and the adder 5. The offset "Radd" is sufficient to be 6 bits up to 10 bits for the memory address signal. Therefore, in general, the index register 4 and the adder 5 are necessary regardless of the present embodiment, and the hardware particularly increased in this embodiment is only the NAND gate 3.

本実施例の利点をまとめれば、次のようになる。The advantages of this embodiment can be summarized as follows.

1命令(即ち、1クロック)で内蔵RAMの読出しおよび
書込みを行う場合、書込み禁止を容易にプログラム命令
で制御できる。さらに、実現するハード量も1チップ信
号処理プロセッサ全体のハード量に比べると無視できる
程度のものである。
When reading / writing the internal RAM with one instruction (that is, one clock), write inhibition can be easily controlled by a program instruction. Further, the amount of hardware to be realized is negligible compared to the amount of hardware of the entire one-chip signal processor.

なお、本発明では第1図の回路に限定されず、例えばNA
NDゲート3を他のゲート回路に変形したり、あるいは第
1図及び第2図のビット数を増加、減少したりする変形
も可能である。また、本発明の適用領域は、1チップ信
号処理プロセッサにのみ限定されず、メモリの読出し、
書込みを1命令で実行できるプロセッサに総て適用でき
る。
The present invention is not limited to the circuit shown in FIG.
It is also possible to modify the ND gate 3 to another gate circuit, or to modify the number of bits in FIGS. 1 and 2 to increase or decrease. Further, the application area of the present invention is not limited to the one-chip signal processor, and the reading of the memory,
It can be applied to all processors that can execute writing with one instruction.

(発明の効果) 以上詳細に説明したように、本発明によれば、書込み用
オフセットが特定の値を示したときにメモリへの書込み
を禁止する書込み禁止手段を設けたので、メモリへの書
込み禁止を容易にプログラム命令で制御でき、しかも書
込み禁止手段を最小限のハードウエア量で実現できる。
(Effect of the Invention) As described in detail above, according to the present invention, the write prohibition means for prohibiting the write to the memory when the write offset shows a specific value is provided. The prohibition can be easily controlled by a program command, and the write prohibition means can be realized with a minimum amount of hardware.

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

第1図は本発明の一実施例を示すプロセッサの要部構成
図、第2図は第1図の命令構成図である。 1……命令レジスタ、2……ANDゲート、3……NANDゲ
ート、4……インデックスレジスタ、5……加算回路、
A0〜A31……命令レジスタ出力信号、AD1〜AD6……ライ
トアドレス信号、S……書込み禁止信号。
FIG. 1 is a block diagram of the essential parts of a processor showing an embodiment of the present invention, and FIG. 2 is a command block diagram of FIG. 1 ... Instruction register, 2 ... AND gate, 3 ... NAND gate, 4 ... Index register, 5 ... Adder circuit,
A0 to A31 …… Instruction register output signal, AD1 to AD6 …… Write address signal, S …… Write inhibit signal.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 飯田 政雄 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内 (56)参考文献 特開 昭53−44131(JP,A) 特開 昭61−26152(JP,A) ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Masao Iida 1-7-12 Toranomon, Minato-ku, Tokyo Inside Oki Electric Industry Co., Ltd. (56) Reference JP-A-53-44131 (JP, A) JP-A-SHO 61-26152 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】命令の形式を規定する命令形式フィール
ド、メモリのリードアドレスを発生する読出し用オフセ
ット、及び該メモリのライトアドレスを発生する書込み
用オフセットを有する1命令のうち、該命令形式フィー
ルド及び書込み用オフセットとインデックス用データと
を演算してライトアドレス信号を生成するライトアドレ
ス生成回路と、 前記ライトアドレス信号によってアドレスが指定され、
そのアドレスに対するデータの書込みが行われるメモリ
とを備え、 前記1命令によって前記メモリの読出しと書込みを1ク
ロックで実行するプロセッサにおいて、 前記命令形式フィールド及び書込み用オフセットをデコ
ードして該書込み用オフセットが特定の値を示したとき
に前記メモリへのデータの書込みを禁止する書込み禁止
信号を発生する書込み禁止手段を、 前記ライトアドレス生成回路に設けたことを特徴とする
プロセッサ。
1. An instruction format field out of one instruction having an instruction format field defining an instruction format, a read offset for generating a read address of a memory, and a write offset for generating a write address of the memory. A write address generation circuit that calculates a write offset and index data to generate a write address signal; and an address is specified by the write address signal,
A processor for writing data to the address, the processor executing the reading and writing of the memory in one clock by the one instruction, decoding the instruction format field and the writing offset, and writing the offset A processor characterized in that the write address generation circuit is provided with a write inhibit means for generating a write inhibit signal for inhibiting the writing of data to the memory when a specific value is indicated.
JP61093124A 1986-04-22 1986-04-22 Processor Expired - Fee Related JPH0628033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61093124A JPH0628033B2 (en) 1986-04-22 1986-04-22 Processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61093124A JPH0628033B2 (en) 1986-04-22 1986-04-22 Processor

Publications (2)

Publication Number Publication Date
JPS62248047A JPS62248047A (en) 1987-10-29
JPH0628033B2 true JPH0628033B2 (en) 1994-04-13

Family

ID=14073771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61093124A Expired - Fee Related JPH0628033B2 (en) 1986-04-22 1986-04-22 Processor

Country Status (1)

Country Link
JP (1) JPH0628033B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3202497B2 (en) 1994-09-09 2001-08-27 日本電気株式会社 Information processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5344131A (en) * 1976-10-05 1978-04-20 Toshiba Corp Segment transit system
JPS6126152A (en) * 1984-07-16 1986-02-05 Fujitsu Ltd Address check system

Also Published As

Publication number Publication date
JPS62248047A (en) 1987-10-29

Similar Documents

Publication Publication Date Title
US4777588A (en) General-purpose register file optimized for intraprocedural register allocation, procedure calls, and multitasking performance
US5499380A (en) Data processor and read control circuit, write control circuit therefor
US4446517A (en) Microprogram memory with page addressing and address decode in memory
JPH0346850B2 (en)
JPH0877075A (en) Information processor
JPH03171231A (en) Micro computer system
KR950009271B1 (en) Information processing system
JPH08212075A (en) Information processor
JPH0628033B2 (en) Processor
US6260136B1 (en) Substitute register for use in a high speed data processor
JP3954159B2 (en) Synchronous RAM access control circuit, data processor and control method thereof
JPS595496A (en) Memory protect system
JPH05334074A (en) Microprocessor
JPH0612522B2 (en) Parallel processing microprocessor
JP2604319Y2 (en) Microcomputer
JPH05342096A (en) Program executing method for programmable controller
JP2543589B2 (en) Data processing device
JPS59178693A (en) Memory reading system
JPH06131177A (en) Circuit for controlling write on field inside external register and circuit for controlling read of field inside external register
JPH033047A (en) Memory with arithmetic function
JPS61201353A (en) Address converter
JPS6320631A (en) Register selecting system
JPS62282342A (en) Buffer storage control system
JPS5958563A (en) Memory address extension system of microprocessor system
JPH07105079A (en) Memory control method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees