JPH01263749A - Memory device - Google Patents

Memory device

Info

Publication number
JPH01263749A
JPH01263749A JP9218188A JP9218188A JPH01263749A JP H01263749 A JPH01263749 A JP H01263749A JP 9218188 A JP9218188 A JP 9218188A JP 9218188 A JP9218188 A JP 9218188A JP H01263749 A JPH01263749 A JP H01263749A
Authority
JP
Japan
Prior art keywords
data
memory
address
addresses
odd
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
JP9218188A
Other languages
Japanese (ja)
Inventor
Masaki Arima
有馬 正木
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9218188A priority Critical patent/JPH01263749A/en
Publication of JPH01263749A publication Critical patent/JPH01263749A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the memory reading at a high speed without being influenced by an input address value by providing a third memory to store at least prescribed data out of the data of an even number address and the data of an odd number address. CONSTITUTION:When an even number address and an odd number address are alternately inputted, an address control part 7 supplies an input address value to first and second memories 1 and 2 alternately and executes reading, and the read data are selected and alternately outputted by a reading data selecting part 11. When the even number address or the odd number address is continuous, the address control part 7 supplies the continuous latter input address value to a third memory 6, executes the reading from the third memory 6, and the read data are selected by a reading data selecting part 11 and outputted in continuation to the data corresponding to a former input address value out of two continuous data.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はプログラムや入出力データの格納に使用される
メモリ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a memory device used for storing programs and input/output data.

従来の技術 従来、入力されたアドレス値に基づいて読み出しを実行
するメモリ装置は第4図に示すように構成されている。
2. Description of the Related Art Conventionally, a memory device that performs reading based on an input address value is configured as shown in FIG.

第5図はそのタイミングチャートを示す、データは偶数
アドレスと奇数アドレスに分けて第1のメモリ1と第2
のメモリ2に格納されている。読み出しデータを指示す
るアドレス値は、クロック人力CLKI、CLK2によ
って第1、第2の保持回路3,4に保持される。第5図
では第1の保持回路3には偶数アドレス値EO。
Figure 5 shows the timing chart. Data is divided into even addresses and odd addresses and is stored in the first memory 1 and the second memory.
is stored in memory 2 of. Address values indicating read data are held in the first and second holding circuits 3 and 4 by clocks CLKI and CLK2. In FIG. 5, the first holding circuit 3 has an even address value EO.

E2.E4.E6.E8が順次保持され、第2の保持回
路4には奇数アドレス値01.03,05゜07.09
が順次保持される。第1のメモリ1は第1の保持回路3
の出力に発生する偶数アドレス値、第2のメモリ2は第
2の保持回路4の出力に発生する奇数アドレス値によっ
てそれぞれ読み出しアドレスが指定され、第1のメモリ
1の出力には偶数アドレス値EO,E2.E4.E6.
E8に対応するデータDo、D2.D4.D6.D8が
順次読み出され、第2のメモリ2の出力には奇数アトL
/ス値01,03,05,07,09に対応するデータ
Di、D3.D5.D7.D9が順次読み出される。第
1.第2のメモリ1,2の出力データはデータセレクタ
5に入力される。データセレクタ5はアドレス信号によ
りコントロールされて、アドレスに対応する第1、第2
のメモリ1.2の出力データを交互に選択して出力し、
出力には入力アドレスE0,01.E2,03゜E4,
05.E6,07.E8,09に対応するDo−D8・
・・が読み出される。なお、第5図においてXは今回の
読み出しに関係のない入力アドレス値およびデータであ
る。
E2. E4. E6. E8 is held sequentially, and the second holding circuit 4 has odd address values 01.03, 05°07.09.
are held sequentially. The first memory 1 is the first holding circuit 3
The read address of the second memory 2 is specified by the odd address value generated at the output of the second holding circuit 4, and the even address value EO is generated at the output of the first memory 1. , E2. E4. E6.
Data Do, D2 .corresponding to E8. D4. D6. D8 are read out sequentially, and the output of the second memory 2 is an odd number at L.
/ data Di, D3 . corresponding to the value 01, 03, 05, 07, 09. D5. D7. D9 are read out sequentially. 1st. The output data of the second memories 1 and 2 is input to the data selector 5. The data selector 5 is controlled by an address signal and selects the first and second data selectors corresponding to the address.
Alternately select and output the output data of memories 1 and 2 of
The output has input addresses E0, 01 . E2,03゜E4,
05. E6,07. Do-D8 corresponding to E8,09
... is read out. Note that in FIG. 5, X is an input address value and data unrelated to the current readout.

