[go: up one dir, main page]

JP2000353144A - Control of register - Google Patents

Control of register

Info

Publication number
JP2000353144A
JP2000353144A JP11165591A JP16559199A JP2000353144A JP 2000353144 A JP2000353144 A JP 2000353144A JP 11165591 A JP11165591 A JP 11165591A JP 16559199 A JP16559199 A JP 16559199A JP 2000353144 A JP2000353144 A JP 2000353144A
Authority
JP
Japan
Prior art keywords
register
data
space
pci
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11165591A
Other languages
Japanese (ja)
Inventor
Yoshio Matsuda
欣雄 松田
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP11165591A priority Critical patent/JP2000353144A/en
Publication of JP2000353144A publication Critical patent/JP2000353144A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a register controlling method allowed to be applied also to a case that an operating system itself executes the configuration of a PCI device and capable of evading dependency upon a PCI device connected to a secondary PCI bus. SOLUTION: In the case of checking a base address register resource request condition for PCI device configuration, response data to the reading of a PCI device 4 connected to a secondary PCI bus 6 to a base address register space 8 are stored in a register space 18 and data written in the space 8 are traced in a register space 16. When the bus 6 is not driven, the data stored in the space 16 are masked by the data stored in the space 18 and the masked data are outputted, so that mask processing based on software is made unnecessary and dependency upon the PCI device connected to the bus 6 can be evaded.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、レジスタ制御方法
に関し、特に、PCIデバイスコンフィギュレーション
時にベースアドレスレジスタリソース要求条件を確認す
る際にレジスタ空間の制御を行うレジスタ制御方法に関
する。
[0001] 1. Field of the Invention [0002] The present invention relates to a register control method, and more particularly, to a register control method for controlling a register space when confirming a base address register resource requirement at the time of PCI device configuration.

【0002】[0002]

【従来の技術】PCIローカルバス仕様2.1に準拠し
たPCIデバイスを搭載したパーソナルコンピューター
装置では、新たにデフォルトクラスデバイスパワーマネ
ジメント仕様に規定された二つの条件を満たすため、P
CIデバイスのコンフィグレーションレジスタ空間をエ
ミュレートする機能を有するPCIブリッジが必要とす
る。なお、二つの条件とは、通常動作ステートとパワー
マネジメントステートの二つの動作ステートをデバイス
ドライバレベルで制御するための拡張機能レジスタを実
装するという条件と、パワーマネジメントステートでは
デバイスの使用するアドレス空間へのアクセスサイクル
が発生した場合でもサイクルに応答しないという条件で
ある。
2. Description of the Related Art In a personal computer device equipped with a PCI device conforming to the PCI local bus specification 2.1, two conditions newly defined in a default class device power management specification are satisfied.
A PCI bridge having a function of emulating the configuration register space of the CI device is required. Note that the two conditions are a condition that an extended function register for controlling the two operation states of the normal operation state and the power management state at a device driver level is implemented, and a condition that the address space used by the device is used in the power management state. Is not responded to even if an access cycle occurs.

【0003】図14は、一般的なレジスタトーレース方
式の一例を示しており、二次PCIバスに接続されたP
CIデバイスと同一構成のコンフィグレーションレジス
タ空間とベースアドレスレジスタ空間とをエミュレート
するため、レジスタ空間を有するPCIブリッジを使用
したパーソナルコンピュータ装置のブロック図である。
PCIデバイス4のベースアドレスレジスタ空間8のレ
ジスタ構成が図15のレジスタ構成図に示す様な構成で
あった場合、図14のPCIブリッジ1003内部のレ
ジスタ空間1500も図15のレジスタ構成図と同一の
ビット構成とし、CPU1001からPCIデバイス1
004のベースアドレスレジスタ空間1008内部のレ
ジスタへの書込みデータを、PCIブリッジ1003の
レジスタ空間1500内部のレジスタに格納しても、読
み出し専用ビットのデータは変更されない。
FIG. 14 shows an example of a general register trace system, in which a P bus connected to a secondary PCI bus is used.
FIG. 10 is a block diagram of a personal computer device using a PCI bridge having a register space to emulate a configuration register space and a base address register space having the same configuration as a CI device.
When the register configuration of the base address register space 8 of the PCI device 4 is as shown in the register configuration diagram of FIG. 15, the register space 1500 inside the PCI bridge 1003 of FIG. 14 is the same as the register configuration diagram of FIG. Bit configuration, and the CPU 1001 sends the PCI device 1
Even if the data written to the register in the base address register space 1008 of the 004 is stored in the register in the register space 1500 of the PCI bridge 1003, the data of the read-only bit is not changed.

【0004】このため、二次PCIバス1006が非動
作状態でCPU1001からPCIデバイス1004の
ベースアドレスレジスタ空間1008内部レジスタの読
み出しを行った場合、PCIブリッジ1003のレジス
タ空間1500内部のレジスタの格納データをそのまま
一次PCIバス1005に出力しても、PCIデバイス
1004のベースアドレスレジスタ空間1008の格納
データをエミュレートすることが可能であった。図16
では、図14における問題点を回避するため、PCIデ
バイス1004のベースアドレスレジスタ空間1008
をエミュレートするためのレジスタ空間1016を図1
7に示すような全ビット書込み可能なレジスタで構成し
ている。
For this reason, when the CPU 1001 reads the internal registers of the base address register space 1008 of the PCI device 1004 while the secondary PCI bus 1006 is not operating, the data stored in the registers in the register space 1500 of the PCI bridge 1003 is read. Even if the data is output to the primary PCI bus 1005 as it is, the data stored in the base address register space 1008 of the PCI device 1004 can be emulated. FIG.
Now, in order to avoid the problem in FIG. 14, the base address register space 1008 of the PCI device 1004
Register space 1016 for emulating
All the bits are writable as shown in FIG.

【0005】PCIデバイス1004のベースアドレス
レジスタ空間1008の内部レジスタへのデータ書込み
時に読み出し専用ビット部分の書き換えが起こらないよ
うに、図18のフローチャートに示すような手順でソフ
トウェアにより読み出し専用ビットのマスク処理を行う
方式である。図18において、AM(RN)は、アドレ
ス領域の読み出し専用ビット情報とアドレス空間インジ
ケータ領域の読み出し専用ビット情報をマスクするため
のANDマスクデータであり、OM(RN)は、AND
マスク処理で失われるアドレス空間領域のインジケータ
領域の読み出し専用ビット情報を付加するためのORマ
スク情報である。
[0005] In order to prevent rewriting of the read-only bit portion when data is written to the internal register of the base address register space 1008 of the PCI device 1004, mask processing of the read-only bit is performed by software according to the procedure shown in the flowchart of FIG. It is a method of performing. In FIG. 18, AM (RN) is AND mask data for masking the read-only bit information in the address area and the read-only bit information in the address space indicator area, and OM (RN) is AND.
This is OR mask information for adding read-only bit information of the indicator area of the address space area lost in the mask processing.

【0006】図19は、PCIデバイス1004のベー
スアドレスレジスタ空間1008のリソース要求条件確
認時に行うデータ書込み時のマスク処理用のマスク情報
検出シーケンスをフローチャートにより示している。図
19において、RNはベースアドレスレジスタ空間10
08内部のレジスタのレジスタ番号、NMは64ビット
アドレス空間アドレス空間インジケータ領域のマージ禁
止フラグ、BAR(RN)はベースアドレスレジスタ空
間1008のレジスタ番号RNのレジスタリードデー
タ、AM(RN)はANDマスクデータ配列、OM(R
N)はORマスクデータ配列、A0はベースアドレスレ
ジスタのビット0データ、A2はベースアドレスレジス
タのビット2データである。
FIG. 19 is a flowchart showing a mask information detection sequence for mask processing at the time of data writing performed at the time of confirming resource requirement conditions in the base address register space 1008 of the PCI device 1004. In FIG. 19, RN is the base address register space 10
08, the register number of the register in the register 08, NM is a merge inhibit flag in the 64-bit address space address space indicator area, BAR (RN) is the register read data of the register number RN in the base address register space 1008, and AM (RN) is the AND mask data. Array, OM (R
N) is an OR mask data array, A0 is bit 0 data of the base address register, and A2 is bit 2 data of the base address register.

【0007】さらに、従来のレジスタ制御方法の適用例
として、次の公報に開示されたものが知られている。特
開平10−161965号公報に開示されたレジスタ制
御方法では、PCIデバイスの二つのIOアドレス空間
の不連続を回避するためのアドレス割り当てを行ってい
る。特開平10−301657号公報に開示されたレジ
スタ制御方法では、二次PCIバスに接続されたPCI
デバイスにおいて、コンフィグレーションレジスタ空間
の設定によって、PCIデバイス内部のクロック供給を
オン・オフする。
Further, as an application example of the conventional register control method, the one disclosed in the following gazette is known. In the register control method disclosed in Japanese Patent Application Laid-Open No. Hei 10-161965, addresses are assigned to avoid discontinuity between two IO address spaces of a PCI device. In the register control method disclosed in Japanese Patent Application Laid-Open No. H10-301657, a PCI connected to a secondary PCI bus is used.
In the device, the clock supply inside the PCI device is turned on / off by setting the configuration register space.

【0008】特開平10−334032号公報に開示さ
れたレジスタ制御方法では、PCIデバイスのデバイス
番号をデバイス番号設定レジスタで可変できるようにし
ている。特開平11−53295号公報に開示されたレ
ジスタ制御方法では、PCIレジスタがレジスタ空間の
三つのレジスタ空間より構成されている。
In the register control method disclosed in Japanese Patent Laid-Open No. 10-334032, the device number of a PCI device can be changed by a device number setting register. In the register control method disclosed in Japanese Patent Application Laid-Open No. H11-53295, the PCI register is composed of three register spaces of a register space.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のレジス
タ制御方法においては、次のような課題があった。図1
6の場合には、PCIデバイスの使用するアドレスリソ
ースに依存した読み出し専用ビットが実装されているベ
ースアドレスレジスタ空間をエミュレートするために、
図18のフローチャートに示すように、通常のコンフィ
グレーションアドレスレジスタへのベースアドレスレジ
スタアドレスの書込みとコンフィグレーションデータレ
ジスタへのデータ書込みの他にバス番号判定およびデバ
イス番号判定が、他のPCIデバイスへのコンフィグレ
ーションレジスタライト時にも必要となる。また、PC
Iデバイス1004のコンフィグレーションレジスタ空
間への書込み時にレジスタ番号判定を行う必要があり、
更にベースアドレスレジスタ空間1008への書込み時
にライトデータへのANDマスク処理、ライトデータへ
のORマスク処理を行う必要がある。このため、BIO
S等のPCIデバイスコンフィグレーションソフトウェ
アの変更が必要になるが、オペレーティングシステムに
よっては、起動時にPCIデバイスの独自のコンフィグ
レーションを行うものがあり、このようなオペレーティ
ングシステムには、ソフトウェアによるマスク処理を行
えないという問題がある。図14の場合には、ベースア
ドレスレジスタ空間1008の構成が異なるPCIデバ
イスを複数使用した装置ではPCIブリッジもレジスタ
空間1500をそれぞれの構成に合せたPCIブリッジ
を個々に使用しなくてはならないという問題点がある。
The conventional register control method described above has the following problems. FIG.
In the case of 6, in order to emulate a base address register space in which read-only bits depending on an address resource used by the PCI device are implemented,
As shown in the flowchart of FIG. 18, in addition to writing the base address register address to the normal configuration address register and writing data to the configuration data register, the bus number determination and the device number determination are performed for other PCI devices. It is also required when writing the configuration register. Also, PC
When writing to the configuration register space of the I device 1004, it is necessary to determine the register number,
Further, when writing to the base address register space 1008, it is necessary to perform an AND mask process on the write data and an OR mask process on the write data. For this reason, BIO
It is necessary to change PCI device configuration software such as S. However, some operating systems perform unique configuration of PCI devices at startup, and such operating systems can perform mask processing by software. There is no problem. In the case of FIG. 14, in a device using a plurality of PCI devices having different configurations of the base address register space 1008, the PCI bridge also needs to use a PCI bridge that matches the configuration of the register space 1500 individually. There is a point.

【0010】公報に開示されたレジスタ制御方法、特
に、特開平11−53295号公報に開示されたレジス
タ制御方法では、二次PCIバスに接続されたPCIデ
バイスのコンフィグレーションレジスタ空間をエミュレ
ートすると仮定すると、リセット信号発行後に直列EE
PROMに格納されたデータをロードする関係上、PC
Iブリッジ外部にEEPROMを設ける必要があり、部
品点数の増加を招くという問題がある。
In the register control method disclosed in the official gazette, particularly in the register control method disclosed in Japanese Patent Laid-Open No. 11-53295, it is assumed that the configuration register space of a PCI device connected to a secondary PCI bus is emulated. Then, after issuing the reset signal, the series EE
Because of loading data stored in PROM, PC
It is necessary to provide an EEPROM outside the I-bridge, which causes a problem of increasing the number of parts.

