JPH05120211A - Data bus width controller - Google Patents

Data bus width controller

Info

Publication number
JPH05120211A
JPH05120211A JP28113291A JP28113291A JPH05120211A JP H05120211 A JPH05120211 A JP H05120211A JP 28113291 A JP28113291 A JP 28113291A JP 28113291 A JP28113291 A JP 28113291A JP H05120211 A JPH05120211 A JP H05120211A
Authority
JP
Japan
Prior art keywords
data
storage device
address
bus
central processing
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
JP28113291A
Other languages
Japanese (ja)
Inventor
Hiromi Uchida
浩美 内田
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 JP28113291A priority Critical patent/JPH05120211A/en
Publication of JPH05120211A publication Critical patent/JPH05120211A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the data width controller which inputs and outputs data by controlling the bus width of a central processing unit by specifying an address only once when the bus width of the central processing unit is an integral multiple of the bus width of a storage device. CONSTITUTION:In a write cycle, the output data of the central processing unit 1 are arrayed and temporarily stored in write registers 19-22 and while the address of the storage device 2 is controlled by an address sequencer 18 and an address counter control circuit 17, a WR sequencer 15 outputs the data in the write registers 19-22 to the data bus 28 of the storage device 2. In a read cycle, while the address of the storage device 2 is controlled by the address counter 18 and address counter control circuit 17, the data are arrayed in read registers 23-26 and temporarily stored, and the data are read by the central processing unit 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は複数のビット数のデータ
バスを備えた中央処理装置と、前記データバスよりも少
ないビット数のデータバスを備えた記憶装置との間に介
在し、データバス幅を変換してデータを入出力するデー
タバス幅制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention intervenes between a central processing unit having a data bus having a plurality of bits and a storage device having a data bus having a smaller number of bits than the data bus. The present invention relates to a data bus width control device for converting width and inputting / outputting data.

【0002】[0002]

【従来の技術】近年、半導体製造技術の進歩に伴い、半
導体メモリの高集積度化および大容量化に目ざましいも
のがある。また、マイクロコンピュータの発展も半導体
技術の進歩に伴って高機能化、多ビット化が急速に進
み、32ビットの中央処理装置(以下、マイクロプロセ
ッサと称す)が各社で開発され、比較的低価格で使用で
きる。このような多数ビットのデータバスを備えたマイ
クロプロセッサと複数の半導体メモリ(以下、メモリと
称す)とを組み合わせたシステムが多数開発されている
が、このようなシステムに使用されるメモリは、一般的
にバス幅が1、4または8ビットであるため、32ビッ
トのマイクロプロセッサと接続する場合、複数個のメモ
リを使用するか、または特別なメモリ構成でデータバス
幅の整合をとっている。
2. Description of the Related Art In recent years, as semiconductor manufacturing technology has advanced, there has been a remarkable increase in the degree of integration and capacity of semiconductor memories. In addition, the development of microcomputers has rapidly become more sophisticated and multi-bit with the progress of semiconductor technology, and 32-bit central processing units (hereinafter referred to as "microprocessors") have been developed by various companies and have relatively low prices. Can be used in. Many systems have been developed in which a microprocessor having such a multi-bit data bus and a plurality of semiconductor memories (hereinafter referred to as "memory") are combined. However, the memory used in such a system is generally Since the bus width is 1, 4 or 8 bits, when connecting to a 32-bit microprocessor, a plurality of memories are used or a special memory configuration is used to match the data bus width.

【0003】図5は従来のバス幅制御装置の構成をブロ
ック図で示す。図において、1はマイクロプロセッサ、
2はマイクロプロセッサ1がアクセスし、半導体メモリ
で構成された記憶装置、3はマイクロプロセッサ1のア
ドレス空間をデコードするデコーダ、6はマイクロプロ
セッサ1のアドレスバス、7はマイクロプロセッサ1の
データバス、8はマイクロプロセッサ1のアドレスが確
定したことを示すアドレスストローブ信号であり、マイ
クロプロセッサ1の1サイクルの基本信号として使用さ
れる。9は読み出しサイクルか、または書き込みサイク
ルかを示すリード/ライト信号、10はマイクロプロセ
ッサ1に対してアクセスの完了を知らせるアクノリッジ
信号、11は記憶装置2に入力されるライト信号、12
は記憶装置2からデータを読み出すためのアウトプット
イネーブル信号、4は記憶装置2に対して前記ライト信
号11を生成するためのWEコントロール回路、5は前
記アウトプットイネーブル信号を生成するOEコントロ
ール回路である。
FIG. 5 is a block diagram showing the configuration of a conventional bus width control device. In the figure, 1 is a microprocessor,
Reference numeral 2 is a storage device which is accessed by the microprocessor 1 and is composed of a semiconductor memory. 3 is a decoder which decodes the address space of the microprocessor 1. 6 is an address bus of the microprocessor 1; 7 is a data bus of the microprocessor 1; Is an address strobe signal indicating that the address of the microprocessor 1 has been determined, and is used as a basic signal for one cycle of the microprocessor 1. Reference numeral 9 is a read / write signal that indicates a read cycle or a write cycle, 10 is an acknowledge signal that notifies the microprocessor 1 of the completion of access, 11 is a write signal that is input to the storage device 2, and 12
Is an output enable signal for reading data from the storage device 2, 4 is a WE control circuit for generating the write signal 11 to the storage device 2, and 5 is an OE control circuit for generating the output enable signal. is there.

