JPH06318162A - Memory device - Google Patents

Memory device

Info

Publication number
JPH06318162A
JPH06318162A JP5107026A JP10702693A JPH06318162A JP H06318162 A JPH06318162 A JP H06318162A JP 5107026 A JP5107026 A JP 5107026A JP 10702693 A JP10702693 A JP 10702693A JP H06318162 A JPH06318162 A JP H06318162A
Authority
JP
Japan
Prior art keywords
address
fetch
counter
storage unit
ram
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.)
Withdrawn
Application number
JP5107026A
Other languages
Japanese (ja)
Inventor
Utsumi Yamato
宇津美 大和
Hidenori Matsuo
秀徳 松尾
Hitoshi Maehara
均 前原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5107026A priority Critical patent/JPH06318162A/en
Publication of JPH06318162A publication Critical patent/JPH06318162A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To provide a memory device by which a fetch address can be managed, and in which burden on software can be reduced, and with small address space for the storage of the fetch address. CONSTITUTION:This memory device is provided with counters 1, 2 which count the number of times of access on a RAM 4 when it is performed, and the write of the fetch address on the RAM 4 and the readout of it from the RAM 4 can be performed according to the contents of the counters.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はフェッチアドレス記憶部
を備えるメモリ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory device having a fetch address storage unit.

【0002】[0002]

【従来の技術】メモリアクセスの履歴を知るためにアク
セスしたアドレス、つまりフェッチアドレスを多数記憶
しておくフェッチアドレス記憶部が設けられる。
2. Description of the Related Art In order to know the history of memory access, there is provided a fetch address storage unit for storing a large number of accessed addresses, that is, fetch addresses.

【0003】[0003]

【発明が解決しようとする課題】これには必要ワード数
分 (例えば32) のシフトレジスタが用いられ、順次的に
記憶、シフトをしていくが、読出しのためにはシフトレ
ジスタでのアドレスを管理する必要があり、ソフトウェ
アの管理が煩わしく、このシフトレジスタのためにアド
レス空間の多くが占められる処となっていた。
For this purpose, a shift register of the required number of words (for example, 32) is used, and the storage and the shift are sequentially performed, but for reading, the address in the shift register is used. It is necessary to manage, the management of software is troublesome, and it has been a place where most of the address space is occupied by this shift register.

【0004】本発明はこのような従来技術の問題点を解
決するためになされたものであり、カウンタを利用する
ことによりソフトウェアの管理の負担を軽減し、フェッ
チアドレスのために必要とするアドレス空間を減らすこ
とができるメモリ装置を提供することを目的とする。
The present invention has been made in order to solve the above-mentioned problems of the prior art. By using a counter, the load of software management is reduced and the address space required for the fetch address is obtained. It is an object of the present invention to provide a memory device that can reduce

【0005】[0005]

【課題を解決するための手段】第1発明のメモリ装置
は、フェッチアドレスを記憶するフェッチデータ記憶部
を備えるメモリ装置において、前記フェッチデータ記憶
部のアクセスに係る信号を計数する2つのカウンタを備
え、一方のカウンタの内容をアドレスとしてフェッチデ
ータ記憶部へフェッチデータを書込み、他方のカウンタ
の内容をアドレスとしてフェッチデータ記憶部の内容を
読出すべくなしてあることを特徴とする。
According to another aspect of the present invention, there is provided a memory device having a fetch data storage unit for storing a fetch address, comprising two counters for counting signals related to access to the fetch data storage unit. The fetch data is written in the fetch data storage unit by using the content of one counter as an address, and the content of the fetch data storage unit is read by using the content of the other counter as an address.

【0006】第2発明のメモリ装置は、フェッチアドレ
スを記憶するフェッチデータ記憶部を備えるメモリ装置
において、前記フェッチデータ記憶部のアクセスに係る
信号を計数するカウンタを備え、該カウンタの内容をア
ドレスとしてフェッチデータ記憶部の内容を読出すべく
なしてあることを特徴とする。
A memory device according to a second aspect of the present invention is a memory device having a fetch data storage unit for storing a fetch address, which is provided with a counter for counting a signal relating to access to the fetch data storage unit, and uses the content of the counter as an address. It is characterized in that the contents of the fetch data storage unit are read out.

