JPH0414159A - Data bus switching circuit - Google Patents
Data bus switching circuitInfo
- Publication number
- JPH0414159A JPH0414159A JP11723390A JP11723390A JPH0414159A JP H0414159 A JPH0414159 A JP H0414159A JP 11723390 A JP11723390 A JP 11723390A JP 11723390 A JP11723390 A JP 11723390A JP H0414159 A JPH0414159 A JP H0414159A
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- byte
- data bus
- address
- 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
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はデータバスの切替回路に係り、特にデータの上
位バイトと下位バイトを切替えるデータバス切替回路に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data bus switching circuit, and more particularly to a data bus switching circuit that switches between upper and lower bytes of data.
メモリのバイトアドレスの割り付は方には、第4図(a
)に示すように、DI5〜D8の上位バイトに偶数アド
レス、D7〜DOの下位バイトに奇数アドレスを割り付
けるものと、同図(b)に示すように上位バイトに奇数
アドレス、下位バイトに偶数アドレスを割り付けるもの
の、2種類ある。このため、第4図(a)に示す如くバ
イトアドレスが割り付けられるメモリを持つ制御装置に
端末を接続する場合、その端末のメモリのバイトアドレ
スは同図(a)の割り付は方を選択するのが通常である
。For the allocation of memory byte addresses, see Figure 4 (a).
), the upper byte of DI5 to D8 is assigned an even address, and the lower byte of D7 to DO is assigned an odd address, and as shown in (b) of the same figure, the upper byte is assigned an odd address and the lower byte is an even address. There are two types of assignments. Therefore, when connecting a terminal to a control device that has a memory to which byte addresses are allocated as shown in Figure 4 (a), the byte address allocation of the terminal's memory should be selected as shown in Figure 4 (a). is normal.
というのは、仮に上記の場合に第4図(b)のバイトア
ドレスの割り付けられたメモリを持つ端末を接続すると
、端末から制御装置へバイト単位のDMA (ダイレク
ト・メモリ・アクセス)転送を行なうと、端末では第5
図(b)に示す如く割り付けられているメモリ上のデー
タは、制御装置のメモリ上では第5図(a)に示す如く
割り付けられてしまい、データの上位バイト/下位バイ
トか逆になってしまうからである。よって、制御装置が
第4図(a)に示すメモリのバイトアドレス割り付けを
採用している場合は、端末も同じ同図(a)に示すメモ
リのバイトアドレス割り付けを採用すべきであり、従来
は通常そのようにしている。This is because, in the above case, if a terminal with memory allocated to the byte addresses shown in Figure 4(b) is connected, a byte-by-byte DMA (direct memory access) transfer from the terminal to the control device would result. , the fifth on the terminal
The data in the memory that is allocated as shown in Figure (b) is allocated in the memory of the control device as shown in Figure 5 (a), and the upper byte/lower byte of the data is reversed. It is from. Therefore, if the control device adopts the memory byte address allocation shown in FIG. 4(a), the terminal should also adopt the same memory byte address allocation shown in FIG. 4(a). That's usually how it works.
しかるに、制御装置及び端末からなるシステムを構築し
た後、各種条件の変化等何らかの原因によって制御装置
をそれ以前の制御装置のメモリアドレス割り付は方と異
なる種類のものを使用しなければならなくなることがあ
る。その場合には、前記したように端末から制御装置へ
バイト単位のDMA転送を行なった場合、端末からのデ
ータは制御装置のメモリに上位バイトと下位バイトとが
逆になって格納されてしまうため、従来は制御装置がソ
フトウェア処理によって受信したデータすべてについて
上位バイトと下位バイトの入れ替えを行なう必要があり
、ソフトウェアの負担が大であるという問題があった。However, after constructing a system consisting of a control device and a terminal, it may become necessary to use a different type of memory address allocation for the control device than the previous control device due to changes in various conditions or other reasons. There is. In that case, if a byte-by-byte DMA transfer is performed from the terminal to the control device as described above, the data from the terminal will be stored in the control device's memory with the upper and lower bytes reversed. Conventionally, it has been necessary for the control device to exchange the upper and lower bytes of all received data through software processing, resulting in a problem in that the burden on the software is heavy.
本発明は上記の点に鑑みてなされたちのて、ソフトウェ
アの負担を増やすことなくDMA転送可能なデータバス
切替回路を提供することを目的とする。The present invention was made in view of the above points, and an object of the present invention is to provide a data bus switching circuit capable of DMA transfer without increasing the burden on software.
第1図は本発明の原理構成図を示す。同図中、11はレ
ジスタで、奇数/偶数アドレスと上位/下位nビットの
対応を設定する。12はゲート回路で、レジスタ11の
出力信号とアドレス信号とに基づき、制御信号を発生す
る。13は第1の選択回路で、2nビットのデータバス
15上のnビット以下のデータを制御信号に基づき選択
して。FIG. 1 shows a basic configuration diagram of the present invention. In the figure, 11 is a register that sets the correspondence between odd/even addresses and upper/lower n bits. A gate circuit 12 generates a control signal based on the output signal of the register 11 and the address signal. Reference numeral 13 denotes a first selection circuit which selects data of n bits or less on the 2n bit data bus 15 based on a control signal.
入出力インタフェースへ出力する。14は第2の選択回
路で、nビット以下の入力データを制御信号に基づきデ
ータバス15の中のnビット以下のデータ信号へ選択出
力する。Output to the input/output interface. A second selection circuit 14 selectively outputs input data of n bits or less to a data signal of n bits or less in the data bus 15 based on a control signal.
ゲート回路12はアドレス信号とレジスタ11からの奇
数/偶数アドレスと上位/下位nビットの対応を示す信
号とに応じて第1の選択回路13を制御してnビット以
下のデータを選択出力させるため、第1の選択回路13
からは奇数/偶数アドレスと上位/下位nビットの対応
に応じて上位側又は下位側のnビットのデータか取り出
される。The gate circuit 12 controls the first selection circuit 13 in response to the address signal and the signal indicating the correspondence between odd/even addresses and upper/lower n bits from the register 11 to selectively output data of n bits or less. , first selection circuit 13
From there, upper or lower n bits of data are extracted depending on the correspondence between odd/even addresses and upper/lower n bits.
同様に、第2の選択回路14はnビット以下の入力デー
タをゲート回路12の出力制御信号に基づいてデータバ
ス15の2nビットのデータ中、上位側又は下位側のn
ビット以下のデータとしてデータバス15へ送出される
。従って、本発明ではnビット以下のデータをハードウ
ェア構成で上位側又は下位側のnビットへ振り分けるデ
ータバス切替えかできる。Similarly, the second selection circuit 14 selects the upper or lower n bits of input data from among the 2n bits of data on the data bus 15 based on the output control signal of the gate circuit 12.
The data is sent to the data bus 15 as data of bits or less. Therefore, in the present invention, the data bus can be switched to allocate data of n bits or less to the upper or lower n bits using the hardware configuration.
第2図は本発明の一実施例の回路構成図を示す。 FIG. 2 shows a circuit diagram of an embodiment of the present invention.
同図中、第1図と同一構成部分には同一符号を付し、そ
の説明を省略する。第2図に示すデータノくス切替回路
は、制御装置内又は端末装置内の入出力制御部(1/、
0制御)回路部内に設けられ、前記nの値が“8”の場
合の例で、16ビットのデータバス15.16ビット幅
のレジスタ11゜DMA転送機能を有し、8ビット幅す
なわちバイト単位のIloの入出力データを制御する。In the figure, the same components as in FIG. 1 are denoted by the same reference numerals, and their explanations will be omitted. The data node switching circuit shown in FIG. 2 is an input/output control section (1/,
In this example, the value of n is "8", it has a 16-bit data bus 15, a 16-bit wide register 11°, and a DMA transfer function, and has an 8-bit width, that is, a byte unit. Controls input/output data of Ilo.
第2図において、ゲート回路12は2人力排他的論理和
回路21.イン、バータ22,2人力AND回路23及
び24からなり、排他的論理和回路21には、メモリ空
間を設定するレジスタ11から、データの上位バイトが
偶数アドレスで指定されるアドレス割り付は種類の場合
には“1”、上位バイトが奇数アドレスで指定されるア
ドレス割り付は種類のときは“0”が入力され、またア
ドレス信号の最下位ビットAOが入力される。このアド
レス信号の最下位ビットAOは当然のことなから、アド
レス信号が奇数アドレスのときには“1”、偶数アドレ
スのときには“0″となる。In FIG. 2, the gate circuit 12 is a two-man exclusive OR circuit 21. The exclusive OR circuit 21 has a type of address allocation in which the upper byte of data is specified by an even number address from the register 11 that sets the memory space. In this case, "1" is input, and when the address allocation is of type where the upper byte is specified by an odd number address, "0" is input, and the least significant bit AO of the address signal is input. As a matter of course, the least significant bit AO of this address signal is "1" when the address signal is an odd address, and "0" when the address signal is an even address.
従って、レジスタ11の出力、AOの値及び排他的論理
和回路21の出力との関係は次表に示す如くになる。Therefore, the relationship between the output of the register 11, the value of AO, and the output of the exclusive OR circuit 21 is as shown in the following table.
AND回路23及び24の夫々には受信動作時にのみ“
1”となる信号S/Rが一方の入力端子に印加されるの
で、AND回路23及び24は受信動作時にのみゲート
開状態とされる。AND回路23の他方の入力端子には
排他的論理和回路21の出力信号がインバータ22を介
して入力されるのに対し、AND回路24の他方の入力
端子にはインバータ22を介すことなく直接供給される
。従って、受信動作時には、AND回路23の出力信号
G1とAND回路24の出力信号G2とは互いに異なる
論理値となり、信号Glはトライステートバッファ25
に制御信号として印加され、信号G2はトライステート
バッファ26に制御信号として印加される。Each of the AND circuits 23 and 24 has "" only during reception operation.
Since the signal S/R of 1" is applied to one input terminal, the gates of the AND circuits 23 and 24 are kept open only during reception operation. The other input terminal of the AND circuit 23 has an exclusive OR While the output signal of the circuit 21 is input via the inverter 22, it is directly supplied to the other input terminal of the AND circuit 24 without passing through the inverter 22. Therefore, during reception operation, the output signal of the AND circuit 23 is inputted via the inverter 22. The output signal G1 and the output signal G2 of the AND circuit 24 have different logical values, and the signal G1 is output from the tri-state buffer 25.
The signal G2 is applied to the tri-state buffer 26 as a control signal.
トライステートバッファ25は8ビットの■/○入カデ
カデータ位バイトのデータとしてデータバス15へ送出
する回路て、信号G1が“1”のときのみオンとなる。The tri-state buffer 25 is a circuit that sends 8-bit ■/○ input data as byte data to the data bus 15, and is turned on only when the signal G1 is "1".
また、ドライステートノくツファ26は8ビットのI1
0入カデータを上位ノくイトのデータとしてデータバス
15へ送出する回路で、信号G2か“l”のときのみオ
ンとなる。In addition, the dry state output 26 is an 8-bit I1
This circuit sends 0 input data to the data bus 15 as upper node data, and is turned on only when the signal G2 is "L".
これらのトライステートバッファ25及び26は前記第
2の選択回路14を構成している。These tristate buffers 25 and 26 constitute the second selection circuit 14.
また、排他的論理和回路21の出力信号はマルチプレク
サ27のA/B端子に印加され、論理“0″のときはマ
ルチプレクサ27の端子Aに入力されるシステムバス1
5の下位バイトデータをI10インタフェースへ出力さ
せ、論理“1”のときはマルチプレクサ27の端子Bの
入力上位バイトデー々を出力させる。マルチプレクサ2
7は前記第1の選択回路13を構成している。Further, the output signal of the exclusive OR circuit 21 is applied to the A/B terminal of the multiplexer 27, and when the logic is "0", the system bus 1 is input to the terminal A of the multiplexer 27.
The lower byte data of 5 is output to the I10 interface, and when the logic is "1", the upper byte data input to terminal B of the multiplexer 27 are output. multiplexer 2
7 constitutes the first selection circuit 13.
従って、前記表と以上の動作かられかるように、データ
の上位バイトが偶数アドレスて指定されるアドレス割り
付けの場合には、アドレス信号の最下位ビットAOが“
l”のときにマルチプレクサ27は端子への入力下位バ
イトデータを選択し2、トライステートバッファ25が
オンとなって入力データの下位バイトを選択し、AOか
”0”のときにマルチプレクサ27か端子Bの入力上位
バイトデータを選択し、トライステートバッファ26か
オンとなって入力データの上位バイトを選択する。Therefore, as can be seen from the above table and the above operation, in the case of address allocation where the upper byte of data is specified as an even number address, the lowest bit AO of the address signal is “
When AO is "0", the multiplexer 27 selects the lower byte data input to the terminal 2, the tri-state buffer 25 is turned on and selects the lower byte of the input data, and when AO is "0", the multiplexer 27 selects the lower byte data input to the terminal. The input upper byte data of B is selected, and the tri-state buffer 26 is turned on to select the upper byte of the input data.
一方、データの上位バイトか奇数アドレスで指定される
アドレス割り付けの場合には、上記とは逆にAOか“1
”のとき上位バイトのデータを、またAOか“0”のと
き下位バイトのデータを夫々選択する。On the other hand, in the case of address assignment specified by the upper byte of data or an odd number address, contrary to the above, AO or “1”
”, the upper byte data is selected, and when AO or “0”, the lower byte data is selected.
従って、第3図に示す如く、端末又は制御装置がマイク
ロプロセッサユニット(MPU)3 ]と■/○制御回
路部32とを有し、I10制御回路部32が上記の実施
例回路を有する場合には、第3図(A)に示す如<MP
U31へ奇数アドレスで上位バイトのデータD8〜D1
5を伝送することも、第3図(B)に示す如<MPU3
1へ偶数アドレスで上位アドレスのデータを伝送するこ
とも、その装置に合わせていずれもソフトウェアに負担
をかけることなくできる。これにより、メモリアドレス
の構成が端末と制御装置で異なっても、ソフトウェアの
負担を増すことなく、DMA転送ができる。Therefore, as shown in FIG. 3, when a terminal or a control device has a microprocessor unit (MPU) 3 and a ■/○ control circuit section 32, and the I10 control circuit section 32 has the above embodiment circuit, is as shown in FIG. 3(A).
Upper byte data D8-D1 at odd address to U31
5 can also be transmitted as shown in FIG. 3(B).
It is also possible to transmit data at a higher address using an even number address to the device 1, depending on the device, without placing any burden on the software. As a result, even if the memory address configuration differs between the terminal and the control device, DMA transfer can be performed without increasing the burden on the software.
なお、第2図ではI10出力が常に出力されるようにな
っているが、実際のIloへ出力するまでの制御が必要
であるが、本発明の要旨とは関係がないので説明は省略
する。In FIG. 2, the I10 output is always output, but control is required until it is actually output to Ilo, but this is not related to the gist of the present invention, so the explanation will be omitted.
なお、本発明は上記の実施例に限定されるものではなく
、32ビットデータバス、64ビットデータバスなどに
拡張した場合でも、ゲートが若干増えるだけで同様に実
現可能である。その時のデータ幅も16ビット、32ビ
ットになっても支障はない。It should be noted that the present invention is not limited to the above-described embodiments, and even when expanded to a 32-bit data bus, a 64-bit data bus, etc., the present invention can be similarly implemented with only a slight increase in the number of gates. There is no problem even if the data width at that time becomes 16 bits or 32 bits.
上述の如く、本発明によれば、nビット以下のデータを
ハードウェア構成で上位側又は下位側のnビットへ振り
分けるデータバス切替えができるため、メモリアドレス
の構成か違う機器に接続する場合も、ソフトウェアの負
担を増すことなくDMA転送することができる等の特長
を有するものである。As described above, according to the present invention, it is possible to switch the data bus to distribute data of n bits or less to the upper or lower n bits depending on the hardware configuration, so even when connecting to a device with a different memory address configuration, It has features such as being able to perform DMA transfer without increasing the burden on software.
第1図は本発明の原理構成図、
第2図は本発明の一実施例の回路構成図、第3図は本発
明が適用される装置の一例の構成図、
第4図はメモリのバイトアドレス割り付は方の説明図、
第5図は端末から制御装置のデータ転送時のメモリ上の
データ説明図である。
図において、
11はレジスタ、
12はゲート回路、
13は第1の選択回路、
14は第2の選択回路、
15はデータバス、
25.26はトライステートバッファ、27はマルチプ
レクサ
を示す。
特許出願人 富 士 通 株式会社
it図Figure 1 is a diagram of the principle of the present invention; Figure 2 is a circuit diagram of an embodiment of the present invention; Figure 3 is a diagram of an example of a device to which the present invention is applied; Figure 4 is a memory byte diagram. FIG. 5 is an explanatory diagram of address allocation. FIG. 5 is an explanatory diagram of data on the memory when data is transferred from the terminal to the control device. In the figure, 11 is a register, 12 is a gate circuit, 13 is a first selection circuit, 14 is a second selection circuit, 15 is a data bus, 25 and 26 are tri-state buffers, and 27 is a multiplexer. Patent applicant Fujitsu ITZU Co., Ltd.
Claims (1)
するレジスタ(11)と、 該レジスタ(11)の出力信号とアドレス信号とに基づ
き制御信号を発生するゲート回路(12)と、 2nビットのデータバス(15)上のnビット以下のデ
ータを該制御信号に基づき選択して入出力インタフェー
スへ出力する第1の選択回路(13)と、 nビット以下の入力データを該制御信号に基づき前記デ
ータバス(15)の中のnビット以下のデータ信号へ選
択出力する第2の選択回路(14)と、 を有することを特徴とするデータバス切替回路。[Claims] A register (11) that sets the correspondence between odd/even addresses and upper/lower n bits, and a gate circuit (12) that generates a control signal based on the output signal of the register (11) and the address signal. ), a first selection circuit (13) that selects n-bit or less data on the 2n-bit data bus (15) based on the control signal and outputs it to the input/output interface; A data bus switching circuit comprising: a second selection circuit (14) that selectively outputs data signals of n bits or less in the data bus (15) based on the control signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11723390A JPH0414159A (en) | 1990-05-07 | 1990-05-07 | Data bus switching circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11723390A JPH0414159A (en) | 1990-05-07 | 1990-05-07 | Data bus switching circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0414159A true JPH0414159A (en) | 1992-01-20 |
Family
ID=14706682
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11723390A Pending JPH0414159A (en) | 1990-05-07 | 1990-05-07 | Data bus switching circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0414159A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999021097A1 (en) * | 1997-10-16 | 1999-04-29 | Melco Inc. | Bus conversion adapter |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6329870A (en) * | 1986-07-23 | 1988-02-08 | Seiko Epson Corp | Access control circuit for device |
| JPS641050A (en) * | 1987-03-18 | 1989-01-05 | Hitachi Ltd | Computer system provided with byte order conversion mechanism |
-
1990
- 1990-05-07 JP JP11723390A patent/JPH0414159A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6329870A (en) * | 1986-07-23 | 1988-02-08 | Seiko Epson Corp | Access control circuit for device |
| JPS641050A (en) * | 1987-03-18 | 1989-01-05 | Hitachi Ltd | Computer system provided with byte order conversion mechanism |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999021097A1 (en) * | 1997-10-16 | 1999-04-29 | Melco Inc. | Bus conversion adapter |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5860021A (en) | Single chip microcontroller having down-loadable memory organization supporting "shadow" personality, optimized for bi-directional data transfers over a communication channel | |
| US4374410A (en) | Data processing system | |
| JPH0398145A (en) | microprocessor | |
| JPS5831431A (en) | Interface circuit | |
| US5627975A (en) | Interbus buffer for use between a pseudo little endian bus and a true little endian bus | |
| US6256693B1 (en) | Master/slave data bus employing undirectional address and data lines and request/acknowledge signaling | |
| US5321400A (en) | Serial data interface circuit dealing with a plurality of receiving modes | |
| US4344130A (en) | Apparatus to execute DMA transfer between computing devices using a block move instruction | |
| US6463483B1 (en) | Low latency input-output interface | |
| US4575796A (en) | Information processing unit | |
| JP2776390B2 (en) | Transmission and reception bus interface | |
| JP2000029826A (en) | Three-port fifo data buffer having multilevel caching | |
| JPH0414159A (en) | Data bus switching circuit | |
| US5349693A (en) | Control circuit for digital data transfer | |
| JPH08235105A (en) | Computer system | |
| US20040162924A1 (en) | Apparatus and method for transmitting data by means of direct memory access medium | |
| JP3150005B2 (en) | Serial interface circuit | |
| JPH0478948A (en) | Dma controller | |
| US6144994A (en) | Interface for flexible address bandwidth allocation | |
| JP3611049B2 (en) | Internal register circuit | |
| JPS62252584A (en) | Disk unit control device | |
| KR200142909Y1 (en) | Input/output interface apparatus | |
| JPH0774986B2 (en) | Data bus connection system | |
| JPH0553920A (en) | Structured address generator | |
| JP2002050172A (en) | Fifo control circuit |