JPH03260751A - 32-bit input/output device control method for 16-bit bus processor - Google Patents
32-bit input/output device control method for 16-bit bus processorInfo
- Publication number
- JPH03260751A JPH03260751A JP5891490A JP5891490A JPH03260751A JP H03260751 A JPH03260751 A JP H03260751A JP 5891490 A JP5891490 A JP 5891490A JP 5891490 A JP5891490 A JP 5891490A JP H03260751 A JPH03260751 A JP H03260751A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bit
- bits
- bus
- data bus
- 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
Landscapes
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
(概 要〕
16ビットバスプロセツサ(以下CPUと称す)の32
ビット入出力装置制御(以下32ビットI10と称す)
方法に関し、
Iloとしては高速処理が必要であるが、CPUとして
は、それ程高速処理が必要でない場合、安価にする為に
、32ビットCPU0代わりに16ビットバスCPUを
用い32ピッl−110を制御する場合の、16ビント
ハスCPUの32ビットI10制御方法の提供を目的と
し、
32ビットI10の、
下位16ビットのデータバスは、16ビットバスCPt
J、メモリ、上位16ビットのデータバスのデータを制
御する上位データ制御部の第1の端子及び、2つの入力
側より入力するデータを選択して出力するデータ選択部
の一方の入力側に接続し、該上位16ビットのデータバ
スは、該上位データ制御部の第2の端子及び、該データ
選択部の他方の入力側に接続し、
該データ選択部の出力側の16ビットのデータバスは該
メモリに接続し、
且つ該16ビットバスCPUよりの1回目又は2回目を
示す信号、リード、ライト信号及び、該32ピツ)Il
oのライト信号を入力し、該上位データ制御部及び該デ
ータ選択部への制御信号を生成出力する制御信号生成部
を備えた構成とする。[Detailed Description of the Invention] (Summary) 32 bits of a 16-bit bus processor (hereinafter referred to as CPU)
Bit input/output device control (hereinafter referred to as 32-bit I10)
Regarding the method, high-speed processing is required for Ilo, but if high-speed processing is not required for the CPU, a 16-bit bus CPU is used instead of the 32-bit CPU0 to control the 32-bit CPU 110 to reduce the cost. For the purpose of providing a 32-bit I10 control method for a 16-bit CPU when
J, memory, connected to the first terminal of the upper data control unit that controls the data of the upper 16 bits of the data bus, and one input side of the data selection unit that selects and outputs data input from two input sides. The upper 16-bit data bus is connected to the second terminal of the upper data control unit and the other input side of the data selection unit, and the 16-bit data bus on the output side of the data selection unit is connected to the second terminal of the upper data control unit and the other input side of the data selection unit. A signal connected to the memory and indicating the first or second time from the 16-bit bus CPU, a read signal, a write signal, and the 32-bit bus) Il
The configuration includes a control signal generation section that receives a write signal of o and generates and outputs a control signal to the upper data control section and the data selection section.
[産業上の利用分野]
本発明は、例えば10 M b p sの高速通信を行
う通信部に32ビット入出力装置(以下32ビットI1
0と称す)を用い、これに対するプロセッサ側はそれ程
高速性を要しない装置である場合等で、安価にする為に
、32ビットCPUの代わりに16ビットバスCPUを
用い、32ビットI10を制御する場合の、16ビット
ハスCPtJの32ビン)I10制御方法に関する。[Industrial Application Field] The present invention provides a communication unit that performs high-speed communication of, for example, 10 Mbps, with a 32-bit input/output device (hereinafter referred to as 32-bit I1).
0), and the processor side for this is a device that does not require that high speed, and in order to reduce the cost, a 16-bit bus CPU is used instead of a 32-bit CPU to control the 32-bit I10. 32 bins of 16-bit hash CPtJ) I10 control method.
〔従来の技術]
第3図は従来例の32ビット計算機システムの構成を示
す図である。[Prior Art] FIG. 3 is a diagram showing the configuration of a conventional 32-bit computer system.
従来の計算機システムでは、32ビットCPU20の場
合は、32ビットバスに、32ビット■1021及びメ
モリ22を接続し、16ビット計算機システム等に比し
、高速処理が出来るようにしている。In a conventional computer system, in the case of a 32-bit CPU 20, a 32-bit bus 1021 and a memory 22 are connected to a 32-bit bus to enable faster processing than in a 16-bit computer system.
尚32ピツ)I1021には通常DMA転送機能を有し
ている。Note that the I1021 has a normal DMA transfer function.
しかしながら、Iloとしては高速処理が必要であるが
、CPUとしては、それ程高速処理が必要でなくとも、
従来の計算機システムではCPU。However, although high-speed processing is required for Ilo, even if high-speed processing is not required for the CPU,
In conventional computer systems, the CPU.
Iloとも32ビットのものを使用する為に、高価にな
る問題点がある。Since both Ilo and Ilo use 32 bits, there is a problem that they are expensive.
本発明は、Iloとしては高速処理が必要であるが、C
PUとしては、それ程高速処理が必要でない場合、安価
にする為に、32ビットCPU0代わりに16ビットバ
スCPUを用い32ビットI10を制御する場合の、1
6ビットバスCPUの32ピッl−110制御方法の提
供を目的としている。The present invention requires high-speed processing as Ilo, but C
As for the PU, if high-speed processing is not required, in order to reduce the cost, a 16-bit bus CPU is used instead of the 32-bit CPU0 to control the 32-bit I10.
The purpose of this invention is to provide a 32-pin 110 control method for a 6-bit bus CPU.
[課題を解決するための手段〕 第1図は本発明の原理ブロック図である。[Means for solving problems] FIG. 1 is a block diagram of the principle of the present invention.
第1図に示す如く、32ビットl101の、下位16ビ
ットのデータバス2は、16ビットバスCPU3.メモ
リ4.上位16ビットのデータバス7のデータを制御す
る上位データ制御部5の第1の端子及び、2つの入力側
より入力するデータを選択して出力するデータ選択部6
の一方の入力側に接続し、
上位16ビットのデータバス7は、該上位データ制御部
5の第2の端子及び、該データ選択部6の他方の入力側
に接続し、
該データ選択部6の出力側の16ビットのデータバス9
は該メモリ4に接続し、
且つ該16ビットバスCPU3よりの1回目又は2回目
を示す信号、リード、ライト信号及び、該32ビット■
101のライト信号を入力し、該上位データ制御部5及
び該データ選択部6への制御信号を生成出力する制御信
号生成部8を備え、該16ビットバスCPU3より該3
2ビットl101へ書き込む時は、
1回目は、該下位16ビットのデータバス2よりデータ
を送信すると共に、該制御信号生成部8に1回目を示す
信号及びライト信号を送り、該該制御信号生成部8より
該上位データ制御部5に、取り込み2回目の書込み時送
出せよとの信号を送り、該下位16ビットのデータバス
2より送ったデータを取り込ませ、
2回目の書込み時は、該下位16ビットのデータバス2
よりデータを送信すると共に、該制御信号生成部8に2
回目を示す信号及びライト信号を送り、該該制御信号生
成部8より該上位データ制御部5に2回目の書込み信号
を送り、取り込んでいる1回目の該下位16ビットのデ
ータバス2よりのデータを、該上位16ビットのデータ
バス7より送信させて、32ビット分を書き込ませ、該
32ピツ)1101より読み出す時は、該下位16ビッ
トのデータバス2及び該上位16ビットのデータバス7
より読み込んだデータの内、該下位16ビットのデータ
バス2より読み込んだデータは1回目で読み取り、この
時、該制御信号生成部8に1回目を示す信号及びリード
信号を送り、該制御信号生成部8より該上位データ制御
部5に、取り込み2回目の読み出し時送出せよとの信号
を送り、該上位16ビットのデータバス7より読み込ん
だデータを一旦取り込ませ、2回目の読み取り時、該制
御信号生成部8に2回目を示す信号及びリード信号を送
り、該制御信号生成部8より該上位データ制御部5に、
2回目の読み出し信号を送らせ、取り込んでいる該上位
16ビットのデータバス7よりのデータを、該下位16
ビントのデータバス2より送信させて読み込み、該32
ビット■101より該メモリ4に直接書き込む時は、該
下位16ビットのデータバス2よりのデータは該メモリ
4に送り書込み、この時該制御信号生成部8にライト信
号を送り、該制御信号生成部8より該データ選択部6に
該上位16ビットのデータバス7よりのデータを選択し
て、出力側の該データバス9を介して該メモリ4に送ら
せ書込み、
該16ビットバスCPU3が該メモリ4より読み出す時
は、該下位16ビットのデータバス2を介して読み出す
ようにする。As shown in FIG. 1, the data bus 2 of the lower 16 bits of the 32-bit l101 is connected to the 16-bit bus CPU3. Memory 4. The first terminal of the upper data control unit 5 that controls the data of the upper 16 bits of the data bus 7, and the data selection unit 6 that selects and outputs data input from two input sides.
The upper 16 bit data bus 7 is connected to the second terminal of the upper data control section 5 and the other input side of the data selection section 6. 16-bit data bus 9 on the output side of
is connected to the memory 4, and a signal indicating the first or second time from the 16-bit bus CPU 3, a read, a write signal, and the 32-bit
A control signal generating section 8 receives a write signal of 101 and generates and outputs a control signal to the upper data control section 5 and the data selection section 6.
When writing to the 2-bit l101, for the first time, data is transmitted from the data bus 2 of the lower 16 bits, and a signal indicating the first time and a write signal are sent to the control signal generation section 8, and the control signal generation section 8 sends the data to the control signal generation section 8. The unit 8 sends a signal to the upper data control unit 5 to send it at the time of the second write, and causes the lower 16 bits of the data sent from the data bus 2 to be fetched. 16-bit data bus 2
2 to the control signal generating section 8.
The control signal generation unit 8 sends a second write signal to the upper data control unit 5, and the data from the data bus 2 of the lower 16 bits that is being fetched for the first time is sent. is transmitted from the data bus 7 of the upper 16 bits to write 32 bits, and when reading from the 32 bits) 1101, the data bus 2 of the lower 16 bits and the data bus 7 of the upper 16 bits are transmitted.
Of the data read from the lower 16 bits of the data bus 2, the data read from the data bus 2 is read for the first time, and at this time, a signal indicating the first time and a read signal are sent to the control signal generation unit 8 to generate the control signal. The unit 8 sends a signal to the higher-order data control unit 5 to send it at the time of the second reading, and once the data read from the data bus 7 of the upper 16 bits is taken in, and at the time of the second read, the control A signal indicating the second time and a read signal are sent to the signal generation section 8, and the control signal generation section 8 sends the signal to the upper data control section 5.
A second read signal is sent, and the data from the data bus 7 of the upper 16 bits that has been taken in is transferred to the lower 16 bits.
Transmit and read from Bint's data bus 2, and read the 32
When writing directly to the memory 4 from bit 101, the lower 16 bits of data from the data bus 2 are sent and written to the memory 4, and at this time a write signal is sent to the control signal generator 8 to generate the control signal. The upper 16 bits of data from the data bus 7 are selected by the data selection unit 6 from the unit 8, and written to be sent to the memory 4 via the data bus 9 on the output side. When reading from the memory 4, the data is read via the data bus 2 of the lower 16 bits.
〔作 用]
本発明によれば、16ビットバスCPU3より、32ビ
ット■101に書き込む時は、2回で行う。[Operation] According to the present invention, writing from the 16-bit bus CPU 3 to the 32-bit bus 101 is performed twice.
即ち、1回目は、該下位16ビットのデータバス2より
データを送信しすると共に、該制御信号生成部8に1回
目を示す信号及びライト信号を送り、該該制御信号生成
部8より該上位データ制御部5に、取り込み2回目の書
込み時送出せよとの信号を送り、該下位16ビットのデ
ータバス2より送ったデータを取り込ませ、
2回目の書込み時は、該下位16ビ・ントのデータバス
2よりデータを送信して書き込ませると共に、該制御信
号生成部8に2回目を示す信号及びライト信号を送り、
該該制御信号生成部8より該上位データ制御部5に2回
目の書込み信号を送り、取り込んでいる1回目の該下位
16ビットのデータバス2よりのデータを、上位16ビ
ットのデータバス7より送信させて、都合32ビット分
書き込ませる。That is, for the first time, data is transmitted from the data bus 2 of the lower 16 bits, and a signal indicating the first time and a write signal are sent to the control signal generation section 8, and the control signal generation section 8 transmits data to the upper 16 bits. Sends a signal to the data control unit 5 to send it at the time of the second write, and causes the data sent from the data bus 2 of the lower 16 bits to be fetched. Sending data from the data bus 2 to cause it to be written, and sending a signal indicating the second time and a write signal to the control signal generation unit 8;
The control signal generation unit 8 sends a second write signal to the upper data control unit 5, and the data from the lower 16 bits data bus 2 that has been taken in for the first time is transferred from the upper 16 bits data bus 7. Transmit it and write a total of 32 bits.
該32ビット■101より読み出す時も、16ビットハ
スCPU3は2回で読み出す。When reading from the 32-bit data 101, the 16-bit CPU 3 reads the data twice.
即ち、該下位16ビットのデータバス2及び該上位16
ビントのデータバス7より読み込んだデータの内、該下
位16ビットのデータバス2より読み込んだデータは1
回目で読み取り、この時、該制御信号生成部8に1回目
を示す信号及びリード信号を送り、該制御信号生成部8
より該上位データ制御部5に、取り込み2回目の読み出
し時送出せよとの信号を送り、該上位16ビットのデー
タバス7より読み込んだデータを一旦取り込ませ、2回
目の読み取り時、該制御信号生成部8に2回目を示す信
号及びリード信号を送り、該制御信号生成部8より該上
位データ制御部5に、2回目の読み出し信号を送らせ、
取り込んでいる該上位16ビットのデータバス7よりの
データを、該下位16ビットのデータバス2より送信さ
せて読み取る。That is, the data bus 2 of the lower 16 bits and the upper 16 bits
Among the data read from the bint data bus 7, the data read from the data bus 2 of the lower 16 bits is 1.
At this time, a signal indicating the first reading and a read signal are sent to the control signal generating section 8, and the control signal generating section 8
sends a signal to the higher-order data control unit 5 to send it at the time of the second reading, causes the data read from the data bus 7 of the upper 16 bits to be taken in, and generates the control signal at the time of the second reading. Sending a signal indicating the second reading and a read signal to the unit 8, causing the control signal generating unit 8 to send a second reading signal to the upper data control unit 5;
The fetched data from the data bus 7 of the upper 16 bits is transmitted and read from the data bus 2 of the lower 16 bits.
該32ビット■101より該メモリ4に直接書き込む時
は32ビットを一度に書き込む。When writing directly to the memory 4 from the 32 bits 101, 32 bits are written at once.
即ち、該下位16ビットのデータバス2よりのデータは
該メモリ4に送り書込み、この時該制御信号生成部8に
ライト信号を送り、該制御信号生成部8より該データ選
択部6に該上位16ビットのデータバス7よりのデータ
を選択して、出力側の該データバス9を介して該メモリ
4に送らせ書込む。That is, the lower 16 bits of data from the data bus 2 are sent and written to the memory 4, at this time a write signal is sent to the control signal generator 8, and the control signal generator 8 sends the upper data to the data selector 6. Data from the 16-bit data bus 7 is selected and sent to the memory 4 via the data bus 9 on the output side for writing.
8亥16ビントノマスCPU3が該メモリ4よりS売み
出す時は、該下位16ビットのデータバス2を介して、
32ビ・ント分は2回で読み出すようにする。 よっ
て、32ビットl101より、16ビットバスCPU3
より2回で送られた32ビットのデータを外部に出力す
る時は、32ビット分を一度に出力出来、外部よりのデ
ータを16ビットバスCPU3に渡す時は、32ビット
でメモリ4にDMA転送をし、16ビットバスCPU3
としては精−杯の高速処理をするので、Iloとしては
高速処理が必要であるが、CPUとしては、それ程高速
処理が必要でない場合、安価に構成出来ることとなる。When the 8 to 16-bit nominal CPU 3 sells S from the memory 4, the data bus 2 of the lower 16 bits is used.
32 bits are read out twice. Therefore, from the 32-bit l101, the 16-bit bus CPU3
When outputting 32-bit data sent twice to the outside, 32 bits can be output at once, and when passing external data to the 16-bit bus CPU3, 32-bit data is transferred to memory 4 by DMA. and 16-bit bus CPU3
Since it performs extremely high-speed processing, Ilo requires high-speed processing, but if the CPU does not require such high-speed processing, it can be constructed at low cost.
(実施例) 第2図は本発明の実施例のブロック図である。(Example) FIG. 2 is a block diagram of an embodiment of the invention.
第2図にて、アドレスはアドレスバス10を介して送る
ので、アドレスに関しての説明は以下省略する。In FIG. 2, the address is sent via the address bus 10, so a description of the address will be omitted below.
第2図において、16ビットハスCPU3より32ビッ
ト1101に書き込む時は2回のライトサイクルで書き
込む。In FIG. 2, when writing from the 16-bit CPU 3 to the 32-bit 1101, the writing is performed in two write cycles.
1回目は、下位16ビットのデータバス2よりデータを
送信すると共に、該制御信号生成部8に1回目又は2回
目を示す信号A1を0として1回目を示し、ライト信号
Wを1として書込みを示し、該該制御信号生成部8より
上位データ制御部5に、取り込み2回目のライト時送出
せよとの信号を送り、該下位16ビットのデータバス2
より送ったデータを取り込ませ、
2回目の書込み時は、該下位16ビットのデータバス2
よりデータを送信して書き込ませると共に、制御信号生
成部8にA1を1として2回目を示し、ライト信号Wを
1として書込みを示し、該該制御信号生成部8より該上
位データ制御部5に2回目の書込み信号を送り、取り込
んでいる1回目の該下位16ビットのデータバス2より
のデータを上位16ビットのデータバス7より送信させ
て都合32ビットを書き込ませる。For the first time, data is transmitted from the data bus 2 of the lower 16 bits, and the signal A1 indicating the first or second time is set to 0 to indicate the first time, and the write signal W is set to 1 to write the data. The control signal generation unit 8 sends a signal to the upper data control unit 5 to send it at the time of the second write, and the data bus 2 of the lower 16 bits is
When writing for the second time, data bus 2 of the lower 16 bits is loaded.
At the same time, the control signal generation unit 8 sets A1 to 1 to indicate the second time, sets the write signal W to 1 to indicate writing, and the control signal generation unit 8 sends data to the upper data control unit 5. A second write signal is sent, and the data from the lower 16 bits of the data bus 2 that has been fetched for the first time is transmitted from the upper 16 bits of the data bus 7, so that a total of 32 bits are written.
16ビットバスCPU3にて32ビットl101より読
み出す時も2回のリードサイクルで読み込む。When the 16-bit bus CPU3 reads from the 32-bit l101, the data is read in two read cycles.
1回目で、下位16ビットのデータバス2及び該上位1
6ビットのデータバス7より32ビットのデータを読み
込む。At the first time, the lower 16 bits of data bus 2 and the upper 1
32-bit data is read from the 6-bit data bus 7.
読み込んだデータの内、該下位16ビットのデータバス
2より読み込んだデータは1回目で読み取り、この時、
制御信号生成部8に、1回目又は2回目を示す信号A1
をOとして1回目を示し、リード信号Rを1として読み
込みを示し、制御信号生成部8より上位データ制御部5
に、取り込み2回目の読み出し時送出しろとの信号を送
り、該上位16ビットのデータバス7より読み込んだデ
ータを一旦取り込ませる。Among the read data, the data read from the lower 16 bits of data bus 2 is read the first time, and at this time,
A signal A1 indicating the first or second time is sent to the control signal generation unit 8.
is set to 0 to indicate the first time, the read signal R is set to 1 to indicate reading, and the upper data control unit 5 is output from the control signal generation unit 8.
A signal is sent to the data bus 7 for the second reading, and the data read from the data bus 7 of the upper 16 bits is temporarily taken in.
2回目の読み取り時は、制御信号生成部8にA1を1と
して2回目を示し、リード信号Rを1として読み取りを
示し、該該制御信号生成部8より上位データ制御部5に
2回目の読み取り信号を送らせ、取り込んでいる上位1
6ビットのデータバス7よりのデータを、下位16ビッ
トのデータバス2より送信させて読み取る。When reading for the second time, A1 is set to 1 to indicate the second reading to the control signal generating section 8, read signal R is set to 1 to indicate reading, and the control signal generating section 8 sends the second reading to the upper data control section 5. Top 1 that sends and captures signals
Data from the 6-bit data bus 7 is transmitted and read from the lower 16-bit data bus 2.
次に、32ビットl101よりメモリ4にDMA転送す
る場合につき説明する。Next, the case of DMA transfer from the 32-bit l101 to the memory 4 will be explained.
この場合は、まず32ビットl101より16ビットバ
スCPtJ3に優先権要求信号HOLDを1とする。す
ると、16ビットバスCPU3は優先権を渡す信号HO
LDAを1として優先権を渡す。それから32ビットl
101はメモリ4にDMA転送を行う。In this case, first, the priority request signal HOLD is set to 1 from the 32-bit l101 to the 16-bit bus CPtJ3. Then, the 16-bit bus CPU3 sends a signal HO to pass priority.
Pass priority with LDA as 1. then 32 bit l
101 performs DMA transfer to the memory 4.
第2図の場合は、メモリ4の32ピツ) 9U域を4分
割して、バイト単位で書込みが出来、又バイト単位の領
域より16ビットバスCPU3が読み出すことが出来る
ようにしてあり、どの位置に書き込み又は読み出すかは
、バイトイネーブルBEにて、0〜31ピツ) SN域
に書き込むか、0〜15ビット領域又は16〜31ビッ
ト領域に書き込むか等を指定する。In the case of Figure 2, the 9U area is divided into 4 parts (32 bits of memory 4), so that writing can be done in byte units, and the 16-bit bus CPU 3 can read from the area in byte units. The byte enable BE specifies whether to write to or read from the SN area (0 to 31 bits), the 0 to 15 bit area, or the 16 to 31 bit area.
尚、32ビットl101のA1は、データ選択部6にて
何れのデータバス側を選択させるかを示す信号で、0の
時、上位16ビットのデータバス7側を選択し、1の時
、下位16ビットのデータバス2側を選択させることを
示す。Note that A1 of 32 bits l101 is a signal indicating which data bus side is to be selected by the data selection section 6. When it is 0, the data bus 7 side of the upper 16 bits is selected, and when it is 1, the lower 16 bits are selected. Indicates that the 16-bit data bus 2 side is to be selected.
最初に、メモリ4の0〜31ビット領域にDMA転送す
る場合につき説明する。First, the case of DMA transfer to the 0 to 31 bit area of the memory 4 will be explained.
バイトイネーブルBEをO〜31ビット領域を指定する
信号とし、A1をOとし、制御信号生成部8より、メモ
リ4に対し0〜31ビ・ント領域を指定し又データ選択
部6に上位16ビ・ントのデータバス7側を選択する信
号を入力させ、上位16ビットのデータバス7及び下位
16ビットのデータバス2より32ビットのデータを送
る。Byte enable BE is a signal specifying the 0 to 31 bit area, A1 is set to O, the control signal generation section 8 specifies the 0 to 31 bit area for the memory 4, and the upper 16 bits are sent to the data selection section 6. - Input a signal to select the data bus 7 side of the client, and send 32-bit data from the data bus 7 of the upper 16 bits and the data bus 2 of the lower 16 bits.
すると、下位16ビットのデータバス2よりのデータは
その侭メモリ4に書き込まれ、上位16ビットのデータ
バス7よりのデータは、データバス9を介して、メモリ
4に書き込まれる。Then, the lower 16 bits of data from the data bus 2 are written to the memory 4, and the higher 16 bits of data from the data bus 7 are written to the memory 4 via the data bus 9.
16ビットバスCPU3より読み出す時は、バイトイネ
ーブルBEを例えば0〜15ビット領域又は16〜31
ピツHI域を指定する信号とし、リード信号Rを1とす
る。When reading from the 16-bit bus CPU3, the byte enable BE is set to the 0 to 15 bit area or 16 to 31 bits, for example.
The read signal R is set to 1 as a signal specifying the Pitsu HI region.
すると、制御信号生成部8は、メモリ4に対し0〜15
ピツH1域又は16〜31ビットTiN域を指定し、下
位16ビットのデータバス2を介して読み取る。Then, the control signal generation unit 8 outputs 0 to 15 to the memory 4.
Specify the Pitsu H1 area or the 16 to 31 bit TiN area and read it via the data bus 2 of the lower 16 bits.
尚32ビットl101より、メモリ4のO〜7ビット領
域、0〜15ビット領域に書き込む時は、バイトイネー
ブルBEをその旨を示す信号とし、AIを1とすると、
制御信号生成部8よりデータ選択部6に対し、下位16
ビットのデータバス2側を選択する信号が出力され、下
位16ビ・7トのデータバス2よりの信号が、データ選
択部6゜データバス9を介してメモリ4に入力し、制御
信号生成部8の指定した領域に書き込まれる。When writing to the 0 to 7 bit area and the 0 to 15 bit area of the memory 4 from the 32 bit l101, use the byte enable BE as a signal indicating this and set AI to 1.
The control signal generator 8 sends the lower 16 data to the data selector 6.
A signal for selecting the data bus 2 side of the bits is output, and the signals from the data bus 2 of the lower 16 bits/7 bits are input to the memory 4 via the data selection section 6 and the data bus 9, and are input to the control signal generation section. 8 is written to the specified area.
メモリ4の16〜31ビット領域、又は16〜23ピツ
HJf域に書き込む時は、バイトイネーブルBEをその
旨を示す信号とし、A1を0とすると、制御信号生成部
8よりデータ選択部6に対し、上位16ビットのデータ
バス7側を選択する信号が出力され、上位16ビットの
データバス7よりの信号がメモリ4に入力し、制御信号
生成部8の指定した領域に書き込まれる。When writing to the 16 to 31 bit area or the 16 to 23 bit HJf area of the memory 4, the byte enable BE is used as a signal to indicate this, and when A1 is set to 0, the control signal generation unit 8 sends a signal to the data selection unit 6. , a signal for selecting the data bus 7 side of the upper 16 bits is output, and the signal from the data bus 7 of the upper 16 bits is input to the memory 4 and written to the area specified by the control signal generation unit 8.
16ビットハスCPU3より、バイト単位で読み出す時
は、ハイドイネーブルBEを、0〜7ビット領域、8〜
15ビット領域、16〜23ビットeM域、24〜31
ビット領域を夫々指定する信号として、読み出すように
すればよい。When reading byte by byte from the 16-bit hash CPU3, the hide enable BE is set to 0 to 7 bit area, 8 to 7 bit area.
15-bit area, 16-23 bit eM area, 24-31
It may be read out as a signal specifying each bit area.
このようにすれば、32ビット■101より、16ビッ
トハスCPU3より2回で送られた32ビットのデータ
を外部に出力する時は、32ビット分を一度に出力出来
、外部よりのデータを16ビットバスCPU3に渡す時
は、32ビットでメモリ4にDMA転送をし、16ビッ
トバスCPU3としては精−杯の高速処理をするので、
Iloとしては高速処理が必要であるが、CPUとして
は、それ程高速処理が必要でない場合、安価に構成出来
ることとなる。In this way, when outputting the 32-bit data sent twice from the 16-bit Hass CPU 3 to the outside, 32-bit ■ 101 can output 32 bits at a time, and the data from the outside can be transferred to 16-bit data. When passing it to the bus CPU3, it performs 32-bit DMA transfer to the memory 4, and performs the highest possible high-speed processing as a 16-bit bus CPU3.
Although Ilo requires high-speed processing, if the CPU does not require such high-speed processing, it can be configured at low cost.
(発明の効果]
以上詳細に説明せる如く本発明によれば、32ビシト■
101より、16ビットバスCPU3より2回で送られ
た32ビットのデータを外部に出力する時は、32ビッ
ト分を一度に出力出来、外部よりのデータを16ビット
バスCPU3に渡す時は、32ビットでメモリ4にDM
A転送をし、16ビットハスCPU3としては精−杯の
高速処理をするので、Iloとしては高速処理が必要で
あるが、CPUとしては、それ程高速処理が必要でない
場合、安価に構成出来る効果がある。(Effect of the invention) As explained in detail above, according to the present invention, 32 bisito
101, when outputting the 32-bit data sent twice from the 16-bit bus CPU3 to the outside, 32 bits can be output at once, and when passing the data from the outside to the 16-bit bus CPU3, the 32-bit data can be outputted at once. DM to memory 4 with bits
It performs A transfer and performs extremely high-speed processing as a 16-bit Has CPU3, so high-speed processing is required as Ilo, but as a CPU, if such high-speed processing is not required, it has the effect of being able to be configured at a low cost. .
第1図は本発明の原理ブロック図、 第2図は本発明の実施例のブロック図、図において、 1.21は32ビット入出力装置、 2は下位16ビットのデータバス、 3は16ビットバスプロセツサ、 4.22はメモリ、 5は上位データ制御部、 6はデータ選択部、 7は上位16ビットのデータバス、 8は制御信号生成部、 9はデータバス、 10はアドレスバス、 20は32ビットプロセツサを示す。 FIG. 1 is a block diagram of the principle of the present invention. FIG. 2 is a block diagram of an embodiment of the present invention. 1.21 is a 32-bit input/output device, 2 is the lower 16 bit data bus, 3 is a 16-bit bus processor, 4.22 is memory, 5 is a higher-level data control unit; 6 is a data selection section; 7 is the upper 16 bit data bus, 8 is a control signal generation unit; 9 is a data bus, 10 is the address bus, 20 indicates a 32-bit processor.
Claims (1)
プロセッサ(3)、メモリ(4)、上位16ビットのデ
ータバス(7)のデータを制御する上位データ制御部(
5)の第1の端子及び、2つの入力側より入力するデー
タを選択して出力するデータ選択部(6)の一方の入力
側に接続し、該上位16ビットのデータバス(7)は、
該上位データ制御部(5)の第2の端子及び、該データ
選択部(6)の他方の入力側に接続し、 該データ選択部(6)の出力側の16ビットのデータバ
ス(9)は該メモリ(4)に接続し、且つ該16ビット
バスプロセッサ(3)よりの1回目又は2回目を示す信
号、リード、ライト信号及び、該32ビット入出力装置
(1)のライト信号を入力し、該上位データ制御部(5
)及び該データ選択部(6)への制御信号を生成出力す
る制御信号生成部(8)を備え、 該16ビットバスプロセッサ(3)より該32ビット入
出力装置(1)へ書き込む時は、 1回目は、該下位16ビットのデータバス(2)よりデ
ータを送信すると共に、該制御信号生成部(8)に1回
目を示す信号及びライト信号を送り、該該制御信号生成
部(8)より該上位データ制御部(5)に、取り込み2
回目の書込み時送出せよとの信号を送り、該下位16ビ
ットのデータバス(2)より送ったデータを取り込ませ
、 2回目の書込み時は、該下位16ビットのデータバス(
2)よりデータを送信すると共に、該制御信号生成部(
8)に2回目を示す信号及びライト信号を送り、該該制
御信号生成部(8)より該上位データ制御部(5)に2
回目の書込み信号を送り、取り込んでいる1回目の該下
位16ビットのデータバス(2)よりのデータを、該上
位16ビットのデータバス(7)より送信させて、32
ビットのデータを書込み、 該32ビット入出力装置(1)より読み出す時は、該下
位16ビットのデータバス(2)及び該上位16ビット
のデータバス(7)より読み込んだ32ビットのデータ
の内、該下位16ビットのデータバス(2)より読み込
んだデータは1回目で読み取り、この時、該制御信号生
成部(8)に1回目を示す信号及びリード信号を送り、
該制御信号生成部(8)より該上位データ制御部(5)
に、取り込み2回目の読み出し時送出せよとの信号を送
り、該上位16ビットのデータバス(7)より読み込ん
だデータを一旦取り込ませ、2回目の読み取り時、該制
御信号生成部(8)に2回目を示す信号及びリード信号
を送り、該制御信号生成部(8)より該上位データ制御
部(5)に、2回目の読み出し信号を送らせ、取り込ん
でいる該上位16ビットのデータバス(7)よりのデー
タを、該下位16ビットのデータバス(2)より送信さ
せて読み込み、 該32ビット入出力装置(1)より該メモリ(4)に直
接書き込む時は、該下位16ビットのデータバス(2)
よりのデータは該メモリ(4)に送り書込み、この時該
制御信号生成部(8)にライト信号を送り、該制御信号
生成部(8)より該データ選択部(6)に該上位16ビ
ットのデータバス(7)よりのデータを選択して、出力
側の該データバス(9)を介して該メモリ(4)に送ら
せ書込み、 該16ビットバスプロセッサ(3)が該メモリ(4)よ
り読み出す時は、該下位16ビットのデータバス(2)
を介して読み出すようにしたことを特徴とする16ビッ
トバスプロセッサの32ビット入出力装置制御方法。[Claims] The lower 16-bit data bus (2) of the 32-bit input/output device (1) is connected to the 16-bit bus processor (3), the memory (4), and the upper 16-bit data bus (7). Upper data control unit that controls data (
5) and one input side of a data selection unit (6) that selects and outputs data input from two input sides, and the data bus (7) of the upper 16 bits is connected to
a 16-bit data bus (9) connected to the second terminal of the upper data control section (5) and the other input side of the data selection section (6), and on the output side of the data selection section (6); is connected to the memory (4) and inputs a signal indicating the first or second time, read, and write signals from the 16-bit bus processor (3) and a write signal from the 32-bit input/output device (1). and the upper data control unit (5
) and a control signal generator (8) that generates and outputs a control signal to the data selector (6), and when writing from the 16-bit bus processor (3) to the 32-bit input/output device (1), For the first time, data is transmitted from the data bus (2) of the lower 16 bits, and a signal indicating the first time and a write signal are sent to the control signal generation section (8), and the control signal generation section (8) Then, the upper data control unit (5) imports 2
At the time of the second write, a signal to send is sent and the data sent from the data bus (2) of the lower 16 bits is taken in, and at the time of the second write, the data bus (2) of the lower 16 bits is sent.
2) transmits data from the control signal generator (
A signal indicating the second time and a write signal are sent to 8), and the control signal generation unit (8) sends the second
The data from the lower 16 bits of the data bus (2) that has been captured for the first time is transmitted from the upper 16 bits of the data bus (7) by sending the write signal for the 3rd time.
When writing bit data and reading it from the 32-bit input/output device (1), the 32-bit data read from the lower 16-bit data bus (2) and the upper 16-bit data bus (7) , the data read from the lower 16 bit data bus (2) is read for the first time, and at this time, a signal indicating the first time and a read signal are sent to the control signal generation section (8),
The upper data control unit (5) from the control signal generation unit (8)
A signal is sent to the control signal generation section (8) to cause the data read from the data bus (7) of the upper 16 bits to be taken in once for the second reading. A signal indicating the second reading and a read signal are sent, and the control signal generating section (8) sends the second reading signal to the upper data control section (5), and the upper 16 bits of the data bus ( 7) is transmitted and read from the data bus (2) of the lower 16 bits, and when writing directly to the memory (4) from the 32-bit input/output device (1), the data of the lower 16 bits is read. Bus (2)
The next data is sent and written to the memory (4), at this time a write signal is sent to the control signal generation section (8), and the upper 16 bits are sent from the control signal generation section (8) to the data selection section (6). selects data from the data bus (7) and sends it to the memory (4) via the data bus (9) on the output side and writes the data, and the 16-bit bus processor (3) writes the data to the memory (4). When reading from the data bus (2) of the lower 16 bits,
1. A method for controlling a 32-bit input/output device for a 16-bit bus processor, characterized in that reading is performed via a 16-bit bus processor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5891490A JPH03260751A (en) | 1990-03-09 | 1990-03-09 | 32-bit input/output device control method for 16-bit bus processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5891490A JPH03260751A (en) | 1990-03-09 | 1990-03-09 | 32-bit input/output device control method for 16-bit bus processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03260751A true JPH03260751A (en) | 1991-11-20 |
Family
ID=13098090
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5891490A Pending JPH03260751A (en) | 1990-03-09 | 1990-03-09 | 32-bit input/output device control method for 16-bit bus processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03260751A (en) |
-
1990
- 1990-03-09 JP JP5891490A patent/JPH03260751A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6931462B2 (en) | Memory controller which increases bus bandwidth, data transmission method using the same, and computer system having the same | |
| EP0969384B1 (en) | Method and apparatus for processing information, and providing medium | |
| US7254667B2 (en) | Data transfer between an external data source and a memory associated with a data processor | |
| JPS6111873A (en) | Accessing method to 8-bit and 16-bit peripheral devices by 16-bit microprocessor | |
| JPH03260751A (en) | 32-bit input/output device control method for 16-bit bus processor | |
| US20050223129A1 (en) | Arbitration of data transfer requests | |
| KR100606698B1 (en) | Interface device | |
| JPH0642227B2 (en) | Data transfer device | |
| JPH0756803A (en) | High-speed dma transfer device | |
| JPH05120207A (en) | Data transfer method | |
| JPH03132857A (en) | Inter-cpu data transfer circuit | |
| JPS6232748A (en) | data transfer device | |
| KR19980083459A (en) | Databus Sizing Device | |
| JPS6130300B2 (en) | ||
| KR960014177B1 (en) | Data communication device for a parallel data processing system | |
| US20060004932A1 (en) | Multi-directional data transfer using a single DMA channel | |
| JPH07334453A (en) | Memory access system | |
| JPH07244633A (en) | Interface device | |
| JPH039453A (en) | Data transfer controller | |
| JP2006195810A (en) | High-speed data transfer method | |
| JPH02307149A (en) | Direct memory access control method | |
| KR950033853A (en) | Computer system with interface circuit capable of high speed information transmission | |
| JPH04333954A (en) | information processing equipment | |
| JPH06259379A (en) | Data transfer controller | |
| JPH02299004A (en) | Programmable controller monitoring method |