【0011】また、ユーザ命令によるPCIバスインタ
ーフェースロジック内の状態ロジック回路の再構成機能
に関しては、PCIバスインターフェースロジックを再
構成する必要がある。
[0011] With respect to the reconfiguration function of the state logic circuit in the PCI bus interface logic by a user instruction, it is necessary to reconfigure the PCI bus interface logic.

【0012】本発明は、上記課題にかんがみてなされた
もので、PCIデバイスのコンフィギュレーションをオ
ペレーティングシステム自体で実行する場合であっても
適用可能であるとともに、二次PCIバスに接続される
PCIデバイスへの依存性を回避することの可能なレジ
スタ制御方法の提供を目的とする。
The present invention has been made in view of the above problems, and is applicable to a case where the configuration of a PCI device is executed by an operating system itself, and a PCI device connected to a secondary PCI bus. It is an object of the present invention to provide a register control method capable of avoiding dependency on the register.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、請求項1における発明は、PCIデバイスコンフィ
ギュレーション時にベースアドレスレジスタリソース要
求条件を確認する際、PCIブリッジの二次PCIバス
に接続されたPCIデバイスのベースアドレスレジスタ
空間への読み出しに対する応答データをPCIブリッジ
内部の第一のレジスタ空間に格納するとともに、ベース
アドレスレジスタ空間に対する書き込みデータをPCI
ブリッジ内部の第二のレジスタ空間にてトレースし、二
次PCIバスの非動作時には、ベースアドレスレジスタ
空間への読み出しに対して第二のレジスタ空間の格納デ
ータを第一のレジスタ空間の格納データでマスク処理し
て出力する構成としてある。
In order to achieve the above object, according to the first aspect of the present invention, when checking a base address register resource requirement at the time of PCI device configuration, the invention is connected to a secondary PCI bus of a PCI bridge. The response data to the reading to the base address register space of the PCI device is stored in the first register space inside the PCI bridge, and the write data to the base address register space is stored in the PCI
Trace in the second register space inside the bridge, and when the secondary PCI bus is not operating, the data stored in the second register space is replaced with the data stored in the first register space for reading to the base address register space. It is configured to output after mask processing.

【0014】すなわち、PCIデバイスコンフィギュレ
ーション時にベースアドレスレジスタリソース要求条件
を確認する際、PCIブリッジの二次PCIバスに接続
されたPCIデバイスのベースアドレスレジスタ空間へ
の読み出しに対する応答データをPCIブリッジ内部の
第一のレジスタ空間に格納する。
That is, when confirming the base address register resource requirements at the time of PCI device configuration, response data to the reading of the PCI device connected to the secondary PCI bus of the PCI bridge to the base address register space is stored in the PCI bridge. Store in the first register space.

【0015】このとき、ベースアドレスレジスタ空間に
対する書き込みデータをPCIブリッジ内部の第二のレ
ジスタ空間にてトレースする。そして、二次PCIバス
の非動作時には、ソフトウェアによるマスク処理並びに
マージ処理を行うことなく、ベースアドレスレジスタ空
間への読み出しに対して第二のレジスタ空間の格納デー
タを第一のレジスタ空間の格納データでマスク処理して
出力する。
At this time, write data to the base address register space is traced in the second register space inside the PCI bridge. Then, when the secondary PCI bus is not operating, the data stored in the second register space is stored in the first register space for reading to the base address register space without performing mask processing and merging processing by software. Is output after mask processing.

【0016】ベースアドレスレジスタ空間に対して書き
込みが行われる際の手法の一例として、請求項2におけ
る発明は、請求項1に記載のレジスタ制御方法におい
て、二次PCIバスの非動作時、CPUからベースアド
レスレジスタ空間に対して書き込みが行われると、この
ベースアドレスレジスタ空間に対するコンフィグレーシ
ョンライトサイクルをホストブリッジが一次PCIバス
に発生させる構成としてある。すなわち、二次PCIバ
スの非動作時、CPUがベースアドレスレジスタ空間に
対して書き込みを行うと、ホストブリッジは、ベースア
ドレスレジスタ空間に対するコンフィグレーションライ
トサイクルを一次PCIバスに発生させる。
As an example of a method for writing data to the base address register space, the invention according to claim 2 is a register control method according to claim 1, wherein when the secondary PCI bus is not operated, When writing is performed on the base address register space, the host bridge generates a configuration write cycle for the base address register space on the primary PCI bus. That is, when the CPU writes to the base address register space while the secondary PCI bus is not operating, the host bridge generates a configuration write cycle for the base address register space on the primary PCI bus.

【0017】ベースアドレスレジスタ空間に対する書き
込みデータを第二のレジスタ空間にてトレースする際の
手法の一例として、請求項3における発明は、請求項2
に記載のレジスタ制御方法において、PCIブリッジ
は、一次PCIバスにおけるコンフィグレーションライ
トサイクルの発生に応答し、書き込みデータを第二のレ
ジスタ空間に格納する構成としてある。すなわち、一次
PCIバスにてコンフィグレーションライトサイクルが
発生すると、PCIブリッジは、コンフィグレーション
ライトサイクルの発生に応答して書き込みデータを第二
のレジスタ空間に格納する。
As one example of a technique for tracing write data to the base address register space in the second register space, the invention according to claim 3 is based on claim 2.
Wherein the PCI bridge responds to the occurrence of the configuration write cycle on the primary PCI bus and stores the write data in the second register space. That is, when a configuration write cycle occurs on the primary PCI bus, the PCI bridge stores write data in the second register space in response to the occurrence of the configuration write cycle.

【0018】ベースアドレスレジスタ空間に対して読み
出しが行われる際の手法の一例として、請求項4におけ
る発明は、請求項1〜請求項3のいずれかに記載のレジ
スタ制御方法において、CPUによりベースアドレスレ
ジスタ空間に対して読み出しが行われると、このベース
アドレスレジスタ空間に対するコンフィグレーションラ
イトサイクルをホストブリッジが一次PCIバスに発生
させる構成としてある。すなわち、CPUがベースアド
レスレジスタ空間に対して読み出しを行うと、ホストブ
リッジは、ベースアドレスレジスタ空間に対するコンフ
ィグレーションライトサイクルを一次PCIバスに発生
させる。
According to a fourth aspect of the present invention, as an example of a method for reading data from the base address register space, in the register control method according to any one of the first to third aspects, the base address is controlled by the CPU. When data is read from the register space, the host bridge generates a configuration write cycle for the base address register space on the primary PCI bus. That is, when the CPU reads data from the base address register space, the host bridge generates a configuration write cycle for the base address register space on the primary PCI bus.

【0019】マスク処理を行う際の手法の一例として、
請求項5における発明は、請求項4に記載のレジスタ制
御方法において、PCIブリッジは、一次PCIバスに
おけるコンフィグレーションライトサイクルの発生に応
答し、第二のレジスタ空間に格納された格納データと、
第一のレジスタ空間に格納された格納データとのマスク
処理を行い、得られた結果を一次PCIバスに出力する
構成としてある。すなわち、一次PCIバスにてコンフ
ィグレーションライトサイクルが発生すると、PCIブ
リッジは、コンフィグレーションライトサイクルの発生
に応答し、第二のレジスタ空間に格納された格納データ
と、第一のレジスタ空間に格納された格納データとのマ
スク処理を行い、得られた結果を一次PCIバスに出力
する。
As an example of a method for performing the mask processing,
According to a fifth aspect of the present invention, in the register control method according to the fourth aspect, the PCI bridge responds to the occurrence of a configuration write cycle in the primary PCI bus, and stores data stored in the second register space;
The configuration is such that mask processing is performed on the stored data stored in the first register space, and the obtained result is output to the primary PCI bus. That is, when a configuration write cycle occurs on the primary PCI bus, the PCI bridge responds to the occurrence of the configuration write cycle and stores the data stored in the second register space and the data stored in the first register space. Mask processing with the stored data, and outputs the obtained result to the primary PCI bus.

【0020】このとき、一次PCIバスに出力された応
答データを扱う手法の一例として、請求項6における発
明は、請求項5に記載のレジスタ制御方法において、ホ
ストブリッジは、PCIブリッジが一次PCIバスに出
力した応答データを読み出しデータとしてCPUに出力
する構成としてある。すなわち、PCIブリッジが一次
PCIバスに応答データを出力すると、ホストブリッジ
は、応答データを読み出しデータとしてCPUに出力す
る。
At this time, as an example of a method for handling the response data output to the primary PCI bus, the invention according to claim 6 is the register control method according to claim 5, wherein the host bridge is configured such that the PCI bridge is a primary PCI bus. Is output as read data to the CPU. That is, when the PCI bridge outputs response data to the primary PCI bus, the host bridge outputs the response data to the CPU as read data.

【0021】[0021]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。図1は、本発明の一実施形態にお
けるレジスタ制御方法の適用例をブロック図により示し
ている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an application example of a register control method according to an embodiment of the present invention.

【0022】図1を参照すると、CPU1と、ホストブ
リッジ2を介してCPU1に接続される一次PCIバス
5と、一次PCIバス5と二次PCIバス6を結合する
PCIブリッジ3と、PCIデバイス4とが含まれてい
る。PCIデバイス4は、アドレスラッチ33、レジス
タ選択回路38、コンフィグレーションレジスタ空間
7、ベースアドレスレジスタ空間8およびコンフィグレ
ーションレジスタ空間9を備えている。アドレスラッチ
33は、二次PCIバス6に発生したバスサイクルのア
ドレスを保持する。
Referring to FIG. 1, a CPU 1, a primary PCI bus 5 connected to the CPU 1 via the host bridge 2, a PCI bridge 3 connecting the primary PCI bus 5 and the secondary PCI bus 6, and a PCI device 4 And are included. The PCI device 4 includes an address latch 33, a register selection circuit 38, a configuration register space 7, a base address register space 8, and a configuration register space 9. The address latch 33 holds the address of the bus cycle generated on the secondary PCI bus 6.

【0023】レジスタ選択回路38は、アドレスラッチ
の保持するアドレス42のレジスタ番号から、コンフィ
グレーションレジスタ空間7の選択信号39、ベースア
ドレスレジスタ空間8の選択信号40、コンフィグレー
ションレジスタ空間9の選択信号41を出力する。コン
フィグレーションレジスタ空間7は、PCIローカルバ
ス仕様2.1に規定されたタイプ0コンフィグレーショ
ンレジスタ空間のレジスタ番号00H〜0FHのレジス
タ空間である。ベースアドレスレジスタ空間8は、PC
Iローカルバス仕様2.1に規定されたタイプ0コンフ
ィグレーションレジスタ空間のレジスタ番号10H〜2
7Hのレジスタ空間である。
The register selection circuit 38 determines a selection signal 39 for the configuration register space 7, a selection signal 40 for the base address register space 8, and a selection signal 41 for the configuration register space 9 based on the register number of the address 42 held by the address latch. Is output. The configuration register space 7 is a register space of register numbers 00H to 0FH of the type 0 configuration register space defined in the PCI local bus specification 2.1. The base address register space 8 is a PC
Register numbers 10H to 2 in the type 0 configuration register space defined in I local bus specification 2.1
7H register space.

【0024】コンフィグレーションレジスタ空間9は、
PCIローカルバス仕様2.1に規定されたタイプ0コ
ンフィグレーションレジスタ空間のレジスタ番号レジス
タ番号28H〜7FHのレジスタ空間である。PCIブ
リッジ3は、レジスタ空間16,18〜20、マスク処
理回路17、一次バスIF回路21、二次バスIF回路
22、一次PCIバス制御回路23、二次PCIバス制
御回路24およびレジスタ空間選択回路15を備えてい
る。
The configuration register space 9 includes:
This is a register space of register numbers 28H to 7FH in the type 0 configuration register space defined in the PCI local bus specification 2.1. The PCI bridge 3 includes register spaces 16, 18 to 20, a mask processing circuit 17, a primary bus IF circuit 21, a secondary bus IF circuit 22, a primary PCI bus control circuit 23, a secondary PCI bus control circuit 24, and a register space selection circuit. 15 are provided.

【0025】本発明にいう第二のレジスタ空間としての
レジスタ空間16は、PCIデバイス4のベースアドレ
スレジスタ空間8への書込みデータを格納する。本発明
にいう第二のレジスタ空間としてのレジスタ空間18
は、ベースアドレスレジスタリソースデータを格納す
る。レジスタ空間19は、PCIデバイス4のコンフィ
グレーションレジスタ空間7をエミュレートする。レジ
スタ空間20は、コンフィグレーションレジスタ空間9
をエミュレートする。
The register space 16 as the second register space according to the present invention stores write data to the base address register space 8 of the PCI device 4. Register space 18 as second register space according to the present invention
Stores base address register resource data. The register space 19 emulates the configuration register space 7 of the PCI device 4. The register space 20 stores the configuration register space 9
To emulate

【0026】マスク処理回路17は、レジスタ空間16
とレジスタ空間18の格納データよりマスク処理を行
う。一次バスIF回路21は、一次PCIバス5のAD
バスとのインターフェイスを行う。二次バスIF回路2
2は、二次PCIバス6のADバスとのインターフェイ
スを行う。
The mask processing circuit 17 includes a register space 16
And a mask process is performed based on the data stored in the register space 18. The primary bus IF circuit 21 is provided with the AD of the primary PCI bus 5.
Interface with the bus. Secondary bus IF circuit 2
2 interfaces the secondary PCI bus 6 with the AD bus.