【0004】以下、上記構成要素の相互関係と動作につ
いて説明する。図5に示したシステムにおいて、マイク
ロプロセッサ1のデータバス7は32ビット、記憶装置
2のデータバスは8ビットとする。一般的な半導体メモ
リの記憶装置は、1、4または8ビットのデータバスを
持ち、通常に使用される記憶装置でデータバス幅は8ビ
ットのものが最大である。マイクロプロセッサ1のデー
タバス7の32ビットのうち、8ビット(D24〜3
1)が記憶装置2のデータバスに接続され、残りの24
ビット(D0〜23)は接続されていない。
The mutual relationship and operation of the above components will be described below. In the system shown in FIG. 5, the data bus 7 of the microprocessor 1 is 32 bits and the data bus of the storage device 2 is 8 bits. A general semiconductor memory storage device has a 1-, 4-, or 8-bit data bus, and the most commonly used storage device has a data bus width of 8 bits. Of the 32 bits of the data bus 7 of the microprocessor 1, 8 bits (D24-3
1) is connected to the data bus of the storage device 2 and the remaining 24
Bits (D0-23) are not connected.

【0005】図6は従来のデータバス制御装置における
アクセス動作をタイミングチャートで示す。図におい
て、マイクロプロセッサ1が記憶装置2に対して読み出
しサイクルまたは書き込みサイクルを開始すると、まず
アドレス信号がアドレスバス6に出力され、そのアドレ
スが確定したことを知らせるアドレスストローブ信号8
が活性化される。また、読み出しサイクルか書き込みサ
イクルかを指定するリード/ライト信号9も活性化され
る。ここで所定のアドレスに割り付けされている記憶装
置2に対して、アドレスバス6の上位のビットが接続さ
れているデコーダ3によってチップセレクト信号13が
生成される。読み出しサイクルにおいてはOEコントロ
ール回路5がアウトプットイネーブル信号12を生成
し、書き込みサイクルにおいてはWEコントロール回路
4がライト信号11を生成する。以上の制御信号により
記憶装置2に対して読み出したり、書き込んだりでき
る。
FIG. 6 is a timing chart showing an access operation in a conventional data bus control device. In the figure, when the microprocessor 1 starts a read cycle or a write cycle with respect to the memory device 2, an address signal is first output to the address bus 6 and an address strobe signal 8 for notifying that the address has been determined is given.
Is activated. Further, the read / write signal 9 designating a read cycle or a write cycle is also activated. Here, the chip select signal 13 is generated by the decoder 3 to which the upper bits of the address bus 6 are connected, for the storage device 2 assigned to a predetermined address. In the read cycle, the OE control circuit 5 generates the output enable signal 12, and in the write cycle, the WE control circuit 4 generates the write signal 11. By the above control signals, reading and writing can be performed on the storage device 2.

【0006】上記のように読み出しまたは書き込まれる
データがメモリマップ上でどのような位置関係にあるか
について説明する。図7はマイクロプロセッサ1のアド
レス空間と記憶装置2のメモリアドレスとの関係を模式
図で示す。ここで、記憶装置2のメモリアドレスの開始
アドレスを0番地として説明する。図5に示したよう
に、記憶装置2のメモリアドレスにはマイクロプロセッ
サ1のアドレスがA2から接続されている。これは、デ
ータの8ビット単位が1番地に相当するため、32ビッ
トのマイクロプロセッサ1では1回のアクセスで4個の
番地をアクセスすることになる。また、データバス7の
下位ビット(D0〜D23)が記憶装置2に接続されて
いないため、マイクロプロセッサ1が記憶装置2をアク
セスする場合、マイクロプロセッサ側のアドレスは0、
4、8、C、・・・となる。
The positional relationship of the data read or written as described above on the memory map will be described. FIG. 7 is a schematic diagram showing the relationship between the address space of the microprocessor 1 and the memory address of the storage device 2. Here, the start address of the memory address of the storage device 2 will be described as address 0. As shown in FIG. 5, the memory address of the memory device 2 is connected to the address of the microprocessor 1 from A2. This is because the 8-bit unit of data corresponds to one address, so that the 32-bit microprocessor 1 accesses four addresses in one access. Further, since the lower bits (D0 to D23) of the data bus 7 are not connected to the storage device 2, when the microprocessor 1 accesses the storage device 2, the address on the microprocessor side is 0,
4, 8, C, ...

【0007】このようなアクセスにより記憶装置2側の
アドレスを0、1、2、3、・・・と連続してアクセス
することができる。また、図には示していないが、マイ
クロプロセッサ1内部のレジスタ内に格納する場合で
も、通常、レジスタは32ビットであるから32ビット
中の8ビットしか有効にならない。
By such access, the addresses on the storage device 2 side can be continuously accessed as 0, 1, 2, 3, .... Further, although not shown in the figure, even when the data is stored in a register inside the microprocessor 1, since the register is usually 32 bits, only 8 bits out of 32 bits are valid.

【0008】[0008]