【0007】[0007]

【作用】第1発明ではフェッチアドレス記憶部がアクセ
スされる都度カウンタはインクリメント又はデクリメン
トされていき、一方のカウンタの内容に応じてフェッチ
アドレス記憶部への書込みが行われ、また他方のカウン
タの内容に応じてフェッチアドレス記憶部の内容が読出
される。
In the first aspect of the invention, the counter is incremented or decremented each time the fetch address storage unit is accessed, and writing to the fetch address storage unit is performed according to the content of one counter, and the content of the other counter is also written. The contents of the fetch address storage unit are read in accordance with.

【0008】第2発明では書込は従来のようにシフトレ
ジスタに対して行われるが、カウンタの内容に従って読
出が行われる。
In the second invention, writing is performed in the shift register as in the conventional case, but reading is performed according to the contents of the counter.

【0009】[0009]

【実施例】以下本発明をその実施例を示す図面に基づい
て説明する。図1は本発明の第1実施例を示すブロック
図である。図において7はCPU 、6はメモリであり、CP
U 7がメモリ6をアクセスする場合のアドレス、つまり
フェッチアドレスがフェッチアドレス記憶部として設け
たRAM 4へ与えられる。CPU7がRAM 4をアクセスする
場合にはRAM 4を指定するアドレスを出力するが、これ
が書込用アドレスカウンタ1,読出用アドレスカウンタ
2に与えられる。これら両カウンタ1,2はRAM 4のア
ドレスが与えられ、且つRAM 4への書込(書込用アドレ
スカウンタ1)又は読出(読出用アドレスカウンタ2)
が指示されるとカウントアップ(又はカウントダウン)
するようになしてある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings showing its embodiments. FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, 7 is a CPU, 6 is a memory, and CP
The address when the U 7 accesses the memory 6, that is, the fetch address is given to the RAM 4 provided as the fetch address storage unit. When the CPU 7 accesses the RAM 4, the address designating the RAM 4 is output, and this is supplied to the write address counter 1 and the read address counter 2. Both of these counters 1 and 2 are given the address of the RAM 4, and writing (writing address counter 1) or reading (reading address counter 2) to the RAM 4 is performed.
Is counted up (or countdown)
I am supposed to do it.

【0010】これらカウンタ1,2の計数対象としては
RAM 4のチップセレクト信号であってもよい。カウンタ
1,2の計数内容はアドレスセレクタ3によって一方が
選択されてRAM 4へその書込アドレス又は読出アドレス
として与えられる。CPU 7はアドレスセレクタ3へカウ
ンタ1,2の選択の信号を出力する。レジスタ5はRAM
4から読出されたフェッチアドレスを格納するためのも
のである。
The counting targets of these counters 1 and 2 are
It may be a chip select signal of RAM 4. One of the count contents of the counters 1 and 2 is selected by the address selector 3 and given to the RAM 4 as its write address or read address. The CPU 7 outputs a signal for selecting the counters 1 and 2 to the address selector 3. Register 5 is RAM
It is for storing the fetch address read from No. 4.

【0011】以上のような本発明装置にあってはCPU 7
はメモリ6へのアクセスの都度RAM4へもアクセスし、
このときアドレスセレクタ3には書込用アドレスカウン
タ1を選択させる。そうするとRAM 4にはそのときのカ
ウンタ1の内容をアドレスとしてフェッチアドレスが書
込まれていくことになる。書込用アドレスカウンタ1は
メモリ6アクセスの都度カウントアップ(又はカウント
ダウン)されていくからメモリ6アクセスの記録が自動
的に行われていくことになる。
In the device of the present invention as described above, the CPU 7
Accesses the RAM 4 each time the memory 6 is accessed,
At this time, the address selector 3 is caused to select the write address counter 1. Then, the fetch address is written in the RAM 4 with the contents of the counter 1 at that time as an address. Since the write address counter 1 is incremented (or decremented) each time the memory 6 is accessed, recording of the memory 6 access is automatically performed.

