JPS63188883A - Storage device - Google Patents

Storage device

Info

Publication number
JPS63188883A
JPS63188883A JP62020719A JP2071987A JPS63188883A JP S63188883 A JPS63188883 A JP S63188883A JP 62020719 A JP62020719 A JP 62020719A JP 2071987 A JP2071987 A JP 2071987A JP S63188883 A JPS63188883 A JP S63188883A
Authority
JP
Japan
Prior art keywords
memory
signal
read
write
address
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.)
Pending
Application number
JP62020719A
Other languages
Japanese (ja)
Inventor
Mitsuru Sugita
充 杉田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP62020719A priority Critical patent/JPS63188883A/en
Publication of JPS63188883A publication Critical patent/JPS63188883A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To quicken stack operation being last write and first read by providing an address generating circuit in the inside of a memory. CONSTITUTION:Suppose that an internal address generated by an internal address generating circuit in the inside of a memory 1 is A1, the memory 1 receiving a chip selection signal CS from a CPU opens a chip selection transfer gate 15. Since a write signal WR is given in this case, all write enable transfer gates 11 are opened. Then the signal A1 opens a write transfer gate 12 through the gate 11 and the content of a data bus 3 is written in each storage element 10 of the storage circuit 7. Thus, the address of the circuit 16 is added by the circuit 16. Then in case of readout, a signal A2 is selected, a read enable transfer gate 13 is opened by the signal CS and read signal RD, a transfer gate 14 is opened and the content of the element 10 in the circuit 7 is read to the bus 3. The internal address is subtracted at the same time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、半導体集積回路からなる記憶装置に関し、
特に、中央演算処理装置のスタック操作を高速にする記
憶装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a memory device comprising a semiconductor integrated circuit.
In particular, the present invention relates to a storage device that speeds up stack operations in a central processing unit.

〔従来の技術〕[Conventional technology]

第5図はスタック操作を行なう場合の、従来の中央演算
処理装fit(以下、CPUという)と記憶装置(以下
、メモリーという)の接続図である。図において、1人
は半導体集積回路からなるメモリー、2はCPU、 3
はCPU2とメモリー1人との間のデータバス、4はC
PU2が注出する制御信号がのる制御信号線、18はC
PU2の出力するアドレスデータがのるアドレスバスで
ある。
FIG. 5 is a connection diagram of a conventional central processing unit (hereinafter referred to as CPU) and a storage device (hereinafter referred to as memory) when performing a stack operation. In the figure, 1 is a memory made of a semiconductor integrated circuit, 2 is a CPU, and 3
is the data bus between CPU2 and one memory, 4 is the C
The control signal line on which the control signal output by PU2 is carried, 18 is C
This is an address bus on which address data output from PU2 is carried.

次に動作について説明する。Next, the operation will be explained.

まず、スタック動作について説明する。ここでスタック
動作とは、CPU2が持っているアドレス又はデータの
退避をする場合の、後書き込み先読み出しで行なう格納
の方法でちゃ、この場合CPU2は、最後に格納を行な
ったアドレスを記憶しておかなければならない。
First, stack operation will be explained. Here, the stack operation is a storage method performed by reading the post-write destination when saving an address or data held by the CPU 2. In this case, the CPU 2 remembers the last stored address. I have to keep it.

