CN101118268B - System and method for testing external component interconnection extension slot - Google Patents
System and method for testing external component interconnection extension slot Download PDFInfo
- Publication number
- CN101118268B CN101118268B CN2006100991599A CN200610099159A CN101118268B CN 101118268 B CN101118268 B CN 101118268B CN 2006100991599 A CN2006100991599 A CN 2006100991599A CN 200610099159 A CN200610099159 A CN 200610099159A CN 101118268 B CN101118268 B CN 101118268B
- Authority
- CN
- China
- Prior art keywords
- external component
- component interconnection
- test
- slot
- test card
- 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 - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 263
- 238000000034 method Methods 0.000 title claims description 12
- 230000015654 memory Effects 0.000 claims abstract description 204
- 230000006870 function Effects 0.000 claims abstract description 23
- 238000010998 test method Methods 0.000 claims abstract description 13
- 230000003068 static effect Effects 0.000 claims description 60
- 230000005540 biological transmission Effects 0.000 claims description 25
- 238000006243 chemical reaction Methods 0.000 claims description 25
- 230000002093 peripheral effect Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 4
- 230000005055 memory storage Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种插槽测试方法,尤其涉及一种外部组件互连延伸(PCIX)插槽的测试系统及方法。The invention relates to a slot testing method, in particular to a testing system and method for an external component interconnect extension (PCIX) slot.
背景技术Background technique
目前一些新型主板的外部组件互连延伸(PCIX)插槽能够同时拥有外部组件互连(PCI)信号和高速外部组件互连(PCI-E)信号,即主板支持普通的外部组件互连设备也支持高速外部组件互连设备。在测试主板的外部组件互连延伸(PCIX)插槽上的外部组件互连(PCI)信号和高速外部组件互连(PCI-E)信号时,需在外部组件互连延伸(PCIX)插槽上提供相应的接口转向卡,以连接外部组件互连卡或者高速外部组件互连卡,进而引出外部组件互连延伸(PCIX)插槽的上述两种信号进行测试。At present, the external component interconnect extension (PCIX) slots of some new motherboards can have both PCI signals and high-speed external component interconnect (PCI-E) signals, that is, the motherboard supports ordinary external component interconnect devices as well as Supports high-speed external component interconnect devices. When testing the external component interconnect (PCI) signal and high-speed external component interconnect (PCI-E) signal on the external component interconnect extension (PCIX) slot of the motherboard, it is necessary to use the external component interconnect extension (PCIX) slot Corresponding interface turning cards are provided on the board to connect the external component interconnection card or the high-speed external component interconnection card, and then lead out the above two signals of the external component interconnection extension (PCIX) slot for testing.
但是,在上述外部组件互连延伸插槽的信号测试中,现有技术不能在一次测试中同时测试到外部组件互连延伸插槽的全部插针。若想全面测试外部组件互连延伸插槽的外部组件互连信号和高速外部组件互连信号,则必须先插入外部组件互连(PCI)接口转向卡及外部组件互连测试卡至外部组件互连延伸(PCIX)插槽中以进行测试,测试完毕后关机另换一套高速外部组件互连(PCIE)接口转向卡及高速外部组件互连测试卡,再重新开机测试,或者反之。因此,上述测试方法不仅花费时间和力气,而且还有可能忽略对某类信号的测试。However, in the signal test of the above-mentioned external component interconnection extension slot, the prior art cannot simultaneously test all pins of the external component interconnection extension slot in one test. If you want to fully test the external component interconnection signal and high-speed external component interconnection signal of the external component interconnection extension slot, you must first insert the external component interconnection (PCI) interface transfer card and the external component interconnection test card into the external component interconnection Connect to the extension (PCIX) slot for testing. After the test, shut down and replace another set of high-speed external component interconnection (PCIE) interface steering card and high-speed external component interconnection test card, and then restart the test, or vice versa. Therefore, the above-mentioned testing method not only takes time and effort, but also may neglect the testing of certain types of signals.
此外,在测试外部组件互连(PCI)和高速外部组件互连(PCI-E)的直接内存存取(Direct Memory Access,DMA)的传输能力时,以往需要在操作系统上开辟出两块较大的连续实体内部存储器以作为测试中介。由于外部组件互连(PCI)和高速外部组件互连(PCI-E)本身规范的不同以及操作系统的牵制,因此连续实体内部存储器的开辟较为困难。此外,这种测试方法还需要消耗大量的实体内部存储器资源,且与其它需要占用大量内部存储器资源的测试项之间存在冲突。In addition, when testing the direct memory access (Direct Memory Access, DMA) transmission capability of the external component interconnect (PCI) and the high-speed external component interconnect (PCI-E), it was necessary to open up two relatively large blocks on the operating system in the past. Large contiguous physical internal memory as a test medium. Due to the different specifications of PCI and PCI-E, as well as the constraints of the operating system, it is difficult to develop the internal memory of the continuous entity. In addition, this test method also needs to consume a large amount of internal memory resources of the entity, and conflicts with other test items that need to occupy a large amount of internal memory resources.
为此,目前存在一种通过外部组件互连测试卡内建的静态内存进行测试的方法,较上述现有测试方法,此测试方法可以少开辟一连续实体内部存储器。但是,此测试方法受到操作系统的限制,无法分配出与测试卡内建内部存储器相同大小的连续实体内部存储器,因此多采用多次搬移的方法进行实体内部存储器分配。但是目前测试程序只能分配64k的连续实体内部存储器,每次只搬运64k则无法形成足够的测试压力,没有实现内部存储器所需的一次性直接内存存取,而且浪费时间造成测试效率的降低。由于各测试项对内部存储器的竞争,长时间的测试会导致无法分配符合要求的连续实体内部存储器,进而无法进行正常测试。For this reason, there is currently a method for testing through the built-in static memory of the external component interconnection test card. Compared with the above-mentioned existing testing method, this testing method can save a continuous physical internal memory. However, this test method is limited by the operating system and cannot allocate a continuous physical internal memory of the same size as the test card's built-in internal memory. Therefore, multiple transfers are often used to allocate the physical internal memory. However, the current test program can only allocate 64k of continuous physical internal memory, and only moving 64k each time cannot form enough test pressure, and the one-time direct memory access required by the internal memory cannot be realized, and the test efficiency is reduced due to waste of time. Due to the competition of each test item for the internal memory, the long-term test will lead to the inability to allocate a continuous physical internal memory that meets the requirements, and then the normal test cannot be performed.
发明内容Contents of the invention
本发明所要解决的技术问题在于在于提供一种外部组件互连延伸插槽的测试系统及方法,能够一次测试外部组件互连延伸(PCIX)插槽的全部外部组件互连(PCI)信号与高速外部组件互连(PCIE)信号,节省测试时间且增加测试程序的通用性。The technical problem to be solved by the present invention is to provide a test system and method for a peripheral component interconnect extension slot, which can test all PCI signals and high-speed External Component Interconnect (PCIE) signals, saving test time and increasing test program versatility.
本发明的另一目的在于提供一种外部组件互连延伸插槽的测试系统及方法,能够避免开辟连续实体内部存储器作为测试中介的瓶颈问题,而且可以实现真正意义的直接内存存取(DMA)压力测试。Another object of the present invention is to provide a test system and method for interconnecting extension slots of external components, which can avoid the bottleneck problem of opening up continuous physical internal memory as a test intermediary, and can realize direct memory access (DMA) in a real sense pressure test.
为实现上述目的,本发明所提供的一种外部组件互连延伸插槽的测试系统,用以连接于主板上的外部组件互连延伸(PCIX)插槽,可进行一外部组件互连(PCI)测试卡与一高速外部组件互连(PCIE)测试卡的信号测试,其中此测试系统包含有:一接口转换模块以及一测试模块;于此,接口转换模块设置有至少一外部组件互连(PCI)插槽与至少一高速外部组件互连(PCIE)插槽,其中此外部组件互连(PCI)插槽连接有外部组件互连(PCI)测试卡,高速外部组件互连(PCIE)插槽连接有高速外部组件互连(PCIE)测试卡;并且接口转换模块系与主板上的外部组件互连延伸(PCIX)插槽连接,进而接口转换模块转换外部组件互连(PCI)插槽的接口规格与高速外部组件互连(PCIE)插槽的接口规格为外部组件互连延伸(PCIX)插槽的接口规格,以由外部组件互连延伸(PCIX)插槽上引出外部组件互连(PCI)测试卡的信号与高速外部组件互连(PCIE)测试卡的信号。测试模块则通过直接内存存取(DMA)的传输以一次测试外部组件互连(PCI)测试卡与高速外部组件互连(PCIE)测试卡的直接内存存取(DMA)传输功能。To achieve the above object, the present invention provides a test system for a peripheral component interconnection extension slot, which is used to connect to a peripheral component interconnection extension (PCIX) slot on the motherboard, and can perform a peripheral component interconnection (PCIX) slot. ) test card and a high-speed external component interconnection (PCIE) test card signal test, wherein the test system includes: an interface conversion module and a test module; here, the interface conversion module is provided with at least one external component interconnection ( PCI) slot and at least one high-speed external component interconnection (PCIE) slot, wherein this external component interconnection (PCI) slot is connected with external component interconnection (PCI) test card, high-speed external component interconnection (PCIE) plug The slot is connected with a high-speed external component interconnect (PCIE) test card; and the interface conversion module is connected with the external component interconnect extension (PCIX) slot on the mainboard, and then the interface conversion module converts the external component interconnect (PCI) slot The interface specification of the interface specification and the high-speed external component interconnection (PCIE) slot is the interface specification of the external component interconnection extension (PCIX) slot, to draw the external component interconnection ( PCI) test card signals and PCI Express external component interconnect (PCIE) test card signals. The test module tests the direct memory access (DMA) transfer function of the peripheral component interconnect (PCI) test card and the high-speed peripheral component interconnect (PCIE) test card through direct memory access (DMA) transfer.
依照本发明的外部组件互连延伸插槽的测试系统,其中测试模块系通过外部组件互连(PCI)测试卡内建的一第一静态内存(SRAM)与高速外部组件互连(PCIE)测试卡内建的一第二静态内存(SRAM),于第一静态内存与第二静态内存之间执行直接内存存取(DMA)的传输测试。或者,接口转换模块上设置有一连续实体内部存储器,进而测试模块是通过外部组件互连(PCI)测试卡内建的一第一静态内存(SRAM)或高速外部组件互连(PCIE)测试卡内建的一第二静态内存(SRAM),于此第一静态内存与接口转换模块的连续实体内部存储器之间或者第二静态内存与接口转换模块的连续实体内部存储器之间执行直接内存存取(DMA)的传输测试。According to the test system of the external component interconnect extension slot of the present invention, wherein the test module is tested by a first static memory (SRAM) built in the external component interconnect (PCI) test card and a high-speed external component interconnect (PCIE) A second static memory (SRAM) built in the card executes a direct memory access (DMA) transfer test between the first static memory and the second static memory. Or, the interface conversion module is provided with a continuous physical internal memory, and then the test module is built in a first static memory (SRAM) or a high-speed external component interconnection (PCIE) test card through the external component interconnection (PCI) test card. A second static memory (SRAM) built, between the first static memory and the continuous physical internal memory of the interface conversion module or between the second static memory and the continuous physical internal memory of the interface conversion module, perform direct memory access ( DMA) transfer test.
此外,本发明还提供的一种外部组件互连延伸插槽的测试方法,包含以下步骤:设置至少一外部组件互连(PCI)插槽与至少一高速外部组件互连(PCIE)插槽于一接口规格转向卡上;通过此接口规格转向卡转换外部组件互连(PCI)插槽的接口规格与高速外部组件互连(PCIE)插槽的接口规格为一外部组件互连延伸(PCIX)插槽的接口规格,进而由外部组件互连延伸(PCIX)插槽上引出一外部组件互连(PCI)信号与一高速外部组件互连(PCIE)信号;以及通过直接内存存取(DMA)的传输以一次测试此外部组件互连(PCI)插槽连接的一外部组件互连测试卡与此高速外部组件互连(PCIE)插槽连接的一高速外部组件互连测试卡的直接内存存取(DMA)传输功能。In addition, the present invention also provides a test method for an external component interconnect extension slot, comprising the following steps: setting at least one external component interconnect (PCI) slot and at least one high-speed external component interconnect (PCIE) slot on An interface specification is turned on the card; the interface specification of the PCI slot and the interface specification of the high-speed external component interconnection (PCIE) slot are converted into an external component interconnection extension (PCIX) by this interface specification turning card The interface specifications of the slot, and then lead out a peripheral component interconnect (PCI) signal and a high-speed peripheral component interconnect (PCIE) signal from the peripheral component interconnect extension (PCIX) slot; and through direct memory access (DMA) The transfer of a high-speed external component interconnect test card connected to this external component interconnect (PCI) slot with a test of the direct memory storage of a high-speed external component interconnect test card connected to this high-speed external component interconnect (PCIE) slot Take (DMA) transfer function.
依照本发明的外部组件互连延伸插槽的测试方法,其中一次测试外部组件互连(PCI)插槽连接的一外部组件互连测试卡与高速外部组件互连(PCIE)插槽连接的一高速外部组件互连测试卡的直接内存存取(DMA)传输功能的步骤,通过外部组件互连(PCI)插槽连接的外部组件互连(PCI)测试卡内建的一第一静态内存(SRAM),与高速外部组件互连(PCIE)插槽连接的高速外部组件互连(PCIE)测试卡内建的一第二静态内存(SRAM),进而在第一静态内存与第二静态内存之间执行直接内存存取(DMA)的传输测试。对于此优选方案,当测试该外部组件互连(PCI)插槽连接的外部组件互连测试卡的直接内存存取(DMA)传输功能时,设置外部组件互连(PCI)测试卡的直接内存存取(DMA)传输目的位地址为高速外部组件互连(PCIE)测试卡的第二静态内存地址;以及搬运第一静态内存的数据至该第二静态内存中;当测试该高速外部组件互连(PCIE)插槽连接的高速外部组件互连测试卡的直接内存存取(DMA)传输功能时,设置高速外部组件互连(PCIE)测试卡的直接内存存取(DMA)传输目的位地址为外部组件互连(PCI)测试卡的第一静态内存地址;以及搬运第二静态内存的数据至第一静态内存中。According to the test method of the external component interconnection extension slot of the present invention, wherein a test external component interconnection test card connected with a high-speed external component interconnection (PCIE) slot is connected with a high-speed external component interconnection (PCIE) slot. The steps of the direct memory access (DMA) transfer function of the high-speed external component interconnection test card, a first static memory ( SRAM), a second static memory (SRAM) built into the high-speed external component interconnection (PCIE) test card connected to the high-speed external component interconnection (PCIE) slot, and then between the first static memory and the second static memory Perform direct memory access (DMA) transfer tests in between. For this preferred scheme, when testing the direct memory access (DMA) transfer function of the PCI test card connected to the PCI slot, the direct memory of the PCI test card is set to Access (DMA) transmission destination bit address is the second static memory address of high-speed external component interconnection (PCIE) test card; When the direct memory access (DMA) transfer function of the high-speed external component interconnection (PCIE) test card is connected to the (PCIE) slot, set the direct memory access (DMA) transfer destination address of the high-speed external component interconnection (PCIE) test card It is the first static memory address of the PCI test card; and the data of the second static memory is transferred to the first static memory.
或者,较佳地是于接口规格转向卡上设置有一连续实体内部存储器,进而在一次测试外部组件互连(PCI)插槽连接的一外部组件互连测试卡与高速外部组件互连(PCIE)插槽连接的一高速外部组件互连测试卡的直接内存存取(DMA)传输功能的步骤中,通过外部组件互连(PCI)插槽连接的外部组件互连(PCI)测试卡内建的一第一静态内存(SRAM)或者高速外部组件互连(PCIE)插槽连接的高速外部组件互连(PCIE)测试卡内建的一第二静态内存(SRAM),于第一静态内存与接口规格转向卡的连续实体内部存储器之间或者第二静态内存与接口规格转向卡的连续实体内部存储器之间执行直接内存存取(DMA)的传输测试。Or, it is preferable to be provided with a continuous physical internal memory on the interface specification turning card, and then an external component interconnection test card connected to a test external component interconnection (PCI) slot and a high-speed external component interconnection (PCIE) A high-speed External Component Interconnect (PCI) test card connected via a PCI slot in the steps of the Direct Memory Access (DMA) transfer function of the card built-in A first static memory (SRAM) or a high-speed external component interconnection (PCIE) test card built-in a second static memory (SRAM) connected to the high-speed external component interconnection (PCIE) slot, in the first static memory and interface A direct memory access (DMA) transfer test is performed between the contiguous physical internal memory of the specification diverting card or between the second static memory and the contiguous physical internal memory of the interface specification diverting card.
本发明的外部组件互连延伸插槽的测试系统及方法通过一插槽接口规格转换卡,能够在外部组件互连延伸(PCIX)插槽上引出多个外部组件互连(PCI)插槽与高速外部组件互连(PCIE)插槽,实现外部组件互连(PCI)信号与高速外部组件互连(PCIE)信号的同时测试,避免插拔测试卡及重启机器的麻烦。The test system and method of the external component interconnection extension slot of the present invention can draw a plurality of external component interconnection (PCI) slots and High-speed external component interconnect (PCIE) slot, realizes simultaneous testing of external component interconnect (PCI) signals and high-speed external component interconnect (PCIE) signals, avoiding the trouble of plugging and unplugging test cards and restarting the machine.
此外,本发明利用外部组件互连(PCI)测试卡与高速外部组件互连(PCIE)测试卡内建的两块实体内部存储器,或者上述两种测试卡内建的实体内部存储器分别与接口规格转向卡内部设置的连续实体内部存储器,以执行相互之间的直接内存存取(DMA)测试传输,进而摆脱了需要单独分配实体内部存储器作为测试中介的限制,不仅节省系统资源,避免与其它测试项抢夺内部存储器资源的问题,还增加了测试的广度和可靠性。In addition, the present invention utilizes two built-in physical internal memories of the external component interconnection (PCI) test card and the high-speed external component interconnection (PCIE) test card, or the built-in physical internal memory of the above-mentioned two kinds of test cards is respectively connected with the interface specification Turn to the continuous physical internal memory set inside the card to perform direct memory access (DMA) test transfers between each other, thus getting rid of the limitation of separately allocating physical internal memory as a test intermediary, not only saving system resources, but also avoiding the need to communicate with other tests Items that rob internal memory resources also increase the breadth and reliability of the test.
附图说明Description of drawings
图1为本发明的第一实施例的外部组件互连延伸插槽的测试系统的系统方块图;FIG. 1 is a system block diagram of a testing system for external component interconnect extension slots according to a first embodiment of the present invention;
图2为本发明的第二实施例的外部组件互连延伸插槽的测试系统的系统方块图;以及2 is a system block diagram of a test system for external component interconnect extension slots according to a second embodiment of the present invention; and
图3、图4至图5为本发明的一实施例的外部组件互连延伸插槽的测试方法的流程图。FIG. 3 , and FIG. 4 to FIG. 5 are flowcharts of a testing method for an external component interconnect extension slot according to an embodiment of the present invention.
其中,附图标记:Among them, reference signs:
12:接口转换模块12: Interface conversion module
14:外部组件互连测试卡14: External component interconnection test card
16:高速外部组件互连测试卡16: High-speed external component interconnection test card
18:外部组件互连延伸插槽18: External component interconnect extension slot
20:测试模块20: Test Module
22:外部组件互连总线22: External component interconnect bus
24:高速外部组件互连总线24: High-speed external component interconnect bus
步骤101设置至少一外部组件互连插槽与至少一高速外部组件互连插槽于一接口规格转向卡上
步骤102检测接口规格转向卡上是否连接有外部组件互连测试卡和高速外部组件互连测试卡?
步骤103提示未插入测试卡
步骤104通过接口规格转向卡转换外部组件互连插槽的接口规格与高速外部组件互连插槽的接口规格为一外部组件互连延伸的接口规格
步骤105通过浏览外部组件互连的配置空间查找接口规格转向卡上此外部组件互连测试卡的实体内部存储器地址
步骤106通过浏览外部组件互连的配置空间查找接口规格转向卡上高速外部组件互连测试卡的实体内部存储器地址
步骤107设置外部组件互连测试卡的直接内存存取传输目的位地址为高速外部组件互连测试卡的实体内部存储器地址Step 107 sets the direct memory access transmission destination bit address of the external component interconnection test card to be the entity internal memory address of the high-speed external component interconnection test card
步骤108向外部组件互连测试卡的内部存储器中写入可识别的数据Step 108 writes identifiable data into the internal memory of the external component interconnection test card
步骤109开启外部组件互连测试卡的直接内存存取,以整块搬运此卡中的内部存储器内容至高速外部组件互连测试卡的内部存储器中Step 109 opens the direct memory access of the external device interconnection test card to transfer the internal memory content in the card to the internal memory of the high-speed external device interconnection test card in one piece
步骤110读取高速外部组件互连测试卡的内部存储器的数据,并与外部组件互连测试卡的内部存储器的数据对比?Step 110: Read the data of the internal memory of the high-speed external component interconnection test card, and compare it with the data of the internal memory of the external component interconnection test card?
步骤111恢复外部组件互连测试卡的设置Step 111 Restore the settings of the external component interconnection test card
步骤112设置高速外部组件互连测试卡的直接内存存取传输目的位地址为外部组件互连测试卡的实体内部存储器地址Step 112 sets the direct memory access transmission destination bit address of the high-speed external component interconnection test card as the entity internal memory address of the external component interconnection test card
步骤113将高速外部组件互连测试卡的内部存储器数据取反写回Step 113 fetches and writes back the internal memory data of the high-speed external component interconnection test card
步骤114开启高速外部组件互连测试卡的直接内存存取传输,并整块搬运高速外部组件互连测试卡的内部存储器的内容至外部组件互连测试卡的体内部存储器中
步骤115读取外部组件互连测试卡的内部存储器的数据,并与高速外部组件互连测试卡的内部存储器的数据对比?Step 115: Read the data of the internal memory of the external component interconnection test card, and compare it with the data of the internal memory of the high-speed external component interconnection test card?
步骤116恢复相关设置
步骤117恢复高速外部组件互连测试卡的设置
具体实施方式Detailed ways
有关本发明的特征与实作,兹配合图示作最佳实施例详细说明如下。Regarding the features and implementation of the present invention, the preferred embodiments are described in detail below in conjunction with the drawings.
如图1所示,此图为本发明的第一实施例的外部组件互连延伸插槽的测试系统的系统方块图。如图所示,本发明的外部组件互连延伸插槽的测试系统包含一接口转换模块12,其中接口转换模块12上设置有至少一外部组件互连(PCI)插槽与至少一高速外部组件互连(PCIE)插槽,并且此外部组件互连(PCI)插槽中可连接有一外部组件互连(PCI)测试卡14,高速外部组件互连(PCIE)插槽可连接有一高速外部组件互连(PCIE)测试卡16。As shown in FIG. 1 , this figure is a system block diagram of a testing system for external component interconnect extension slots according to a first embodiment of the present invention. As shown in the figure, the test system of the external component interconnect extension slot of the present invention includes an
本发明的外部组件互连延伸插槽的测试系统还包含一外部组件互连延伸(PCIX)插槽18,设置于计算机主板上,并与接口转换模块12连接。此外,外部组件互连延伸(PCIX)插槽18分别与外部组件互连(PCI)总线22及高速外部组件互连(PCIE)总线24连接,因此外部组件互连延伸插槽18同时拥有外部组件互连(PCI)信号与高速外部组件互连(PCIE)信号。The test system of the peripheral component interconnection extension slot of the present invention also includes a peripheral component interconnection extension (PCIX)
接口转换模块12可以将外部组件互连(PCI)插槽的接口规格与高速外部组件互连(PCIE)插槽的接口规格转换为外部组件互连延伸(PCIX)插槽的接口规格,因此当接口转换模块12插入至外部组件互连延伸插槽18时,可以从不同的信号插针独立地获取各自所需信号,进而使得转换的外部组件互连(PCI)插槽与高速外部组件互连(PCIE)插槽可同时使用。The
本发明的外部组件互连延伸插槽的测试系统包含一测试模块20,通过直接内存存取(DMA)的传输而一次测试外部组件互连(PCI)测试卡14的信号与高速外部组件互连(PCIE)测试卡16的直接内存存取(DMA)传输功能。因此,在测试外部组件互连延伸插槽时,可以同时在接口转换模块12的外部组件互连(PCI)插槽中与高速外部组件互连(PCIE)插槽中分别插有外围组件互连测试卡14与高速外部组件互连测试卡16,进而在测试过程无需重启机器即能够完全测试外部组件互连延伸插槽的所有信号插针。The test system of the external component interconnection extension slot of the present invention comprises a
另外,由于现有测试方法需要在操作系统上开辟连续的实体内部存储器作为测试中介,其中外部组件互连(PCI)需要512K,高速外部组件互连(PCIE)需要4M,这种现有测试方法不仅由于操作系统限制较难实现,而且还造成内部存储器的浪费。因此,在此实施例中,本发明的测试模块20利用外部组件互连测试卡14与高速外部组件互连测试卡16的内建实体内部存储器,利用各自的静态内存(SRAM)进行测试,于外部组件互连测试卡14的静态内存与高速外部组件互连测试卡16的静态内存之间执行直接内存存取(DMA)的传输测试。In addition, because the existing test method needs to open up a continuous entity internal memory on the operating system as a test intermediary, wherein the external component interconnect (PCI) requires 512K, and the high-speed external component interconnect (PCIE) requires 4M, this existing test method Not only is it difficult to implement due to operating system limitations, but it also causes waste of internal memory. Therefore, in this embodiment, the
依照上述实施例,在测试时,需要设置外部组件互连(PCI)测试卡14的直接内存存取(DMA)传输目的位地址为高速外部组件互连(PCIE)测试卡16的静态内存地址,或者设置高速外部组件互连(PCIE)测试卡16的直接内存存取(DMA)传输目的位地址为外部组件互连(PCI)测试卡14的静态内存地址。因此,如图中箭头所示,通过依次整块搬运各个测试卡的静态内存的数据至对方的静态内存中,进而实现同时测试外部组件互连延伸插槽18的外部组件互连(PCI)与高速外部组件互连(PCIE)的直接内存存取(DMA)传输功能。According to the foregoing embodiment, when testing, the direct memory access (DMA) transfer destination bit address of the
此外,依照本发明还可以于接口转换模块12上设置有一连续实体内部存储器,具体说明请参照图2,此图为本发明的第二实施例的外部组件互连延伸插槽的测试系统的系统方块图。In addition, according to the present invention, a continuous physical internal memory can also be provided on the
在此实施例中,图2中与图1相同的编号用以表示相同的组件及功能,因此这里不再赘述。与图1不同的是,可以在接口转换模块12上设置一连续实体内部存储器,因此测试模块20在执行测试时,通过接口转换模块12上所设置的连续实体内部存储器与外部组件互连(PCI)测试卡14内建的静态内存,以按照图标实线箭头的方向执行直接内存存取(DMA)传输;或者,通过接口转换模块12上的连续实体内部存储器与高速外部组件互连(PCIE)测试卡16内建的静态内存,并按照图标虚线箭头的方向执行直接内存存取(DMA)传输,进而一次测试外部组件互连(PCI)测试卡与高速外部组件互连(PCIE)测试卡的直接内存存取(DMA)传输功能。In this embodiment, the same numbers in FIG. 2 as those in FIG. 1 are used to indicate the same components and functions, so details are not repeated here. Different from Fig. 1, a continuous entity internal memory can be set on the
以本发明的上述方式,能够实现较大内存,例如4M的一次搬运,完成真正意义的直接内存存取压力测试,而不需要系统开辟另外的实体内部存储器,进而摆脱了操作系统的束缚,增加测试项的兼容性,还节省系统的资源,避免了与其它测试项,例如内存测试抢夺内部存储器资源的问题。With the above-mentioned method of the present invention, it is possible to realize a larger memory, such as a transfer of 4M, to complete a real direct memory access stress test without the need for the system to open up another physical internal memory, thereby getting rid of the shackles of the operating system, increasing The compatibility of test items also saves system resources and avoids the problem of robbing internal memory resources with other test items, such as memory tests.
需要指出的是,在接口转换模块12上设置有至少一外部组件互连(PCI)插槽与至少一高速外部组件互连(PCIE)插槽的前提下,本发明的外部组件互连延伸插槽的测试系统也可以利用现有测试方法通过开辟一块或两块连续内部存储器,而实现外部组件互连(PCI)信号与高速外部组件互连(PCIE)信号的同时测试。It should be pointed out that, on the premise that at least one PCI slot and at least one high-speed PCI slot are provided on the
如图3、图4及图5所示,为本发明的一实施例的外部组件互连延伸插槽的测试方法的流程图。As shown in FIG. 3 , FIG. 4 and FIG. 5 , they are flowcharts of a testing method for an external component interconnect extension slot according to an embodiment of the present invention.
如图所示,首先设置至少一外部组件互连(PCI)插槽与至少一高速外部组件互连(PCIE)插槽于一接口规格转向卡上(步骤101)。在测试时,可以先检测接口规格转向卡上是否连接有外部组件互连测试卡和高速外部组件互连测试卡(步骤102),以对测试操作进行提示。若没有连接对应测试卡,则提示操作员未插入测试卡(步骤103),然后前进至步骤116,恢复相关设备(步骤116),表示测试失败。As shown in the figure, firstly, at least one PCI slot and at least one PCI Express slot are arranged on an interface specification turn card (step 101 ). During the test, it may first be detected whether the interface specification steering card is connected with the external component interconnection test card and the high-speed external component interconnection test card (step 102 ), so as to prompt the test operation. If the corresponding test card is not connected, the operator will be prompted that the test card has not been inserted (step 103), and then proceed to step 116 to restore the relevant equipment (step 116), indicating that the test fails.
如果检测到接口规格转向卡上已连接有外部组件互连测试卡和高速外部组件互连测试卡,则通过接口规格转向卡对外部组件互连(PCI)插槽的接口规格与高速外部组件互连(PCIE)插槽的接口规格进行转换,以得到外部组件互连延伸(PCIX)的接口规格。因此,可以于外部组件互连延伸插槽上同时引出外部组件互连(PCI)信号与高速外部组件互连(PCIE)信号(步骤104)。If it is detected that the interface specification turning card is connected with an external component interconnection test card and a high-speed external component interconnection test card, then the interface specification of the interface specification turning card to the external component interconnection (PCI) slot is connected with the high-speed external component interconnection test card. The interface specification of the PCIE slot is converted to obtain the interface specification of the External Component Interconnect Extension (PCIX). Therefore, the peripheral component interconnect (PCI) signal and the peripheral component interconnect express (PCIE) signal can be simultaneously led out on the PCI extension slot (step 104 ).
较佳地,本发明的外部组件互连延伸插槽的测试方法可通过外部组件互连测试卡和高速外部组件互连测试卡自身所带的内部存储器,例如静态内存(SRAM)进行直接内存存取(DMA)测试传输。这时,通过浏览外部组件互连的配置空间,以查找接口规格转向卡上的外部组件互连测试卡的实体内部存储器地址(步骤105),以及查找高速组件互连测试卡的实体内部存储器地址(步骤106)。Preferably, the test method of the external component interconnection extension slot of the present invention can carry out direct memory storage by the internal memory of the external component interconnection test card and the high-speed external component interconnection test card itself, such as static memory (SRAM) Take a (DMA) test transfer. At this time, by browsing the configuration space of the external component interconnection, to find the physical internal memory address (step 105) of the external component interconnection test card on the interface specification steering card, and to find the physical internal memory address of the high-speed component interconnection test card (step 106).
接着,如果首先测试外部组件互连的直接内存存取(DMA)传输功能,则设置外部组件互连测试卡的现场可程序化门阵列(Field Programmable GateArray,FPGA)控制缓存器,将外部组件互连测试卡的直接内存存取传输目的位地址设置为高速外部组件互连测试卡的内部存储器地址(步骤107),并向外部组件互连测试卡的内部存储器中写入可识别的数据(步骤108),例如0x55AA…。然后开启外部组件互连测试卡的直接内存存取,以整块搬运此卡的内部存储器内容至高速外部组件互连测试卡至内部存储器中(步骤109)。读取高速外部组件互连测试卡的内部存储器的数据,并与外部组件互连测试卡的内部存储器的数据对比,以判断是否相同(步骤110)。若不相同,则恢复相关设置(步骤116),表示测试失败;否则,恢复外部组件互连测试卡的设置(步骤111)。Then, if the direct memory access (DMA) transfer function of the external component interconnection is tested at first, then the Field Programmable Gate Array (Field Programmable GateArray, FPGA) control register of the external component interconnection test card is set, and the external component interconnection Even the direct memory access transmission destination bit address of the test card is set to the internal memory address (step 107) of the high-speed external component interconnection test card, and writes identifiable data in the internal memory of the external component interconnection test card (step 108), such as 0x55AA.... Then enable the direct memory access of the external device interconnection test card to transfer the contents of the internal memory of the card to the high-speed external device interconnection test card to the internal memory in one piece (step 109 ). Read the data of the internal memory of the high-speed external component interconnection test card, and compare with the data of the internal memory of the external component interconnection test card to determine whether they are the same (step 110). If not, restore the relevant settings (step 116), indicating that the test failed; otherwise, restore the settings of the external component interconnection test card (step 111).
接下来测试高速外部组件互连的直接内存存取(DMA)传输功能,则设置高速外部组件互连测试卡的现场可程序化门阵列控制缓存器,以设置高速外部组件互连测试卡的直接内存存取传输目的位地址为外部组件互连测试卡的实体内部存储器地址(步骤112)。然后,将高速外部组件互连测试卡的内部存储器数据取反写回(步骤113)。随之开启高速外部组件互连测试卡的直接内存存取传输,并整块搬运高速外部组件互连测试卡的内部存储器的内容,以传输至外部组件互连测试卡的实体内部静态内存中(步骤114)。Next, test the direct memory access (DMA) transfer function of the high-speed external component interconnection, then set the field programmable gate array control register of the high-speed external component interconnection test card to set the direct memory access (DMA) of the high-speed external component interconnection test card The memory access transmission destination bit address is the physical internal memory address of the external component interconnect test card (step 112). Then, invert and write back the data in the internal memory of the high-speed external component interconnection test card (step 113). Thereupon, the direct memory access transmission of the high-speed external component interconnection test card is opened, and the contents of the internal memory of the high-speed external component interconnection test card are transferred in one block, so as to be transmitted to the entity internal static memory of the external component interconnection test card ( Step 114).
然后读取外部组件互连测试卡的内部静态内存的数据,并与高速外部组件互连测试卡的内部静态内存的数据对比,以判断是否相同(步骤115)。若相同,则恢复高速外部组件互连测试卡的设置(步骤117),这时即表示外部组件互连测试卡与高速外部组件互连测试卡通过测试;否则,恢复相关设置(步骤116),表示对此卡的测试失败。Then read the data of the internal static memory of the external component interconnection test card, and compare it with the data of the internal static memory of the high-speed external component interconnection test card to determine whether they are the same (step 115). If identical, then restore the setting (step 117) of the high-speed external component interconnection test card, at this moment promptly represent that the external component interconnection test card and the high-speed external component interconnection test card pass the test; Otherwise, restore relevant settings (step 116), Indicates a test failed for this card.
此外,较佳的是,本发明的外部组件互连延伸插槽的测试方法还可以于接口规格转向卡上设置有一连续实体内部存储器,进而可通过外部组件互连测试卡内建的内部存储器与接口规格转向卡的连续实体内部存储器,或者高速外部组件互连测试卡内建的内部存储器与接口规格转向卡的连续实体内部存储器,依次分别执行直接内存存取(DMA)的传输测试,以同时一次地测试外部组件互连延伸插槽的外部组件互连(PCI)与高速外部组件互连(PCIE)的直接内存存取(DMA)传输功能。In addition, preferably, the test method of the external component interconnection extension slot of the present invention can also be provided with a continuous physical internal memory on the interface specification steering card, and then the internal memory built in the test card can be interconnected with the external component. Interface specifications turn to the continuous physical internal memory of the card, or the built-in internal memory of the high-speed external component interconnection test card and the continuous physical internal memory of the interface specification steering card, perform the transfer test of direct memory access (DMA) respectively in turn, to simultaneously Test the direct memory access (DMA) transfer function of the peripheral component interconnect (PCI) and the peripheral component interconnect express (PCIE) of the PCI expansion slot at one time.
这里,与上述实施例的利用外部组件互连测试卡和高速外部组件互连测试卡自身所带的内部存储器执行各自测试传输不同的是,在利用接口规格转向卡的连续实体内部存储器测试外部组件互连(PCI)的直接内存存取(DMA)传输功能时,需要设置外部组件互连(PCI)测试卡的直接内存存取(DMA)传输目的位地址为接口规格转向卡的连续实体内部存储器地址;以及搬运外部组件互连(PCI)的第一静态内存的数据至接口规格转向卡的连续实体内部存储器中。Here, different from the above-mentioned embodiment using the external component interconnection test card and the internal memory of the high-speed external component interconnection test card to carry out the respective test transmissions, the external component is tested in the continuous physical internal memory of the interface specification steering card. When the direct memory access (DMA) transfer function of the interconnection (PCI), it is necessary to set the direct memory access (DMA) transfer destination bit address of the external component interconnection (PCI) test card to the interface specification and turn to the continuous physical internal memory of the card address; and transfer the data of the first static memory of the PCI to the continuous physical internal memory of the interface specification steering card.
同样地,在利用接口规格转向卡的连续实体内部存储器测试高速外部组件互连(PCIE)的直接内存存取(DMA)传输功能时,需要设置高速外部组件互连(PCIE)测试卡的直接内存存取(DMA)传输目的位地址为接口规格转向卡的连续实体内部存储器地址;以及搬运高速外部组件互连(PCIE)测试卡的第二静态内存的数据至接口规格转向卡的连续实体内部存储器中。Likewise, when testing the direct memory access (DMA) transfer function of a high-speed peripheral component interconnection (PCIE) using the continuous physical internal memory of the interface specification steering card, it is necessary to set up the direct memory access (DMA) of the high-speed peripheral component interconnection (PCIE) test card. Access (DMA) transfer destination bit address is the continuous physical internal memory address of the interface specification steering card; and the data of the second static memory of the high-speed external component interconnect (PCIE) test card is transferred to the continuous physical internal storage of the interface specification steering card middle.
当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的普通技术人员当可根据本发明做出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Certainly, the present invention also can have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these Corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100991599A CN101118268B (en) | 2006-07-31 | 2006-07-31 | System and method for testing external component interconnection extension slot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100991599A CN101118268B (en) | 2006-07-31 | 2006-07-31 | System and method for testing external component interconnection extension slot |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101118268A CN101118268A (en) | 2008-02-06 |
CN101118268B true CN101118268B (en) | 2010-04-14 |
Family
ID=39054462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100991599A Expired - Fee Related CN101118268B (en) | 2006-07-31 | 2006-07-31 | System and method for testing external component interconnection extension slot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101118268B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104678279A (en) * | 2013-11-29 | 2015-06-03 | 英业达科技有限公司 | System and method for testing connecting slot by using testing vector |
CN108153624B (en) * | 2016-12-02 | 2021-04-27 | 英业达科技有限公司 | Test circuit board suitable for NGFF slot |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1458766A (en) * | 2002-05-14 | 2003-11-26 | 华为技术有限公司 | PCI bus expansion method and detecting device for PCI card batch detection |
CN1516014A (en) * | 2003-01-07 | 2004-07-28 | 英业达股份有限公司 | Test method of peripheral component interconnection bus |
CN1553337A (en) * | 2003-12-18 | 2004-12-08 | 威盛电子股份有限公司 | Detection method of PCI system |
-
2006
- 2006-07-31 CN CN2006100991599A patent/CN101118268B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1458766A (en) * | 2002-05-14 | 2003-11-26 | 华为技术有限公司 | PCI bus expansion method and detecting device for PCI card batch detection |
CN1516014A (en) * | 2003-01-07 | 2004-07-28 | 英业达股份有限公司 | Test method of peripheral component interconnection bus |
CN1553337A (en) * | 2003-12-18 | 2004-12-08 | 威盛电子股份有限公司 | Detection method of PCI system |
Also Published As
Publication number | Publication date |
---|---|
CN101118268A (en) | 2008-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423169B (en) | Method and system for testing high speed peripheral device interconnection equipment | |
CN100568211C (en) | Method and device for accessing multiple I2C slave devices with programmable devices | |
US9015542B2 (en) | Packetizing JTAG across industry standard interfaces | |
CN100492334C (en) | Serial Peripheral Interface Device | |
US10817405B2 (en) | Storage device and debugging system thereof | |
CN209168746U (en) | A kind of Common Flash Memory test macro based on FPGA | |
CN106844271A (en) | A kind of system verification platform and method | |
WO2007114373A1 (en) | Test method, test system, and auxiliary substrate | |
US20100023669A1 (en) | Host controller disposed in multi-function card reader | |
CN105790830A (en) | Optical module in-situ detection method and device | |
US6148384A (en) | Decoupled serial memory access with passkey protected memory areas | |
CN107480017A (en) | The batch-testing device and method of PCIE outer plug-in cards | |
CN111124768A (en) | Method and apparatus for accessing high capacity test data through high speed interface | |
CN109783407B (en) | Device and method for realizing PC and display card bridging based on FPGA | |
US9032252B2 (en) | Debug barrier transactions | |
CN101118268B (en) | System and method for testing external component interconnection extension slot | |
CN113434442A (en) | A switch and data access method | |
US20090292849A1 (en) | Adaptable pci express controller core | |
JP2001184225A (en) | Emulator and emulating method | |
CN102866755A (en) | Power-on reset device for integrated test system | |
US7526691B1 (en) | System and method for using TAP controllers | |
CN100511172C (en) | Inter-board transparent transmission bus test device and method thereof | |
CN212229628U (en) | Slave device | |
US7240267B2 (en) | System and method for conducting BIST operations | |
CN106383802A (en) | LPC interface access device and method based on Feiteng platform and notebook computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100414 Termination date: 20190731 |