JPH03291740A - Memory controller - Google Patents
Memory controllerInfo
- Publication number
- JPH03291740A JPH03291740A JP9320490A JP9320490A JPH03291740A JP H03291740 A JPH03291740 A JP H03291740A JP 9320490 A JP9320490 A JP 9320490A JP 9320490 A JP9320490 A JP 9320490A JP H03291740 A JPH03291740 A JP H03291740A
- Authority
- JP
- Japan
- Prior art keywords
- address
- data
- byte
- circuit
- access
- 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
Links
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、マイクロプログラム方式のデータ処理装置に
おけるメモリ制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory control device in a microprogram type data processing device.
[発明の概要]
本発明のメモリ制御装置は、複数個例えば2個のメモリ
を備え、バイト転送の際は2個のメモリを交互にアクセ
スし、ワード転送の際は両メモリを同時にアクセスする
ことにより、バイトアクセスとワードアクセスを同一サ
イクル数で実行できるようにしたものである。[Summary of the Invention] The memory control device of the present invention includes a plurality of memories, for example, two memories, and accesses the two memories alternately during byte transfer, and simultaneously accesses both memories during word transfer. This allows byte access and word access to be executed in the same number of cycles.
[従来技術]
従来、パーソナルコンピュータ等のデータ処理装置に用
いられるメモリ制御装置は、物理的なメモリとそのアド
レスが1対1に対応しており、アクセス単位、例えばバ
イト単位、ワード単位等のアクセス単位か大きくなると
、それだけメモリに対するサイクル数が増加することに
なる。[Prior Art] Conventionally, a memory control device used in a data processing device such as a personal computer has a one-to-one correspondence between a physical memory and its address, and accesses are performed in units of access, such as bytes or words. As the unit size increases, the number of cycles to memory increases accordingly.
[発明が解決しようとする課題]
上記のように従来のメモリ制御装置は、アクセス単位が
大きくなると、それに伴ってサイクル数がj曽加し、メ
モリのアクセスに要する時間が長くなるという問題があ
った。また、メモリ空間の容量増加に伴い、アドレスカ
ウンタ(アドレスレジスタ)のサイズを例えば8ビツト
、16ビツト、32ビツトと言うように倍単位で大きく
しなければならなかった。[Problems to be Solved by the Invention] As described above, the conventional memory control device has a problem in that as the access unit becomes larger, the number of cycles increases and the time required to access the memory becomes longer. Ta. Further, as the capacity of the memory space increases, the size of the address counter (address register) has to be increased by a factor of 2, such as 8 bits, 16 bits, or 32 bits.
このような原因は、物理的なメモリとそのアドレスを1
対1に対応させていることにあると考えられる。This kind of cause causes physical memory and its address to be
This is thought to be due to the one-to-one correspondence.
してみれば、1つのアドレスデータにより複数のメモリ
をアドレス指定できるようにすると共に、メモリのアク
セス単位スに応じてデータバスを切換えるようにすれば
、メモリのアクセス単位が大きくなってもサイクル数を
増加する必要がなく、また、メモリ空間の容量を1曽加
しても、アドレスカウンタのサイズを大きくする必要が
なくなることは明らかである。If we make it possible to address multiple memories with one address data and switch the data bus according to the memory access unit, the number of cycles can be reduced even if the memory access unit becomes large. It is clear that there is no need to increase the size of the address counter, and even if the capacity of the memory space is increased by one, there is no need to increase the size of the address counter.
本発明の課題は、メモリのアクセス単位が大きくなって
もサイクル数が増加せず、また、メモリ空間の容量を増
加しても、アドレスカウンタのサイズを大きくする必要
がないメモリ制御装置を提供することである。An object of the present invention is to provide a memory control device in which the number of cycles does not increase even if the memory access unit becomes large, and there is no need to increase the size of the address counter even if the capacity of the memory space increases. That's true.
[課題を解決するための手段] 本発明の手段は次の通りである。[Means to solve the problem] The means of the present invention are as follows.
(1)アドレスカウンタ。(1) Address counter.
例えば、メモリのアドレスを指定するカウンタである。For example, it is a counter that specifies a memory address.
(2)2n個のメモリ。(2) 2n memories.
例えば、RAM等で構成されるデータ記憶用の複数のメ
モリである。For example, it is a plurality of memories for storing data, such as RAM.
(3)バイトアクセスの際、アドレス発生毎に原アドレ
スをnビット下f立にシフトアウトしたアドレスを各メ
モリに供給する第1のアドレス供給手段。(3) A first address supply means for supplying to each memory an address obtained by shifting out the original address by n bits downwards every time an address is generated during a byte access.
例えば、上記アドレスカウンタから出力されるアドレス
データ及びバンク切換信号に基づいてメモリのアドレス
を指定するゲート回路12である。For example, it is a gate circuit 12 that specifies a memory address based on address data and a bank switching signal output from the address counter.
(4)ワードアクセスの際、アドレス発生毎に原アドレ
スを各メモリに供給する第2のアドレス供給手段。(4) A second address supply means for supplying an original address to each memory each time an address is generated during word access.
例えば、上記アドレスカウンタから出力されるアドレス
データによりメモリのアドレスを指定するゲート回路]
1である。For example, a gate circuit that specifies a memory address using address data output from the above address counter]
It is 1.
(5)バイトアクセスの際は、シフトアウトされたnビ
ットのデータ内容に対応するメモリをアドレス発生毎に
順次選択し、ワードアクセスの際は、全メモリを同時に
選択する選択手段。(5) Selection means that sequentially selects memories corresponding to the shifted-out n-bit data content in a byte access each time an address is generated, and selects all memories at the same time in a word access.
例えば、上記アドレスカウンタから送られてくるアドレ
スデータの最下位ビットによって上記メモリを選択指定
するインバーター4、ノア回路13.1.5等により構
成される回路である。For example, it is a circuit composed of an inverter 4, a NOR circuit 13.1.5, etc., which selects and specifies the memory according to the least significant bit of address data sent from the address counter.
(6)バイトアクセス時は、アドレス発生毎にバイト単
位でデータを出力し、ワードアクセスの時はアドレス発
生毎に2nバイト単位でデータを出力する出力手段。(6) Output means that outputs data in byte units for each address generation during byte access, and outputs data in 2n byte units for each address generation during word access.
例えば、」二記メモリのデータ出力側に設けられ、バイ
ト/ワード切換信号に応じてデータを出力するゲート回
路19.20である。For example, gate circuits 19 and 20 are provided on the data output side of the memory and output data in response to a byte/word switching signal.
[作用] 本発明の手段の作用は次の通りである。[Effect] The operation of the means of the invention is as follows.
バイト/ワード切換信号によりバイトアクセスか指定さ
れると、上記第1のアドレス指定手段によりメモリのア
ドレスか指定される。このとき上記選択手段により、シ
フトアウトされたnビットのデータ内容に対応するメモ
リがアドレス発生毎に順次選択され、その記憶データが
読出される。When a byte access is specified by the byte/word switching signal, a memory address is specified by the first addressing means. At this time, the memory corresponding to the shifted-out n-bit data is sequentially selected by the selection means every time an address is generated, and the stored data is read out.
このメモリから読出されたデータは、上記出力手段によ
り、アドレス発生毎にバイト単位でバイト処理装置へ送
られる。The data read from this memory is sent by the byte unit to the byte processing device by the output means each time an address is generated.
また、バイト/ワード切換信号によりワードアクセスが
指定されると、上記第2のアドレス指定手段によりメモ
リのアドレスが指定される。このとき上記選択手段によ
り、全メモリが同時に選択され、その記憶データが読出
される。このメモリから読出されたデータは、上記出力
手段により、アドレス発生毎に2nバイト単位でワード
処理装置へ送られる。Further, when word access is designated by the byte/word switching signal, the memory address is designated by the second addressing means. At this time, all the memories are simultaneously selected by the selection means and the stored data is read out. The data read from this memory is sent to the word processing device by the output means in units of 2n bytes every time an address is generated.
[実施例]
以下、一実施例を第1図ないし第3図を参照しながら説
明する。[Example] Hereinafter, an example will be described with reference to FIGS. 1 to 3.
第1図ないし第3図は、データサイズが8ビットで64
にバイトのメモリ空間を有するメモリを2個使用した場
合の実施例について示したものである。In Figures 1 to 3, the data size is 8 bits and 64
This example shows an example in which two memories each having a memory space of bytes are used.
第1図は、実施例のメモリ制御装置を示すブロック図で
ある。アドレスカウンタ(図示せず)からアドレスバス
ABを介して送られてくる16ビツトのアドレスデータ
AO〜AL5は、ワードアクセス用のゲート回路11に
人力されると共に、最下位ビットAOを除く」三位15
ビットのデータAL−AI5がバイトアクセス用のゲー
ト回路12に人力される。上記最下位ビットAOは、ノ
ア回路13に人力されると共に、インバータ14を介し
てノア回路]5に人力される。上記ノア回路1B、1.
4には、更に制御部(図示せず)から送られてくるバイ
ト/ワード切換信号B/Wが入力される。また、このバ
イト/ワード切換信号B//Wは、インバータ16を介
してゲート回路11の出力制御端子OCに人力されると
共に、ゲト回路12の出力制御端子OCに直接人力され
る。FIG. 1 is a block diagram showing a memory control device according to an embodiment. The 16-bit address data AO to AL5 sent from the address counter (not shown) via the address bus AB are inputted to the gate circuit 11 for word access, and are inputted to the gate circuit 11 for word access. 15
Bit data AL-AI5 is input to the gate circuit 12 for byte access. The least significant bit AO is input to the NOR circuit 13 and also to the NOR circuit 5 via the inverter 14. The above NOR circuit 1B, 1.
4 further receives a byte/word switching signal B/W sent from a control section (not shown). Further, this byte/word switching signal B//W is input to the output control terminal OC of the gate circuit 11 via the inverter 16 and directly to the output control terminal OC of the gate circuit 12.
上記ゲート回路]1は、出力制御端子OCに“0”信号
が与えられると、アドレスバスABにより送られてくる
アドレスデータAO〜A15をそのままPAO〜PA]
5として上位(H)側RAM17及び下位(L)側RA
M18のアドレス端子に出力する。上記RAM]、7.
18は、例えばデータサイズが8ビツトで64にバイト
のメモリ空間を有している。一方、ゲート回路12は、
データバスABにより送られてくるアドレスデータA1
〜A14を1ビツト分下位側にシフトシてPAO〜PA
]、4とすると共に、制御部から送られてくるバンク切
換信号BCを最上位ビットの信号PA15として出力す
る。このバンク切換信号BCは、例えばプログラムの進
行によってインストラクションで指定される。上記ゲー
ト回路コ2から出力されるアドレスデータPAO〜PA
]5は、RAM17.18のアドレス端子に入力される
。[Above gate circuit] When a "0" signal is given to the output control terminal OC, the gate circuit 1 directly receives address data AO to A15 sent from the address bus AB to PAO to PA]
5 as upper (H) side RAM 17 and lower (L) side RA
Output to the address terminal of M18. above RAM], 7.
18 has, for example, a data size of 8 bits and a memory space of 64 bytes. On the other hand, the gate circuit 12 is
Address data A1 sent by data bus AB
~Shift A14 to the lower side by 1 bit and set PAO~PA
], 4, and outputs the bank switching signal BC sent from the control section as the most significant bit signal PA15. This bank switching signal BC is specified by an instruction according to the progress of the program, for example. Address data PAO to PA output from the gate circuit 2
]5 is input to the address terminal of RAM17.18.
RAM17のチップセレクト端子C8にはノア回路15
の出力信号が入力され、RAM18のチップセレクト端
子C5にはノア回路16の出力信号が入力される。NOR circuit 15 is connected to chip select terminal C8 of RAM17.
The output signal of the NOR circuit 16 is input to the chip select terminal C5 of the RAM 18.
そして、上記RAM17のデータ端子DO〜D7は、デ
ータバスDBIを介して上位側のゲート回路]9及び下
位側のゲート回路20のデータ端子D8〜D15に接続
される。また、RAM18のデータ端子DO〜D7は、
データバスDB2を介してゲート回路19.20のデー
タ端子DO〜D7に接続される。また、ゲート回路19
は、16ビツト(ワード)のデータバスDB−Aを介し
てワード処理装置(図示せず)に接続され、ゲート回路
20は、8ビツト(バイト)のデータバスDB−Bを介
してバイト処理装置(図示せず)に接続される。上記ゲ
ート回路20は、切換機能を有しており、ノア回路13
.15からの信号によりデータバスDBI 、DB2の
一方を選択する。The data terminals DO to D7 of the RAM 17 are connected to the data terminals D8 to D15 of the upper gate circuit 9 and the lower gate circuit 20 via the data bus DBI. Furthermore, the data terminals DO to D7 of the RAM 18 are
It is connected to data terminals DO to D7 of gate circuits 19.20 via data bus DB2. In addition, the gate circuit 19
is connected to a word processing device (not shown) via a 16-bit (word) data bus DB-A, and the gate circuit 20 is connected to a byte processing device (not shown) via an 8-bit (byte) data bus DB-B. (not shown). The gate circuit 20 has a switching function, and the NOR circuit 13
.. One of the data buses DBI and DB2 is selected by a signal from 15.
例えばノア回路15からの信号が“0“ ノア回路]3
からの信号が1″の時にデータバスDBl側を選択して
データバスDB−Bと接続し、ノア回路15からの信号
が“1” ノア回路13からの信号か“ONの時にデー
タバスDB2側を選択してデータバスDB−Bと接続す
る。更に、上記ゲート回路1つの出力制御端子OCには
、上記バイト/ワード切換信号B/Wがインバータ21
を介して入力され、ゲート回路20の出力制御端子OC
には、バイト/ワード切換信号B/Wが直接人力される
。上記ゲート回路19.20は、バイト/ワード切換信
号B/Wが“1”の時にオフ、“0”の時にオン状態と
なる。For example, if the signal from the NOR circuit 15 is “0”, the NOR circuit] 3
When the signal from the NOR circuit 15 is "1", the data bus DBl side is selected and connected to the data bus DB-B, and when the signal from the NOR circuit 15 is "1" or the signal from the NOR circuit 13 is "ON", the data bus DB2 side is selected. Select and connect to data bus DB-B. Furthermore, the byte/word switching signal B/W is connected to the output control terminal OC of one of the gate circuits through the inverter 21.
is input via the output control terminal OC of the gate circuit 20.
The byte/word switching signal B/W is directly input manually. The gate circuits 19 and 20 are turned off when the byte/word switching signal B/W is "1" and turned on when it is "0".
第2図は」二記RAM17.18のアドレス設定状態及
びデータ記憶状態を示している。FIG. 2 shows the address setting state and data storage state of the RAMs 17 and 18.
RAM17.18は、r 0000 (I□、」〜rF
FFFu++Jのアドレスを有しているか、例えばr0
000+u+J〜「BFFFtu+Jの領域がバイト転
送領域BA、rcOOOtH+J〜rFFFFtH+J
の領域がワード転送領域WAとなっている。また、RA
M1.7.18は、例えば0
roooo、旧」〜r7FFF、+++Jの#0のバン
ク、r 8000 (旧」〜「FFFF+o+Jの領域
が#1のバンクに設定されている。そして、バイト転送
領域BAでは、RAM17.18が交互にアクセスされ
、ワード転送領域ではRAM1718が同時にアクセス
される。RAM17.18 is r 0000 (I□,''~rF
It has an address of FFFu++J, for example r0
000+u+J ~ "BFFFtu+J area is byte transfer area BA, rcOOOtH+J ~ rFFFFtH+J
The area is the word transfer area WA. Also, R.A.
For example, in M1.7.18, the area from 0 roooo (old) to r7FFF, +++J is set to bank #0, and the area from r8000 (old) to FFFF+o+J is set to bank #1.Then, byte transfer area BA In this case, RAMs 17 and 18 are accessed alternately, and RAM 1718 is accessed simultaneously in the word transfer area.
以下、上記実施例の動作を第3図のタイミングチャート
を参照して説明する。The operation of the above embodiment will be explained below with reference to the timing chart of FIG.
今、バイト処理装置によりRAM17.18のバイト転
送領域BAの記憶内容を先頭アドレスより更新処理する
ものとすれば、第3図に示すように制御部からバイト/
ワード切換信号B/Wとして“O”が与えられると共に
、バンク切換信号BCとして“0″が与えられる。バイ
ト/ワード切換信号B/Wとして“0”が与えられると
、ゲト回路11の出力制御端子OCが“1”、ゲト回路
12の出力制御端子OCが“0“となる。Now, if the byte processing device updates the storage contents of the byte transfer area BA of RAM 17.18 from the start address, the byte/
"O" is given as the word switching signal B/W, and "0" is given as the bank switching signal BC. When "0" is applied as the byte/word switching signal B/W, the output control terminal OC of the gate circuit 11 becomes "1" and the output control terminal OC of the gate circuit 12 becomes "0".
従って、ゲート回路11がオフ、ゲート回路12かオン
状態となる。Therefore, the gate circuit 11 is turned off and the gate circuit 12 is turned on.
この状態でアドレスカウンタからアドレスデ1]
夕AO〜AI5として先頭アドレスr0000jが送ら
れてくると、このアドレスデータのうちA1−A1.5
がゲート回路12を通り、1ビツト下位方向にシフトさ
れてPAO−PAl、4として出力される。このときバ
ンク切換信号BC(“0“)がゲート回路12よりPA
l5として出力される。この結果、アドレスカウンタか
ら先頭アドレスが送られてきた場合、ゲート回路12か
らアドレスブタPAO〜PA15としてオール“O”、
っまりro 000Jのアドレスが出力される。このと
きアドレスデータAO−Ai5の最下位ビットAOが“
0”であり、また、バイト/ワード切換信号B/Wが0
″であるので、ノア回路15の出力が“O” ノア回路
]3の出力が1″となって上位側のRAM1.7がイネ
ーブル状態となる。これによりRAM17の先頭アドレ
スr0000Jが指定されて、その記憶データが読出さ
れ、ゲト回路19.20に人力される。In this state, when the start address r0000j is sent from the address counter as address data 1] AO~AI5, A1-A1.5 of this address data is sent.
passes through the gate circuit 12, is shifted downward by one bit, and is output as PAO-PA1,4. At this time, bank switching signal BC (“0”) is sent from gate circuit 12 to PA.
It is output as l5. As a result, when the first address is sent from the address counter, the gate circuit 12 outputs all "O" as address pigeons PAO to PA15.
The address of exactly ro 000J is output. At this time, the least significant bit AO of address data AO-Ai5 is “
0'', and the byte/word switching signal B/W is 0.
'', the output of the NOR circuit 15 becomes ``O'', and the output of the NOR circuit 3 becomes 1'', and the RAM 1.7 on the upper side becomes enabled. As a result, the start address r0000J of the RAM 17 is designated, and the stored data is read out and input to the get circuits 19 and 20.
この場合、バイト/ワード切換信号B/Wが“0″とな
っているので、ゲート回路19がオフ]2
状態、ゲート回路20がオン状態に保持されている。ゲ
ート回路20は、ノア回路13.15の出力に応じて切
換動作するが、このときノア回路15の出力が“0“
ノア回路13の出力が“1”となっているので、RAM
17から読出されたデータを選択し、8ビツトのデータ
バスDB−Bを介してバイト処理装置へ転送する。In this case, since the byte/word switching signal B/W is "0", the gate circuit 19 is held in the OFF]2 state and the gate circuit 20 is held in the ON state. The gate circuit 20 performs a switching operation according to the outputs of the NOR circuits 13 and 15, but at this time, the output of the NOR circuit 15 is "0".
Since the output of the NOR circuit 13 is “1”, the RAM
17 is selected and transferred to the byte processing device via the 8-bit data bus DB-B.
次いでアドレスカウンタよりアドレスデータr0001
Jが送られてくると、最下位ビットAOが“1”である
ので、ノア回路15の出力が“]” ノア回路13の出
力が“0“となり、下位側のRA M 1.8がイネー
ブル状態となる。このときゲート回路12から出力され
ているアドレスデータPAL〜PA15は変化せず、r
o 000Jに保持されている。従って、RAM18の
先頭アドレスr0000jが指定されて、その記憶デー
タが読出され、ゲート回路20へ送られる。このときノ
ア回路15の出力が“1” ノア回路13の出力が“0
“となっているので、ゲート回路20はRA M 1.
8の読出しデータを選択し、8ビ3
ットのデータバスDB−Bを介してバイト処理装置へ転
送する。Next, address data r0001 is obtained from the address counter.
When J is sent, the least significant bit AO is "1", so the output of the NOR circuit 15 is "]", the output of the NOR circuit 13 is "0", and the lower RAM 1.8 is enabled. state. At this time, the address data PAL to PA15 output from the gate circuit 12 do not change, and r
o It is held at 000J. Therefore, the start address r0000j of the RAM 18 is designated, and the stored data is read out and sent to the gate circuit 20. At this time, the output of the NOR circuit 15 is "1" and the output of the NOR circuit 13 is "0".
", so the gate circuit 20 is RAM 1.
8 read data is selected and transferred to the byte processing device via the 8-bit data bus DB-B.
次いでアドレスデータr0002Jが送られてくると、
最下位ビットAOが“0”であるので、ノア回路15の
出力か“0” ノア回路13の出力が“1”となり、上
位側のRAM17かイネーブル状態となる。このときゲ
ート回路12から出力さるアドレスデータPAI〜PA
I5は、r 000 ]、 Jに変化する。従って、R
AM18のアドレスr 0001 Jが指定されて、そ
の記憶データが読出される。以下、同様の動作が繰り返
され、RAM17.18が交互にアクセスされてその記
憶データが読出され、データバスDB−Bによりバイト
処理装置へ転送される。Next, when address data r0002J is sent,
Since the least significant bit AO is "0", the output of the NOR circuit 15 is "0" and the output of the NOR circuit 13 is "1", and the upper RAM 17 is enabled. At this time, address data PAI to PA output from the gate circuit 12
I5 changes to r 000 ], J. Therefore, R
Address r 0001 J of AM18 is specified and its stored data is read. Thereafter, similar operations are repeated, and the RAMs 17 and 18 are alternately accessed to read out the stored data and transferred to the byte processing device via the data bus DB-B.
その後、rF F F FJのアドレスまで処理を終了
すると、つまり、#0のバンクに対する転送処理を終了
すると、バンク切換信号BCがローレベルからハイレベ
ルに切換えられると共に、アドレスカウンタから先頭ア
ドレスデータro 000Jか送られてくる。バンク切
換信号BCがハイレベ]4
ルに切換えられると、ゲート回路12から出力されるP
AI5が1”となる。従って、ゲート回路]2からは、
r8000Jのアドレスデータか出力される。また、ア
ドレスデータの最下位ビットAOが“0“の場合、上記
したように上位側のRAM17がイネーブル状態となる
ので、RAM17のr8000J番地、つまり、バンク
ス#]の先頭アドレスが指定され、その記憶データが読
出される。このRAM17からの読出しデータは、ケー
ト回路20よりデータバスDB−Bを介してバイト処理
装置へ送られる。After that, when the processing is completed up to the address rF F F Or will be sent. When the bank switching signal BC is switched to high level]4, the gate circuit 12 outputs P
AI5 becomes 1". Therefore, from gate circuit ]2,
r8000J address data is output. Further, when the least significant bit AO of the address data is "0", the upper RAM 17 is enabled as described above, so the address r8000J of the RAM 17, that is, the start address of Banks #] is specified and the memory is Data is read. The read data from the RAM 17 is sent from the gate circuit 20 to the byte processing device via the data bus DB-B.
次いでアドレスカウンタよりアドレスデータro001
Jが送られてくると、上記したように下位側のRAM1
8がイネーブル状態となる。Next, address data ro001 is obtained from the address counter.
When J is sent, the RAM1 on the lower side is
8 is in the enabled state.
このときゲート回路12から出力されているアドレスデ
ータPAI〜PA]5は変化せず、r8000Jに保持
されている。従って、RAM]8のr8000J番地、
つまり、バンク#1の先頭アドレスが指定されて、その
記憶データが読出される。このRAM18からの読出し
データは、5
ゲーI・回路20よりデータバスDB−Bを介してバイ
ト処理装置へ送られる。At this time, the address data PAI-PA]5 output from the gate circuit 12 does not change and is held at r8000J. Therefore, address r8000J of RAM]8,
That is, the start address of bank #1 is designated and its stored data is read out. The read data from the RAM 18 is sent from the 5G I circuit 20 to the byte processing device via the data bus DB-B.
以下、RAM17.18のr7 F F FJ番地、つ
まり、バイト転送領域BAの最終アドレスまでは同様の
動作が繰り返される。Thereafter, similar operations are repeated up to address r7FFFJ of RAM 17.18, that is, the final address of byte transfer area BA.
次にワード転送を行なう場合の動作について説明する。Next, the operation when performing word transfer will be explained.
ワード転送を行なう場合には、制御部からバイト/ワー
ド切換信号B/Wとして“1”が与えられると共に、ア
ドレスデータとしてrCO00Jが与えられる。この場
合、バンク切換信号BCのレベルは特に限定されない。When performing word transfer, "1" is given as the byte/word switching signal B/W from the control section, and rCO00J is given as the address data. In this case, the level of bank switching signal BC is not particularly limited.
バイト/ワード切換信号B/Wとして“1″が与えられ
ると、インバータ16.21の出力がMO″となり、ゲ
ート回路11..19がオン状態となる。When "1" is applied as the byte/word switching signal B/W, the output of the inverter 16.21 becomes MO", and the gate circuits 11..19 are turned on.
このときゲート回路12.20は、オン状態からオフ状
態に切換えられる。また、バイト/ワード切換信号B/
Wが“1”の場合、ノア回路15゜13の出力か何れも
“0″となり、RAM17゜18か共にイネーブル状態
となる。At this time, the gate circuit 12.20 is switched from the on state to the off state. Also, the byte/word switching signal B/
When W is "1", both the outputs of the NOR circuits 15 and 13 become "0", and both the RAMs 17 and 18 are enabled.
上記ゲート回路]1がオン状態になると、アト]6
レスカウンタから送られてくるアドレスデータrCO0
0JがそのままPAO〜PAI5として出力され、RA
M17、RAM18のアドレスが指定される。従って、
RAM17.18からは、同じアドレスrCOOOJに
記憶されている8ビットのデータが読出され、ゲート回
路19に人力される。このときRAM17の読出しデー
タは、ゲト回路1つの上位ビット側の端子D8〜D15
に人力され、RAM18の読出しデータは、ゲート回路
1つの下位ビット側の端子DO〜D7に人力される。従
って、RAM]、7,1.8からそれぞれ読出される8
ビツトのデータは、ゲート回路1つで16ビツトのデー
タDO〜D15に合成され、16ビツトのデータバスD
B−Aを介してワード処理装置へ送られる。When the above gate circuit [1] turns on, the address data rCO0 sent from the address counter [6]
0J is output as is as PAO~PAI5, and RA
The addresses of M17 and RAM18 are specified. Therefore,
From the RAMs 17 and 18, 8-bit data stored at the same address rCOOOJ is read out and input to the gate circuit 19. At this time, the read data of the RAM 17 is sent to terminals D8 to D15 on the upper bit side of one gate circuit.
The data read from the RAM 18 is input to terminals DO to D7 on the lower bit side of one gate circuit. Therefore, 8 read from RAM], 7, 1.8, respectively.
The bit data is synthesized into 16-bit data DO to D15 by one gate circuit, and then transferred to the 16-bit data bus D.
It is sent to the word processing device via B-A.
以下、同様にしてアドレスカウンタからのアドレスデー
タが更新される毎に、RAM17.18の両方から指定
アドレスに対する8ビツトのデータが読出され、ゲート
回路]9により16ビツトのデータに合成され、データ
バスDB−Aを介し7
てワード処理装置へ送られる。Thereafter, each time the address data from the address counter is updated in the same way, 8-bit data corresponding to the specified address is read from both RAMs 17 and 18, synthesized into 16-bit data by the gate circuit 9, and then sent to the data bus. It is sent to the word processing device via DB-A.
上記のようにバイト/ワード切換信号B/Wにより、R
AM]、7.18に対するバイト転送処理とワード転送
処理が切換えられ、ワードアクセスの場合でもバイトア
クセスと同しサイクル数で処理することができる。また
、16ビツトのアドレスカウンタで、1.28にバイト
のメモリ空間をカバーすることができる。As mentioned above, by the byte/word switching signal B/W, the R
AM], 7.18, byte transfer processing and word transfer processing are switched, and word access can be processed in the same number of cycles as byte access. Also, a 16-bit address counter can cover 1.28 bytes of memory space.
以」二はRAM1.7.18の記憶データを処理装置に
読出す場合の動作について示したが、データ処理装置に
より処理したデータをRAM17゜18に書込む場合に
おいても、上記データ読出しの場合と同様にして行なわ
れる。The following describes the operation when reading data stored in RAM 1.7.18 to the processing device, but when writing data processed by the data processing device to RAM 17. It is done in the same way.
なお、上記実施例では、バイトアクセスとワドアクセス
を組合わせた場合について示したが、更にロングワード
(4バイト)アクセスとの組合わせにも応用することが
できる。すなわち、■バイトとロングワード、
■ワードとロングワード、
■バイト、ワード、ロングワード、
]8
の組合わせである。この場合、■ではバンクの指定を2
ビツトにする。また、■ではバンクの指定をバイト用に
2ビット、ワード用に]ビット用意すればよい。In the above embodiment, a case is shown in which byte access and word access are combined, but the present invention can also be applied to a combination with longword (4-byte) access. That is, these are combinations of ■byte and longword, ■word and longword, ■byte, word, longword, ]8. In this case, in ■, specify the bank as 2.
Make it bit. In addition, in case of (1), it is sufficient to prepare two bits for specifying the bank and two bits for the word.
[発明の効果]
以上詳記したように本発明によれば、メモリのアクセス
単位がバイト単位より大きくなっても、バイトアクセス
の場合と同じサイクル数で処理でき、処理速度を著しく
向上し得る。また、アドレスカウンタのザイズが従来と
同じであっても、メモリ空間を数倍に増大することがで
きる。[Effects of the Invention] As described in detail above, according to the present invention, even if the memory access unit becomes larger than the byte unit, it can be processed in the same number of cycles as byte access, and the processing speed can be significantly improved. Furthermore, even if the size of the address counter is the same as before, the memory space can be increased several times.
第1図は本発明の一実施例によるメモリ制御装置の回路
構成を示すブロック図、第2図は同実施例におけるメモ
リの記憶構成を示す図、第3図は同実施例における動作
を説明するためのタイミングチャートである。
11.12・・・ゲート回路、13.15ノア回路、1
4・・・インバータ、16ン・・・イバータ、1718
・・・RAM、19.20・・・ゲート回路。
9
8ヒ゛・ント
384
特開平
3
291740 (9)FIG. 1 is a block diagram showing a circuit configuration of a memory control device according to an embodiment of the present invention, FIG. 2 is a diagram showing a memory storage structure of a memory in the same embodiment, and FIG. 3 explains the operation of the same embodiment. This is a timing chart for 11.12...Gate circuit, 13.15 NOR circuit, 1
4... Inverter, 16 N... Inverter, 1718
...RAM, 19.20...gate circuit. 9 8-point 384 JP-A-3 291740 (9)
Claims (1)
ビット下位にシフトアウトしたアドレスを各メモリに供
給する第1のアドレス供給手段と、ワードアクセスの際
、アドレス発生毎に原アドレスを各メモリに供給する第
2のアドレス供給手段と、 バイトアクセスの際は、シフトアウトされたnビットの
データ内容に対応するメモリをアドレス発生毎に順次選
択し、ワードアクセスの際は、全メモリを同時に選択す
る選択手段と、 バイトアクセス時は、アドレス発生毎にバイト単位でデ
ータを出力し、ワードアクセスの時はアドレス発生毎に
2^nバイト単位でデータを出力する出力手段と を具備したことを特徴とするメモリ制御装置。[Claims] An address counter, 2^n memories, and an original address that converts the original address by n each time an address is generated during byte access.
a first address supply means for supplying an address shifted out to the lower bits to each memory; a second address supply means for supplying an original address to each memory each time an address is generated during word access; has a selection means that sequentially selects the memory corresponding to the n-bit data content shifted out each time an address is generated, and selects all memories at the same time during word access, and a selection means that selects the memory corresponding to the shifted out n-bit data content at the same time at each address generation. 1. A memory control device comprising: output means for outputting data in units of 2^n bytes each time an address is generated during word access.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9320490A JPH03291740A (en) | 1990-04-10 | 1990-04-10 | Memory controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9320490A JPH03291740A (en) | 1990-04-10 | 1990-04-10 | Memory controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03291740A true JPH03291740A (en) | 1991-12-20 |
Family
ID=14076041
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9320490A Pending JPH03291740A (en) | 1990-04-10 | 1990-04-10 | Memory controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03291740A (en) |
-
1990
- 1990-04-10 JP JP9320490A patent/JPH03291740A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4835734A (en) | Address translation apparatus | |
| JPS6027964A (en) | Memory access control circuit | |
| US20040193778A1 (en) | Data processor | |
| JPH04217051A (en) | Microprocessor | |
| JPH0719426B2 (en) | Disk controller | |
| US4764896A (en) | Microprocessor assisted memory to memory move apparatus | |
| US5127096A (en) | Information processor operative both in direct mapping and in bank mapping, and the method of switching the mapping schemes | |
| JPH02242355A (en) | Microprocessing system with extended address space | |
| JPH03291740A (en) | Memory controller | |
| JPS5844263B2 (en) | memory control circuit | |
| JPS5968068A (en) | Memory board | |
| JPS5827253A (en) | Data processing device | |
| JP3704927B2 (en) | Programmable controller | |
| JPH03185536A (en) | Memory addressing system for microcomputer | |
| JPS6382530A (en) | Semiconductor storage device | |
| JP3429880B2 (en) | Memory device and memory access method | |
| JP3755653B2 (en) | Contact input / output program controller | |
| JPS63129438A (en) | Memory controller | |
| JPS5971510A (en) | Sequence control circuit | |
| JPH0934776A (en) | Device and method for processing information | |
| JPH0916467A (en) | Memory controller | |
| JPS62241048A (en) | Addressing system for extended memory | |
| JPH07219843A (en) | Memory bank switching device | |
| JPS6180331A (en) | Variable length data processor | |
| JPH04237348A (en) | Memory accessing device |