このように、従来の構成では、第1、第2のメモリ1,
2のメモリデータを交互に先読みを実行することにより
、メモリ読み出しの高速化が可能である。
In this way, in the conventional configuration, the first and second memories 1,
By performing pre-reading of the two memory data alternately, it is possible to speed up memory reading.

発明が解決しようとする課題 このような従来の構成では、入力アドレスとして偶数奇
数のアドレスが必ず交互に入力されれば問題ないが、偶
数アドレスあるいは奇数アドレスが連続して入力された
場合には、物理的に同じメモリを連続してアクセスする
ことになるため、メモリデータの先読みをすることがで
きないという問題がある。
Problems to be Solved by the Invention In such a conventional configuration, there is no problem as long as even and odd addresses are always input alternately as input addresses, but if even or odd addresses are input consecutively, Since the same physical memory is accessed continuously, there is a problem in that it is not possible to read ahead of memory data.

本発明は入力アドレス値に左右されず高速にメモリ読み
出しが可能な、メモリ装置を提供することを目的とする
SUMMARY OF THE INVENTION An object of the present invention is to provide a memory device that allows high-speed memory reading regardless of input address values.

課題を解決するための手段 本発明のメモリ装置は、偶数アドレスのデータを格納す
る第1のメモリと、奇数アドレスのデータを格納する第
2のメモリと、偶数アドレスのデータと奇数アドレスの
データのうちの少なくとも所定のデータを格納する第3
のメモリと、読み出しデータを指定するアドレス値に応
じて第1.第2のメモリに読み出しを指示し、前記アド
レス値が連続して偶数アドレスまたは奇数アドレスにな
ったことを検出したときに連続する2つのアドレスの後
者のアドレス値で第3のメモリに読み出しを指示するア
ドレス制御部と、前記アドレス値に基づいて第1、第2
、第3のメモリから読み出されたデータを前記アドレス
値に基づいて選択して出力する読み出しデータ選択部と
を設けたことを特徴とする。
Means for Solving the Problems The memory device of the present invention includes a first memory that stores data at even addresses, a second memory that stores data at odd addresses, and a memory device that stores data at even addresses and data at odd addresses. The third one stores at least the predetermined data.
memory, and the first . Instructs the second memory to read, and when detecting that the address value becomes an even address or an odd address consecutively, instructs the third memory to read with the latter address value of the two consecutive addresses. and an address control unit that controls the first and second addresses based on the address value.
, a read data selection unit that selects and outputs data read from the third memory based on the address value.

作用 この構成によると、偶数アドレスと奇数アドレスが交互
に入力されると、アドレス制御部は交互に入力アドレス
値を第1、第2のメモリに供給して第1、第2のメモリ
から読み出しを実行し、読み出されたデータは読み出し
データ選択部で選択され交互に出力される。偶数アドレ
スまたは奇数アドレスが連続すると、アドレス制御部は
連続している後者の入力アドレス値を第3のメモリに供
給して第3のメモリから読み出しを実行し、読み出され
たデータは読み出しデータ選択部で選択されて連続して
いた2つのデータのうちの前者の入力アドレス値に対応
するデータに続いて出力される。
According to this configuration, when even addresses and odd addresses are input alternately, the address control section alternately supplies the input address values to the first and second memories and reads them from the first and second memories. The read data is selected by the read data selection section and outputted alternately. When even-numbered addresses or odd-numbered addresses are consecutive, the address control unit supplies the latter consecutive input address values to the third memory to execute reading from the third memory, and the read data is read data selected. Outputting the data corresponding to the input address value of the former of the two consecutive data selected by the section is output.