【0012】一方、RAM 4の内容を読出したい場合はCP
U 7はRAM 4をアクセスすると共にアドレスセレクタ3
には読出用アドレスカウンタ2を選択すべき信号を与え
る。そうするとカウンタ2の内容に相当するアドレスに
書込まれているフェッチアドレスがRAM 4からレジスタ
5へ読出されることになる。
On the other hand, if you want to read the contents of RAM 4, use CP
U 7 accesses RAM 4 and address selector 3
Is supplied with a signal for selecting the read address counter 2. Then, the fetch address written in the address corresponding to the contents of the counter 2 is read from the RAM 4 to the register 5.

【0013】図2はRAM 4としてリングバッファ形式の
ものを用い、書込用アドレスカウンタ1はアップカウン
タ、読出用アドレスカウンタ2はダウンカウンタとして
構成した場合を示している。このような構成とする場合
は実用上最も頻度の高い態様で、つまり最新に書込まれ
たものからのフェッチアドレス読出しが可能となる。
FIG. 2 shows a case where a ring buffer type RAM 4 is used, the write address counter 1 is configured as an up counter, and the read address counter 2 is configured as a down counter. With such a configuration, the fetch address can be read from the most recently written one, that is, the most recently written one.

【0014】図3は第2発明の実施例を示すブロック図
である。これはフェッチアドレス記憶部として従来同様
にシフトレジスタ8を使用したものであり、CPU 7がメ
モリ6にアクセスする都度、フェッチアドレスが与えら
れ、フェッチ信号により順次的に書込、シフトが行われ
るようにしたものである。然してシフトレジスタ8から
のフェッチアドレス読出しのためには前記読出用アドレ
スカウンタ2に相当するカウンタ20を備えており、フェ
ッチアドレス読出の都度CPU 7はカウンタ20に所定信号
を与え、これをカウントアップ (又はカウントダウン)
させる。セレクタ9はシフトレジスタ8の並列出力を選
択するものであり、カウンタ20の内容に従って対応段の
出力をレジスタ5へ読出さしめる。
FIG. 3 is a block diagram showing an embodiment of the second invention. This uses a shift register 8 as a fetch address storage unit in the same manner as in the past, and a fetch address is given each time the CPU 7 accesses the memory 6, and writing and shifting are sequentially performed by a fetch signal. It is the one. However, in order to read the fetch address from the shift register 8, the counter 20 corresponding to the read address counter 2 is provided, and the CPU 7 gives a predetermined signal to the counter 20 each time the fetch address is read, and counts up this. (Or countdown)
Let The selector 9 selects the parallel output of the shift register 8 and reads the output of the corresponding stage to the register 5 according to the contents of the counter 20.

【0015】[0015]

【発明の効果】以上の如き本発明装置においてはフェッ
チアドレスの書込、読出はハードウェアで実行されるか
らソフトウェアの管理の負担は解消されるまたフェッチ
アドレス記憶部が多くのアドレス空間を占めることがな
いなど本発明は優れた効果を奏する。
As described above, in the device of the present invention, the writing and reading of the fetch address are executed by the hardware, the burden of software management is eliminated, and the fetch address storage unit occupies a large address space. The present invention has excellent effects such as no occurrence.

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

【図1】第1発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of a first invention.

【図2】RAM の概念図である。FIG. 2 is a conceptual diagram of a RAM.

【図3】第2発明の実施例のブロック図である。FIG. 3 is a block diagram of an embodiment of the second invention.

【符号の説明】[Explanation of symbols]

1 書込用アドレスカウンタ 2 読出用アドレスカウンタ 3 アドレスセレクタ 4 RAM 6 メモリ 7 CPU 8 シフトレジスタ 9 セレクタ 1 write address counter 2 read address counter 3 address selector 4 RAM 6 memory 7 CPU 8 shift register 9 selector