【発明が解決しようとする課題】このような従来のデー
タバス幅制御装置では、記憶装置から32ビットのデー
タを読み出す場合、マイクロプロセッサは記憶装置に対
して4回の連続したアクセスが必要とし、また、マイク
ロプロセッサ内部で8ビットデータを32ビットデータ
に揃えるために多数回の操作が必要となる。したがっ
て、データの処理時間が多くかかり、処理能力が低下す
るという問題点があった。
In such a conventional data bus width control device, when reading 32-bit data from the memory device, the microprocessor requires four consecutive accesses to the memory device. Further, a large number of operations are required in order to arrange 8-bit data into 32-bit data inside the microprocessor. Therefore, there is a problem that it takes a lot of time to process the data and the processing capability is lowered.

【0009】本発明は上記の課題を解決するもので、マ
イクロプロセッサのバス幅より小さいバス幅を有する記
憶装置に対して、1回のアクセスでマイクロプロセッサ
のバス幅のデータをアクセスできるバス幅制御装置を提
供することを目的とする。
The present invention solves the above-described problems, and a bus width control that enables data of the bus width of a microprocessor to be accessed in one access to a storage device having a bus width smaller than that of the microprocessor. The purpose is to provide a device.

【0010】[0010]

【課題を解決するための手段】本発明は上記の目的を達
成するために、中央処理装置と記憶装置との間に介在
し、前記中央処理装置のデータバスのバス幅が前記記憶
装置のデータバスのバス幅の整数倍である前記中央処理
装置のデータを前記記憶装置にバス幅を制御して入出力
するデータバス幅制御装置において、書き込みサイクル
時に前記マイクロプロセッサの出力するデータを一時記
憶する第1の記憶手段と、読み出しサイクル時に前記記
憶装置の出力するデータを一時記憶する第2の記憶手段
と、前記記憶装置のバス幅を指定するサイズデータを基
に前記第1の記憶手段に一時記憶したデータを前記記憶
装置のバス幅に分割して順次前記記憶装置のデータバス
に出力制御する第1のシーケンサ手段と、前記サイズデ
ータを基に前記記憶装置の出力するデータを前記中央処
理装置のバス幅になるまで前記第2の記憶手段に入力制
御する第2のシーケンサ手段と、前記記憶装置のアドレ
スを前記中央処理装置のアドレスデータに対応して制御
するアドレス制御手段とを備え、書き込みサイクルにお
いて、前記中央処理装置の出力するデータを前記第1の
記憶装置に一時記憶したのち、前記第1の記憶手段に記
憶したデータを前記第1のシーケンサ手段により前記記
憶装置のデータバスに分割して出力するとともに、前記
アドレス制御手段から格納するアドレスを順次出力し、
読み出しサイクルにおいて、第2のシーケンサ手段によ
り前記記憶装置のデータを前記アドレス制御手段の指定
するアドレスから前記中央処理装置のバス幅になるまで
順次読み出して前記第2の記憶手段に一時記憶したの
ち、そのデータを前記中央処理装置のデータバスに出力
するようにしたデータバス幅制御装置である。
In order to achieve the above-mentioned object, the present invention is interposed between a central processing unit and a storage device, and the bus width of a data bus of the central processing unit is the data of the storage device. In a data bus width control device for controlling the bus width and inputting / outputting the data of the central processing unit, which is an integral multiple of the bus width of the bus, to / from the storage device, the data output from the microprocessor is temporarily stored in a write cycle. A first storage means, a second storage means for temporarily storing data output from the storage device during a read cycle, and a temporary storage in the first storage means based on size data designating a bus width of the storage device. First sequencer means for dividing the stored data into the bus width of the storage device and sequentially controlling output to the data bus of the storage device; and the storage device based on the size data. Second sequencer means for controlling input of data output from the storage device to the second storage means until the bus width of the central processing unit is reached, and an address of the storage device corresponding to address data of the central processing unit. An address control unit for controlling, and in a write cycle, the data output from the central processing unit is temporarily stored in the first storage unit, and then the data stored in the first storage unit is stored in the first sequencer. The data is divided into the data buses of the storage device by the means and output, and the addresses to be stored are sequentially output from the address control means,
In the read cycle, the data of the storage device is sequentially read by the second sequencer means from the address designated by the address control means until the bus width of the central processing unit is reached and temporarily stored in the second storage means, The data bus width control device outputs the data to the data bus of the central processing unit.

【0011】[0011]

【作用】本発明は上記構成において、書き込みサイクル
において、中央処理装置の出力するデータを第1の記憶
装置に一時記憶したのち、第1の記憶手段に記憶したデ
ータを第1のシーケンサ手段により記憶装置のデータバ
スに分割して出力するとともに、アドレス制御手段から
格納するアドレスを順次出力し、読み出しサイクルにお
いて、第2のシーケンサ手段により記憶装置のデータを
アドレス制御手段の指定するアドレスから中央処理装置
のバス幅になるまで順次読み出して第2の記憶手段に一
時記憶したのち、そのデータを中央処理装置のデータバ
スに出力する。したがって、1回のマイクロプロセッサ
のアクセスで記憶装置の複数回の読み出し、または書き
込み動作を実行させる。
According to the present invention, in the above structure, in the write cycle, the data output from the central processing unit is temporarily stored in the first storage unit, and then the data stored in the first storage unit is stored by the first sequencer unit. The data is divided into the data bus of the device and output, and the addresses to be stored are sequentially output from the address control means, and in the read cycle, the data of the storage device is read from the address designated by the address control means by the second sequencer means. Then, the data is sequentially read out until the bus width becomes equal to, and temporarily stored in the second storage means, and then the data is output to the data bus of the central processing unit. Therefore, a single access of the microprocessor causes the storage device to perform a plurality of read or write operations.