実施例 以下、本発明の実施例を第1図〜第3図に基づいて説明
する。
Embodiments Hereinafter, embodiments of the present invention will be explained based on FIGS. 1 to 3.

第1図は本発明の第1の実施例を示し、第2図はそのタ
イミングチャートを示す。なお、従来例と同様の作用を
なすものには同一の符号を付けて説明する。
FIG. 1 shows a first embodiment of the present invention, and FIG. 2 shows its timing chart. It should be noted that the same reference numerals are given to the parts having the same functions as those of the conventional example.

第1、第2および第3のメモリ1,2.6が設けられて
おり、この実施例では第3のメモリ6には第1のメモリ
1に書き込まれている偶数アドレス用データと第2のメ
モリ2に書き込まれている奇数アドレス用データとが共
に書き込まれている。
First, second and third memories 1, 2.6 are provided, and in this embodiment, the third memory 6 contains the even address data written in the first memory 1 and the second memory. The data for odd addresses written in memory 2 is also written.

時々の入力アドレスは、アドレス制御部7を介して第1
〜第3のメモリ1,2.6のうちの必要なものに分配さ
れる。アドレス制御部7は第1、第2の保持回路3,4
と第1〜第3のデータセレクタ8,9.10で構成され
ている。第1、第2の保持回路3,4はクロック人力C
LKI、CLK2によって入力アドレスを交互に保持す
る。ここでは偶数アドレス値E4.E5と連続する場合
を例に挙げて説明する。
Occasional input addresses are sent to the first address via the address control section 7.
- Distributed to the necessary ones among the third memories 1, 2, and 6. The address control section 7 includes the first and second holding circuits 3 and 4.
and first to third data selectors 8, 9, and 10. The first and second holding circuits 3 and 4 are operated by clock C.
Input addresses are held alternately by LKI and CLK2. Here, even address value E4. An example of a case in which this is continuous with E5 will be explained.