【0027】一次PCIバス制御回路23は、一次PC
Iバス5のPCIバスサイクルへの応答並びに、ホスト
ブリッジ2が発生させるコンフィグレーションレジスタ
リードサイクルのリードデータを格納するためのストロ
ーブ信号29を出力し、コンフィグレーションレジスタ
ライトサイクルのライトデータを格納するためのストロ
ーブ信号30を出力する。
The primary PCI bus control circuit 23 includes a primary PC
Outputs a strobe signal 29 for storing a response to the PCI bus cycle of the I bus 5 and read data of the configuration register read cycle generated by the host bridge 2, and storing write data of the configuration register write cycle. Is output.

【0028】二次PCIバス制御回路24は、二次PC
Iバス6のPCIバスサイクルを生成する。レジスタ空
間選択回路15は、ホストブリッジ2が一次PCIバス
5に発生させたコンフィグレーションレジスタリードサ
イクル、コンフィグレーションライトサイクルのアドレ
スを保持するためのアドレスラッチ43と、アドレスラ
ッチ43の保持するアドレス35の二次PCIバス6の
バス番号とコンフィグレーションレジスタ番号25よ
り、レジスタ空間19の選択信号28とレジスタ空間2
0の選択信号27とレジスタ空間16の選択信号26と
を生成する。
The secondary PCI bus control circuit 24 includes a secondary PC
A PCI bus cycle of the I bus 6 is generated. The register space selection circuit 15 includes an address latch 43 for holding an address of a configuration register read cycle and a configuration write cycle generated on the primary PCI bus 5 by the host bridge 2, and an address 35 held by the address latch 43. From the bus number of the secondary PCI bus 6 and the configuration register number 25, the selection signal 28 of the register space 19 and the register space 2
A selection signal 27 of 0 and a selection signal 26 of the register space 16 are generated.

【0029】ここで、PCIデバイス4内部のベースア
ドレスレジスタ空間8、PCIブリッジ3内部のレジス
タ空間16,18およびマスク処理回路17について詳
細に説明する。図2は、ベースアドレスレジスタ空間8
の構成例をブロック図により示し、図3は、ベースアド
レスレジスタ空間8のレジスタ構成をレジスタ構成図に
より示している。
Here, the base address register space 8 inside the PCI device 4, the register spaces 16, 18 inside the PCI bridge 3, and the mask processing circuit 17 will be described in detail. FIG. 2 shows the base address register space 8
3 is shown by a block diagram, and FIG. 3 shows a register configuration of the base address register space 8 by a register configuration diagram.

【0030】図2において、PCIデバイス4のアドレ
スリソースは、16バイトのアドレス空間と1MBのメ
モリアドレス空間との2つを使用し、PCIローカルバ
ス仕様2.1のベースアドレスレジスタの実装条件に従
い、レジスタ番号10Hに16バイトのIOアドレス空
間を、レジスタ番号14Hに1MBのメモリアドレス空
間を示すよう読み出し専用ビットとして実装されてい
る。このため、ベースアドレスレジスタ空間8は、レジ
スタ番号10Hのレジスタ81、レジスタ番号14Hの
レジスタ82、デコーダ80およびセレクタ83を備え
ている。
In FIG. 2, the address resources of the PCI device 4 use two addresses of a 16-byte address space and a 1 MB memory address space, and according to the mounting conditions of the base address register of the PCI local bus specification 2.1. A 16-byte IO address space is implemented in register number 10H, and a read-only bit is implemented so that register number 14H indicates 1 MB of memory address space. Therefore, the base address register space 8 includes a register 81 with a register number 10H, a register 82 with a register number 14H, a decoder 80, and a selector 83.

【0031】デコーダ80は、図1のPCIデバイス4
内部のアドレスラッチ33が保持するレジスタ番号バス
34よりレジスタ番号をデコードし、レジスタ番号10
Hのデコード信号88とレジスタ番号14Hデコード信
号89を出力する。セレクタ83は、レジスタ番号10
Hのデコード信号88がアクティブの場合レジスタ81
の格納のデータを選択し、レジスタ番号14Hのデコー
ド信号89がアクティブの場合レジスタ82の格納デー
タを選択し、デコード信号88、89がいずれもインア
クティブの場合、00000000Hを出力する。
The decoder 80 is connected to the PCI device 4 shown in FIG.
The register number is decoded from the register number bus 34 held by the internal address latch 33, and the register number 10 is decoded.
An H decode signal 88 and a register number 14H decode signal 89 are output. The selector 83 has the register number 10
Register 81 when H decode signal 88 is active
Is selected, and when the decode signal 89 of the register number 14H is active, the data stored in the register 82 is selected. When both of the decode signals 88 and 89 are inactive, 00000000H is output.

【0032】図3のレジスタ構成図に示す様に、レジス
タ81は、32ビット幅のレジスタで、ビット31から
ビット4の28ビット幅のリードライト部とビット3と
ビット2の2ビット幅の0固定ビット部より構成される
アドレス領域と、ビット1とビット0の2ビットの固定
値ビットよりなるIOアドレス空間インジケータ領域と
により構成される。また、レジスタ82は、ビット31
からビット20の12ビット幅のリードライト部とビッ
ト19からビット4の16ビット幅の0値固定ビット部
より構成されるアドレス領域と、ビット3からビット0
の4ビットのメモリアドレス空間インジケータ領域とに
より構成される。
As shown in the register configuration diagram of FIG. 3, the register 81 is a 32-bit wide register, and has a 28-bit read / write portion of bits 31 to 4 and a 2-bit width 0 of bits 3 and 2. It comprises an address area composed of a fixed bit part and an IO address space indicator area composed of two fixed value bits of bit 1 and bit 0. Also, the register 82 stores the bit 31
An address area consisting of a 12-bit width read / write portion from bit 20 to bit 20 and a 16-bit fixed value 0 bit portion from bit 19 to bit 4, and bit 3 to bit 0
And a 4-bit memory address space indicator area.

【0033】レジスタ番号18H〜24Hは実施例では
実装されておらず、セレクタ83により、未使用レジス
タとして読み出し時にリードデータとして000000
00Hを出力する様に構成されている。図4は、レジス
タ空間16の構成例をブロック図により示している。P
CIブリッジ3のレジスタ空間16は、レジスタ番号1
0Hのレジスタ101、レジスタ番号14Hのレジスタ
102、レジスタ番号18Hのレジスタ103、レジス
タ番号1CHのレジスタ104、レジスタ番号20Hの
レジスタ105、レジスタ番号24Hのレジスタ10
6、デコーダ100およびセレクタ107により構成さ
れる。
The register numbers 18H to 24H are not mounted in the embodiment, and the selector 83 outputs 000000 as read data at the time of reading as an unused register.
It is configured to output 00H. FIG. 4 is a block diagram showing a configuration example of the register space 16. P
The register space 16 of the CI bridge 3 has a register number 1
0H register 101, register number 14H register 102, register number 18H register 103, register number 1CH register 104, register number 20H register 105, register number 24H register 10
6, the decoder 100 and the selector 107.

【0034】デコーダ100は、図1のアドレスラッチ
43の保持するコンフィグレーションレジスタ番号25
とレジスタ空間選択回路15の出力する選択信号26よ
り、レジスタ番号10Hのデコード信号108と、レジ
スタ番号14Hのデコード信号109、レジスタ番号1
8Hのデコード信号110と、レジスタ番号1CHのデ
コード信号111と、レジスタ番号20Hのデコード信
号112と、レジスタ番号24Hのデコード信号113
を出力する。
The decoder 100 has a configuration register number 25 stored in the address latch 43 of FIG.
And the selection signal 26 output from the register space selection circuit 15, the decode signal 108 of the register number 10H, the decode signal 109 of the register number 14H, the register number 1
8H decode signal 110, register number 1CH decode signal 111, register number 20H decode signal 112, and register number 24H decode signal 113
Is output.

【0035】セレクタ107は、デコード信号108が
アクティブの場合レジスタ101の出力を選択し、デコ
ード信号109がアクティブの場合レジスタ102の出
力を選択し、デコード信号110がアクティブの場合レ
ジスタ103の出力を選択し、デコード信号111がア
クティブの場合レジスタ104の出力を選択し、デコー
ド信号112がアクティブの場合レジスタ105の出力
を選択し、デコード信号113がアクティブの場合レジ
スタ106の出力を選択して出力する。
The selector 107 selects the output of the register 101 when the decode signal 108 is active, selects the output of the register 102 when the decode signal 109 is active, and selects the output of the register 103 when the decode signal 110 is active. When the decode signal 111 is active, the output of the register 104 is selected. When the decode signal 112 is active, the output of the register 105 is selected. When the decode signal 113 is active, the output of the register 106 is selected and output.

【0036】レジスタ101〜106のデータ入力は、
図1のライトデータバス12に接続され、図1の一次P
CIバス制御回路23の出力するストローブ信号30が
アクティブとなった場合、ライトデータバス12のデー
タをレジスタ空間16に格納する。
The data input to the registers 101 to 106 is
1 is connected to the write data bus 12 of FIG.
When the strobe signal 30 output from the CI bus control circuit 23 becomes active, the data on the write data bus 12 is stored in the register space 16.

【0037】図5は、レジスタ空間18の構成例をブロ
ック図により示している。レジスタ空間18は、図1の
リードデータバス13を入力とするレジスタ番号10H
のレジスタ121、レジスタ番号14Hのレジスタ12
2、レジスタ番号18Hのレジスタ123、レジスタ番
号1CHのレジスタ124、レジスタ番号20Hのレジ
スタ125、レジスタ番号24Hのレジスタ126、デ
コーダ120、レジスタ121のロードイネーブル回路
127、レジスタ122のロードイネーブル回路12
8、レジスタ123のロードイネーブル回路129、レ
ジスタ124のロードイネーブル回路130、レジスタ
125のロードイネーブル回路131、レジスタ126
のロードイネーブル回路132およびセレクタ145を
備えている。
FIG. 5 is a block diagram showing a configuration example of the register space 18. The register space 18 has a register number 10H to which the read data bus 13 of FIG.
Register 121, register number 14H register 12
2, register 123 with register number 18H, register 124 with register number 1CH, register 125 with register number 20H, register 126 with register number 24H, decoder 120, load enable circuit 127 for register 121, load enable circuit 12 for register 122
8, load enable circuit 129 for register 123, load enable circuit 130 for register 124, load enable circuit 131 for register 125, register 126
The load enable circuit 132 and the selector 145 are provided.

【0038】デコーダ120は、図1のアドレスラッチ
43の保持するコンフィグレーションレジスタ番号25
とレジスタ空間選択回路15の出力する選択信号26よ
りレジスタ番号をデコードし、レジスタ番号10Hのデ
コード信号139と、レジスタ番号14Hのデコード信
号140と、レジスタ番号18Hのデコード信号141
と、レジスタ番号1CHのデコード信号142と、レジ
スタ番号20Hのデコード信号143と、レジスタ番号
24Hのデコード信号144を出力する。セレクタ14
5は、デコーダ120の出力するデコード信号139が
アクティブの場合、レジスタ121の格納データをデー
タバス45に出力し、3ビットのマスク制御信号46に
000bを出力する。
The decoder 120 has a configuration register number 25 stored in the address latch 43 of FIG.
The register number is decoded from the selection signal 26 output from the register space selection circuit 15 and the decode signal 139 of the register number 10H, the decode signal 140 of the register number 14H, and the decode signal 141 of the register number 18H.
And a decode signal 142 of register number 1CH, a decode signal 143 of register number 20H, and a decode signal 144 of register number 24H. Selector 14
5 outputs the data stored in the register 121 to the data bus 45 and outputs 000b to the 3-bit mask control signal 46 when the decode signal 139 output from the decoder 120 is active.

【0039】デコード信号140がアクティブの場合、
レジスタ122の格納データをデータバス45に出力
し、かつ、マスク制御信号46に最下位ビット側からレ
ジスタ121の格納データのビット0、ビット1および
ビット2を出力する。デコード信号141がアクティブ
の場合、レジスタ123の格納データをデータバス45
に出力し、かつ、マスク制御信号46に最下位ビット側
からレジスタ122の格納データのビット0、ビット1
およびビット2を出力する。
When the decode signal 140 is active,
The data stored in the register 122 is output to the data bus 45, and the bit 0, bit 1, and bit 2 of the data stored in the register 121 are output to the mask control signal 46 from the least significant bit side. When the decode signal 141 is active, the data stored in the register 123 is transferred to the data bus 45.
And the bit 0, bit 1 of the data stored in the register 122 from the least significant bit side to the mask control signal 46.
And bit 2 are output.