───────────────────────────────────────────────────── フロントページの続き (72)発明者 前原 均 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Hitoshi Maehara 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 フェッチアドレスを記憶するフェッチデ
ータ記憶部(4) を備えるメモリ装置において、前記フェ
ッチデータ記憶部(4) のアクセスに係る信号を計数する
2つのカウンタ(1),(2) を備え、一方のカウンタ(1) の
内容をアドレスとしてフェッチデータ記憶部(4) へフェ
ッチデータを書込み、他方のカウンタ(2) の内容をアド
レスとしてフェッチデータ記憶部(4) の内容を読出すべ
くなしてあることを特徴とするメモリ装置。
1. A memory device comprising a fetch data storage unit (4) for storing a fetch address, comprising two counters (1), (2) for counting signals related to access of the fetch data storage unit (4). In order to write the fetch data to the fetch data storage unit (4) using the content of one counter (1) as an address, and to read the content of the fetch data storage unit (4) using the content of the other counter (2) as an address. A memory device characterized by being made.
【請求項2】 フェッチアドレスを記憶するフェッチデ
ータ記憶部(4) を備えるメモリ装置において、前記フェ
ッチデータ記憶部(4) のアクセスに係る信号を計数する
カウンタ(20)を備え、該カウンタ(20)の内容をアドレス
としてフェッチデータ記憶部(4) の内容を読出すべくな
してあることを特徴とするメモリ装置。
2. A memory device comprising a fetch data storage unit (4) for storing a fetch address, comprising: a counter (20) for counting a signal relating to access of the fetch data storage unit (4). ) Is used as an address to read the contents of the fetch data storage section (4).
JP5107026A 1993-05-07 1993-05-07 Memory device Withdrawn JPH06318162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5107026A JPH06318162A (en) 1993-05-07 1993-05-07 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5107026A JPH06318162A (en) 1993-05-07 1993-05-07 Memory device

Publications (1)

Publication Number Publication Date
JPH06318162A true JPH06318162A (en) 1994-11-15

Family

ID=14448643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5107026A Withdrawn JPH06318162A (en) 1993-05-07 1993-05-07 Memory device

Country Status (1)

Country Link
JP (1) JPH06318162A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19635228A1 (en) * 1995-11-23 1997-05-28 Samsung Electro Mech Power switching circuit of a radio frequency modulator of a PAL system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19635228A1 (en) * 1995-11-23 1997-05-28 Samsung Electro Mech Power switching circuit of a radio frequency modulator of a PAL system
DE19635228C2 (en) * 1995-11-23 1998-08-20 Samsung Electro Mech High frequency modulator circuit

Similar Documents

Publication Publication Date Title
EP0341899B1 (en) Content addressable memory array
EP0341896A2 (en) Content addressable memory array
US6035381A (en) Memory device including main memory storage and distinct key storage accessed using only a row address
US4174537A (en) Time-shared, multi-phase memory accessing system having automatically updatable error logging means
US4371949A (en) Time-shared, multi-phase memory accessing system having automatically updatable error logging means
JP3081614B2 (en) Partial write control device
JPH0752576B2 (en) Stack memory
JPS61264379A (en) Memory circuit
EP0057096A2 (en) Information processing unit
EP0276110A2 (en) Semiconductor memory device
JPH06318162A (en) Memory device
JPS59188764A (en) Memory device
KR100223626B1 (en) First-in and first-out memory circuit
JP2908890B2 (en) Large-scale channel, access method to each control memory, and read access method to each channel memory
JPS6067990A (en) Picture information processor having density converting function
JPH04321993A (en) Storage control device
JPH0352694B2 (en)
JP2591928B2 (en) Cache storage circuit
SU1339653A1 (en) Memory
JPS6035690B2 (en) Address extension method
JPS61246848A (en) Operation hysteresis storage circuit
JPS61222086A (en) Semiconductor memory element
JPH0218638A (en) Data control system
JPS6242237A (en) Loading system to instruction buffer
JPH01290052A (en) Cache memory

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000801