第1の保持回路3はクロック人力CLKIによってアド
レス値EO,E2.E4を保持し、偶数アドレスが2回
連続する所からアドレス値06゜o8を保持する。第2
の保持回路4はクロック人力CLK2によってアドレス
値01,03を保持し、偶数アドレスが2回連続する所
からE5゜E7.EOを保持する。第1のデータセレク
タ8では、第1の保持回路3の出力が偶数の期間にはそ
の出力値によりコントロールされて第1の保持回路3の
出力値が選択して出力され、第1の保持回路3の出力が
奇数の期間にはその出力値によりコントロールされて第
2の保持回路4の出力値を選択して出力する。これによ
り第1のデータセレクタ8の出力には絶えずEO,E2
.E4.E7゜EOという偶数アドレス値が出力される
。第2のデータセレクタ9では第2の保持回路4の出力
が奇数の期間にはその出力値によりコントロールされて
第2の保持回路4の出力値が選択して出力され、第2の
保持回路4の出方が偶数の期間にはその出力値によりコ
ントロールされて第1の保持回路3の出力値を選択して
出方する。これにより第2のデータセレクタ9の出方に
は絶えず01゜03.06,08という奇数アドレス値
が出力される。第3のデータセレクタ10では、アドレ
ス信号の偶数値または奇数値が連続する所で、そのアド
レス値によりコントロールされて、連続する2つのアド
レスのうちの後者を選択して第3のメモIJIOに出力
する。ここでは偶数アドレス値E4とE5が連続してい
ることを第1、第2の保持回路3.4の出力から検出し
たときに、第3のデータセレクタ10は、第2の保持回
路4における奇数から偶数への切り替わり目のアドレス
値であるE5が出力される。このようにして第1のメモ
リ1には偶数アドレスが、第2のメモリ2には奇数アド
レスが、第3のメモリ6には連続した偶数アドレスの後
者が入力され、それぞれ対応するデータが読み出される
。読み出しデータ選択部としての第4のデータセレクタ
11では、入力アドレス信号の値によりコントロールさ
れて、3つのメモリデータ出力のいずれか1つを選択出
力する。つまり。
The first holding circuit 3 receives address values EO, E2 . E4 is held, and the address value 06°o8 is held starting from two consecutive even addresses. Second
The holding circuit 4 holds the address values 01, 03 using the clock CLK2, and starts from two consecutive even addresses from E5° to E7. Hold EO. In the first data selector 8, the output value of the first holding circuit 3 is controlled by the output value during an even period, and the output value of the first holding circuit 3 is selected and output. During the odd period, the output of the second holding circuit 4 is controlled by the output value of the second holding circuit 4, and the output value of the second holding circuit 4 is selected and output. As a result, the output of the first data selector 8 is always EO, E2.
.. E4. An even address value of E7°EO is output. The second data selector 9 selects and outputs the output value of the second holding circuit 4 by controlling the output value of the second holding circuit 4 during odd-numbered periods. During the period in which the output of the first holding circuit 3 is an even number, the output value of the first holding circuit 3 is selected and output under the control of the output value. As a result, the second data selector 9 constantly outputs odd address values of 01°, 03.06, 08. The third data selector 10 selects the latter of two consecutive addresses and outputs it to the third memory IJIO under the control of the address value where even or odd values of the address signal are consecutive. do. Here, when it is detected from the outputs of the first and second holding circuits 3.4 that the even address values E4 and E5 are consecutive, the third data selector 10 selects the odd address values E4 and E5 in the second holding circuit 4. E5, which is the address value at which the number changes from to an even number, is output. In this way, even addresses are input to the first memory 1, odd addresses are input to the second memory 2, and consecutive even addresses are input to the third memory 6, and the corresponding data is read out. . The fourth data selector 11 serving as a read data selection section selects and outputs any one of the three memory data outputs under the control of the value of the input address signal. In other words.

アドレス値が偶数・奇数と交互に切り替わる所では従来
例と同様に第1、第2のメモリ1,2からデータを出力
し、偶数または奇数が連続する所では第3のメモリ6か
らデータを出力する。こうして第4のデータセレクタ1
1の出力には、最終的にアドレス信号に同期し対応する
データが出力される。
Where the address value alternates between even and odd numbers, data is output from the first and second memories 1 and 2 as in the conventional example, and where the address values are consecutive even and odd numbers, data is output from the third memory 6. do. In this way, the fourth data selector 1
1 output, data corresponding to the address signal is finally output in synchronization with the address signal.

このように、上記の実施例によれば、偶数アドレスある
いは奇数アドレスが連続すると連続したアドレスの前者
で偶数アドレス用の第1のメモリ1あるいは奇数アドレ
ス用の第2のメモリ2から対応するデータを読み出し、
後者で第3のメモリ6から対応するデータを読み出すた
め、物理的に異なるメモリをアクセスすることになる。
In this way, according to the above embodiment, when even addresses or odd addresses are consecutive, the former of the consecutive addresses retrieves corresponding data from the first memory 1 for even addresses or the second memory 2 for odd addresses. reading,
In the latter case, since the corresponding data is read from the third memory 6, a physically different memory is accessed.

このためメモリ先読みの連続性が確保され、読み出しス
ピードを低下させないという利点を有する。
Therefore, the continuity of memory pre-reading is ensured, and there is an advantage that the read speed is not reduced.