【0040】デコード信号142がアクティブの場合、
レジスタ124の格納データをデータバス45に出力
し、かつ、マスク制御信号46に最下位ビット側からレ
ジスタ123の格納データのビット0、ビット1および
ビット2を出力する。デコード信号143がアクティブ
の場合、レジスタ125の格納データをデータバス45
に出力し、かつ、マスク制御信号46に最下位ビット側
からレジスタ124の格納データのビット0、ビット1
およびビット2を出力する。デコード信号144がアク
ティブの場合、レジスタ126の格納データをデータバ
ス45に出力し、かつ、マスク制御信号46に最下位ビ
ット側からレジスタ125の格納データのビット0、ビ
ット1およびビット2を出力する。
When the decode signal 142 is active,
The data stored in the register 124 is output to the data bus 45, and the bit 0, bit 1, and bit 2 of the data stored in the register 123 are output to the mask control signal 46 from the least significant bit side. When the decode signal 143 is active, the data stored in the register 125 is transferred to the data bus 45.
And bit 0 and bit 1 of the data stored in the register 124 from the least significant bit side to the mask control signal 46.
And bit 2 are output. When the decode signal 144 is active, the data stored in the register 126 is output to the data bus 45, and the bit 0, bit 1, and bit 2 of the data stored in the register 125 are output to the mask control signal 46 from the least significant bit side. .

【0041】図6は、マスク処理回路17の構成例をブ
ロック図により示している。マスク処理回路17は、A
ND処理回路150とマージ処理回路151とを備えて
いる。AND処理回路150は、レジスタ空間16の出
力信号44と、レジスタ空間18のデータバス45を入
力し各ビット毎の論理積を出力する。
FIG. 6 is a block diagram showing a configuration example of the mask processing circuit 17. The mask processing circuit 17
An ND processing circuit 150 and a merge processing circuit 151 are provided. The AND processing circuit 150 inputs the output signal 44 of the register space 16 and the data bus 45 of the register space 18 and outputs a logical product for each bit.

【0042】マージ処理回路151は、AND処理回路
150の出力データの下位4ビットデータ152と、レ
ジスタ空間18のデータバス45の下位4ビットデータ
と、レジスタ空間18のマスク制御信号46より、PC
Iローカルバス仕様2.1に規定されている、ベースア
ドレスレジスタのアドレス空間インジケーター部のマー
ジを行う。AND処理回路の出力153は、論理積の演
算結果の上位28ビットデータ、出力154はマージ処
理回路151の出力4ビットである。
The merge processing circuit 151 derives the PC data from the lower 4-bit data 152 of the output data of the AND processing circuit 150, the lower 4-bit data of the data bus 45 of the register space 18, and the mask control signal 46 of the register space 18.
Merges the address space indicator part of the base address register specified in the I local bus specification 2.1. The output 153 of the AND processing circuit is the upper 28 bits of the result of the AND operation, and the output 154 is the output 4 bits of the merge processing circuit 151.

【0043】図7は、マージ処理回路151の構成例を
回路図により示している。マージ処理回路151では、
4個のデータセレクタ165〜168により、AND処
理回路150の下位4ビットデータ152のビット0出
力178とレジスタ空間18の出力データ45のビット
0出力174、AND処理回路150の下位4ビットデ
ータ152のビット1出力177とレジスタ空間18の
出力データ45のビット1出力173、AND処理回路
150の下位4ビットデータ152のビット2出力17
6とレジスタ空間18の出力データ45のビット2出力
データ172、AND処理回路150の下位4ビット出
力データ152のビット3出力175とレジスタ空間1
8の出力データ45のビット3出力171を、レジジス
タ空間18より出力される3ビットのマスク制御信号4
6のビット0信号160と、ビット1信号161と、ビ
ット2信号162をインバータ183で論理反転した信
号の3信号よりNORゲート169で処理した信号16
3とレジスタ空間18のビット0出力174により切り
替える。
FIG. 7 is a circuit diagram showing an example of the configuration of the merge processing circuit 151. In the merge processing circuit 151,
By the four data selectors 165 to 168, the bit 0 output 178 of the lower 4 bit data 152 of the AND processing circuit 150, the bit 0 output 174 of the output data 45 of the register space 18, and the lower 4 bit data 152 of the AND processing circuit 150 are output. Bit 1 output 177, bit 1 output 173 of output data 45 of register space 18, bit 2 output 17 of lower 4-bit data 152 of AND processing circuit 150
6 and bit 2 output data 172 of the output data 45 of the register space 18, bit 3 output 175 of the lower 4-bit output data 152 of the AND processing circuit 150, and the register space 1
The bit 3 output 171 of the output data 45 of 8 is converted to the mask control signal 4 of 3 bits output from the register space 18.
A signal 16 obtained by processing at the NOR gate 169 three signals of a bit 0 signal 160, a bit 1 signal 161, and a signal obtained by logically inverting the bit 2 signal 162 at the inverter 183.
3 and bit 0 output 174 of register space 18 for switching.

【0044】そして、PCIローカルバス仕様2.1の
ベースアドレスレジスタのメモリアドレス空間と、IO
アドレス空間のアドレス空間インジケーター部の読み出
し専用ビットをエミュレートする。信号163が1の場
合、AND処理回路150の出力178、177、17
6、175が出力され、信号163が0の場合、ビット
0出力182は、レジスタ空間18のビット0出力17
4が選択され、ビット1出力181にはレジスタ空間1
8のビット1出力173が選択される。
The memory address space of the base address register of the PCI local bus specification 2.1 and the IO
Emulates read-only bits in the address space indicator section of the address space. When the signal 163 is 1, the outputs 178, 177, 17 of the AND processing circuit 150 are output.
6, 175 are output and if signal 163 is 0, bit 0 output 182 is the bit 0 output 17 of register space 18.
4 is selected and the bit 1 output 181 has the register space 1
The eight bit one output 173 is selected.

【0045】信号163が0で、信号174が1の場
合、レジスタはIOアドレス空間となるため、アドレス
空間インジケータ部は下位2ビットのみとなり、出力1
80はAND処理回路150のビット2出力176が選
択され、出力179はAND処理回路150のビット3
出力175が選択される。信号163が0で、信号17
4も0の場合、レジスタはメモリアドレス空間となるた
め、アドレス空間インジケータ部は下位4ビットとな
り、出力180はレジスタ18のビット2出力172が
選択され、出力179はレジスタ18のビット3出力1
71が選択される。
When the signal 163 is 0 and the signal 174 is 1, since the register is in the IO address space, the address space indicator section has only the lower 2 bits and the output 1
80 is the bit 2 output 176 of the AND processing circuit 150 is selected, and the output 179 is the bit 3 output of the AND processing circuit 150.
Output 175 is selected. When signal 163 is 0 and signal 17
When 4 is also 0, the register is in the memory address space, so the address space indicator section has the lower 4 bits, the output 180 selects the bit 2 output 172 of the register 18, and the output 179 selects the bit 3 output 1 of the register 18.
71 is selected.

【0046】次に、図1に示す回路における動作につい
て説明する。PCIデバイス4のベースアドレスレジス
タ空間8と、PCIブリッジ3のレジスタ空間16、レ
ジスタ空間18内部は32ビットレジスタ6本分のレジ
スタ空間が存在するが、動作タイミングについては同一
のため、レジスタ番号10Hのレジスタの読み出し、並
びに書き込みについて説明する。
Next, the operation of the circuit shown in FIG. 1 will be described. The base address register space 8 of the PCI device 4 and the register space 16 and the register space 18 of the PCI bridge 3 have a register space for six 32-bit registers. Reading and writing of the register will be described.

【0047】図8は、図2に示したPCIデバイス4の
ベースアドレスレジスタ空間8内のレジスタ81に対す
るデータ書込みの際、図1の一次PCIバス5に発生す
るサイクルをタイミングチャートにより示している。
FIG. 8 is a timing chart showing a cycle that occurs on the primary PCI bus 5 in FIG. 1 when data is written to the register 81 in the base address register space 8 of the PCI device 4 shown in FIG.

【0048】図8において、信号400はPCIローカ
ルバス仕様2.1のCLK信号、信号401はPCIロ
ーカルバス仕様2.1のADバス信号、信号407はP
CIローカルバス仕様2.1のC/BE#信号、信号4
02はPCIローカルバス仕様2.1のFRAME#信
号、信号403はPCIローカルバス仕様2.1のIR
DY#信号、信号404はPCIローカルバス仕様2.
1のDEVSEL#信号、信号405はPCIローカル
バス仕様2.1のTRDY#信号、信号406はPCI
ローカルバス仕様2.1のSTOP#信号である。
In FIG. 8, a signal 400 is a CLK signal of the PCI local bus specification 2.1, a signal 401 is an AD bus signal of the PCI local bus specification 2.1, and a signal 407 is a P signal.
C / BE # signal of CI local bus specification 2.1, signal 4
02 is a FRAME # signal of the PCI local bus specification 2.1, and a signal 403 is an IR of the PCI local bus specification 2.1.
The DY # signal and the signal 404 correspond to PCI local bus specifications.
1 DEVSEL # signal, signal 405 is a TRDY # signal of the PCI local bus specification 2.1, and signal 406 is a PCI
This is a STOP # signal of the local bus specification 2.1.

【0049】信号401のデータ250は、PCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1を示すアドレスデータであり、データ255は、PC
Iデバイス4のコンフィグレーションレジスタ空間7、
または、ベースアドレスレジスタ空間8、または、コン
フィグレーションレジスタ空間9の任意レジスタを示す
アドレスデータである。
The data 250 of the signal 401 is stored in the register 8 in the base address register space 8 of the PCI device 4.
1 and the data 255 is PC
The configuration register space 7 of the I device 4,
Alternatively, it is address data indicating an arbitrary register in the base address register space 8 or the configuration register space 9.

【0050】データ252は、ベースアドレスレジスタ
空間8内のレジスタ81に対する書込みデータであり、
データ256は、データ255のアドレスのレジスタに
対するライトデータである。また、信号407のデータ
251は、コンフィグレーションライトサイクルを示す
コマンドデータであり、データ253,257は、バイ
トイネーブルデータで、コンフィグレーションレジスタ
番号25のデータ254はベースアドレスレジスタ空間
8内のレジスタ81のレジスタ番号である。CPU1が
ベースアドレスレジスタ空間8内のレジスタ81に対す
るデータ書込みを行うと、ホストブリッジ2は、図8の
T1より、コンフィグレーションライトサイクルを開始
する。
Data 252 is write data for register 81 in base address register space 8.
The data 256 is write data for the register at the address of the data 255. Data 251 of the signal 407 is command data indicating a configuration write cycle, data 253 and 257 are byte enable data, and data 254 of the configuration register number 25 is data of the register 81 in the base address register space 8. Register number. When the CPU 1 writes data to the register 81 in the base address register space 8, the host bridge 2 starts a configuration write cycle from T1 in FIG.

【0051】PCIブリッジ3は、T2でアドレスラッ
チ43のアドレスストローブ信号36をアクティブにす
るため、アドレスラッチは透過状態となる。T3でアド
レスストローブ信号36がインアクティブになり、アド
レスラッチ43はアドレスを保持する。T2でラッチが
透過状態となると、コンフィグレーションレジスタ番号
25には、レジスタ81のレジスタ番号10Hが出力さ
れ、レジスタ空間18の選択信号26がアクティブとな
る。
Since the PCI bridge 3 activates the address strobe signal 36 of the address latch 43 at T2, the address latch becomes transparent. At T3, the address strobe signal 36 becomes inactive, and the address latch 43 holds the address. When the latch enters the transparent state at T2, the register number 10H of the register 81 is output to the configuration register number 25, and the selection signal 26 of the register space 18 becomes active.

【0052】実際のレジスタ81へのデータ書込みはP
CIデバイス4が二次PCIバス6にコンフィグレーシ
ョンライトサイクルを発生させた後、サイクルが終了す
るまで完了しないため、PCIデバイス4はT4で、信
号404と信号406をアクティブとし、ホストブリッ
ジ2にコンフィグレーションライトサイクルの再試行を
要求する。ホストブリッジ2はT5でサイクルを終了
後、T6で再度レジスタ81に対するコンフィグレーシ
ョンライトサイクルを発行する。PCIブリッジ3は、
二次PCIバス6のコンフィグレーションライトサイク
ルが終了していないため、T7で再度、ホストブリッジ
2にコンフィグレーションライトサイクルの再試行を要
求する。
Actual data writing to the register 81 is P
After the CI device 4 generates a configuration write cycle on the secondary PCI bus 6 and does not complete until the cycle ends, the PCI device 4 activates the signals 404 and 406 at T4 and configures the host bridge 2. Request retry of the write cycle. After ending the cycle at T5, the host bridge 2 issues a configuration write cycle for the register 81 again at T6. PCI bridge 3
Since the configuration write cycle of the secondary PCI bus 6 has not been completed, the host bridge 2 is requested again to retry the configuration write cycle at T7.