【0012】[0012]

【実施例】【Example】

(実施例1)以下、本発明の一実施例のデータバス幅制
御装置について図面を参照しながら説明する。
(Embodiment 1) A data bus width control device according to an embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は本発明の一実施例のデータバス幅制
御装置の構成をブロック図で示す。図において、1はマ
イクロプロセッサ、2は記憶装置、3はマイクロプロセ
ッサ1のアドレスバス6のアドレスをデコードしてチッ
プセレクト信号を出力するデコーダ、7はマイクロプロ
セッサ1のデータバス、8はアドレスバスが確定したこ
とを示すアドレスストローブ信号、9はマイクロプロセ
ッサ1が読み出し動作であるか書き込み動作であるかを
示すリード/ライト信号、10はアクセスが完了したこ
とを知らせるアクノリッジ信号、11は記憶装置2に対
するライト信号、12は記憶装置2のデータを読み出す
ためのアウトプットイネーブル信号、13は記憶装置2
を選択するチップセレクト信号、14は各基準信号を生
成するWRシーケンサ、16は読み出しサイクル時に所
定のタイミングを生成するRDシーケンサ、18は記憶
装置2のアドレスを生成するアドレスカウンタ、17は
アドレスカウンタ18にロード信号34とカウント信号
35とを供給するアドレスカウンタコントロール回路、
19、20、21および22はそれぞれ書き込みサイク
ル時にマイクロプロセッサ1のデータバス7のデータを
ラッチする第1、第2、第3および第4のライトレジス
タ、23、24、25および26はそれぞれリードサイ
クル時にメモリデータバス28のデータをラッチする第
1、第2、第3および第4のリードレジスタ、27は記
憶装置2に供給されるメモリアドレスバス、29はマイ
クロプロセッサ1の基準信号であるCPUクロック、3
0はアドレスカウンタコントロール回路17の基準信号
であるアドレスカウンタクロック、31と32はそれぞ
れマイクロプロセッサ1のアクセスビットサイズを示す
第1のサイズ信号と第2のサイズ信号、33はリードレ
ジスタ23〜26のクロック信号である第1ないし第4
のリードクロック、36はライトレジスタ19〜22の
アウトプットイネーブル信号である第1ないし第4のレ
ジスタイネーブル信号、37はマイクロプロセッサ1の
データバスをライトレジスタ19ないし22にラッチす
るライトクロックである。
FIG. 1 is a block diagram showing the configuration of a data bus width control device according to an embodiment of the present invention. In the figure, 1 is a microprocessor, 2 is a memory device, 3 is a decoder that decodes an address of an address bus 6 of the microprocessor 1 and outputs a chip select signal, 7 is a data bus of the microprocessor 1, and 8 is an address bus. An address strobe signal indicating the confirmation, 9 is a read / write signal indicating whether the microprocessor 1 is in the read operation or the write operation, 10 is an acknowledge signal notifying that the access is completed, and 11 is to the storage device 2. A write signal, 12 is an output enable signal for reading data from the storage device 2, and 13 is a storage device 2
A WR sequencer that generates each reference signal, 16 an RD sequencer that generates a predetermined timing during a read cycle, 18 an address counter that generates an address of the storage device 2, and 17 an address counter 18 An address counter control circuit for supplying a load signal 34 and a count signal 35 to
Reference numerals 19, 20, 21, and 22 denote first, second, third, and fourth write registers for latching data on the data bus 7 of the microprocessor 1 in a write cycle, and reference numerals 23, 24, 25, and 26 denote a read cycle, respectively. First, second, third and fourth read registers that sometimes latch data on the memory data bus 28, 27 is a memory address bus supplied to the memory device 2, and 29 is a CPU clock which is a reference signal of the microprocessor 1. Three
0 is the address counter clock which is the reference signal of the address counter control circuit 17, 31 and 32 are the first size signal and the second size signal which respectively indicate the access bit size of the microprocessor 1, 33 is the read register 23-26. First to fourth clock signals
, 36 is a first to fourth register enable signal which is an output enable signal for the write registers 19 to 22, and 37 is a write clock for latching the data bus of the microprocessor 1 in the write registers 19 to 22.

【0014】図4は本発明のデータバス幅制御装置を用
いた場合のマイクロプロセッサのデータと記憶装置のデ
ータとの関係を示す模式図である。
FIG. 4 is a schematic diagram showing the relationship between the data of the microprocessor and the data of the storage device when the data bus width control device of the present invention is used.

【0015】以下、上記構成要素の相互関係と動作につ
いて説明する。最初にマイクロプロセッサ1が記憶装置
2から32ビットのデータを読み出す場合の動作につい
て説明する。図2は本発明の一実施例のデータバス幅制
御装置を使用して32ビットデータを記憶装置から読み
出す場合の動作をタイミングチャートで示す。このとき
記憶装置2のメモリデータバス28のバス幅は8ビット
であり、マイクロプロセッサ1のデータバス7のバス幅
は32ビットとする。
The mutual relationship and operation of the above components will be described below. First, the operation when the microprocessor 1 reads 32-bit data from the storage device 2 will be described. FIG. 2 is a timing chart showing the operation of reading 32-bit data from the storage device using the data bus width control device according to the embodiment of the present invention. At this time, the bus width of the memory data bus 28 of the storage device 2 is 8 bits, and the bus width of the data bus 7 of the microprocessor 1 is 32 bits.