第3図は第2の実施例を示す。第1の実施例では第3の
メモリ6には、第1のメモリ1ならびに第2のメモリ2
の内容とが同じアドレスに格納されている必要があった
が、この第2の実施例では連続して発生するであろうア
ドレスのデータだけが、第3のメモリ6に第1、第2の
メモリ1,2とは別の特定アドレスに格納されており、
第3のデータセレクタ10と第3のメモリ6との間に、
入力アドレスを前記の特定アドレスに変換して第3のメ
モリ6に供給するアドレス変換回路12が介装されてい
る。
FIG. 3 shows a second embodiment. In the first embodiment, the third memory 6 includes the first memory 1 and the second memory 2.
However, in this second embodiment, only data at addresses that will occur consecutively is stored in the third memory 6 at the same address as the contents of the first and second addresses. It is stored at a specific address different from memories 1 and 2,
Between the third data selector 10 and the third memory 6,
An address conversion circuit 12 is provided which converts the input address into the specific address and supplies it to the third memory 6.

このようにアドレス変換回路12によって両者アドレス
の対応を行うことによって、第3のメモリ6の容量を第
1の実施例におけるものよりも小容量とすることができ
る。
By associating both addresses with the address conversion circuit 12 in this manner, the capacity of the third memory 6 can be made smaller than that in the first embodiment.

発明の効果 以上のように本発明によると、偶数アドレスのデータを
格納する第1のメモリと奇数アドレスのデータを格納す
る第2のメモリとは別に、偶数アドレスのデータと奇数
アドレスのデータのうちの少なくとも所定のデータを格
納する第3のメモリを設け、入力アドレス値が連続して
偶数アドレスまたは奇数アドレスになったことを検出し
たときにアドレス制御部が、連続する2つのアドレスの
後者のアドレス値で第3のメモリに読み出しを指示し、
入力アドレス値に基づいて第1.第2、第3のメモリか
ら読み出されたデータを、読み出しデータ選択部が入力
アドレス値に基づいて選択して、入力アドレスに基づく
出力データとするため。
Effects of the Invention As described above, according to the present invention, in addition to the first memory that stores data at even addresses and the second memory that stores data at odd addresses, data between even and odd addresses is stored separately. A third memory is provided to store at least predetermined data of the two consecutive addresses, and when it is detected that the input address value becomes an even number address or an odd number address consecutively, the address control unit selects the latter address of the two consecutive addresses. Instruct reading to the third memory by value,
1 based on the input address value. The read data selection unit selects the data read from the second and third memories based on the input address value, and outputs the data based on the input address.

入力アドレス値が偶数または奇数に連続した場合であっ
ても、メモリの読み出しスピードが低下しないという利
点を有する。
This has the advantage that the memory read speed does not decrease even if the input address values are consecutive even or odd numbers.

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

第1図は本発明のメモリ装置の一実施例のブロック図、
第2図は同装置のタイミングチャート図、第3図は他の
実施例の概略ブロック図、第4図は従来メモリ装置のブ
ロック図、第5図は同装置のタイミングチャート図であ
る。 1・・・第1のメモリ、2・・・第2のメモリ、6・・
・第3のメモリ、7・・・アドレス制御部、11・・・
データセレクタ〔読み出しデータ選択部〕。 代理人   森  本  義  弘 第2図 %tt+テ’−ytvyyiッB   X   u  
  E2     E4   X    E7   E
9’I2 q  デー1IL7iデq14tJ    
 X    01   03   X    OG  
  Oi!を3り テ’−!tL、ylnyq:4t)
          X          E5  
    X多Iり ノLすI*i5         