【0053】ホストブリッジ2は、T8でサイクルを終
了後、T9で再度レジスタ81に対するコンフィグレー
ションライトサイクルを開始する。二次PCIバス6の
コンフィグレーションライトサイクルが終了し、レジス
タ81へのデータ書込みが完了しているため、T10で
信号404をアクティブとし、T11で信号405をア
クティブとしホストブリッジ2にサイクルの正常終了を
要求する。
After ending the cycle at T8, the host bridge 2 starts a configuration write cycle for the register 81 again at T9. Since the configuration write cycle of the secondary PCI bus 6 has been completed and the data writing to the register 81 has been completed, the signal 404 is activated at T10, the signal 405 is activated at T11, and the host bridge 2 completes the cycle normally. Request.

【0054】PCIブリッジ3は、T12でストローブ
信号30をアクティブにし、T13でストローブ信号3
0をインアクティブにすることにより、図4に示すレジ
スタ空間16のレジスタ番号10Hのレジスタ101に
ライトデータバス12のデータを格納する。PCIブリ
ッジ3のリセット後、初回のベースアドレスレジスタ空
間8内のレジスタ81へのデータ書き込みの場合、図5
のレジスタ空間18のブロック図に示したレジスタ12
1のロードイネーブル回路127のデコード信号133
がT13でアクティブとなり、ホストブリッジ2は、T
13のタイミングでサイクルを終了する。T14で、ホ
ストブリッジ2が任意のレジスタに対し、コンフィグレ
ーションライトサイクルを発生させると、アドレススト
ローブ信号36がアクティブとなり、アドレスラッチ4
3が透過状態になるため、コンフィグレーションレジス
タ番号25と選択信号26は信号401のアドレスデー
タ255に応じた状態に変化する。
The PCI bridge 3 activates the strobe signal 30 at T12, and activates the strobe signal 3 at T13.
By making 0 inactive, the data of the write data bus 12 is stored in the register 101 of the register number 10H in the register space 16 shown in FIG. After the reset of the PCI bridge 3, when data is first written to the register 81 in the base address register space 8, FIG.
Register 12 shown in the block diagram of the register space 18 of FIG.
1 decode signal 133 of the load enable circuit 127
Becomes active at T13, and the host bridge 2
The cycle ends at the timing of 13. At T14, when the host bridge 2 generates a configuration write cycle for an arbitrary register, the address strobe signal 36 becomes active and the address latch 4
3 becomes transparent, the configuration register number 25 and the selection signal 26 change to a state corresponding to the address data 255 of the signal 401.

【0055】図9は、図2に示したPCIデバイス4の
ベースアドレスレジスタ空間8内のレジスタ81に対す
るデータ書込みの際に図1の二次PCIバス6に発生す
るサイクルをタイミングチャートにより示している。図
9において、信号300は、PCIローカルバス仕様
2.1のCLK信号であり、信号301は、PCIロー
カルバス仕様2.1のADバス信号である。信号307
は、PCIローカルバス仕様2.1のC/BE#信号で
あり、信号302は、PCIローカルバス仕様2.1の
FRAME#信号である。
FIG. 9 is a timing chart showing a cycle that occurs on the secondary PCI bus 6 in FIG. 1 when data is written to the register 81 in the base address register space 8 of the PCI device 4 shown in FIG. . In FIG. 9, a signal 300 is a CLK signal of the PCI local bus specification 2.1, and a signal 301 is an AD bus signal of the PCI local bus specification 2.1. Signal 307
Is a C / BE # signal of the PCI local bus specification 2.1, and a signal 302 is a FRAME # signal of the PCI local bus specification 2.1.

【0056】信号303は、PCIローカルバス仕様
2.1のIRDY#信号であり、信号304は、PCI
ローカルバス仕様2.1のDEVSEL#信号である。
信号305は、PCIローカルバス仕様2.1のTRD
Y#信号であり、信号306は、PCIローカルバス仕
様2.1のSTOP#信号である。信号301のデータ
350は、PCIデバイス4のベースアドレスレジスタ
空間8内のレジスタ81を示すアドレスデータであり、
データ355は、PCIデバイス4のコンフィグレーシ
ョンレジスタ空間7、または、ベースアドレスレジスタ
空間8、または、コンフィグレーションレジスタ空間9
の任意レジスタを示すアドレスデータである。
The signal 303 is an IRDY # signal of the PCI local bus specification 2.1, and the signal 304 is a PCI local bus specification 2.1.
DEVSEL # signal of local bus specification 2.1.
The signal 305 is the TRD of the PCI local bus specification 2.1.
A Y # signal, and a signal 306 is a STOP # signal of the PCI local bus specification 2.1. Data 350 of the signal 301 is address data indicating the register 81 in the base address register space 8 of the PCI device 4,
The data 355 is stored in the configuration register space 7, the base address register space 8, or the configuration register space 9 of the PCI device 4.
Is the address data indicating the arbitrary register of FIG.

【0057】データ252は、ベースアドレスレジスタ
空間8内のレジスタ81に対する書込みデータであり、
データ356は、データ355のアドレスのレジスタに
対するライトデータである。信号307のデータ251
は、コンフィグレーションライトサイクルを示すコマン
ドデータであり、データ253,357は、バイトイネ
ーブルデータで、コンフィグレーションレジスタ番号3
4のデータ254はベースアドレスレジスタ空間8内の
レジスタ81のレジスタ番号である。PCIブリッジ3
は、図9のT1より、コンフィグレーションライトサイ
クルを開始する。
Data 252 is write data for register 81 in base address register space 8;
Data 356 is write data for the register at the address of data 355. Data 251 of signal 307
Is command data indicating a configuration write cycle, data 253 and 357 are byte enable data, and the configuration register number 3
The data 254 of 4 is the register number of the register 81 in the base address register space 8. PCI bridge 3
Starts a configuration write cycle from T1 in FIG.

【0058】PCIデバイス4は、T2でアドレスラッ
チ33のアドレスストローブ信号37をアクティブにす
るためアドレスラッチは透過状態となる。T3でアドレ
スストローブ信号37がインアクティブになり、アドレ
スラッチ33はアドレスを保持する。T2でラッチが透
過状態となると、レジスタ番号バス34には、レジスタ
81のレジスタ番号10Hが出力され、ベースアドレス
レジスタ空間8の選択信号40がアクティブとなる。
Since the PCI device 4 activates the address strobe signal 37 of the address latch 33 at T2, the address latch becomes transparent. At T3, the address strobe signal 37 becomes inactive, and the address latch 33 holds the address. When the latch enters the transparent state at T2, the register number 10H of the register 81 is output to the register number bus 34, and the selection signal 40 of the base address register space 8 becomes active.

【0059】PCIデバイス4は、T4で信号304を
アクティブにした後、T5で信号305をアクティブに
してサイクルに応答する。また、T6でストローブ信号
90をアクティブとし、T7でストローブ信号90をイ
ンアクティブにすることによりレジスタ81にライトデ
ータを格納する。
After activating the signal 304 at T4, the PCI device 4 responds to the cycle by activating the signal 305 at T5. The write data is stored in the register 81 by activating the strobe signal 90 at T6 and inactivating the strobe signal 90 at T7.

【0060】PCIブリッジ3は、T7のタイミングで
サイクルを終了する。T8でPCIブリッジ4が任意の
レジスタに対し、コンフィグレーションライトサイクル
を発生させると、アドレスストローブ信号37がアクテ
ィブとなり、アドレスラッチ33が透過状態になるた
め、レジスタ番号バス34とベースアドレスレジスタ空
間8のレジスタ空間選択信号40は信号301のアドレ
スデータ255に応じた状態に変化する。
The PCI bridge 3 ends the cycle at the timing of T7. When the PCI bridge 4 generates a configuration write cycle for an arbitrary register at T8, the address strobe signal 37 becomes active and the address latch 33 becomes transparent, so that the register number bus 34 and the base address register space 8 The register space selection signal 40 changes to a state corresponding to the address data 255 of the signal 301.

【0061】図10は、図2に示した図1のPCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1に対するデータ読み出しの際、一次PCIバス5に発
生するサイクルをタイミングチャートにより示してい
る。図10において、信号400はCLK信号、信号4
01はADバス信号、信号407はC/BE#信号、信
号402はFRAME#信号、信号403はIRDY#
信号、信号404はDEVSEL#信号、信号405は
TRDY#信号、信号406はSTOP#信号である。
FIG. 10 shows the register 8 in the base address register space 8 of the PCI device 4 of FIG. 1 shown in FIG.
The timing chart shows the cycle that occurs on the primary PCI bus 5 when data is read from the data bus 1. In FIG. 10, a signal 400 is a CLK signal, a signal 4
01 is an AD bus signal, signal 407 is a C / BE # signal, signal 402 is a FRAME # signal, and signal 403 is an IRDY #
The signal 404 is a DEVSEL # signal, the signal 405 is a TRDY # signal, and the signal 406 is a STOP # signal.

【0062】信号401のデータ250は、PCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1を示すアドレスデータであり、データ255は、PC
Iデバイス4のコンフィグレーションレジスタ空間7、
または、ベースアドレスレジスタ空間8、または、コン
フィグレーションレジスタ空間9の任意レジスタを示す
アドレスデータである。データ260は、ベースアドレ
スレジスタ空間8内のレジスタ81の格納データであ
り、信号407のデータ262は、コンフィグレーショ
ンリードサイクルを示すコマンドデータである。
The data 250 of the signal 401 is stored in the register 8 in the base address register space 8 of the PCI device 4.
1 and the data 255 is PC
The configuration register space 7 of the I device 4,
Alternatively, it is address data indicating an arbitrary register in the base address register space 8 or the configuration register space 9. Data 260 is data stored in the register 81 in the base address register space 8, and data 262 of the signal 407 is command data indicating a configuration read cycle.

【0063】データ253,257は、バイトイネーブ
ルデータであり、コンフィグレーションレジスタ番号2
5のデータ254は、ベースアドレスレジスタ空間8内
のレジスタ81のレジスタ番号である。CPU1がベー
スアドレスレジスタ空間8内のレジスタ81に対するデ
ータ読み出しを行うと、ホストブリッジ2は、図10の
T1よってコンフィグレーションリードサイクルを開始
する。PCIブリッジ3は、T2でアドレスラッチ43
のアドレスストローブ信号36をアクティブにするた
め、アドレスラッチは透過状態となる。
The data 253 and 257 are byte enable data, and have the configuration register number 2
The data 254 of 5 is the register number of the register 81 in the base address register space 8. When the CPU 1 reads data from the register 81 in the base address register space 8, the host bridge 2 starts a configuration read cycle at T1 in FIG. The PCI bridge 3 uses the address latch 43 at T2.
In order to activate the address strobe signal 36, the address latch is in a transparent state.

【0064】T3でアドレスストローブ信号36がイン
アクティブになり、アドレスラッチ43はアドレスを保
持する。T2でラッチが透過状態となると、コンフィグ
レーションレジスタ番号25には、レジスタ81のレジ
スタ番号10Hが出力され、レジスタ空間18の選択信
号26がアクティブとなる。実際のレジスタ81のデー
タ読み出しは、PCIデバイス4が二次PCIバス6に
コンフィグレーションリードサイクルを発生させ、サイ
クルが終了するまで完了しないため、PCIデバイス4
は、T4で信号404と信号406をアクティブとし、
ホストブリッジ2にコンフィグレーションリードサイク
ルの再試行を要求する。
At T3, the address strobe signal 36 becomes inactive, and the address latch 43 holds the address. When the latch enters the transparent state at T2, the register number 10H of the register 81 is output to the configuration register number 25, and the selection signal 26 of the register space 18 becomes active. The actual reading of data from the register 81 is not completed until the PCI device 4 generates a configuration read cycle on the secondary PCI bus 6 and ends the cycle.
Activates signals 404 and 406 at T4,
It requests the host bridge 2 to retry the configuration read cycle.

【0065】ホストブリッジ2は、T5でサイクルを終
了後、T6で再度レジスタ81に対するコンフィグレー
ションリードサイクルを発行する。PCIブリッジ3
は、二次PCIバス6のコンフィグレーションリードサ
イクルが終了していないため、T7で再度、ホストブリ
ッジ2にコンフィグレーションリードライトサイクルの
再試行を要求する。ホストブリッジ2は、T8でサイク
ルを終了後、T9で再度レジスタ81に対するコンフィ
グレーションリードサイクルを開始する。
After ending the cycle at T5, the host bridge 2 issues a configuration read cycle for the register 81 again at T6. PCI bridge 3
Requests the host bridge 2 to retry the configuration read / write cycle again at T7 because the configuration read cycle of the secondary PCI bus 6 has not been completed. After ending the cycle at T8, the host bridge 2 starts a configuration read cycle for the register 81 again at T9.

【0066】二次PCIバス6のコンフィグレーション
リードサイクルが終了しているため、T10で信号40
4をアクティブとし、T11で信号405をアクティブ
としホストブリッジ2にサイクルの正常終了を要求する
とともにリードデータバス13のデータを一次PCIバ
ス5に出力する。また、PCIブリッジ3は、T12で
ストローブ信号29をアクティブし、T13でストロー
ブ信号29をインアクティブにする。PCIブリッジ3
は、一次PCIバス5へのリードデータバス13のデー
タ出力を終了する。
Since the configuration read cycle of the secondary PCI bus 6 has been completed, the signal 40
4 is made active, the signal 405 is made active at T11, requesting the host bridge 2 to end the cycle normally, and outputting the data of the read data bus 13 to the primary PCI bus 5. Further, the PCI bridge 3 activates the strobe signal 29 at T12, and inactivates the strobe signal 29 at T13. PCI bridge 3
Ends the data output of the read data bus 13 to the primary PCI bus 5.