【0016】マイクロプロセッサ1が32ビットデータ
の読み出しサイクルを実行する場合、まずアドレスバス
6にアドレス信号が出力され、そのアドレスが確定した
ことを示すアドレスストローブ信号8が活性化されると
ともに、リード/ライト信号9とアクセスサイズを示す
第1および第2のサイズ信号が活性化される。このサイ
ズ信号は2本の信号の組合わせによりアクセスサイズを
決定する。その組合せは(第1のサイズ信号、第2のサ
イズ信号)=(0、0)のとき32ビット、(1、0)
のとき16ビット、(0、1)のときは8ビットを示
す。マイクロプロセッサ1から出力されたアドレスはア
ドレスカウンタ18にロードされる。このロードされた
アドレスがメモリアドレスバス27を介して記憶装置2
へ供給される。また、チップセレクト信号13も活性化
される。ここでRDシーケンサ16はリード/ライト信
号9と第1および第2のサイズ信号とアドレスのA0、
A1を参照して、アウトプットイネーブル信号12を活
性化させる。この動作により記憶装置2から1バイト目
のデータが出力され、第1のリードレジスタ23はRD
シーケンサからリードクロック33が供給されて1バイ
ト目のデータがラッチされる。
When the microprocessor 1 executes a 32-bit data read cycle, first, an address signal is output to the address bus 6, the address strobe signal 8 indicating that the address has been determined is activated, and read / write is performed. The write signal 9 and the first and second size signals indicating the access size are activated. This size signal determines the access size by the combination of two signals. The combination is (first size signal, second size signal) = 32 bits when (0,0), (1,0)
Indicates 16 bits, and (0, 1) indicates 8 bits. The address output from the microprocessor 1 is loaded into the address counter 18. The loaded address is transferred to the storage device 2 via the memory address bus 27.
Is supplied to. The chip select signal 13 is also activated. Here, the RD sequencer 16 uses the read / write signal 9, the first and second size signals and the address A0,
The output enable signal 12 is activated with reference to A1. By this operation, the first byte of data is output from the storage device 2, and the first read register 23 stores the RD
The read clock 33 is supplied from the sequencer and the data of the first byte is latched.

【0017】つぎに、アドレスカウンタコントロール回
路17からカウント信号35がアドレスカウンタ18に
供給され、記憶装置2のアドレスが1だけカウントアッ
プされる。したがって、記憶装置2からは2バイト目の
データが出力され、RDシーケンサのリードクロック3
3により第2リードレジスタ24にラッチされる。この
動作を4回繰り返すことにより4バイト(32ビット)
のデータがリードレジスタにラッチされる。32ビット
のデータが揃った時点でアクセスの完了を示すアクノリ
ッジ信号10がマイクロプロセッサ1に供給され、マイ
クロプロセッサ1がリードレジスタからデータを読み出
してアクセスを完了する。図4はこのときのデータの配
列をブロック図で示す。
Next, the count signal 35 is supplied from the address counter control circuit 17 to the address counter 18, and the address of the storage device 2 is incremented by 1. Therefore, the second byte of data is output from the storage device 2, and the read clock 3 of the RD sequencer is output.
3 is latched in the second read register 24. By repeating this operation 4 times, 4 bytes (32 bits)
Data is latched in the read register. When the 32-bit data is complete, the acknowledge signal 10 indicating the completion of the access is supplied to the microprocessor 1, and the microprocessor 1 reads the data from the read register and completes the access. FIG. 4 is a block diagram showing the data arrangement at this time.

【0018】以上の説明は32ビットのアクセスの場合
を例として説明したが、16ビットまたは8ビットの場
合も同様の動作を行なう。ただし、16ビットの場合は
2バイト、8ビットの場合は1バイトのデータがリード
レジスタにラッチされると同時にアクノリッジ信号10
が生成され、サイクルの完了をマイクロプロセッサ1に
知らせ、読み出しサイクルを終了する。したがって、1
サイクルに要する時間は32ビット、16ビット、8ビ
ットの順に短くなる。したがって、マイクロプロセッサ
1のアクセスサイズに応じたサイクス時間となり、無駄
な時間を一切必要としない。
Although the above description has been made by taking the case of 32-bit access as an example, the same operation is performed in the case of 16-bit or 8-bit. However, when 16 bits are used, 2 bytes and when 8 bits are used, 1 byte of data is latched in the read register and the acknowledge signal 10
Is generated, the microprocessor 1 is notified of the completion of the cycle, and the read cycle is completed. Therefore, 1
The time required for the cycle becomes shorter in the order of 32 bits, 16 bits, and 8 bits. Therefore, the cycle time depends on the access size of the microprocessor 1, and no unnecessary time is required.

【0019】つぎに、マイクロプロセッサ1が記憶装置
2に対して32ビットのデータを書き込む場合の動作に
ついて説明する。図3は本発明のデータバス幅制御装置
を用いて32ビットデータを記憶装置2に書き込む動作
をタイミングチャートで示す。
Next, the operation when the microprocessor 1 writes 32-bit data to the storage device 2 will be described. FIG. 3 is a timing chart showing the operation of writing 32-bit data to the storage device 2 using the data bus width control device of the present invention.