CPU2がスタック操作を行なう場合、実メモリー空間
にスタック領域があるため、通常のメモリー間でのデー
タ転送と同じ動作が行なわれる。これを第6図のタイミ
ング図を用いて説明すれば、まず、第6図伽)に示すよ
うに、メモリー1人へアドレス信号の出力を行なう。こ
のクロックを同図(Jl)に示すようにT1とする。こ
のTlO間に、アドレス信号よりデコードして、同図(
g)に示すように制御信号線4への集積回路選択信号(
以下、チップ選択信号と記す)(C8)を作シ、メモリ
ーの選択を行なう。次のクロック(T2)では、同図(
cl 、 (e)に示すように、CPU2がどのような
動作を行なうかを示す制御信号(書き込み時はライト信
号(WR)、読み出し時はリード信号(RD))をメモ
リーに送シ出し、その次のクロック(T3)で動作を終
了する。同図(d)は読み出し時のデータ出力、同図(
f)は書き込み時のデータ入力を示す。
When the CPU 2 performs a stack operation, since there is a stack area in the real memory space, the same operation as normal data transfer between memories is performed. To explain this using the timing diagram of FIG. 6, first, as shown in FIG. 6, an address signal is output to one memory. This clock is assumed to be T1 as shown in the figure (Jl). During this TlO period, the address signal is decoded and the same figure (
g), the integrated circuit selection signal (
A memory selection signal (hereinafter referred to as a chip selection signal) (C8) is activated to select a memory. At the next clock (T2), the same figure (
cl, as shown in (e), the CPU 2 sends a control signal (write signal (WR) for writing, read signal (RD) for reading) to the memory to indicate what kind of operation to perform. The operation ends at the next clock (T3). Figure (d) shows the data output during reading;
f) shows data input during writing.

また、制御信号はすべて”H”能動として示した。Further, all control signals are shown as "H" active.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のCPUのスタック領域は、通常のメモリー空間に
あったため、アドレス出力からデータ転送までの時間を
他のメモリー以上に短くすることができず、また、CP
Uは最後の格納アドレス金記憶する回路を持たなければ
ならないため、スタック操作の多いプログラムを実行す
る場合には、実行時間が多く必要であるという問題があ
った。
The stack area of conventional CPUs was located in normal memory space, so the time from address output to data transfer could not be made any shorter than with other memories.
Since U must have a circuit for storing the last storage address, there is a problem in that a large amount of execution time is required when executing a program that involves many stack operations.

この発明は上記のような問題点を解消するためになされ
たもので、CPUがアドレスを出力することなくスタッ
ク操作を行なうことを可能にし、また、実メモリー空間
からスタック領域をなくすことKよj)、CPUのスタ
ック操作を高速にすることができるメモリーを提供する
ことを目的とする。
This invention was made to solve the above-mentioned problems, and it enables the CPU to perform stack operations without outputting addresses, and also eliminates the stack area from the real memory space. ), the purpose is to provide a memory that can speed up the stack operation of the CPU.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る記憶装置(メモリー)は、書き込み又は
読み出しが行なわれると同時に内部アドレス信号を発生
する内部アドレス発生回路を設けたものである。
A storage device (memory) according to the present invention is provided with an internal address generation circuit that generates an internal address signal at the same time as writing or reading is performed.

〔作用〕[Effect]

この発明における内部アドレス発生回路は、例えば書き
込みによシ1だけ加算されたアドレス信号を発生し、読
み出しによシ1だけ減算されたアドレス信号を発生する
。また、数回にわたる連続した書き込み又は読み出し動
作の場合には、外部の同期信号(クロック信号)によシ
内部アドレスを加算又は減算することで、常時書き込み
および読み出し操作が可能である。
The internal address generation circuit according to the present invention generates an address signal in which 1 is added in writing, and an address signal in which 1 is subtracted in reading. Furthermore, in the case of continuous write or read operations several times, constant write and read operations are possible by adding or subtracting an internal address to an external synchronization signal (clock signal).

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第2
図において、1は内部アドレスを持った記憶装置(以下
メモリーと記す)、2はCPU、 3はCPU2とメモ
リー1との間のデータバス、4はCPUが出力する制御
信号がのる制御信号線である。第3図はその動作を示す
タイミングチャートである。
An embodiment of the present invention will be described below with reference to the drawings. Second
In the figure, 1 is a storage device with internal addresses (hereinafter referred to as memory), 2 is a CPU, 3 is a data bus between CPU 2 and memory 1, and 4 is a control signal line on which control signals output by the CPU are carried. It is. FIG. 3 is a timing chart showing the operation.

また、第1図はメモリー1の内部構成を示す。Further, FIG. 1 shows the internal structure of the memory 1. As shown in FIG.