X   fJfl    02    04    X
   117   X’+2..1t92h叔3   
     X    (II    83   X  
 06    (+11’J3Qitv tp Q本Q
                 X       
 (15Xチー7              X  
 (iff  01 02  f13 04 05 0
6  DT  08第4図 入カフY″しス チーーノ 第S図
FIG. 1 is a block diagram of an embodiment of the memory device of the present invention;
FIG. 2 is a timing chart of the same device, FIG. 3 is a schematic block diagram of another embodiment, FIG. 4 is a block diagram of a conventional memory device, and FIG. 5 is a timing chart of the same device. 1... first memory, 2... second memory, 6...
-Third memory, 7...address control section, 11...
Data selector [read data selection section]. Agent Yoshihiro Morimoto Figure 2%tt+te'-ytvyyiB X u
E2 E4 X E7 E
9'I2 q day 1IL7i de q14tJ
X 01 03 X OG
Oi! 3ri te'-! tL, ylnyq: 4t)
X E5
X many I ri no Lsu I*i5
X fJfl 02 04 X
117 X'+2. .. 1t92h uncle 3
X (II 83
06 (+11'J3Qitv tp Q book Q
X
(15X Chi7
(if 01 02 f13 04 05 0
6 DT 08 Figure 4 Cuff Y'' and Stino Figure S

Claims (1)

【特許請求の範囲】[Claims] 1、偶数アドレスのデータを格納する第1のメモリと、
奇数アドレスのデータを格納する第2のメモリと、偶数
アドレスのデータと奇数アドレスのデータのうちの少な
くとも所定のデータを格納する第3のメモリと、読み出
しデータを指定するアドレス値に応じて第1、第2のメ
モリに読み出しを指示し、前記アドレス値が連続して偶
数アドレスまたは奇数アドレスになったことを検出した
ときに連続する2つのアドレスの後者のアドレス値で第
3のメモリに読み出しを指示するアドレス制御部と、前
記アドレス値に基づいて第1、第2、第3のメモリから
読み出されたデータを前記アドレス値に基づいて選択し
て出力する読み出しデータ選択部とを設け、データ選択
部の出力に発生するデータを出力データとするメモリ装
置。
1. a first memory that stores data at even addresses;
a second memory that stores data at odd addresses; a third memory that stores at least predetermined data among data at even addresses and data at odd addresses; , instructs the second memory to read, and when it is detected that the address value becomes an even address or an odd address consecutively, reads the latter of the two consecutive addresses to the third memory. an address control unit for instructing, and a read data selection unit for selecting and outputting data read from the first, second, and third memories based on the address value, and A memory device that uses data generated at the output of a selection section as output data.
JP9218188A 1988-04-13 1988-04-13 Memory device Pending JPH01263749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9218188A JPH01263749A (en) 1988-04-13 1988-04-13 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9218188A JPH01263749A (en) 1988-04-13 1988-04-13 Memory device

Publications (1)

Publication Number Publication Date
JPH01263749A true JPH01263749A (en) 1989-10-20

Family

ID=14047267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9218188A Pending JPH01263749A (en) 1988-04-13 1988-04-13 Memory device

Country Status (1)

Country Link
JP (1) JPH01263749A (en)

Similar Documents

Publication Publication Date Title
KR100383421B1 (en) Memory control circuit
JP2646032B2 (en) LIFO type semiconductor memory device and control method therefor
US5206834A (en) Semiconductor memory device performing last in-first out operation and the method for controlling the same
KR850003459A (en) Image Processing System
JPH01263749A (en) Memory device
JPS62135881A (en) Image display unit
JPS6332392B2 (en)
JP3909509B2 (en) Serial interface circuit
JP2512945B2 (en) Image memory device
JPH0785261A (en) Mirror image processor
JPS6238942A (en) Microprogram controller
JP3384213B2 (en) Memory access device
JPS61124984A (en) Data transfer apparatus
JPS62278680A (en) Image information output device
JP2502857B2 (en) Signal processor
JP2567982B2 (en) Bus trace control method
JPH064436A (en) Serial data transmitting circuit
JPH04330490A (en) Image display device
JPS62135932A (en) Bit shifting device
JPH0620195B2 (en) Speed conversion circuit
JPH04321993A (en) Storage control device
JPH04324191A (en) Semiconductor memory
JPH05257880A (en) Time-division double-buffer memory
JPH05143283A (en) Data speed converter
JPH0667769A (en) Single chip microcomputer