JP4512334B2 - Bus bridge circuit - Google Patents

Bus bridge circuit Download PDF

Info

Publication number
JP4512334B2
JP4512334B2 JP2003299781A JP2003299781A JP4512334B2 JP 4512334 B2 JP4512334 B2 JP 4512334B2 JP 2003299781 A JP2003299781 A JP 2003299781A JP 2003299781 A JP2003299781 A JP 2003299781A JP 4512334 B2 JP4512334 B2 JP 4512334B2
Authority
JP
Japan
Prior art keywords
data
circuit
cpu
bits
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.)
Expired - Lifetime
Application number
JP2003299781A
Other languages
Japanese (ja)
Other versions
JP2005071075A (en
Inventor
敬士 高本
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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics Corp
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 Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2003299781A priority Critical patent/JP4512334B2/en
Publication of JP2005071075A publication Critical patent/JP2005071075A/en
Application granted granted Critical
Publication of JP4512334B2 publication Critical patent/JP4512334B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Description

この発明は、CPUとI/O回路間にあって、データバス幅の違いに対応した制御動作を可能とするバスブリッジ回路に関する。   The present invention relates to a bus bridge circuit between a CPU and an I / O circuit that enables a control operation corresponding to a difference in data bus width.

現在一般に使用されているCPUには、16ビットのデータバス構成で、32ビットのデータアクセスを可能とするものがある(例えば、NEC社製の「VR14131」参照)。かかる命令の実行時には、連続したアドレスに対して16ビットアクセスを2回繰り返すデータ処理が行われるが、1回目のアクセス時には16ビットアクセスか32ビットアクセスかが判別できない。そこで、各回にアクセスされるアドレスに対応し、データを上位16ビットと下位16ビットに振り分け、2回に分けて16ビットデータとしてデータ処理されることが一般的であった。
特開2002−24164号公報
Some CPUs currently in general use have a 16-bit data bus configuration and allow 32-bit data access (see, for example, “VR14131” manufactured by NEC). At the time of execution of such an instruction, data processing is performed in which 16-bit access is repeated twice for consecutive addresses. However, it is not possible to determine whether 16-bit access or 32-bit access is performed at the first access. Therefore, in general, data is divided into upper 16 bits and lower 16 bits corresponding to the address accessed each time, and data processing is performed as 16-bit data divided into two times.
Japanese Patent Laid-Open No. 2002-24164

しかしながら、CPUからアクセスされる周辺I/O回路によっては、16ビットずつ2回に分けてアクセスすると正常に動作せず、32ビットの同時アクセスが要求されるものも存在する。本発明はかかる不都合に鑑みてなされたものであって、16ビット幅のデータバスを有するCPUから32ビット幅のI/O回路に対して32ビットアクセス可能とするバスブリッジ回路を提供することを目的とする。   However, there are some peripheral I / O circuits accessed from the CPU that do not operate normally when divided into 16 bits and are accessed twice, and require 32-bit simultaneous access. The present invention has been made in view of such inconveniences, and provides a bus bridge circuit that allows 32-bit access to a 32-bit I / O circuit from a CPU having a 16-bit data bus. Objective.

本発明にかかるバスブリッジ回路10は、図1にその全体的な構成を概略的に示す如く、CPU14と、そのCPU14よりデータバス幅が広いI/O回路18の間にあって、データバス幅の違いに対応したデータ受け渡し動作を可能とするものである。   A bus bridge circuit 10 according to the present invention, as schematically shown in FIG. 1, is between a CPU 14 and an I / O circuit 18 having a data bus width wider than that of the CPU 14. The data transfer operation corresponding to is possible.

そして、CPU14から送られるアドレス信号および制御信号の内容を解析し、所定のアドレス信号と制御信号を前記I/O回路18に送る制御部20と、I/O回路18からCPU14に対するデータの読み出し時に動作し、データバス幅の縮小を可能とするデータ読出部22と、CPU14からI/O回路18に対するデータの書き込み時に動作し、データバス幅の拡大を可能とするデータ書込部24とを備えている。   Then, the contents of the address signal and control signal sent from the CPU 14 are analyzed, and a control unit 20 that sends a predetermined address signal and control signal to the I / O circuit 18; and at the time of reading data from the I / O circuit 18 to the CPU 14 A data reading unit 22 that operates and enables the data bus width to be reduced, and a data writing unit 24 that operates when data is written from the CPU 14 to the I / O circuit 18 and enables the data bus width to be increased. ing.

データ読出部22は、CPU14側の第1のデータバス12と、I/O回路18側の第2のデータバス16間にあって、第2のデータバス16から第1のデータバス12に向け、第1のデータバス12で規定されるバス幅のデータの出力時期を規制可能とする第1のバッファ手段と、第2のデータバス16のバス幅と、第1のデータバス12のバス幅の差に対応したデータを一時記憶可能とする第1のラッチ手段とを備えている。   The data reading unit 22 is between the first data bus 12 on the CPU 14 side and the second data bus 16 on the I / O circuit 18 side, and is directed from the second data bus 16 toward the first data bus 12. The difference between the first buffer means that can regulate the output timing of data having a bus width defined by one data bus 12, the bus width of the second data bus 16, and the bus width of the first data bus 12. And first latch means for temporarily storing data corresponding to.

そして、制御部20で、I/O回路18からCPU14に対するデータの読み出し動作が確認されると、第1のバッファ手段を介して前記第2のデータバス16中における所定ビット数分のデータを送る一方、残りのビット数分のデータは第1のラッチ手段に保持する制御が行われる。更に、連続したアドレスからのデータの読み出し動作が確認されると、再度データの読み出し動作を経ることなく、第1のラッチ手段に保持したデータをCPU14に向けて出力するものである。   When the controller 20 confirms the data read operation from the I / O circuit 18 to the CPU 14, the data corresponding to the predetermined number of bits in the second data bus 16 is sent through the first buffer means. On the other hand, control for holding the data for the remaining number of bits in the first latch means is performed. Further, when the data read operation from the continuous address is confirmed, the data held in the first latch means is output to the CPU 14 without going through the data read operation again.

またデータ書込部24は、CPU14側の第1のデータバス12と、I/O回路18側の第2のデータバス16間にあって、第1のデータバス12のバス幅のデータを一時記憶可能とする第2のラッチ手段と、前記第2のデータバス16のバス幅と第1のデータバス12のバス幅の差に対応したデータの出力時期を規制可能とする第2のバッファ手段とを備えている。   The data writing unit 24 is located between the first data bus 12 on the CPU 14 side and the second data bus 16 on the I / O circuit 18 side, and can temporarily store data of the bus width of the first data bus 12. Second latch means, and second buffer means capable of regulating the data output timing corresponding to the difference between the bus width of the second data bus 16 and the bus width of the first data bus 12. I have.

制御部20において、前記CPU14からI/O回路18に対するデータの書き込み動作が確認されると、このデータを第2のラッチ手段に保持する制御が行われ、更に連続したアドレスに対するデータの書込みが確認されると、第2のラッチ手段に保持したデータと第2のバッファ手段から出力されるデータとを同時にI/O回路18に向けて出力する一方、連続したアドレスに対するデータの書込みが確認されない場合には、前記した第2のラッチ手段に保持したデータのみをI/O回路18に送る。   When the data write operation from the CPU 14 to the I / O circuit 18 is confirmed in the control unit 20, control is performed to hold this data in the second latch means, and further data write to continuous addresses is confirmed. Then, the data held in the second latch means and the data output from the second buffer means are simultaneously output to the I / O circuit 18 while the data writing to the continuous addresses is not confirmed. In this case, only the data held in the second latch means is sent to the I / O circuit 18.

本発明は上記のごとく、ラッチ手段とバッファ手段を備え、アクセスするアドレスが連続することが判定されると32ビットを単位としてアクセス可能とすることにより、従来の16ビット幅のデバイスばかりでなく、32ビットのデータバス幅を有するI/O回路に対しても誤動作することなく32ビットアクセスが可能となり、更に従来行われていた2回に分割された16ビットアクセスよりも、命令の実行時間を短縮することが可能となる。   As described above, the present invention includes a latch unit and a buffer unit, and when it is determined that the addresses to be accessed are continuous, it can be accessed in units of 32 bits. 32-bit access can be performed without malfunction even for an I / O circuit having a 32-bit data bus width, and the instruction execution time can be reduced compared to the 16-bit access that was divided twice. It can be shortened.

本発明にかかるバスブリッジ回路10は、図1にその全体的な構成を示すごとく、16ビットのバス幅を有する第1のデータバス12に接続されたCPU14と、32ビットのバス幅を有する第2のデータバス16に接続されたI/O回路18の間にあって、両者のバス幅の違いに対応したデータ処理を可能とするものである。   As shown in FIG. 1, the bus bridge circuit 10 according to the present invention includes a CPU 14 connected to a first data bus 12 having a 16-bit bus width and a 32-bit bus width. Between the I / O circuits 18 connected to the two data buses 16, data processing corresponding to the difference in bus width between the two is possible.

なお本実施例にあっては、ASIC技術を利用し、回路全体をゲートアレイにより1チップ化した例を示すがこれに限らず、各構成部分を個別に回路構成するなど、その実際の回路構成技術については限定されるものではなく、種々変更して実施できることは勿論である。回路の一部をプログラムによりファームウェア化することもできる。   In the present embodiment, an example in which the entire circuit is made into one chip by using a gate array using ASIC technology is shown, but the present invention is not limited to this, and the actual circuit configuration such as individual circuit configuration of each component is shown. Of course, the technology is not limited, and various modifications can be made. A part of the circuit can be converted into firmware by a program.

ここでバスブリッジ回路10は、主として全体的な制御動作を受け持つ制御部20と、データの読み出し時に動作するデータ読出部22と、データの書き込み時に動作するデータ書込部24とから構成される。   Here, the bus bridge circuit 10 includes a control unit 20 mainly responsible for the overall control operation, a data reading unit 22 that operates when reading data, and a data writing unit 24 that operates when writing data.

制御部20は、アドレスデコーダ26と判定回路28を備える。ここでアドレスデコーダ26は、図4〜図7に例示する如く、CPU14側から第1のアドレスデータ30と第1の制御信号群32とを入力し、I/O回路18に向けて第2のアドレスデータ34と第2の制御信号群36とを出力可能とするものである。   The control unit 20 includes an address decoder 26 and a determination circuit 28. Here, as illustrated in FIGS. 4 to 7, the address decoder 26 receives the first address data 30 and the first control signal group 32 from the CPU 14 side, and outputs the second address data to the I / O circuit 18. The address data 34 and the second control signal group 36 can be output.

判定回路28は、入力される第1のアドレスデータ30と第1の制御信号群32の変化を調べ、データ読出部22とデータ書込部24に向けて、第3および第4の制御信号群38・40を出力可能とする。なお、判定回路28の詳細な動作については後記する。   The determination circuit 28 checks changes in the input first address data 30 and the first control signal group 32, and sends third and fourth control signal groups to the data reading unit 22 and the data writing unit 24. 38/40 can be output. The detailed operation of the determination circuit 28 will be described later.

データ読出部22は、1つのラッチ回路42と、2つのバッファ回路44・46とから構成される。第1のラッチ回路42は、16ビット分のデータ幅を有するレジスタであって、出力側を第1のデータバス12に接続する一方、入力側を第2のデータバス16における上位16ビットに接続する。そして、制御部20から出力される第3の制御信号38の入力と連動してI/O回路18から上位16ビット分のデータを取り込んで一時記憶させ、制御信号38の入力と連動してCPU14に向けて16ビット分のデータを同時に出力可能とする。   The data reading unit 22 includes one latch circuit 42 and two buffer circuits 44 and 46. The first latch circuit 42 is a register having a data width of 16 bits, and the output side is connected to the first data bus 12 while the input side is connected to the upper 16 bits in the second data bus 16. To do. Then, in conjunction with the input of the third control signal 38 output from the control unit 20, the upper 16 bits of data are fetched from the I / O circuit 18 and temporarily stored, and in conjunction with the input of the control signal 38, the CPU 14. 16 bits of data can be output simultaneously.

第1および第2の2つのバッファ回路44・46はともに、16ビット分のデータ幅を有し、制御信号38の入力時期に対応して、I/O回路18側からCPU14に向けたデータの出力時期を規制可能とする。更に、第1のバッファ回路44を第2のデータバス16における上位16ビットに接続し、第2のバッファ回路46を下位16ビットに接続することにより、上位および下位の16ビット分のデータを選択的に、CPU14に対して出力可能とする。   Both the first and second buffer circuits 44 and 46 have a data width of 16 bits, and in accordance with the input timing of the control signal 38, data from the I / O circuit 18 side to the CPU 14 is stored. The output time can be regulated. Further, by connecting the first buffer circuit 44 to the upper 16 bits of the second data bus 16 and connecting the second buffer circuit 46 to the lower 16 bits, the upper and lower 16 bits of data are selected. Therefore, it is possible to output to the CPU 14.

データ書込部24もデータ読出部22と略同様の構成であって、16ビット分のデータ幅を有するレジスタで構成される1つのラッチ回路48と、2つのバッファ回路50・52とから構成される。ここで第2のラッチ回路48は、入力側を第1のデータバス12に接続する一方、出力側を第2のデータバス16における下位16ビットに接続する。そして、制御部20から出力される第4の制御信号40の入力と連動し、CPU14から出力される16ビット分のデータを取り込んで一時記憶させる一方、制御信号40の入力と連動し、下位16ビット分のデータとしてI/O回路18に向け出力可能とする。   The data writing unit 24 has substantially the same configuration as that of the data reading unit 22, and includes one latch circuit 48 including a register having a data width of 16 bits and two buffer circuits 50 and 52. The Here, the second latch circuit 48 connects the input side to the first data bus 12, and connects the output side to the lower 16 bits of the second data bus 16. Then, in conjunction with the input of the fourth control signal 40 output from the control unit 20, the 16-bit data output from the CPU 14 is fetched and temporarily stored, while being interlocked with the input of the control signal 40, the lower 16 Bit data can be output to the I / O circuit 18.

第3および第4の2つのバッファ回路50・52はともに、16ビット分のデータ幅を有し、制御信号40の入力時期に対応して、CPU14側からI/O回路18側に向けたデータの出力時期を規制可能とする。更に、第3のバッファ回路50を第2のデータバス16における下位16ビットに接続し、第4のバッファ回路52を上位16ビットに接続することにより、I/O回路18における上位および下位の16ビット分のデータを選択的に出力可能とする。   Both the third and fourth buffer circuits 50 and 52 have a data width of 16 bits, and correspond to the input timing of the control signal 40 and the data from the CPU 14 side to the I / O circuit 18 side. The output time can be regulated. Further, by connecting the third buffer circuit 50 to the lower 16 bits in the second data bus 16 and connecting the fourth buffer circuit 52 to the upper 16 bits, the upper and lower 16 bits in the I / O circuit 18 are connected. Bit data can be selectively output.

次に図2および図3に示す流れ図および図4〜図7の波形図に基づき、判定回路28による、データ読出部22およびデータ書込部24の具体的な制御動作の内容を詳細に説明する。先ず、判定回路28によって、CPU14によるI/O回路18からのデータ読み出しが開始されたことが図4および図5に例示する各信号から判定されると、図2のステップST11から始まるデータリード工程が開始される。   Next, based on the flowcharts shown in FIGS. 2 and 3 and the waveform diagrams of FIGS. 4 to 7, specific control operations of the data reading unit 22 and the data writing unit 24 by the determination circuit 28 will be described in detail. . First, when the determination circuit 28 determines from the signals illustrated in FIGS. 4 and 5 that the data read from the I / O circuit 18 by the CPU 14 is started, the data read process starting from step ST11 in FIG. Is started.

かかる工程に入ると、ステップST11でアドレス30が「4」で割り切れるか否かを調べる。「4」で割り切れない場合は、32ビットデータにおける上位16ビットと判定できる。そこで、ステップST12において該当のアドレスに対してリードアクセスし、第1バッファ回路44を介して第2データバス16中の上位アドレスをCPU14に送ることにより、16ビットアクセスによるデータの読出しを終了する。   Upon entering this process, it is checked in step ST11 whether the address 30 is divisible by “4”. If it is not divisible by “4”, it can be determined as the upper 16 bits in the 32-bit data. Therefore, in step ST12, the corresponding address is read-accessed, and the upper address in the second data bus 16 is sent to the CPU 14 via the first buffer circuit 44, thereby completing the data reading by 16-bit access.

次に、ステップST11の判定がYESであれば、ステップST14でI/O回路18から第2データバス16に32ビット分のデータを一度に読み出す。そして、読み出した32ビットのうち、下位16ビットを第2バッファ回路46を介してCPU14にデータ出力する(ステップST15)と同時に、上位16ビットを第1ラッチ回路42に書き込む(ステップST16)。   Next, if the determination in step ST11 is YES, 32-bit data is read at a time from the I / O circuit 18 to the second data bus 16 in step ST14. The lower 16 bits of the read 32 bits are output to the CPU 14 via the second buffer circuit 46 (step ST15), and at the same time, the upper 16 bits are written to the first latch circuit 42 (step ST16).

次の読出しサイクルに入ると、ステップST17で、例えば図5(a)に示すIOCS信号により連続するアドレス30aへのアクセスが判定されると32ビットアクセスと判断されるので、I/O回路18にはデータの読出し命令を送ることなく、第1ラッチ回路42に保存しておいた上位16ビット分のデータをCPU14に向けて送ることにより、32ビット分のデータ読み出しが完了する(ステップST18)。   When the next read cycle is entered, in step ST17, for example, if access to the continuous address 30a is determined by the IOCS signal shown in FIG. Without sending a data read command, the data for the upper 16 bits stored in the first latch circuit 42 is sent to the CPU 14 to complete the data read for 32 bits (step ST18).

次に、CPU14がデータの書き込み処理を開始したことが図6および図7の信号群から判定された場合、図3のステップST21で先ず8ビットアクセスか否かを調べ、そうであるとステップST22に移って、そのライトデータとアドレスを用いてI/O回路18に対するライトアクセスを行う。   Next, when it is determined from the signal group in FIG. 6 and FIG. 7 that the CPU 14 has started the data writing process, it is first checked in step ST21 in FIG. 3 whether or not 8-bit access has been made, and if so, step ST22. Then, write access to the I / O circuit 18 is performed using the write data and address.

次に、ステップST21の判定がNOである場合、次のステップST23でアドレス30が「4」で割り切れるか否かを調べ、割り切れない場合は上位16ビットに対する書き込みと判断されるので、ステップST22で図6の如くライトアクセスを行う。   Next, when the determination in step ST21 is NO, it is determined whether or not the address 30 is divisible by “4” in the next step ST23. If it is not divisible, it is determined that writing to the upper 16 bits is performed. Write access is performed as shown in FIG.

ステップST23の判定がYESの場合、ステップST24でライトデータを第2ラッチ回路48に保存したあと、ステップST25でIOCS信号から連続アクセスか否かを判定する。連続アクセスでない場合は16ビットアクセスと判定できるので、ステップST26に移り、第2ラッチ回路48に保存しておいた下位16ビットのデータを用いてI/O回路18に対する16ビットのライトアクセスを行う。   If the determination in step ST23 is YES, the write data is stored in the second latch circuit 48 in step ST24, and then in step ST25, it is determined whether or not there is continuous access from the IOCS signal. If it is not continuous access, it can be determined that the access is 16-bit, so the process proceeds to step ST26, and the 16-bit write access to the I / O circuit 18 is performed using the lower 16-bit data stored in the second latch circuit 48. .

逆に連続アクセスの場合は、32ビットアクセスと判断できるので、その時にCPU14から出力されているデータを第4バッファ回路52を介して上位16ビットとし、第2ラッチ回路48に保存されていたデータを下位16ビットとする32ビットのデータを同時に第2データバス16に出力することにより、図7の如く32ビットによるライトアクセスが行われるのである(ステップST27)。   On the other hand, in the case of continuous access, it can be determined that 32-bit access is made. Therefore, the data output from the CPU 14 at that time is set to upper 16 bits via the fourth buffer circuit 52, and the data stored in the second latch circuit 48 is stored. By simultaneously outputting the 32-bit data having the lower 16 bits to the second data bus 16, a 32-bit write access is performed as shown in FIG. 7 (step ST 27).

本発明の全体的な構成を示すブロック図である。It is a block diagram which shows the whole structure of this invention. 判定回路におけるデータ読み出し工程を説明する流れ図である。It is a flowchart explaining the data reading process in a determination circuit. 判定回路におけるデータ書き込み工程を説明する流れ図である。It is a flowchart explaining the data writing process in a determination circuit. 16ビットアクセスによるデータの読み出し時にバスブリッジ回路へ入出力される信号群の一例を示す波形図であって、(a)はCPUに入出力される信号群を、(b)はI/O回路に入出力される信号群を示す。6 is a waveform diagram showing an example of a signal group input / output to / from the bus bridge circuit when data is read by 16-bit access, where (a) shows a signal group input / output to / from the CPU, and (b) shows an I / O circuit Shows a group of signals to be input / output. 32ビットアクセスによるデータの読み出し時にバスブリッジ回路へ入出力される信号群の一例を示す波形図であって、(a)はCPUに入出力される信号群を、(b)はI/O回路に入出力される信号群を示す。FIG. 4 is a waveform diagram showing an example of a signal group input / output to / from the bus bridge circuit when data is read by 32-bit access, where (a) shows a signal group input / output to / from a CPU and (b) shows an I / O circuit Shows a group of signals to be input / output. 16ビットアクセスによるデータの書き込み時にバスブリッジ回路へ入出力される信号群の一例を示す波形図であって、(a)はCPUに入出力される信号群を、(b)はI/O回路に入出力される信号群を示す。6 is a waveform diagram showing an example of a signal group input / output to / from the bus bridge circuit when data is written by 16-bit access, where (a) shows a signal group input / output to / from the CPU, and (b) shows an I / O circuit Shows a group of signals to be input / output. 32ビットアクセスによるデータの書き込み時にバスブリッジ回路へ入出力される信号群の一例を示す波形図であって、(a)はCPUに入出力される信号群を、(b)はI/O回路に入出力される信号群を示す。FIG. 4 is a waveform diagram showing an example of a signal group input / output to / from the bus bridge circuit when data is written by 32-bit access, where (a) shows a signal group input / output to / from a CPU, and (b) shows an I / O circuit. Shows a group of signals to be input / output.

符号の説明Explanation of symbols

10 バスブリッジ回路
12 第1のデータバス
14 CPU
16 第2のデータバス
18 I/O回路
20 制御部
22 データ読出部
24 データ書込部
26 アドレスデコーダ
28 判定回路
30 第1のアドレスデータ
32 第1の制御信号群
34 第2のアドレスデータ
36 第2の制御信号群
38 第3の制御信号群
40 第4の制御信号群
42 第1ラッチ回路
44 第1バッファ回路
46 第2バッファ回路
48 第2ラッチ回路
50 第3バッファ回路
52 第4バッファ回路
10 bus bridge circuit 12 first data bus 14 CPU
16 Second Data Bus 18 I / O Circuit 20 Control Unit 22 Data Reading Unit 24 Data Writing Unit 26 Address Decoder 28 Decision Circuit 30 First Address Data 32 First Control Signal Group 34 Second Address Data 36 Second 2 control signal group 38 third control signal group 40 fourth control signal group 42 first latch circuit 44 first buffer circuit 46 second buffer circuit 48 second latch circuit 50 third buffer circuit 52 fourth buffer circuit

Claims (3)

16ビットのデータバス幅を有するCPU(14)と、32ビットのデータバス幅を有するI/O回路(18)の間にあって、データバス幅の違いに対応したデータ受け渡し動作を可能とするバスブリッジ回路であって、
前記CPU(14)から送られるアドレスデータおよび制御信号の内容を解析し、所定のアドレスデータと制御信号を前記I/O回路(18)に送る制御部(20)と、
前記CPU(14)による前記I/O回路(18)からCPU(14)に対するデータ読出し時に動作し、データバス幅の縮小を可能とするデータ読出部(22)とを備え
該データ読出部(22)は、
前記CPU(14)側の第1のデータバス(12)と、前記I/O回路(18)側の第2のデータバス(16)間にあって、該第2のデータバス(16)から第1のデータバス(12)に向け、該第1のデータバス(12)で規定されるバス幅のデータの出力時期を、上位16ビットと下位16ビットとで個別に規制可能とする第1および第2の2つのバッファ回路(44)(46)と、
前記第2のデータバス(16)における上位16ビットのデータを一時記憶可能とする第1のラッチ回路(42)とを備える一方、
前記制御部(20)には判定回路(28)を更に備え、
該判定回路(28)で前記CPU(14)から出力される読出しアドレスが「4」で割り切れるか否かを調べ、
「4」で割り切れない場合は上位16ビットデータのリードアクセスと判定し、前記I/O回路(18)における該当のアドレスにリードアクセスして前記第1のバッファ回路(44)を介して前記第2のデータバス(16)中における上位16ビットのデータを前記CPU(14)に送ることにより16ビットアクセスによるデータ読出し動作を終了するが、
「4」で割り切れる場合は32ビット分のデータを前記I/O回路(18)から一度に読み出し、読み出した32ビット分のデータのうち下位16ビットのデータを前記第2のバッファ回路(46)を介して前記CPU(14)に送ると同時に、上位16ビットのデータは前記第1のラッチ回路(42)に保持する制御が行われ、
更に前記CPU(14)から出力される読出しアドレスに連続したアドレスに対するデータの読み出しが確認されないとその読み出し動作は終了するが、確認されると、前記第1のラッチ回路(42)に保持した上位16ビットのデータを前記CPU(14)に向けて出力することを特徴とするバスブリッジ回路。
A bus bridge between a CPU (14) having a data bus width of 16 bits and an I / O circuit (18) having a data bus width of 32 bits and enabling a data transfer operation corresponding to the difference in the data bus width A circuit,
A control unit (20) for analyzing the contents of address data and control signals sent from the CPU (14) and sending predetermined address data and control signals to the I / O circuit (18);
The work from the CPU (14) the I / O circuit according to (18) at the time of data reading from the CPU (14), comprising data reading section that enables a reduction in the data bus width and (22),
The data reading unit (22)
Between the first data bus (12) on the CPU (14) side and the second data bus (16) on the I / O circuit (18) side, from the second data bus (16) to the first data bus (16). To the data bus (12), the output timing of the data of the bus width defined by the first data bus (12) can be individually regulated by upper 16 bits and lower 16 bits. Two buffer circuits (44) (46),
A first latch circuit (42) for temporarily storing upper 16-bit data in the second data bus (16),
The control unit (20) further includes a determination circuit (28),
The determination circuit (28) checks whether the read address output from the CPU (14) is divisible by “4”.
If it is not divisible by “4”, it is determined that the upper 16-bit data is read access, the corresponding address in the I / O circuit (18) is read-accessed, and the first buffer circuit (44) is used for the first access. The data read operation by 16-bit access is completed by sending the upper 16-bit data in the data bus (16) of 2 to the CPU (14).
When it is divisible by “4”, 32 bits of data are read from the I / O circuit (18) at a time, and the lower 16 bits of the read 32 bits of data are read out from the second buffer circuit (46). At the same time, the upper 16 bits of data are controlled to be held in the first latch circuit (42).
Further, if the reading of data for addresses consecutive to the reading address output from the CPU (14) is not confirmed, the reading operation ends. However, if confirmed, the higher order held in the first latch circuit (42). A bus bridge circuit which outputs 16-bit data to the CPU (14).
16ビットのデータバス幅を有するCPU(14)と、32ビットのデータバス幅を有するI/O回路(18)の間にあって、データバス幅の違いに対応したデータ受け渡し動作を可能とするバスブリッジ回路であって、
前記CPU(14)から送られるアドレスデータおよび制御信号の内容を解析し、所定のアドレスデータと制御信号を前記I/O回路(18)に送る制御部(20)と、
前記CPU(14)からI/O回路(18)に対するデータ書込時に動作し、データバス幅の拡大を可能とするデータ書込部(24)とを備え、
該データ書込部(24)は、
前記CPU(14)側の第1のデータバス(12)と、前記I/O回路(18)側の第2のデータバス(16)間にあって、前記第1のデータバス(12)における下位16ビットのデータを一時記憶可能とする第2のラッチ回路(48)と、前記第1のデータバス(12)における上位16ビットのデータの出力時期を規制可能とする第4のバッファ回路(52)とを備える一方、
前記制御部(20)には判定回路(28)を更に備え、
該判定回路(28)で前記CPU(14)による書込アドレスが「4」で割り切れるか否かを調べ、
「4」で割り切れない場合は上位16ビットデータのライトアクセスと判定し、前記第4のバッファ回路(52)を介して前記第2のデータバス(16)に上位16ビットのデータを送って前記I/O回路(18)における該当のアドレスにライトアクセスすることにより16ビットアクセスによるデータ書込み動作を終了するが、
「4」で割り切れる場合は、下位16ビットのデータを前記第2のラッチ回路(48)に保持する制御が行われ、
更に前記CPU(14)から出力される書込アドレスに連続したアドレスに対するデータの書込みが確認されると、前記第2のラッチ回路(48)に保持したデータを下位16ビットのデータとし、その時にCPU(14)から出力されているデータを前記第4のバッファ回路(52)を介して上位16ビットのデータとする32ビットのデータを同時に前記I/O回路(18)に向けて出力してライトアクセスする一方、
連続したアドレスに対するデータの書込みが確認されない場合には、前記第2のラッチ回路(48)に保持した下位16ビットのデータのみを前記I/O回路(18)に送ることを特徴とするバスブリッジ回路。
A bus bridge between a CPU (14) having a data bus width of 16 bits and an I / O circuit (18) having a data bus width of 32 bits and enabling a data transfer operation corresponding to the difference in the data bus width A circuit,
A control unit (20) for analyzing the contents of address data and control signals sent from the CPU (14) and sending predetermined address data and control signals to the I / O circuit (18);
A data writing section (24) that operates at the time of data writing from the CPU (14) to the I / O circuit (18) and enables the data bus width to be expanded;
The data writing unit (24)
Between the first data bus (12) on the CPU (14) side and the second data bus (16) on the I / O circuit (18) side, the lower 16 in the first data bus (12) A second latch circuit (48) capable of temporarily storing bit data, and a fourth buffer circuit (52) capable of regulating the output timing of upper 16 bits of data on the first data bus (12) . While comprising
The control unit (20) further includes a determination circuit (28),
The determination circuit (28) checks whether the write address by the CPU (14) is divisible by “4”,
If it is not divisible by “4”, it is determined that the upper 16-bit data is a write access, and the upper 16-bit data is sent to the second data bus (16) via the fourth buffer circuit (52). The data write operation by 16-bit access is completed by performing write access to the corresponding address in the I / O circuit (18).
When it is divisible by “4”, control is performed to hold the lower 16 bits of data in the second latch circuit (48).
Further the writing of the data is confirmed for continuous addresses in the outputted write address from said CPU (14), the data held in the second latch circuit (48) and the lower 16 bits of the data, when the The 32-bit data, which is the upper 16 bits of data output from the CPU (14) through the fourth buffer circuit (52) , is simultaneously output to the I / O circuit (18). While having write access
A bus bridge characterized in that when writing data to consecutive addresses is not confirmed, only the lower 16 bits of data held in the second latch circuit (48) are sent to the I / O circuit (18). circuit.
16ビットのデータバス幅を有するCPU(14)と、32ビットのデータバス幅を有するI/O回路(18)の間にあって、データバス幅の違いに対応したデータ受け渡し動作を可能とするバスブリッジ回路であって、
前記CPU(14)から送られるアドレスデータおよび制御信号の内容を解析し、所定のアドレスデータと制御信号を前記I/O回路(18)に送る制御部(20)と、
前記CPU(14)による前記I/O回路(18)からCPU(14)に対するデータ読出し時に動作し、データバス幅の縮小を可能とするデータ読出部(22)と、
前記CPU(14)からI/O回路(18)に対するデータ書込時に動作し、データバス幅の拡大を可能とするデータ書込部(24)とを備え、
前記データ読出部(22)は、
前記CPU(14)側の第1のデータバス(12)と、前記I/O回路(18)側の第2のデータバス(16)間にあって、該第2のデータバス(16)から第1のデータバス(12)に向け、該第1のデータバス(12)で規定されるバス幅のデータの出力時期を、上位16ビットと下位16ビットとで個別に規制可能とする第1および第2の2つのバッファ回路(44)(46)と、
前記第2のデータバス(16)における上位16ビットのデータを一時記憶可能とする第1のラッチ回路(42)とを備える一方、
前記制御部(20)には判定回路(28)を更に備え、
該判定回路(28)で前記CPU(14)から出力される読出しアドレスが「4」で割り切れるか否かを調べ、
「4」で割り切れない場合は上位16ビットデータのリードアクセスと判定し、前記I/O回路(18)における該当のアドレスにリードアクセスして前記第1のバッファ回路(44)を介して前記第2のデータバス(16)中における上位16ビットのデータを前記CPU(14)に送ることにより16ビットアクセスによるデータ読出し動作を終了するが、
「4」で割り切れる場合は32ビット分のデータを前記I/O回路(18)から一度に読み出し、読み出した32ビット分のデータのうち下位16ビットのデータを前記第2のバッファ回路(46)を介して前記CPU(14)に送ると同時に、上位16ビットのデータは前記第1のラッチ回路(42)に保持する制御が行われ、
更に前記CPU(14)から出力される読出しアドレスに連続したアドレスに対するデータの読み出しが確認されないとその読み出し動作は終了するが、確認されると、前記第1のラッチ回路(42)に保持した上位16ビットのデータを前記CPU(14)に向けて出力するものであり、
前記データ書込部(24)は、
前記CPU(14)側の第1のデータバス(12)と、前記I/O回路(18)側の第2のデータバス(16)間にあって、前記第1のデータバス(12)における下位16ビットのデータを一時記憶可能とする第2のラッチ回路(48)と、前記第1のデータバス(12)で規定されるバス幅のデータの出力時期を、下位16ビットと上位16ビットとで個別に規制可能とする第3および第4の2つのバッファ回路(50)(52)とを備える一方、
前記制御部(20)には判定回路(28)を更に備え、
該判定回路(28)で前記CPU(14)による書込アドレスが「4」で割り切れるか否かを調べ、
「4」で割り切れない場合は上位16ビットデータのライトアクセスと判定し、前記第4のバッファ回路(52)を介して前記第2のデータバス(16)に上位16ビットのデータを送って前記I/O回路(18)における該当のアドレスにライトアクセスすることにより16ビットアクセスによるデータ書込み動作を終了するが、
「4」で割り切れる場合は、下位16ビットのデータを前記第2のラッチ回路(48)に保持する制御が行われ、
更に前記CPU(14)から出力される書込アドレスに連続したアドレスに対するデータの書込みが確認されると、前記第2のラッチ回路(48)に保持したデータを下位16ビットのデータとし、その時にCPU(14)から出力されているデータを前記第4のバッファ回路(52)を介して上位16ビットのデータとする32ビットのデータを同時に前記I/O回路(18)に向けて出力してライトアクセスする一方、
連続したアドレスに対するデータの書込みが確認されない場合には、前記第2のラッチ回路(48)に保持した下位16ビットのデータのみを前記I/O回路(18)に送ることを特徴とするバスブリッジ回路。
A bus bridge between a CPU (14) having a data bus width of 16 bits and an I / O circuit (18) having a data bus width of 32 bits and enabling a data transfer operation corresponding to the difference in the data bus width A circuit,
A control unit (20) for analyzing the contents of address data and control signals sent from the CPU (14) and sending predetermined address data and control signals to the I / O circuit (18);
The work from the CPU (14) the I / O circuit according to (18) at the time of data reading from the CPU (14), the data reading unit which allows a reduction in the data bus width (22),
A data writing section (24) that operates at the time of data writing from the CPU (14) to the I / O circuit (18) and enables the data bus width to be expanded;
The data reading unit (22)
Between the first data bus (12) on the CPU (14) side and the second data bus (16) on the I / O circuit (18) side, from the second data bus (16) to the first data bus (16). To the data bus (12), the output timing of the data of the bus width defined by the first data bus (12) can be individually regulated by upper 16 bits and lower 16 bits. Two buffer circuits (44) (46),
A first latch circuit (42) for temporarily storing upper 16-bit data in the second data bus (16),
The control unit (20) further includes a determination circuit (28),
The determination circuit (28) checks whether the read address output from the CPU (14) is divisible by “4”.
If it is not divisible by “4”, it is determined that the upper 16-bit data is read access, the corresponding address in the I / O circuit (18) is read-accessed, and the first buffer circuit (44) is used for the first access. The data read operation by 16-bit access is completed by sending the upper 16-bit data in the data bus (16) of 2 to the CPU (14).
When it is divisible by “4”, 32 bits of data are read from the I / O circuit (18) at a time, and the lower 16 bits of the read 32 bits of data are read out from the second buffer circuit (46). At the same time, the upper 16 bits of data are controlled to be held in the first latch circuit (42).
Further, if the reading of data for addresses consecutive to the reading address output from the CPU (14) is not confirmed, the reading operation ends. However, if confirmed, the higher order held in the first latch circuit (42). 16-bit data is output to the CPU (14),
The data writing unit (24)
Between the first data bus (12) on the CPU (14) side and the second data bus (16) on the I / O circuit (18) side, the lower 16 in the first data bus (12) The second latch circuit (48) capable of temporarily storing bit data, and the output timing of the bus width data defined by the first data bus (12) are expressed by the lower 16 bits and the upper 16 bits. While including the third and fourth buffer circuits (50) and (52) that can be individually regulated,
The control unit (20) further includes a determination circuit (28),
The determination circuit (28) checks whether the write address by the CPU (14) is divisible by “4”,
If it is not divisible by “4”, it is determined that the upper 16-bit data is a write access, and the upper 16-bit data is sent to the second data bus (16) via the fourth buffer circuit (52). The data write operation by 16-bit access is completed by performing write access to the corresponding address in the I / O circuit (18).
When it is divisible by “4”, control is performed to hold the lower 16 bits of data in the second latch circuit (48).
Further, when it is confirmed that data is written to an address continuous to the write address output from the CPU (14), the data held in the second latch circuit (48) is used as lower 16-bit data. 32-bit data, which uses the data output from the CPU (14) as upper 16-bit data via the fourth buffer circuit (52), is simultaneously output to the I / O circuit (18). While having write access,
A bus bridge characterized in that if writing of data to consecutive addresses is not confirmed, only the lower 16 bits of data held in the second latch circuit (48) are sent to the I / O circuit (18). circuit.
JP2003299781A 2003-08-25 2003-08-25 Bus bridge circuit Expired - Lifetime JP4512334B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003299781A JP4512334B2 (en) 2003-08-25 2003-08-25 Bus bridge circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003299781A JP4512334B2 (en) 2003-08-25 2003-08-25 Bus bridge circuit

Publications (2)

Publication Number Publication Date
JP2005071075A JP2005071075A (en) 2005-03-17
JP4512334B2 true JP4512334B2 (en) 2010-07-28

Family

ID=34404906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003299781A Expired - Lifetime JP4512334B2 (en) 2003-08-25 2003-08-25 Bus bridge circuit

Country Status (1)

Country Link
JP (1) JP4512334B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6196143B2 (en) 2013-12-13 2017-09-13 株式会社東芝 Information processing apparatus, information processing method, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61267852A (en) * 1985-05-16 1986-11-27 Panafacom Ltd Data bus conversion system
JP2002024164A (en) * 2000-07-05 2002-01-25 Denso Corp Access controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61267852A (en) * 1985-05-16 1986-11-27 Panafacom Ltd Data bus conversion system
JP2002024164A (en) * 2000-07-05 2002-01-25 Denso Corp Access controller

Also Published As

Publication number Publication date
JP2005071075A (en) 2005-03-17

Similar Documents

Publication Publication Date Title
KR100973629B1 (en) Memory device, method and system having multiple address, data and command buses
US7209405B2 (en) Memory device and method having multiple internal data buses and memory bank interleaving
US20060023554A1 (en) Nonvolatile memory apparatus
JPH11184674A (en) Register file
KR100578233B1 (en) Variable control apparatus of data input/output in synchronous semiconductor memory device
JP4512334B2 (en) Bus bridge circuit
JP2009099202A (en) Semiconductor device
JP2000132966A (en) Semiconductor storage device
JP4491267B2 (en) Nonvolatile semiconductor memory device
KR100518538B1 (en) Integrated circuit capable of operating data read and data writing simultaneously and method thereof
JPH0283736A (en) Osc detection system for buffer memory controller
EP1460640A3 (en) A content addressable memory (CAM) architecture providing improved speed
US10861510B2 (en) Majority voting processing device, semiconductor memory device, and majority voting method for information data
JP5237731B2 (en) Memory system, memory device, and memory access method
JP4549073B2 (en) Memory control circuit
JP4647578B2 (en) Radar signal processing device
JP3512450B2 (en) Memory test apparatus and memory test method
JPH0414438B2 (en)
JP4682786B2 (en) Microcomputer
JPH0528751A (en) Semiconductor memory
JPH04333953A (en) Bank memory control system
JPS6246353A (en) Memory read system
US20080046626A1 (en) Semiconductor device and BUS connecting method
JPH02217923A (en) Data processor
JP2007305021A (en) Semiconductor storage device and its reading method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080610

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081202

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090724

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090901

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100416

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100510

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4512334

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140514

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term