同図において、5は主記憶回路列、6〜9は記憶回路列
5内の第1ないしnの記憶回路、10は記憶回路6〜9
内の各記憶素子、11は書き込みを行なうことを可能に
する書き込み許可トランスファーゲート、12はこの書
き込み許可トランスファーゲートと、内部アドレスとの
条件が揃ったときに、データバス3の内容をある記憶素
子10に書き込む書き込みトランスファーゲート、13
は読み出しを行なうことを可能にする読み出し許可トラ
ンス7アーゲート、14はこの読み出し許可トランスフ
ァーゲートと内部アドレスとの条件が揃ったときに、記
憶素子10のデータをデータバス3に読み出す読み出し
トランスファーゲート、15はチップ選択信号によって
開かれ、リード又はライト信号を伝えることを可能くす
るチップ選択トランスファーゲート、16は内部アドレ
スを自動発生する内部アドレス発生回路、17はこの内
部アドレス発生回路16に接続されるクロック信号の入
力端子である。
In the figure, 5 is a main memory circuit column, 6 to 9 are first to nth memory circuits in the memory circuit column 5, and 10 is a memory circuit 6 to 9.
11 is a write permission transfer gate that enables writing, and 12 is a write permission transfer gate that transfers the contents of the data bus 3 to a certain storage element when the conditions of this write permission transfer gate and the internal address are met. Write transfer gate to write to 10, 13
14 is a read permission transformer 7ar gate that enables reading, and 14 is a read transfer gate that reads data from the storage element 10 onto the data bus 3 when the conditions of this read permission transfer gate and the internal address are met; 15 16 is an internal address generation circuit that automatically generates an internal address; 17 is a clock connected to this internal address generation circuit 16; 16 is an internal address generation circuit that automatically generates an internal address; This is a signal input terminal.

次に動作について説明する。Next, the operation will be explained.

上記構成において、CPU2は、スタック操作を行なう
場合、第2図に示すように、退避するデータを、あるメ
モリー(Cのみ記憶させるものとし、そのメモリーのみ
の選択信号の働きを持つ制御信号であるチップ選択信号
(CS)を持つものとする。
In the above configuration, when performing a stack operation, the CPU 2 stores data to be saved in a certain memory (only C), and uses a control signal that functions as a selection signal for only that memory. It is assumed that a chip selection signal (CS) is provided.

このチップ選択信号は、第3図(b)に示す様に、同図
(e) 、 (e)に示す他の制御信号(リード信号(
RD)及びライト信号(WR))と同時に出力されるも
のとする。
As shown in FIG. 3(b), this chip selection signal is combined with other control signals (read signals (
RD) and write signal (WR)).

このCPU2がスタック操作を行なう場合、メモリー1
の内部で自動的に発生するアドレスにより、メモリー1
の番地があらかじめ選択されているため、CPU2はア
ドレスを出力する必要がない。したがって、第6図にお
けるTIが省略される。
When this CPU2 performs stack operation, memory 1
Memory 1 is automatically generated internally.
Since the address has been selected in advance, the CPU 2 does not need to output the address. Therefore, TI in FIG. 6 is omitted.

また、メモリー1が十分高速に動作するならば、第6図
におけるT2も省略可能であシ、結局、第6図は第3図
に示すタイミング図の様になる。すなわち、同図(a)
に示すT3のクロックのみでスタック操作が完了する。
Furthermore, if the memory 1 operates at a sufficiently high speed, T2 in FIG. 6 can be omitted, and in the end, FIG. 6 becomes like the timing diagram shown in FIG. 3. In other words, the same figure (a)
The stack operation is completed only with the clock T3 shown in FIG.

第3図では、1回のみの読み出し・書き込み動作を実行
した場合について示したが、連続する場合、1クロツク
毎にメモリー1内の内部アドレス発生回路16により自
動的にアドレスが加算又は減算されるので、書き込みの
場合は、CPU2よシ1クロックごとにデータ入力をさ
せ、読み出しの場合はメモリー1から1クロツクごとに
データ出力をすれば良い。
Although FIG. 3 shows the case where the read/write operation is executed only once, when the read/write operation is executed continuously, the address is automatically added or subtracted by the internal address generation circuit 16 in the memory 1 every clock. Therefore, in the case of writing, the CPU 2 may input data every one clock, and in the case of reading, the data may be output from the memory 1 every one clock.

次に、書き込み動作のあとに読み出し動作をする場合を
想定して、メモリ−1内部の動作を第1図について詳細
に説明する。今、第3図は)に示す内部アドレスが、A
Iであったとする。この場合、読み出しは第1@の記憶
回路6よシ行なわれ、書き込みは第2の記憶回路Tへ行
なわれる。まず、スタック操作をすることを示す制御信
号であるチップ選択信号(C8)をCPU2より受は取
ったメモリー1は、書き込み信号(WR)及び読み出し
信号(RD)をメモリ−1内部に伝えることを可能にす
るため、チップ選択トランスファーゲート15を開く。
Next, the internal operation of the memory 1 will be described in detail with reference to FIG. 1, assuming that a read operation is performed after a write operation. Now, in Figure 3, the internal address shown in ) is A
Suppose it was I. In this case, reading is performed from the first memory circuit 6, and writing is performed from the second memory circuit T. First, the memory 1 receives a chip selection signal (C8), which is a control signal indicating that a stack operation is to be performed, from the CPU 2, and then transmits a write signal (WR) and a read signal (RD) to the inside of the memory 1. To enable this, the chip selection transfer gate 15 is opened.