【0067】このとき、図5のレジスタ空間18のブロ
ック図に示すレジスタ121のロードイネーブル回路1
27の出力するロードイネーブル信号133がアクティ
ブであった場合、T13でレジスタ空間18のレジスタ
番号10Hのレジスタ121にバス13のデータが格納
され、ロードイネーブル信号133はインアクティブと
なる。また、ホストブリッジ2は、T13のタイミング
でサイクルを終了する。T14でホストブリッジ2が任
意のレジスタに対し、コンフィグレーションアクセスサ
イクルを発生させると、T15でアドレスストローブ信
号36がアクティブとなり、アドレスラッチ43が透過
状態になるため、コンフィグレーションレジスタ番号2
5とレジスタ空間18のレジスタ空間選択信号26は信
号401のアドレスデータ255に応じた状態に変化す
る。
At this time, the load enable circuit 1 of the register 121 shown in the block diagram of the register space 18 in FIG.
When the load enable signal 133 output from the bus 27 is active, the data of the bus 13 is stored in the register 121 of the register number 10H in the register space 18 at T13, and the load enable signal 133 becomes inactive. The host bridge 2 ends the cycle at the timing of T13. When the host bridge 2 generates a configuration access cycle for an arbitrary register at T14, the address strobe signal 36 becomes active and the address latch 43 becomes transparent at T15.
5 and the register space selection signal 26 of the register space 18 change to a state corresponding to the address data 255 of the signal 401.

【0068】図11は、図2に示した図1のPCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1へのデータ読み出しの際、図1の二次PCIバス6に
発生するサイクルをタイミングチャートにより示してい
る。図8において、信号300はCLK信号、信号30
1はADバス信号、信号307はC/BE#信号、信号
302はFRAME#信号、信号303はIRDY#信
号、信号304はDEVSEL#信号、信号305はT
RDY#信号、信号306はSTOP#信号である。
FIG. 11 shows the register 8 in the base address register space 8 of the PCI device 4 of FIG. 1 shown in FIG.
1 is a timing chart showing a cycle occurring on the secondary PCI bus 6 in FIG. In FIG. 8, a signal 300 is a CLK signal,
1 is an AD bus signal, signal 307 is a C / BE # signal, signal 302 is a FRAME # signal, signal 303 is an IRDY # signal, signal 304 is a DEVSEL # signal, and signal 305 is T
The RDY # signal and the signal 306 are STOP # signals.

【0069】信号301のデータ350は、PCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1を示すアドレスデータであり、データ355は、PC
Iデバイス4のコンフィグレーションレジスタ空間7、
または、ベースアドレスレジスタ空間8、または、コン
フィグレーションレジスタ空間9の任意レジスタを示す
アドレスデータである。データ260は、ベースアドレ
スレジスタ空間8内のレジスタ81の格納データであ
り、データ356は、データ355で指定されたアドレ
スのレジスタの格納データである。
The data 350 of the signal 301 is stored in the register 8 in the base address register space 8 of the PCI device 4.
1 and the data 355 is PC data.
The configuration register space 7 of the I device 4,
Alternatively, it is address data indicating an arbitrary register in the base address register space 8 or the configuration register space 9. Data 260 is data stored in the register 81 in the base address register space 8, and data 356 is data stored in the register at the address specified by the data 355.

【0070】信号307のデータ262は、コンフィグ
レーションリードサイクルを示すコマンドデータであ
り、データ251は、コンフィグレーションライトサイ
クルを示すコマンドデータである。データ253,35
7は、バイトイネーブルデータであり、コンフィグレー
ションレジスタ番号42のデータ254は、ベースアド
レスレジスタ空間8内のレジスタ81のレジスタ番号で
ある。PCIブリッジ3は、図9のT1よってコンフィ
グレーションリードサイクルを開始する。
Data 262 of signal 307 is command data indicating a configuration read cycle, and data 251 is command data indicating a configuration write cycle. Data 253, 35
Reference numeral 7 denotes byte enable data, and data 254 of the configuration register number 42 is a register number of the register 81 in the base address register space 8. The PCI bridge 3 starts a configuration read cycle at T1 in FIG.

【0071】PCIデバイス4は、T2でアドレスラッ
チ33のアドレスストローブ信号37をアクティブにす
るため、アドレスラッチは透過状態となる。T3でアド
レスストローブ信号37がインアクティブになり、アド
レスラッチ33はアドレスを保持する。T2でラッチが
透過状態となると、レジスタ番号バス34には、レジス
タ81のレジスタ番号10Hが出力され、ベースアドレ
スレジスタ空間8の選択信号40がアクティブとなる。
Since the PCI device 4 activates the address strobe signal 37 of the address latch 33 at T2, the address latch becomes transparent. At T3, the address strobe signal 37 becomes inactive, and the address latch 33 holds the address. When the latch enters the transparent state at T2, the register number 10H of the register 81 is output to the register number bus 34, and the selection signal 40 of the base address register space 8 becomes active.

【0072】PCIデバイス4は、T4で信号304を
アクティブにし、T5で信号305をアクティブにして
サイクルに応答するとともに、二次PCIバス上にレジ
スタ81の格納データを出力する。また、T6でレジス
タ81のリードデータの出力を終了し、PCIブリッジ
3はT6でサイクルを終了する。T8でPCIブリッジ
3が任意のレジスタに対し、コンフィグレーションライ
トサイクルを発生させると、アドレスストローブ信号3
7がアクティブとなり、アドレスラッチ33が透過状態
になるため、アドレス42とベースアドレスレジスタ空
間8のレジスタ空間選択信号40は信号301のデータ
255に応じた状態に変化する。
The PCI device 4 activates the signal 304 at T4, activates the signal 305 at T5, responds to the cycle, and outputs the data stored in the register 81 onto the secondary PCI bus. The output of the read data of the register 81 ends at T6, and the PCI bridge 3 ends the cycle at T6. When the PCI bridge 3 generates a configuration write cycle for an arbitrary register at T8, the address strobe signal 3
7 becomes active and the address latch 33 becomes transparent, so that the address 42 and the register space selection signal 40 of the base address register space 8 change to a state corresponding to the data 255 of the signal 301.

【0073】図12は、二次PCIバス6が非動作状態
で、図2に示した図1のPCIデバイス4のベースアド
レスレジスタ空間8内のレジスタ81に対するデータ読
み出しが行われた際の、PCIブリッジ3内部の動作を
タイミングチャートにより示している。図12におい
て、信号400はCLK信号、信号401はADバス信
号、信号407はC/BE#信号、信号402はFRA
ME#信号、信号403はIRDY#信号、信号404
はDEVSEL#信号、信号405はTRDY#信号、
信号406はSTOP#信号である。
FIG. 12 shows a case where data is read from the register 81 in the base address register space 8 of the PCI device 4 shown in FIG. 1 while the secondary PCI bus 6 is not operating. The operation inside the bridge 3 is shown by a timing chart. 12, a signal 400 is a CLK signal, a signal 401 is an AD bus signal, a signal 407 is a C / BE # signal, and a signal 402 is FRA.
The ME # signal and the signal 403 are the IRDY # signal and the signal 404.
Is a DEVSEL # signal, signal 405 is a TRDY # signal,
Signal 406 is a STOP # signal.

【0074】信号401のデータ250は、PCIデバ
イス4のベースアドレスレジスタ空間8内のレジスタ8
1を示すアドレスデータであり、データ255は、PC
Iデバイス4のコンフィグレーションレジスタ空間7、
または、ベースアドレスレジスタ空間8、または、コン
フィグレーションレジスタ空間9の任意レジスタを示す
アドレスデータである。データ350は、レジスタ空間
16内部のレジスタ番号10Hのレジスタ101に格納
されているデータであり、データ351は、レジスタ空
間18内部のレジスタ番号10Hのレジスタ121に格
納されているデータである。
The data 250 of the signal 401 is stored in the register 8 in the base address register space 8 of the PCI device 4.
1 and the data 255 is PC
The configuration register space 7 of the I device 4,
Alternatively, it is address data indicating an arbitrary register in the base address register space 8 or the configuration register space 9. The data 350 is data stored in the register 101 of the register number 10H inside the register space 16, and the data 351 is data stored in the register 121 of the register number 10H inside the register space 18.

【0075】データ450は、マスク処理回路17の出
力データであり、信号407のデータ262は、コンフ
ィグレーションリードサイクルを示すコマンドデータで
ある。データ253,257は、バイトイネーブルデー
タであり、コンフィグレーションレジスタ番号25のデ
ータ254は、ベースアドレスレジスタ空間8内のレジ
スタ81のレジスタ番号10Hである。
Data 450 is output data of the mask processing circuit 17, and data 262 of the signal 407 is command data indicating a configuration read cycle. The data 253 and 257 are byte enable data, and the data 254 of the configuration register number 25 is the register number 10H of the register 81 in the base address register space 8.

【0076】CPU1がベースアドレスレジスタ空間8
内のレジスタ81に対するデータ読み出しを行うと、ホ
ストブリッジ2は図12のT1より、コンフィグレーシ
ョンリードサイクルを開始する。PCIブリッジ3は、
T2でアドレスラッチ43のアドレスストローブ信号3
6をアクティブにするため、アドレスラッチは透過状態
となる。T3でアドレスストローブ信号36がインアク
ティブになり、アドレスラッチ43はアドレスを保持す
る。T2でラッチが透過状態となると、コンフィグレー
ションレジスタ番号25には、レジスタ81のレジスタ
番号10Hが出力され、選択信号26がアクティブとな
る。
The CPU 1 sets the base address register space 8
When data is read from the register 81 in the host bridge 2, the host bridge 2 starts a configuration read cycle from T1 in FIG. PCI bridge 3
The address strobe signal 3 of the address latch 43 at T2
To activate 6, the address latch is in a transparent state. At T3, the address strobe signal 36 becomes inactive, and the address latch 43 holds the address. When the latch enters the transparent state at T2, the register number 10H of the register 81 is output to the configuration register number 25, and the selection signal 26 becomes active.

【0077】ここで、レジスタ空間16内部のレジスタ
101とレジスタ空間18内部のレジスタ121レジス
タが選択され、マスク処理回路17でマスク処理が開始
される。PCIブリッジ3は、T4で信号404をアク
ティブとし、T5で信号405をアクティブとするとと
もに、マスク処理回路17の出力450を一次PCIバ
ス5に出力する。また、PCIブリッジ3はT6で信号
405をインアクティブとし、一次PCIバス5へのデ
ータ出力を終了し、ホストブリッジ2はT6のタイミン
グでサイクルを終了する。
Here, the register 101 in the register space 16 and the register 121 in the register space 18 are selected, and the mask processing circuit 17 starts mask processing. The PCI bridge 3 activates the signal 404 at T4, activates the signal 405 at T5, and outputs the output 450 of the mask processing circuit 17 to the primary PCI bus 5. Further, the PCI bridge 3 makes the signal 405 inactive at T6, ends the data output to the primary PCI bus 5, and the host bridge 2 ends the cycle at the timing of T6.

【0078】ホストブリッジ2がT7でレジスタに対す
るレジスタアクセスを開始するとアドレスストローブ信
号36がアクティブとなりコンフィグレーションレジス
タ番号25はアドレスデータ255に応じた値に変化す
る。レジスタ空間19は、CPU1からPCIデバイス
4のコンフィグレーションレジスタ空間7への書込みが
行われた場合に書込みデータを格納し、CPU1からP
CIデバイス4のコンフィグレーションレジスタ空間7
のリードが行われた場合、PCIデバイス4が二次PC
Iバス6に出力する応答データを格納する。
When the host bridge 2 starts register access to the register at T7, the address strobe signal 36 becomes active, and the configuration register number 25 changes to a value corresponding to the address data 255. The register space 19 stores write data when writing from the CPU 1 to the configuration register space 7 of the PCI device 4 is performed.
Configuration register space 7 of CI device 4
Is read, the PCI device 4 becomes the secondary PC
The response data to be output to the I bus 6 is stored.

【0079】二次PCIバス6が非動作状態の時に、C
PU1からPCIデバイス4のコンフィグレーションレ
ジスタ空間7へのリードが行われた場合、レジスタ空間
19の格納データを一次PCIバス5に出力することに
より、PCIデバイス4のコンフィグレーションレジス
タ空間7へのアクセスのエミュレーションを行う。レジ
スタ空間20は、CPU1からPCIデバイス4のコン
フィグレーションレジスタ空間9への書込みが行われた
場合に書込みデータを格納し、CPU1からPCIデバ
イス4のコンフィグレーションレジスタ空間9のリード
が行われた場合、PCIデバイス4が二次PCIバス6
に出力する応答データを格納する。
When the secondary PCI bus 6 is inactive, C
When the reading from the PU 1 to the configuration register space 7 of the PCI device 4 is performed, the data stored in the register space 19 is output to the primary PCI bus 5 so that the access to the configuration register space 7 of the PCI device 4 can be performed. Perform emulation. The register space 20 stores write data when writing from the CPU 1 to the configuration register space 9 of the PCI device 4 is performed, and when the CPU 1 reads from the configuration register space 9 of the PCI device 4, PCI device 4 is secondary PCI bus 6
To store the response data to be output.