【0020】読み出しサイクルと同様にまず、マイクロ
プロセッサ1のアドレスバス6が出力され、それが確定
したことを知らせるアドレスストローブ信号8が活性化
される。同時にリード/ライト信号9とアクセスサイズ
を示す第1および第2のサイズ信号が活性化される。ま
た、マイクロプロセッサ1はデータバス7上にライトデ
ータを出力し、WRシーケンサはこのライトデータをラ
イトレジスタ19、20、21および22にラッチする
ためにライトクロック37を出力する。ラッチされたデ
ータの第1バイト目をメモリデータバス28に出力する
ためにWRシーケンサから第1ライトレジスタのレジス
タイネーブル信号36が供給される。メモリデータバス
28上に出力された8ビットのデータはWRシーケンサ
から出力されるライト信号11によって記憶装置2に書
き込まれる。読み出し時と同様にここでアドレスカウン
タが1だけカウントアップして記憶装置2に対してつぎ
の8ビットのアドレスを供給する。そしてWRシーケン
サから第2のライトレジスタのレジスタイネーブル信号
が生成され、2バイト目のデータがメモリデータバス2
8に供給される。そして前記と同様にライト信号11が
活性化され、2バイト目のデータが記憶装置2に書き込
まれる。このような動作を4回繰り返すことにより、3
2ビットのデータを記憶装置2に対して書き込むことが
できる。4回の書き込みが終了すると同時に、WRシー
ケンサからアクノリッジ信号10がマイクロプロセッサ
1に供給され、アクセスの完了を知らせる。このように
して1回の書き込みサイクルが終了する。読み出しサイ
クルの説明と同様に、ここでは32ビットのデータの書
き込みについて説明したが、16ビットまたは8ビット
の場合も同じような動作を行なう。ただし、16ビット
の場合は2バイト、8ビットの場合は1バイトのデータ
が記憶装置2に書き込まれたら、すぐにアクノリッジ信
号10が生成され、サイクルの完了をマイクロプロセッ
サ1に知らせ、書き込みサイクルを終了する。したがっ
て、書き込みサイクルにおいても指定されたビット数に
応じたアクセス時間を実現することができる。
Similar to the read cycle, first, the address bus 6 of the microprocessor 1 is output, and the address strobe signal 8 notifying that it has been determined is activated. At the same time, the read / write signal 9 and the first and second size signals indicating the access size are activated. The microprocessor 1 also outputs write data on the data bus 7, and the WR sequencer outputs a write clock 37 to latch this write data in the write registers 19, 20, 21 and 22. A register enable signal 36 of the first write register is supplied from the WR sequencer to output the first byte of the latched data to the memory data bus 28. The 8-bit data output on the memory data bus 28 is written in the storage device 2 by the write signal 11 output from the WR sequencer. Similar to the read operation, the address counter counts up by 1 and supplies the next 8-bit address to the storage device 2. Then, the register enable signal of the second write register is generated from the WR sequencer, and the data of the second byte is stored in the memory data bus 2.
8 are supplied. Then, similarly to the above, the write signal 11 is activated and the data of the second byte is written in the storage device 2. By repeating such operation 4 times, 3
2-bit data can be written to the storage device 2. At the same time when the writing of four times is completed, the WR sequencer supplies an acknowledge signal 10 to the microprocessor 1 to notify the completion of the access. In this way, one write cycle is completed. Similar to the description of the read cycle, writing of 32-bit data has been described here, but the same operation is performed for 16-bit or 8-bit data. However, when data of 2 bytes in the case of 16 bits and 1 byte in the case of 8 bits are written in the memory device 2, an acknowledge signal 10 is generated immediately to notify the microprocessor 1 of the completion of the cycle, and the write cycle is completed. finish. Therefore, it is possible to realize the access time according to the designated number of bits even in the write cycle.

【0021】[0021]