その時にはすでに書き込み信号(WR)が出ているので
、書き込み許可トランスファーゲート11がすべて闘か
れる。今、A1が内部アドレスであるので、A1の信号
が、前記トランスファーゲートを通して書き込みトラン
スファーゲート12を開き、第3図(f)に示すように
データバス3の内容が、第2の記憶回路7の各記憶素子
10に書き込まれる。これとともに、内部アドレス発生
回路16のアドレスが、当該内部アドレス発生回路16
によって加算され、書き込み動作を終了する。その後、
読み出し動作をする場合には、A2が選ばれておシ、チ
ップ選択信号(CS)及びリード信号(RD)により読
み出し許可トランスファーゲート13が開かれ、A2に
より第2の記憶回路γの読み出しトランスファーゲート
14が開かれて、第3図(d)に示すように、データバ
ス3に、第2の記憶回路7内の記憶素子10の内容が読
み出される。
At that time, since the write signal (WR) has already been output, all write permission transfer gates 11 are challenged. Now, since A1 is an internal address, the signal of A1 opens the write transfer gate 12 through the transfer gate, and the contents of the data bus 3 are transferred to the second memory circuit 7 as shown in FIG. 3(f). The data is written to each memory element 10. At the same time, the address of the internal address generation circuit 16 is
is added to complete the write operation. after that,
When performing a read operation, A2 is selected, the read permission transfer gate 13 is opened by the chip selection signal (CS) and the read signal (RD), and the read transfer gate 13 of the second memory circuit γ is opened by A2. 14 is opened, and the contents of the memory element 10 in the second memory circuit 7 are read out onto the data bus 3, as shown in FIG. 3(d).

同時に、内部アドレス発生回路16により、内部アドレ
スが減算され、読み出しを終了する。
At the same time, the internal address is subtracted by the internal address generation circuit 16, and the reading is completed.

なお、上記実施例では、読み出し又は書き込み許可トラ
ンスファーゲート13,11に介した内部アドレスによ
シ読み出し又は書き込みトランスファーゲー)14.1
2を開いて、読み出し又は書き込みの動作を行なったが
、第4図に示す様に、内部アドレスによシ、読み出し又
は書き込み許可トランスファーゲート13 + 11 
′!!−8いても良い。
Note that in the above embodiment, the internal address via the read/write permission transfer gates 13 and 11 is used for the read/write transfer gate) 14.1.
2 was opened to perform a read or write operation, but as shown in FIG.
′! ! -8 is fine.

この場合、読み出し又はta込みトランスファーゲート
14,12は、リード信号又はライト信号で開く。
In this case, the read or TA transfer gates 14, 12 are opened by a read signal or a write signal.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、メモリー内部に、ア
ドレス発生回路を設けたことによシ、後書き込み先読み
出し動作であるスタック操作を高速にすることができる
As described above, according to the present invention, by providing the address generation circuit inside the memory, it is possible to speed up the stack operation, which is the post-write destination read operation.

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