【0080】二次PCIバス6が非動作状態の時に、C
PU1からPCIデバイス4のコンフィグレーションレ
ジスタ空間9へのリードが行われた場合、レジスタ空間
20の格納データを一次PCIバス5に出力することに
より、PCIデバイス4のコンフィグレーションレジス
タ空間9へのアクセスのエミュレーションを行う。レジ
スタ空間16は、CPU1からPCIデバイス4のベー
スアドレスレジスタ空間8への書込みが行われた場合に
書込みデータを格納し、CPU1からPCIデバイス4
のベースアドレスレジスタ空間8のリードが行われた場
合、PCIデバイス4が二次PCIバス6に出力する応
答データを格納する。
When the secondary PCI bus 6 is inactive, C
When reading from the PU 1 to the configuration register space 9 of the PCI device 4 is performed, the data stored in the register space 20 is output to the primary PCI bus 5 so that access to the configuration register space 9 of the PCI device 4 can be performed. Perform emulation. The register space 16 stores write data when writing from the CPU 1 to the base address register space 8 of the PCI device 4 is performed.
When the base address register space 8 is read, the PCI device 4 stores the response data output to the secondary PCI bus 6.

【0081】PCIバスを使用したパーソナルコンピュ
ーターにおいては、電源投入時、CPU1と、ホストブ
リッジ2と、PCIブリッジ3と、PCIデバイス4は
リセットされる。続いてPCIデバイスのコンフィギュ
レーションが開始されPCIデバイスの検知後、各デバ
イスのリソース要求条件確認が行われる。このとき、第
1の手順として、PCIデバイス4内部のベースアドレ
スレジスタ空間8内部のレジスタ番号10H、14H、
18H、1CH、20H、24Hの各レジスタに対し、
FFFFFFFFHの書き込みが行われる。このため、
PCIデバイス4のベースアドレスレジスタ空間8の内
部は図3のレジスタ構成に示す様に、レジスタ81はF
FFFFFF1H、レジスタ82はFFF00000H
に設定され、PCIブリッジ3内部のレジスタ空間16
内部のレジスタ101、102、103、104、10
5、106にはFFFFFFFFHが格納される。
In a personal computer using the PCI bus, when the power is turned on, the CPU 1, the host bridge 2, the PCI bridge 3, and the PCI device 4 are reset. Subsequently, the configuration of the PCI device is started, and after the detection of the PCI device, the resource requirement of each device is checked. At this time, as a first procedure, the register numbers 10H, 14H,
For each register of 18H, 1CH, 20H, 24H,
Writing of FFFFFFFFH is performed. For this reason,
As shown in the register configuration of FIG. 3, the inside of the base address register space 8 of the PCI device 4
FFFFFF1H, register 82 is FFF00000H
And the register space 16 inside the PCI bridge 3
Internal registers 101, 102, 103, 104, 10
FFFFFFFFH is stored in 5 and 106.

【0082】第2の手順として、PCIデバイス4のベ
ースアドレスレジスタ空間8内部レジスタの読み出しが
行われる。このとき、CPU1には図4のレジスタ構成
図に示すように、レジスタ番号10Hのレジスタ読み出
し時にはレジスタ81の格納データFFFFFFF1H
が読み込まれ、レジスタ番号14Hの読み出し時にはレ
ジスタ82の格納データFFF00000Hが読み込ま
れる。また、レジスタ番号18H、1CH、20H、2
4Hの読み出し時には、図3に示したセレクタ83によ
り00000000Hが読み込まれる。このとき、PC
Iブリッジ3のレジスタ空間18の内部レジスタ121
はFFFFFFF1H、レジスタ122はFFF000
00H、レジスタ123、レジスタ124、レジスタ1
25、レジスタ126は00000000Hに設定され
る。
As a second procedure, reading of the internal registers of the base address register space 8 of the PCI device 4 is performed. At this time, as shown in the register configuration diagram of FIG. 4, when reading the register of the register number 10H, the CPU 1 stores the stored data FFFFFFF1H of the register 81.
Is read, and at the time of reading the register number 14H, the stored data FFF0000H of the register 82 is read. Also, register numbers 18H, 1CH, 20H, 2
At the time of reading 4H, 00000000H is read by the selector 83 shown in FIG. At this time, PC
Internal register 121 in register space 18 of I-bridge 3
Is FFFFFFF1H, and register 122 is FFF000
00H, register 123, register 124, register 1
25, the register 126 is set to 0000000000H.

【0083】第3の手順としてCPU1は、レジスタ8
1、レジスタ82に対しアドレスデータの設定を行う。
レジスタ81の読み出しデータはFFFFFFF1H
で、第0ビットが1にセットされていることからレジス
タ81のアドレス空間はIOアドレス空間に配置する必
要があり、かつ、上位28ビットが1にセットされてい
ることから、0からFHの16バイト分のアドレス空間
が必要と判定するとともに、リソースを確保し、その開
始アドレスをレジスタ81に書き込む。
As a third procedure, the CPU 1 sets the register 8
1. The address data is set in the register 82.
The read data of the register 81 is FFFFFFF1H
Since the 0th bit is set to 1, the address space of the register 81 must be arranged in the IO address space, and since the upper 28 bits are set to 1, 16 to 0 to FH are set. It is determined that an address space for bytes is necessary, resources are secured, and the start address is written to the register 81.

【0084】レジスタ82の読み出しデータはFFF0
0000Hで、第0ビットが0にセットされていること
から、レジスタ82のアドレス空間はメモリアドレス空
間に配置する必要があり、かつ、上位12ビットが1に
セットされていることから、0からFFFFFHの1M
バイト分のアドレス空間が必要と判定し、リソースを確
保してその開始アドレスをレジスタ82に書き込む。
The read data of the register 82 is FFF0
Since the 0th bit is set to 0 at 0000H, the address space of the register 82 must be located in the memory address space, and since the upper 12 bits are set to 1, the address space from 0 to FFFFFH 1M
It is determined that an address space for bytes is necessary, resources are secured, and the start address is written to the register 82.

【0085】また、PCIブリッジ3内部のレジスタ空
間16のレジスタ101には、レジスタ81への書き込
みデータが、レジスタ102へは、レジスタ82への書
き込みデータが格納される。このとき、レジスタ81へ
の書込みデータを0000FED0H、レジスタ82へ
の書込みデータをCBA00000Hとすると、書込み
後のレジスタ81の設定データは0000FED1H、
レジスタ82の設定データはCBA00000Hとな
り、PCIブリッジ3内部のレジスタ空間16のレジス
タ101には0000FED0Hが、レジスタ102に
はCBA00000Hが格納される。
Further, data to be written to the register 81 is stored in the register 101 of the register space 16 inside the PCI bridge 3, and data to be written to the register 82 is stored in the register 102. At this time, if the write data to the register 81 is 0000FED0H and the write data to the register 82 is CBA00000H, the setting data of the register 81 after writing is 0000FED1H,
The setting data of the register 82 is CBA00000H, 0000FED0H is stored in the register 101 of the register space 16 inside the PCI bridge 3, and CBA0000H is stored in the register 102.

【0086】上述した設定状態で、二次PCIバス6が
非動作状態となった場合の動作について説明する。二次
PCIバス6が非動作状態で、PCIデバイス4のベー
スアドレスレジスタ空間8のレジスタ番号10Hのリー
ドが行われた場合、選択信号26とコンフィグレーショ
ンレジスタ番号25により、レジスタ空間16の出力デ
ータとしてレジスタ101の格納データ0000FED
0Hが選択され、レジスタ空間18の出力データとして
レジスタ121の格納データFFFFFFF1Hが選択
され、マスク制御信号46は3ビットとも0である。図
6に示したマスク処理回路17のAND処理回路150
の出力153は0000FEDHとなり、出力152は
0Hとなる。
The operation in the case where the secondary PCI bus 6 becomes inactive in the above-described setting state will be described. When the secondary PCI bus 6 is inactive and the register number 10H of the base address register space 8 of the PCI device 4 is read, the selection signal 26 and the configuration register number 25 serve as output data of the register space 16. Data stored in register 101 0000FED
0H is selected, the stored data FFFFFFFF1H of the register 121 is selected as the output data of the register space 18, and the mask control signal 46 is 0 for all three bits. AND processing circuit 150 of mask processing circuit 17 shown in FIG.
Output 153 becomes 0000FEDH, and the output 152 becomes 0H.

【0087】マージ処理回路151の動作について説明
する。マスク制御信号46のビット0信号160、ビッ
ト1信号161、ビット2信号162がいずれも0のた
めNORゲート169の出力信号163は0となり、セ
レクタ165、166の出力はレジスタ空間18の出力
データのビット0信号174とビット1信号173が選
択される。データセレクタ167、168の出力は、レ
ジスタ空間18の出力データのビット0信号174が1
のため、ORゲート170の出力が1となり、レジスタ
空間16のビット2信号176、ビット3信号175が
選択される。従って、マスク処理回路17の出力データ
は0000FED1Hとなり、PCIデバイス4のレジ
スタ81の格納データを正しく再現することが可能とな
る。
The operation of the merge processing circuit 151 will be described. Since the bit 0 signal 160, the bit 1 signal 161, and the bit 2 signal 162 of the mask control signal 46 are all 0, the output signal 163 of the NOR gate 169 becomes 0, and the outputs of the selectors 165 and 166 are the output data of the register space 18. Bit 0 signal 174 and bit 1 signal 173 are selected. The outputs of the data selectors 167 and 168 are such that the bit 0 signal 174 of the output data of the register space 18 is 1
Therefore, the output of the OR gate 170 becomes 1, and the bit 2 signal 176 and the bit 3 signal 175 of the register space 16 are selected. Therefore, the output data of the mask processing circuit 17 is 0000FED1H, and the data stored in the register 81 of the PCI device 4 can be correctly reproduced.

【0088】本実施形態では、マスク処理回路17をレ
ジスタ空間16の出力側に設けているが、図13に示す
ように、マスク処理回路17をレジスタ空間16の入力
側に設けることも可能である。すなわち、CPU1から
PCIデバイス4のベースアドレスレジスタ空間8内部
のレジスタにデータの書込みが行われると、レジスタ空
間18の出力データと、ライトデータバス13のデータ
でマスク処理結果がレジスタ空間16の内部レジスタに
格納される。
In this embodiment, the mask processing circuit 17 is provided on the output side of the register space 16, but the mask processing circuit 17 can be provided on the input side of the register space 16 as shown in FIG. . That is, when data is written from the CPU 1 to the register in the base address register space 8 of the PCI device 4, the mask processing result is output from the register space 18 and the data of the write data bus 13 to the internal register of the register space 16. Is stored in

【0089】このように、PCIデバイスコンフィギュ
レーション時にベースアドレスレジスタリソース要求条
件を確認する際、二次PCIバス6に接続されたPCI
デバイス4のベースアドレスレジスタ空間8への読み出
しに対する応答データをレジスタ空間18に格納すると
ともに、ベースアドレスレジスタ空間8に対する書き込
みデータをレジスタ空間16にてトレースし、二次PC
Iバス6の非動作時には、ベースアドレスレジスタ空間
8への読み出しに対してレジスタ空間16の格納データ
をレジスタ空間18の格納データでマスク処理して出力
するため、ソフトウェアによるマスク処理が不要になる
とともに、二次PCIバスに接続されるPCIデバイス
への依存性を回避することが可能となる。
As described above, when confirming the base address register resource requirement at the time of PCI device configuration, the PCI connected to the secondary PCI bus 6
The response data to the reading of the base address register space 8 of the device 4 is stored in the register space 18, and the write data to the base address register space 8 is traced in the register space 16, and the secondary PC
When the I bus 6 is not operating, the data stored in the register space 16 is masked with the data stored in the register space 18 and output when reading into the base address register space 8, so that masking by software becomes unnecessary. , The dependency on the PCI device connected to the secondary PCI bus can be avoided.

【0090】[0090]

【発明の効果】以上説明したように本発明は、PCIデ
バイスのコンフィギュレーションをオペレーティングシ
ステム自体で行うような場合でも適用できるため、ベー
スアドレスレジスタ書き込み時のソフトウェアによるマ
スク処理が不要であり、また、PCIデバイスのコンフ
ィグレーション時のリソース要求条件確認時のベースア
ドレスレジスタの読み出しデータをレジスタに格納し、
ベースアドレスレジスタ読み出し時にベースアドレスレ
ジスタへの書込みデータをトレースしていたレジスタの
格納データとマスク処理を行っているため、二次PCI
バスに接続されるPCIデバイスへの依存性を回避する
ことの可能なレジスタ制御方法を提供することができ
る。また、請求項2における発明によれば、ベースアド
レスレジスタ空間に対して書き込みが行われた際、ホス
トブリッジが一次PCIバスに発生させるコンフィグレ
ーションライトサイクルを利用することができる。
As described above, the present invention can be applied to the case where the configuration of the PCI device is performed by the operating system itself, so that mask processing by software at the time of writing the base address register is not required. The read data of the base address register at the time of confirming the resource requirement condition at the time of configuration of the PCI device is stored in the register,
Since the data stored in the register that traced the data written to the base address register when reading the base address register and the mask processing are performed, the secondary PCI
A register control method capable of avoiding dependence on a PCI device connected to a bus can be provided. According to the second aspect of the present invention, the configuration write cycle generated on the primary PCI bus by the host bridge can be used when data is written to the base address register space.

