JPH0395656A - Bit width variable information processor - Google Patents
Bit width variable information processorInfo
- Publication number
- JPH0395656A JPH0395656A JP23144789A JP23144789A JPH0395656A JP H0395656 A JPH0395656 A JP H0395656A JP 23144789 A JP23144789 A JP 23144789A JP 23144789 A JP23144789 A JP 23144789A JP H0395656 A JPH0395656 A JP H0395656A
- Authority
- JP
- Japan
- Prior art keywords
- bit width
- bus
- address
- bit
- memory
- 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 [Object of the Invention (Industrial Application Field) The present invention relates to a variable bit width information processing device related to a storage device and a communication control device for digital information processing.
(従来の技術)
近年、32ビットや64ビットのデータバス幅を持つマ
イクロプロセッサの出現に伴い、データバスのビット幅
の異なるプロセッサ間で、ビット幅変換を行うケースが
増えてきた。これらの高速なプロセッサにデータを枯渇
させることなく供給することはその高い能力を生かすた
めには重要であり、このため効率のよいビット幅変換方
式が望まれる。(Prior Art) In recent years, with the appearance of microprocessors having data bus widths of 32 bits and 64 bits, cases of bit width conversion between processors having different data bus bit widths have increased. It is important to supply data to these high-speed processors without running out of data in order to take advantage of their high performance, and therefore an efficient bit width conversion method is desired.
複数のバスマスターがデータをやりとりするシステムに
おいて、バスマスターのビット幅が異なる場合、従来は
次に示す2つの方法をとっていた。In a system where a plurality of bus masters exchange data, when the bit widths of the bus masters differ, the following two methods have conventionally been used.
第一の方法は、ビット幅の大きいバスマスターのビット
幅を変化させることができる場合、データバスのビット
幅をビット幅の小さい方に合わせて使用する方法である
。この場合、構成は簡単であるが、ビット幅の大きいバ
スマスターの性能がダウンする。The first method is to match the bit width of the data bus to the smaller bit width when the bit width of a bus master with a larger bit width can be changed. In this case, although the configuration is simple, the performance of the bus master with a large bit width decreases.
第二の方法は、データバスのビット幅をビット幅の大き
い方に合わせて使用する方法である。この場合小さいビ
ット幅のバスマスターからのアクセス時には、一旦ビッ
ト幅の大きいバッファ記憶にデータを書き込んでから読
み書きを行う。このためアクセスにかかるサイクルタイ
ムが増加する。The second method is to match the bit width of the data bus to the larger bit width. In this case, when accessing from a bus master with a small bit width, data is written to a buffer memory with a large bit width and then read/written. This increases the cycle time required for access.
またビット幅の小さいバスマスターがローカルメモリを
持っていて、ビット幅の大きい側のメモリとの間での転
送をこの方法で行う際、ビット幅の小さいバスマスター
は大きいバスマスターより高速にアドレスを更新しなけ
れば、ビット幅の大きいバスの転送能力を生かしきれな
くなる。Also, if a bus master with a small bit width has local memory and transfers to or from memory with a large bit width using this method, the bus master with a small bit width will transfer addresses faster than the larger bus master. If it is not updated, the transfer capacity of a bus with a large bit width cannot be fully utilized.
(発明が解決しようとする課題)
以上のように、複数のバスマスターが通信するシステム
において、バスマスターのビット幅が異なる場合、転送
速度がビット幅の小さいパスマスターによって制約を受
けていた。(Problems to be Solved by the Invention) As described above, in a system in which a plurality of bus masters communicate, when the bus masters have different bit widths, the transfer speed is limited by the path master having a small bit width.
そこで、本発明ではバスマスターのビット幅に差がある
ために転送速度が制約を受けるということを防止する装
置を提供することを目的とする。SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a device that prevents transfer speeds from being restricted due to differences in bit widths of bus masters.
[発明の構或]
(課題を解決するための手段)
複数個のメモリバンクと、アクセス際を持っているバス
マスターにビット幅の大きさに応じて前記メモリバンク
間の切断をするバス切断機構と、アドレスの値とビット
幅の大きさに対応したメモリブロックを選択するデコー
ダを具備することによりビット幅可変の記憶装置を構成
する。[Structure of the Invention] (Means for Solving the Problems) A bus disconnection mechanism that disconnects a plurality of memory banks and a bus master having an access point between the memory banks according to the bit width. and a decoder that selects a memory block corresponding to the address value and bit width size, thereby configuring a variable bit width storage device.
また、ビット幅の小さいバスマスターのローカルメモリ
としてこのようなビット幅可変記憶装置を持ち、ビット
幅の小さいバスマスターからのアドレスを用いてビット
幅の大きいバスとの転送を行うシステムにおいて、第l
の方法としては、ビット幅の小さいバスマスターからの
アドレスを変換して各メモリバンクに供給するアドレス
変換機構を具備させる。In addition, in a system that has such a variable bit width storage device as the local memory of a bus master with a small bit width and transfers with a bus with a large bit width using an address from the bus master with a small bit width,
In this method, an address conversion mechanism is provided that converts an address from a bus master having a small bit width and supplies the converted address to each memory bank.
第2の方法としては、ビット幅の小さいバスマスターに
自身のデータバス幅より大きなワードに対応するアドレ
ス発生装置を具備させる。A second method is to have a bus master with a small bit width equipped with an address generator that can handle words larger than its own data bus width.
(作 用)
複数のメモリバンクがデータバスに接続してあり、それ
らのメモリバンクの間にはバス切断機構が配置されてお
り、複数のバスマスターがメモリアクセスする際の競合
は調停回路によって調停され、常に1つのバスマスター
にのみアクセス雇が与えられているとする。(Function) A plurality of memory banks are connected to a data bus, and a bus disconnection mechanism is placed between these memory banks. Contention when multiple bus masters access memory is arbitrated by an arbitration circuit. Assume that only one bus master is granted access at any given time.
アクセス権を持っているバスマスターのビット幅が小さ
い場合、バス切断機構を接続状態にする。If the bit width of the bus master that has access rights is small, the bus disconnection mechanism is placed in the connected state.
そして、アドレスの値に対応した1つのメモリバンクが
デコーダによって選択させると、小さいビット幅のメモ
リとして動作する。When one memory bank corresponding to the address value is selected by the decoder, it operates as a memory with a small bit width.
一方、アクセス権を持っているバスマスターのビット幅
が大きい場合、バス切断機構を切断状態にする。そして
、アドレスの値に対応した複数のメモリバンクをデコー
ダによって選択させると、大きいビット幅のメモリとし
て動作する。On the other hand, if the bit width of the bus master that has access rights is large, the bus disconnection mechanism is placed in a disconnected state. When a plurality of memory banks corresponding to the address value are selected by the decoder, the memory operates as a memory with a large bit width.
次に、ビット幅の小さいバスマスターのローカルメモリ
としてビット幅可変記憶装置を持ち、ビット幅の小さい
バスマスターからのアドレスを用いてビット幅の大きい
バスとの転送を行うシステムについて考える。Next, consider a system that has a variable bit width storage device as a local memory of a bus master with a small bit width, and uses an address from the bus master with a small bit width to perform transfer with a bus with a large bit width.
ビット幅の小さいバスマスターがD M Aコントロー
ラを持っている場合、既存のD M Aコントローラは
そのデータバスのビット幅を1ワードとしてワード毎に
アドレスをインクリメントする機能は持つが、それ以上
のビット幅を1ワードとしてアドレスを出すことを想定
していない。ゆえにビット幅の小さいDMAコントロー
ラーからのアドレスを直接、ビット幅可変記憶装置への
大きいビット幅用のアドレスとすることはできない。ア
ドレス変換機構はビット幅の小さいDMAコントローラ
ーからのアドレスを、大きいビット幅用のアドレスに変
換して各メモリバンクに供給する。ここで、ビット幅可
変記憶装置を大きいビット幅でアクセスできる状態にし
ておけば、そのビット幅を1ワードとするワード毎の連
続転送が可能になる。If a bus master with a small bit width has a DMA controller, the existing DMA controller has the function of incrementing the address word by word with the bit width of the data bus as one word, but it cannot handle larger bits. It is not assumed that the address will be output with a width of one word. Therefore, an address from a DMA controller with a small bit width cannot be directly used as an address for a large bit width into a variable bit width storage device. The address conversion mechanism converts an address from the DMA controller having a small bit width into an address for a large bit width and supplies the address to each memory bank. Here, if the variable bit width storage device is set in a state where it can be accessed with a large bit width, it becomes possible to perform continuous word-by-word transfer using that bit width as one word.
一方、DMAコントローラ自身に、はじめからビット幅
可変記憶装置によりビット幅が拡大することを想定して
、自身のデータバス幅より大きなワードを1ワードとし
てアドレスを更新できるアドレス発生装置を具備させて
おけば、上記のようなアドレス変換機構を追加しなくと
も大きなビット幅を1ワードとしてワード毎の転送がで
きる。On the other hand, the DMA controller itself should be equipped with an address generator that can update the address by treating a word larger than its own data bus width as one word, assuming that the bit width will be expanded by a variable bit width storage device. For example, word-by-word transfer can be performed using a large bit width as one word without adding an address translation mechanism as described above.
(実施例)
以下、本発明の実施例を説明する。第1図は本発明の一
実施例に係る記憶装置の構成を示す図である。図示のよ
うにこの実施例では、メモリバンクを二つ持ち、その間
を1つのバストランシーバーを介して接続する。第一の
メモリバンクのデタバスは直接8ビットプロセッサ、1
6ビットプロセッサに導かれ、第二のメモリバンクのデ
ータバスは8ビットプロセッサに対してはバストランシ
ーバーを介して接続されることになる。このバストラン
シーバーはアクセス権を持つバスマスターが8ビットプ
ロセッサであり第二のメモリバンクに対応するアドレス
をアクセスする時のみデコーダによりイネーブル状態と
される。このようになっていると、各プロセッサは調停
回路によりメモリのアクセスを許可されているならば、
ビット幅が変動していることを意識することなく、メモ
リをアクセスできる。この場合ビット幅を変換するオー
バーヘッドは無視できる。(Example) Hereinafter, an example of the present invention will be described. FIG. 1 is a diagram showing the configuration of a storage device according to an embodiment of the present invention. As shown in the figure, this embodiment has two memory banks, which are connected via one bus transceiver. The data bus of the first memory bank is directly connected to the 8-bit processor, 1
The data bus of the second memory bank will be connected to the 8-bit processor via a bus transceiver. This bus transceiver is enabled by the decoder only when the bus master having access rights is an 8-bit processor and accesses an address corresponding to the second memory bank. In this case, if each processor is allowed to access memory by the arbitration circuit, then
Memory can be accessed without being aware that the bit width is changing. In this case, the overhead of converting the bit width can be ignored.
第2図はアドレス変換機構を持つビット幅可変記憶装置
の一実施例を示す図である。ここでは第1図のビット幅
可変記憶装置を8ビットプロセッサのローカルメモリと
し、16ビット側のデータバスには16ビット幅のロー
カルメモリを持つ16ビットプロセッサを接続し、これ
らのローカルメモリ間で同期を取りながらデータを転送
する場合について考える。FIG. 2 is a diagram showing an embodiment of a bit width variable storage device having an address conversion mechanism. Here, the bit width variable storage device in Figure 1 is used as local memory of an 8-bit processor, a 16-bit processor with a 16-bit wide local memory is connected to the data bus on the 16-bit side, and synchronization is performed between these local memories. Consider the case where data is transferred while taking data.
8ビットプロセッサに内蔵されるD M Aコントロー
ラが発生するアドレスをアドレス変換機構で変換した−
アドレスをもとに、8ビットプロセッサのローカルメモ
リは16ビット側のデータバス上のデータを読み書きす
る。第3図はアドレス変換機構の一実施例のハードウェ
ア部分の構成を示したものである。この例では2人力1
出力のセレクタを用いてDMAがアクセス権を取った時
にアドレスを1ビット左にシフトする。The address generated by the DMA controller built into the 8-bit processor is converted by the address translation mechanism.
Based on the address, the local memory of the 8-bit processor reads and writes data on the 16-bit data bus. FIG. 3 shows the configuration of the hardware portion of one embodiment of the address translation mechanism. In this example, 2 people 1
The output selector is used to shift the address one bit to the left when the DMA has access rights.
既存の8ビット幅のDMAコントローラーはアドレスを
1刻みで更新する。ところが16ビット幅で転送する時
は2刻みで更新しなければならない。そこでまずDMA
コントローラーの初期化プログラムにおいて先頭アドレ
スをセットする際に1ビット右にシフトした値をセット
する。DMAコントローラーはこのアドレスを1刻みで
更新するが、アドレス変換装置で1ビット左シフトされ
るので、メモリには2刻みで更新されるアドレスが供給
される。Existing 8-bit wide DMA controllers update addresses in 1 increments. However, when transferring data in 16-bit width, it must be updated in increments of 2. So first, DMA
When setting the start address in the controller initialization program, set the value shifted one bit to the right. The DMA controller updates this address in 1 increments, but the address translation device shifts it to the left by 1 bit, so that the memory is supplied with an address that is updated in 2 increments.
上記のD M Aコントローラに既存のものを用いずに
、2刻みでアドレスを更新することのできるカウンタを
採用した8ビットDMAコントローラに置き換えるなら
ば、8ビットCPUと直結したままで、ソフトウエアに
よる右シフトと外付けハードウエアによる左シフトが不
要になる。If you replace the above-mentioned DMA controller with an 8-bit DMA controller that uses a counter that can update the address in increments of 2, without using the existing DMA controller, it will be possible to replace it with an 8-bit DMA controller that uses a counter that can update the address in increments of 2. This eliminates the need for right shifts and left shifts using external hardware.
以上の実施例では8ビットと16ビットの変換について
示したが、バス切断機構の個数や、シフトの回数を変え
ることによって様々なビット幅変換に応用できる。In the above embodiments, 8-bit and 16-bit conversion has been described, but the present invention can be applied to various bit width conversions by changing the number of bus disconnection mechanisms and the number of shifts.
[発明の効果コ
以上のように本発明を用いるならばビット幅に差がある
バスマスター間での通信に於けるビット幅変換のオーバ
ーヘッドを排除することができる。[Effects of the Invention] As described above, by using the present invention, it is possible to eliminate the overhead of bit width conversion in communication between bus masters having different bit widths.
第1図は本発明の一実施例に係る記憶装置の構成を示す
図、第2図はアドレス変換機構を持つビット幅可変記憶
装置の一実施例を示す図、第3図はアドレス変換機構の
一実施例のノ\−ドウエア部分の構成を示す図である。
11、12・・・メモリバンク、13・・・バス切断機
構、14・・・デコーダ、23・・・アドレス変換機構
。FIG. 1 is a diagram showing the configuration of a storage device according to an embodiment of the present invention, FIG. 2 is a diagram showing an embodiment of a bit width variable storage device having an address translation mechanism, and FIG. 3 is a diagram showing an embodiment of a bit width variable storage device having an address translation mechanism. FIG. 2 is a diagram showing the configuration of a hardware portion of an embodiment. 11, 12...Memory bank, 13...Bus disconnection mechanism, 14...Decoder, 23...Address conversion mechanism.
Claims (3)
て前記メモリバンク間の切断をするバス切断手段と、ア
ドレスの値とビット幅の種類に対応した前記メモリバン
クを選択するデコーダとを具備することを特徴とするビ
ット幅可変情報処理装置。(1) A plurality of memory banks, a bus disconnection means that disconnects the memory banks according to the type of bit width, and a decoder that selects the memory bank corresponding to the address value and the type of bit width. What is claimed is: 1. A variable bit width information processing device comprising:
リバンクに供給するアドレス変換手段を更に具備するこ
とを特徴とする請求項1記載のビット幅可変情報処理装
置。2. The variable bit width information processing device according to claim 1, further comprising: address conversion means for converting an address from a bus master and supplying the converted address to the memory bank.
ーのデータバス幅より大きなワードに対応するアドレス
発生手段を前記アドレス変換手段に代えて具備すること
を特徴とする請求項2記載のビット幅可変情報処理装置
。(3) The variable bit width according to claim 2, further comprising address generation means that is directly connected to the bus master and corresponds to a word larger than the data bus width of the bus master, instead of the address conversion means. Information processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23144789A JPH0395656A (en) | 1989-09-08 | 1989-09-08 | Bit width variable information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23144789A JPH0395656A (en) | 1989-09-08 | 1989-09-08 | Bit width variable information processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0395656A true JPH0395656A (en) | 1991-04-22 |
Family
ID=16923672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23144789A Pending JPH0395656A (en) | 1989-09-08 | 1989-09-08 | Bit width variable information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0395656A (en) |
-
1989
- 1989-09-08 JP JP23144789A patent/JPH0395656A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04271452A (en) | Multiprocessor system | |
| JPH04246745A (en) | Information processing device and method | |
| KR930002962A (en) | Programmable controller | |
| JP2000020451A (en) | Device and method for processing information and provision method | |
| KR950009451A (en) | Data processing system | |
| JP2505105B2 (en) | Communications system | |
| JPH0395656A (en) | Bit width variable information processor | |
| JPH0225958A (en) | High-speed data transfer system | |
| JP3077992B2 (en) | Data transmission equipment | |
| JPH03260750A (en) | Dma transfer system | |
| RU1835551C (en) | Data processor | |
| JPH04111153A (en) | Information processor | |
| JPS593776B2 (en) | Communication method in multi-microprocessor system | |
| JPH02217944A (en) | Bus monitoring device in cache memory | |
| JPS6113267B2 (en) | ||
| JPS61221949A (en) | Memory access device | |
| JPS63305451A (en) | Storage system | |
| JPS61260349A (en) | Memory selection system | |
| JPS63100550A (en) | Controlling system for bit map memory | |
| JPH09305562A (en) | Data transfer device | |
| JPS6341973A (en) | Multi-processor system | |
| JPH0437946A (en) | Communication system | |
| JPH039453A (en) | Data transfer controller | |
| JPS63201810A (en) | Time system of information processing system | |
| JPH02135552A (en) | Program executing area expanding system |