【発明の効果】以上の実施例から明かなように、本発明
は中央処理装置と記憶装置との間に介在し、前記中央処
理装置のデータバスのバス幅が前記記憶装置のデータバ
スのバス幅の整数倍である前記中央処理装置のデータを
前記記憶装置にバス幅を制御して入出力するデータバス
幅制御装置において、書き込みサイクル時に前記マイク
ロプロセッサの出力するデータを一時記憶する第1の記
憶手段と、読み出しサイクル時に前記記憶装置の出力す
るデータを一時記憶する第2の記憶手段と、前記記憶装
置のバス幅を指定するサイズデータを基に前記第1の記
憶手段に一時記憶したデータを前記記憶装置のバス幅に
分割して順次前記記憶装置のデータバスに出力制御する
第1のシーケンサ手段と、前記サイズデータを基に前記
記憶装置の出力するデータを前記中央処理装置のバス幅
になるまで前記第2の記憶手段に入力制御する第2のシ
ーケンサ手段と、前記記憶装置のアドレスを前記中央処
理装置のアドレスデータに対応して制御するアドレス制
御手段とを備え、書き込みサイクルにおいて、前記中央
処理装置の出力するデータを前記第1の記憶装置に一時
記憶したのち、前記第1の記憶手段に記憶したデータを
前記第1のシーケンサ手段により前記記憶装置のデータ
バスに分割して出力するとともに、前記アドレス制御手
段から格納するアドレスを順次出力し、読み出しサイク
ルにおいて、第2のシーケンサ手段により前記記憶装置
のデータを前記アドレス制御手段の指定するアドレスか
ら前記中央処理装置のバス幅になるまで順次読み出して
前記第2の記憶手段に一時記憶したのち、そのデータを
前記中央処理装置のデータバスに出力するようにしたデ
ータバス幅制御装置とすることにより、マイクロプロセ
ッサの一回のアクセスでマイクロプロセッサのデータバ
ス幅のデータを入出力できる。
As is apparent from the above embodiments, the present invention is interposed between the central processing unit and the storage device, and the bus width of the data bus of the central processing unit is the bus of the data bus of the storage device. A data bus width control device for inputting / outputting data of the central processing unit, which is an integral multiple of the width, to / from the storage device by controlling the bus width. The data bus width control device temporarily stores data output from the microprocessor during a write cycle. Storage means, second storage means for temporarily storing data output from the storage device during a read cycle, and data temporarily stored in the first storage means based on size data designating a bus width of the storage device. Is divided into the bus width of the storage device and sequentially controlled to output to the data bus of the storage device, and the output of the storage device is performed based on the size data. Second sequencer means for controlling input of data to the second storage means until the bus width of the central processing unit is reached, and address control for controlling the address of the storage apparatus corresponding to the address data of the central processing unit Means for temporarily storing the data output from the central processing unit in the first storage device in a write cycle, and then storing the data stored in the first storage device by the first sequencer device. The data is divided into the data bus of the device and output, and the address to be stored is sequentially output from the address control means, and in the read cycle, the data of the storage device is changed from the address specified by the address control means by the second sequencer means. The data was sequentially read until the bus width of the central processing unit was reached and temporarily stored in the second storage means. Chi, by a data bus width control device to output the data to the data bus of the central processing unit can input and output data of the data bus width of the microprocessor in a single access of the microprocessor.

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

【図1】本発明の一実施例のデータバス幅制御装置の構
成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a data bus width control device according to an embodiment of the present invention.

【図2】本発明の一実施例のデータバス幅制御装置にお
ける読み出しサイクルの動作を示すタイミングチャート
FIG. 2 is a timing chart showing an operation of a read cycle in the data bus width control device according to the embodiment of the present invention.

【図3】本発明の一実施例のデータバス幅制御装置にお
ける書き込みサイクルの動作を示すタイミングチャート
FIG. 3 is a timing chart showing an operation of a write cycle in the data bus width control device according to the embodiment of the present invention.

【図4】本発明の一実施例のデータバス幅制御装置にお
けるマイクロプロセッサのデータバスとメモリアドレス
との関係を示す模式図
FIG. 4 is a schematic diagram showing a relationship between a data bus of a microprocessor and a memory address in a data bus width control device according to an embodiment of the present invention.

【図5】従来のデータバス幅制御装置の構成を示すブロ
ック図
FIG. 5 is a block diagram showing a configuration of a conventional data bus width control device.

【図6】従来のデータバス幅制御装置におけるアクセス
動作を示すタイミングチャート
FIG. 6 is a timing chart showing an access operation in a conventional data bus width control device.

【図7】従来のマイクロプロセッサのアドレス空間とメ
モリアドレスとの関係を示す概念図
FIG. 7 is a conceptual diagram showing a relationship between a conventional microprocessor address space and a memory address.

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