第1図ないし第3図はこの発明の一実施例を示し、第1
図はメモリーの内部構成図、第2図はCPUとメモリー
との接続図、第3図は読み出し・書き込み動作を示すタ
イミングチャート、第4図はメモリーの他の構成例を示
す図、第5図は従来例を示す接続図、第6図はその動作
を示すタイミングチャートである。 1・・・・記憶装置(メモリー)、3・・・・データバ
ス、4・・・・制御信号線、5・・・・記憶回路列、6
〜9・・・・記憶回路、10・・・・記憶素子、11・
・φ・書き込み許可トランスファーゲート、12・・・
・書き込みトランスファーゲート、13・・・・読み出
し許可トランスファーゲート、14・・・・読み出しト
ランスファーゲート、1511・・・チップ選択トラン
スファーゲート、17・・・・クロック信号入力端子。
Figures 1 to 3 show one embodiment of the present invention.
Figure 2 is a diagram of the internal configuration of the memory, Figure 2 is a connection diagram between the CPU and memory, Figure 3 is a timing chart showing read/write operations, Figure 4 is a diagram showing another example of the memory configuration, Figure 5 is a connection diagram showing a conventional example, and FIG. 6 is a timing chart showing its operation. 1...Storage device (memory), 3...Data bus, 4...Control signal line, 5...Storage circuit array, 6
~9... Memory circuit, 10... Memory element, 11...
・φ・Writing permission transfer gate, 12...
-Write transfer gate, 13...Read permission transfer gate, 14...Read transfer gate, 1511...Chip selection transfer gate, 17...Clock signal input terminal.

Claims (2)

【特許請求の範囲】[Claims] (1)半導体集積回路からなる記憶装置において、読み
出し又は書き込み動作が行なわれると同時にアドレス信
号を発生する内部アドレス発生回路を備えたことを特徴
とする記憶装置。
(1) A memory device comprising a semiconductor integrated circuit, characterized in that it is equipped with an internal address generation circuit that generates an address signal at the same time as a read or write operation is performed.
(2)内部アドレス発生回路が発生するアドレス信号に
従い、読み出し番地に対し常に1番地進んだ番地に書き
込みを行なうことを特徴とする特許請求の範囲第1項記
載の記憶装置。
(2) The storage device according to claim 1, wherein writing is always performed at an address one address ahead of the read address in accordance with an address signal generated by an internal address generation circuit.
JP62020719A 1987-01-30 1987-01-30 Storage device Pending JPS63188883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62020719A JPS63188883A (en) 1987-01-30 1987-01-30 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62020719A JPS63188883A (en) 1987-01-30 1987-01-30 Storage device

Publications (1)

Publication Number Publication Date
JPS63188883A true JPS63188883A (en) 1988-08-04

Family

ID=12034973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62020719A Pending JPS63188883A (en) 1987-01-30 1987-01-30 Storage device

Country Status (1)

Country Link
JP (1) JPS63188883A (en)

Similar Documents

Publication Publication Date Title
US7907469B2 (en) Multi-port memory device for buffering between hosts and non-volatile memory devices
JPS5960658A (en) Semiconductor storage device provided with logical function
JPH0346850B2 (en)
JPS6128198B2 (en)
JPS63188883A (en) Storage device
JPS6386191A (en) Dynamic memory
JPH0450625B2 (en)
JPH029401Y2 (en)
JP3048762B2 (en) Semiconductor integrated circuit device
JPS63142589A (en) Semiconductor memory
JPS6244352B2 (en)
JPS60134956A (en) Information processing system
KR950010615Y1 (en) Data access device using dma cycle pause period
JPH03214275A (en) Semiconductor integrated circuit
JPH02208896A (en) Semiconductor memory circuit
JPH01205257A (en) Integrated circuit
JPH0520164A (en) Memory access device
JPH025291A (en) Semiconductor memory
JPH01220286A (en) Write control circuit
JPH01226051A (en) Memory controller
JPS63188233A (en) Central processing unit
JPH04130917A (en) Electronic disk device
JPH02275526A (en) Rapid data transfer circuit
JPH01109460A (en) Data transfer equipment
JPH04181592A (en) Dynamic type semiconductor memory device