【0091】さらに、請求項3における発明によれば、
コンフィグレーションライトサイクルの発生に応答して
第二のレジスタ空間に書き込みデータを格納することが
できる。さらに、請求項4における発明によれば、ベー
スアドレスレジスタ空間に対して読み出しが行われた
際、ホストブリッジが一次PCIバスに発生させるコン
フィグレーションライトサイクルを利用することができ
る。
Further, according to the invention of claim 3,
The write data can be stored in the second register space in response to the occurrence of the configuration write cycle. Further, according to the invention of claim 4, it is possible to use a configuration write cycle generated on the primary PCI bus by the host bridge when data is read from the base address register space.

【0092】さらに、請求項5における発明によれば、
コンフィグレーションライトサイクルの発生に応答して
マスク処理を行い、得られた結果を一次PCIバスに出
力することができる。さらに、請求項6における発明に
よれば、一次PCIバスに出力された応答データを読み
出しデータとして上記CPUに出力することができる。
Furthermore, according to the invention of claim 5,
Mask processing is performed in response to the occurrence of the configuration write cycle, and the obtained result can be output to the primary PCI bus. Furthermore, according to the invention of claim 6, the response data output to the primary PCI bus can be output to the CPU as read data.

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

【図1】本実施形態におけるレジスタ制御方法の適用例
を示すブロック図である。
FIG. 1 is a block diagram illustrating an application example of a register control method according to an embodiment.

【図2】ベースアドレスレジスタ空間の構成例を示すブ
ロック図である。
FIG. 2 is a block diagram illustrating a configuration example of a base address register space.

【図3】ベースアドレスレジスタ空間のレジスタ構成を
示すレジスタ構成図である。
FIG. 3 is a register configuration diagram showing a register configuration of a base address register space.

【図4】レジスタ空間の構成例を示すブロック図であ
る。
FIG. 4 is a block diagram illustrating a configuration example of a register space.

【図5】レジスタ空間の構成例を示すブロック図であ
る。
FIG. 5 is a block diagram illustrating a configuration example of a register space.

【図6】マスク処理回路の構成例を示すブロック図であ
る。
FIG. 6 is a block diagram illustrating a configuration example of a mask processing circuit.

【図7】マージ処理回路の構成例を示す回路図である。FIG. 7 is a circuit diagram illustrating a configuration example of a merge processing circuit;

【図8】一次PCIバスに発生するサイクルを示すタイ
ミングチャートである。
FIG. 8 is a timing chart showing a cycle occurring on the primary PCI bus.

【図9】二次PCIバスに発生するサイクルを示すタイ
ミングチャートである。
FIG. 9 is a timing chart showing a cycle occurring on the secondary PCI bus.

【図10】一次PCIバスに発生するサイクルを示すタ
イミングチャートである。
FIG. 10 is a timing chart showing a cycle occurring on a primary PCI bus.

【図11】二次PCIバスに発生するサイクルを示すタ
イミングチャートである。
FIG. 11 is a timing chart showing a cycle occurring on the secondary PCI bus.

【図12】PCIブリッジ内部の動作を示すタイミング
チャートである。
FIG. 12 is a timing chart showing an operation inside the PCI bridge.

【図13】レジスタ制御方法の別の適用例を示すブロッ
ク図である。
FIG. 13 is a block diagram showing another application example of the register control method.

【図14】従来例におけるレジスタ制御方法の適用例を
示すブロック図である。
FIG. 14 is a block diagram showing an application example of a conventional register control method.

【図15】ベースアドレスレジスタ空間のレジスタ構成
を示すレジスタ構成図である。
FIG. 15 is a register configuration diagram showing a register configuration of a base address register space.

【図16】従来例におけるレジスタ制御方法の別の適用
例を示すブロック図である。
FIG. 16 is a block diagram showing another application example of the conventional register control method.

【図17】レジスタ空間の構成例を示すブロック図であ
る。
FIG. 17 is a block diagram illustrating a configuration example of a register space.

【図18】読み出し専用ビットのマスク処理手順を示す
フローチャートである。
FIG. 18 is a flowchart showing a procedure for masking a read-only bit.

【図19】マスク処理用のマスク情報検出シーケンスを
示すフローチャートである。
FIG. 19 is a flowchart illustrating a mask information detection sequence for mask processing.

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

1 CPU 3 PCIブリッジ 4 PCIデバイス 5 一次PCIバス 6 二次PCIバス 7 コンフィグレーションレジスタ空間 8 ベースアドレスレジスタ空間 9 コンフィグレーションレジスタ空間 12 ライトデータバス 13 リードデータバス 15 レジスタ空間選択回路 16 レジスタ空間 17 マスク処理回路 18〜20 レジスタ空間 21 一次バスIF回路 22 二次バスIF回路 23 一次PCIバス制御回路 24 二次PCIバス制御回路 33 アドレスラッチ 38 レジスタ選択回路 43 アドレスラッチ 45 データバス 80 デコーダ 81,82 レジスタ 83 セレクタ 100 デコーダ 101〜106 レジスタ 107 セレクタ 120 デコーダ 121〜126 レジスタ 127〜132 ロードイネーブル回路 145 セレクタ 150 AND処理回路 151 マージ処理回路 165〜168 データセレクタ 169 NORゲート 170 ORゲート 183 インバータ 1 CPU 3 PCI bridge 4 PCI device 5 Primary PCI bus 6 Secondary PCI bus 7 Configuration register space 8 Base address register space 9 Configuration register space 12 Write data bus 13 Read data bus 15 Register space selection circuit 16 Register space 17 Mask Processing circuit 18 to 20 Register space 21 Primary bus IF circuit 22 Secondary bus IF circuit 23 Primary PCI bus control circuit 24 Secondary PCI bus control circuit 33 Address latch 38 Register selection circuit 43 Address latch 45 Data bus 80 Decoder 81, 82 Register 83 selector 100 decoder 101-106 register 107 selector 120 decoder 121-126 register 127-132 load enable circuit 145 select 0.99 the AND processing circuit 151 merge processing circuit 165 to 168 data selector 169 NOR gate 170 OR gates 183 inverter

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 PCIデバイスコンフィギュレーション
時にベースアドレスレジスタリソース要求条件を確認す
る際、PCIブリッジの二次PCIバスに接続されたP
CIデバイスのベースアドレスレジスタ空間への読み出
しに対する応答データを上記PCIブリッジ内部の第一
のレジスタ空間に格納するとともに、上記ベースアドレ
スレジスタ空間に対する書き込みデータを上記PCIブ
リッジ内部の第二のレジスタ空間にてトレースし、上記
二次PCIバスの非動作時には、上記ベースアドレスレ
ジスタ空間への読み出しに対して上記第二のレジスタ空
間の格納データを上記第一のレジスタ空間の格納データ
でマスク処理して出力することを特徴とするレジスタ制
御方法。
When confirming a base address register resource requirement at the time of PCI device configuration, a PID connected to a secondary PCI bus of a PCI bridge is used.
Response data to the CI device for reading to the base address register space is stored in a first register space inside the PCI bridge, and write data for the base address register space is stored in a second register space inside the PCI bridge. Trace and, when the secondary PCI bus is not operating, mask the data stored in the second register space with the data stored in the first register space for reading to the base address register space and output the result. A register control method characterized by the above-mentioned.
【請求項2】 上記請求項1に記載のレジスタ制御方法
において、 上記二次PCIバスの非動作時、CPUから上記ベース
アドレスレジスタ空間に対して書き込みが行われると、
このベースアドレスレジスタ空間に対するコンフィグレ
ーションライトサイクルをホストブリッジが一次PCI
バスに発生させることを特徴とするレジスタ制御方法。
2. The register control method according to claim 1, wherein when the secondary PCI bus is not operating, writing is performed from the CPU to the base address register space.
The host bridge executes the configuration write cycle for this base address register space by the primary PCI.
A register control method, wherein the register is generated on a bus.
【請求項3】 上記請求項2に記載のレジスタ制御方法
において、 上記PCIブリッジは、上記一次PCIバスにおけるコ
ンフィグレーションライトサイクルの発生に応答し、上
記書き込みデータを上記第二のレジスタ空間に格納する
ことを特徴とするレジスタ制御方法。
3. The register control method according to claim 2, wherein the PCI bridge stores the write data in the second register space in response to an occurrence of a configuration write cycle on the primary PCI bus. A register control method characterized by the above-mentioned.
【請求項4】 上記請求項1〜請求項3のいずれかに記
載のレジスタ制御方法において、 上記CPUにより上記ベースアドレスレジスタ空間に対
して読み出しが行われると、このベースアドレスレジス
タ空間に対するコンフィグレーションライトサイクルを
上記ホストブリッジが上記一次PCIバスに発生させる
ことを特徴とするレジスタ制御方法。
4. The register control method according to claim 1, wherein when the CPU reads out the base address register space, the configuration write for the base address register space is performed. A method according to claim 1, wherein said host bridge generates a cycle on said primary PCI bus.
【請求項5】 上記請求項4に記載のレジスタ制御方法
において、 上記PCIブリッジは、上記一次PCIバスにおけるコ
ンフィグレーションライトサイクルの発生に応答し、上
記第二のレジスタ空間に格納された格納データと、上記
第一のレジスタ空間に格納された格納データとのマスク
処理を行い、得られた結果を上記一次PCIバスに出力
することを特徴とするレジスタ制御方法。
5. The register control method according to claim 4, wherein said PCI bridge responds to the occurrence of a configuration write cycle in said primary PCI bus and stores said data stored in said second register space. And performing a masking process with the stored data stored in the first register space and outputting the obtained result to the primary PCI bus.
【請求項6】 上記請求項5に記載のレジスタ制御方法
において、 上記ホストブリッジは、上記PCIブリッジが上記一次
PCIバスに出力した応答データを読み出しデータとし
て上記CPUに出力することを特徴とするレジスタ制御
方法。
6. The register control method according to claim 5, wherein said host bridge outputs response data output from said PCI bridge to said primary PCI bus to said CPU as read data. Control method.
JP11165591A 1999-06-11 1999-06-11 Control of register Pending JP2000353144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11165591A JP2000353144A (en) 1999-06-11 1999-06-11 Control of register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11165591A JP2000353144A (en) 1999-06-11 1999-06-11 Control of register

Publications (1)

Publication Number Publication Date
JP2000353144A true JP2000353144A (en) 2000-12-19

Family

ID=15815273

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11165591A Pending JP2000353144A (en) 1999-06-11 1999-06-11 Control of register

Country Status (1)

Country Link
JP (1) JP2000353144A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2310906C2 (en) * 2001-05-10 2007-11-20 Гизеке Унд Девриент Гмбх Method for protecting a computing device for unsanctioned execution of operations over content of its registers and computing device for realization of the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2310906C2 (en) * 2001-05-10 2007-11-20 Гизеке Унд Девриент Гмбх Method for protecting a computing device for unsanctioned execution of operations over content of its registers and computing device for realization of the method

Similar Documents

Publication Publication Date Title
EP0569969B1 (en) Microcomputer having instruction memory storing instructions for reading out internal conditions
JPH04229329A (en) Personal computer apparatus
US11461139B2 (en) Memory pool allocation for a multi-core system
JPH0798692A (en) Microcomputer
CN110765060B (en) MDIO bus-to-parallel bus conversion method and device, equipment and medium
KR20070108410A (en) Method and apparatus for independent and simultaneous data transfer on host controller
JP2000353144A (en) Control of register
US7689864B2 (en) Processor comprising an integrated debugging interface controlled by the processing unit of the processor
JP3635996B2 (en) Information processing system
JPS6086642A (en) Setting system of memory control information
US6560698B1 (en) Register change summary resource
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
KR102821760B1 (en) Read-only memory testing using built-in memory self-test controller
CN109542840B (en) SoC system
CN114840466B (en) Resource allocation space allocation method and device, computer equipment and storage medium
JP3323341B2 (en) Emulation processor and emulator equipped with it
US20040107388A1 (en) Microcomputer
JP3779758B2 (en) A single board computer that can be connected to the host computer at any time to change the user program
JP2002541582A (en) Method and system for updating user memory in an emulator system
JP3006487B2 (en) Emulation device
JPH0934795A (en) Copy protection method for cpu program
JP2004021422A (en) Microcomputer
JP2654105B2 (en) Microprocessor
JPS6252334B2 (en)
JPH0320834A (en) Initial diagnostic method for information processor