1 マイクロプロセッサ(中央処理装置) 2 記憶装置 3 デコーダ(アドレス制御手段) 4 WEコントロール回路 5 OEコントロール回路 6 中央処理装置のアドレスバス 7 中央処理装置のデータバス 8 アドレスストローブ信号 15 WRシーケンサ(第1のシーケンサ手段) 16 RDシーケンサ(第2のシーケンサ手段) 17 アドレスカウンタコントロール回路(アドレス制
御手段) 18 アドレスカウンタ(アドレス制御手段) 19〜22 第1〜第4のライトレジスタ(第1の記憶
手段) 23〜26 第1〜第4のリードレジスタ(第2の記憶
手段) 27 記憶装置のアドレスバス 28 記憶装置のデータバス SIZE1 サイズデータ SIZE2 サイズデータ
1 Microprocessor (Central Processing Unit) 2 Storage Device 3 Decoder (Address Control Means) 4 WE Control Circuit 5 OE Control Circuit 6 Address Bus of Central Processing Unit 7 Data Bus of Central Processing Unit 8 Address Strobe Signal 15 WR Sequencer (First 16 sequencer means) 16 RD sequencer (second sequencer means) 17 address counter control circuit (address control means) 18 address counter (address control means) 19-22 first to fourth write registers (first storage means) 23 to 26 1st to 4th read registers (second storage means) 27 address bus of storage device 28 data bus of storage device SIZE1 size data SIZE2 size data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と記憶装置との間に介在
し、前記中央処理装置のデータバスのバス幅が前記記憶
装置のデータバスのバス幅の整数倍である前記中央処理
装置のデータを前記記憶装置にバス幅を制御して入出力
するデータバス幅制御装置において、書き込みサイクル
時に前記マイクロプロセッサの出力するデータを一時記
憶する第1の記憶手段と、読み出しサイクル時に前記記
憶装置の出力するデータを一時記憶する第2の記憶手段
と、前記記憶装置のバス幅を指定するサイズデータを基
に前記第1の記憶手段に一時記憶したデータを前記記憶
装置のバス幅に分割して順次前記記憶装置のデータバス
に出力制御する第1のシーケンサ手段と、前記サイズデ
ータを基に前記記憶装置の出力するデータを前記中央処
理装置のバス幅になるまで前記第2の記憶手段に入力制
御する第2のシーケンサ手段と、前記記憶装置のアドレ
スを前記中央処理装置のアドレスデータに対応して制御
するアドレス制御手段とを備え、書き込みサイクルにお
いて、前記中央処理装置の出力するデータを前記第1の
記憶装置に一時記憶したのち、前記第1の記憶手段に記
憶したデータを前記第1のシーケンサ手段により前記記
憶装置のデータバスに分割して出力するとともに、前記
アドレス制御手段から格納するアドレスを順次出力し、
読み出しサイクルにおいて、第2のシーケンサ手段によ
り前記記憶装置のデータを前記アドレス制御手段の指定
するアドレスから前記中央処理装置のバス幅になるまで
順次読み出して前記第2の記憶手段に一時記憶したの
ち、そのデータを前記中央処理装置のデータバスに出力
するようにしたデータバス幅制御装置。
1. The data of the central processing unit, which is interposed between the central processing unit and the storage unit, wherein the bus width of the data bus of the central processing unit is an integral multiple of the bus width of the data bus of the storage unit. In a data bus width control device for controlling the bus width to and from the storage device, the first storage means for temporarily storing data output from the microprocessor during a write cycle, and the output from the storage device during a read cycle. Second storage means for temporarily storing data, and based on size data designating a bus width of the storage device, the data temporarily stored in the first storage means is divided into bus widths of the storage device and sequentially described above. First sequencer means for controlling output to the data bus of the storage device, and the data output from the storage device based on the size data becomes the bus width of the central processing unit. A second sequencer means for controlling the input to the second storage means and an address control means for controlling the address of the storage device in correspondence with the address data of the central processing unit. The data output from the processing device is temporarily stored in the first storage device, and then the data stored in the first storage device is divided into the data bus of the storage device by the first sequencer device and output. , Sequentially outputting addresses to be stored from the address control means,
In the read cycle, the data of the storage device is sequentially read by the second sequencer means from the address designated by the address control means until the bus width of the central processing unit is reached and temporarily stored in the second storage means, A data bus width control device adapted to output the data to the data bus of the central processing unit.
JP28113291A 1991-10-28 1991-10-28 Data bus width controller Pending JPH05120211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28113291A JPH05120211A (en) 1991-10-28 1991-10-28 Data bus width controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28113291A JPH05120211A (en) 1991-10-28 1991-10-28 Data bus width controller

Publications (1)

Publication Number Publication Date
JPH05120211A true JPH05120211A (en) 1993-05-18

Family

ID=17634815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28113291A Pending JPH05120211A (en) 1991-10-28 1991-10-28 Data bus width controller

Country Status (1)

Country Link
JP (1) JPH05120211A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621694A (en) * 1994-12-28 1997-04-15 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated device with an improved performance
JP2011512599A (en) * 2008-02-15 2011-04-21 フリースケール セミコンダクター インコーポレイテッド Peripheral device module register access method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621694A (en) * 1994-12-28 1997-04-15 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated device with an improved performance
JP2011512599A (en) * 2008-02-15 2011-04-21 フリースケール セミコンダクター インコーポレイテッド Peripheral device module register access method and apparatus
US8977790B2 (en) 2008-02-15 2015-03-10 Freescale Semiconductor, Inc. Peripheral module register access methods and apparatus

Similar Documents

Publication Publication Date Title
US10133498B2 (en) Memory system having a plurality of types of memory chips and a memory controller for controlling the memory chips
US4514808A (en) Data transfer system for a data processing system provided with direct memory access units
US5357473A (en) Semiconductor storage system including defective bit replacement
US6101584A (en) Computer system and semiconductor device on one chip including a memory and central processing unit for making interlock access to the memory
US6662264B2 (en) File memory device and information processing apparatus using the same
US5452427A (en) Data processing device for variable word length instruction system having short instruction execution time and small occupancy area
JP2762138B2 (en) Memory control unit
EP0315194A2 (en) Microcomputer capable of accessing continuous addresses for a short time
JPH05120211A (en) Data bus width controller
US5873122A (en) Memory system performing fast access to a memory location by omitting transfer of a redundant address
JPH07311708A (en) Memory card
US20020188771A1 (en) Direct memory access controller for carrying out data transfer by determining whether or not burst access can be utilized in an external bus and access control method thereof
JPH0792734B2 (en) Memory device
JP2974071B2 (en) Memory IC
JPH09311812A (en) Microcomputer
JPS6014435B2 (en) Storage device
JP2647092B2 (en) Multi-processor system
JPS603049A (en) Bus interface apparatus
JP2546002B2 (en) Parity circuit
JP5270605B2 (en) Microcontroller
JP2000066946A (en) Memory controller
JPS59189433A (en) Data erasing system by direct memory access
JPH01128143A (en) Microcomputer system
JP2001014214A (en) Method for sharing memory and multiprocessor facility using this method
JPH01183753A (en) Input/output controller