TWI381174B - A testing system and method of the peripheral component interconnect express - Google Patents
A testing system and method of the peripheral component interconnect express Download PDFInfo
- Publication number
- TWI381174B TWI381174B TW97139578A TW97139578A TWI381174B TW I381174 B TWI381174 B TW I381174B TW 97139578 A TW97139578 A TW 97139578A TW 97139578 A TW97139578 A TW 97139578A TW I381174 B TWI381174 B TW I381174B
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- switch
- tested
- new generation
- connection interface
- Prior art date
Links
Landscapes
- Monitoring And Testing Of Exchanges (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
一種測試系統及其測試方法,特別有關於一種新世代周邊連接介面的測試系統及其測試方法。A test system and a test method thereof, in particular, a test system for a new generation peripheral connection interface and a test method thereof.
為了解決個人電腦中的各項設備對於頻寬的需要,近來發布了一種新世代周邊連接介面匯流排。這種技術起初是為實現高速傳送資料所設計。其中,新世代周邊連接介面提供給每一個設備它自己專用的匯流排。資料通過被稱為通道(lane)的發送和接受信號對來以封包(packet)的形式串行傳輸,在第一代的新世代周邊連接界面的每個通道具有單方向250 Gigabits/sec的速度。多個通道可以組合在一起形成X1、X2、X4、X8、X12、X16、X24和X32的通道頻寬從而提高插槽的頻寬。In order to solve the bandwidth requirement of various devices in personal computers, a new generation peripheral connection interface bus has recently been released. This technology was originally designed for high-speed data transmission. Among them, the new generation peripheral connection interface provides each device with its own dedicated bus. The data is serially transmitted as a packet through a pair of transmit and receive signals called lanes, with a single direction of 250 Gigabits/sec per channel in the first generation of the new generation perimeter connection interface. . Multiple channels can be combined to form the channel bandwidth of X1, X2, X4, X8, X12, X16, X24, and X32 to increase the bandwidth of the slot.
為因應使用者的需求,因此許多主機板廠商也加入新世代周邊連接介面匯流排。目前針對新世代周邊連接介面的測試方法通常是在新世代周邊連接介面插槽上插入一張新世代周邊連接介面卡,如果能夠正確操作此卡,則認為新世代周邊連接介面插槽是正常的。但是測試過程需要透過新世代周邊連接介面所制訂的各層級的信息交握方能達到溝通的目的。In response to the needs of users, many motherboard manufacturers have joined the new generation peripheral connection interface bus. At present, the test method for the new generation peripheral connection interface is usually to insert a new generation peripheral connection interface card into the new generation peripheral connection interface slot. If the card can be operated correctly, the new generation peripheral connection interface slot is considered normal. . However, the testing process requires the communication of all levels of information developed by the new generation peripheral connection interface to achieve communication purposes.
請參考「第1圖」所示,其係為習知技術之架構示意圖。在「第1圖」由上往下係分別為應用程式、作業系統、傳輸協定、數據鏈路與物理傳輸。當應用程式欲驅動新世代周邊連接界面裝 置時,應用程式會透過作業系統調用相應的傳輸協定,並透過數據鏈路與物理傳輸將訊號傳送到新世代周邊連接界面裝置。舉例來說,一般對於新世代周邊界面的測試方式有以下兩種方法:第一種是記憶體讀寫模式測試,第二種是DMA(direct memory access,簡稱DMA)讀寫模式測試。記憶體讀寫模式需要佔用應用程式執行的處理單元的時間;就DMA讀寫模式測試來說也會佔用一定的實體記憶體,這樣就會導致系統資源的消耗。測試的過程中為了能保持數據傳輸的持續性,需利用密集的數據請求來加以改善。Please refer to "Figure 1" for a schematic diagram of the structure of the prior art. From "top 1", the top, bottom, and bottom are the application, operating system, transport protocol, data link, and physical transport. When the application wants to drive the new generation peripheral connection interface At the time of the application, the application will call the corresponding transport protocol through the operating system and transmit the signal to the new generation peripheral connection interface device through the data link and physical transmission. For example, there are generally two methods for testing the peripheral interface of the new generation: the first is the memory read and write mode test, and the second is the DMA (direct memory access, DMA) read and write mode test. The memory read/write mode requires time for the processing unit executed by the application; in the case of the DMA read/write mode test, it also occupies a certain amount of physical memory, which leads to consumption of system resources. In order to maintain the continuity of data transmission during the test, it is necessary to use intensive data requests to improve.
這樣一來,測試訊號在新世代周邊連接介面的各層級中傳遞時,會明顯的影響到其測試結果。在數據傳入後,數據還要經過物理層以上的通訊協議來解析具體數據包需求。因此,如何不透過繁複的通訊層級的信息交換且能達到測試的目的是廠商所需要的。In this way, when the test signal is transmitted in each level of the new generation peripheral connection interface, the test result will be significantly affected. After the data is passed in, the data is also analyzed by the communication protocol above the physical layer to resolve the specific packet requirements. Therefore, how to achieve the purpose of testing without the complicated communication level of information exchange is what the manufacturer needs.
鑒於以上的問題,本發明的主要目的在於提供一種新世代周邊連接介面的測試系統,用於測試具有新世代周邊連接介面的待測設備。In view of the above problems, the main object of the present invention is to provide a test system for a new generation peripheral connection interface for testing a device under test having a new generation peripheral connection interface.
為達上述目的,本發明所揭露之一種新世代周邊連接介面的測試系統,測試系統包括有:交換器(switch)、待測設備與測試主機。交換器係包括有暫存器與校驗單元;待測設備用以連接交換器;測試主機係電性連接於交換器,測試主機係更包括有處理單 元、測試程序與儲存單元,儲存單元儲存測試程序,處理單元用以執行測試程序,測試程序包括以下步驟:將暫存器(register)設定為迴路狀態,使得交換器被設定為主控模式(master),且待測設備設定為從屬模式(slave);設定交換器的複數筆測試參數;發送測試訊號至交換器,用以對待測試裝置進行測試;記錄待測設備的每次的測試結果至校驗單元;由校驗單元統計測試結果後回覆至測試主機。To achieve the above objective, a test system for a new generation peripheral connection interface disclosed by the present invention includes: a switch, a device to be tested, and a test host. The switch includes a register and a check unit; the device to be tested is used to connect the switch; the test host is electrically connected to the switch, and the test host further includes a processing order The test program and the storage unit, the storage unit stores the test program, and the processing unit is configured to execute the test program. The test program includes the following steps: setting the register to the loop state, so that the switch is set to the master mode ( Master), and the device to be tested is set to slave mode; set the test parameters of the switch; send the test signal to the switch for testing the device to be tested; record each test result of the device under test to Check unit; the test result is counted by the check unit and then returned to the test host.
從本發明的另一觀點,本發明提出一種新世代周邊連接介面的測試方法,用於測試具有新世代周邊連接介面之裝置。From another aspect of the present invention, the present invention provides a test method for a new generation peripheral connection interface for testing devices having a new generation peripheral connection interface.
為達上述目的,本發明所揭露之一種新世代周邊連接介面的測試方法,其係包括以下步驟:將交換器電性連接於待測設備與測試主機之間,交換器中包括有暫存器與校驗單元;將暫存器設定為迴路狀態;設定交換器的複數筆測試參數;由測試主機發送測試訊號至交換器,用以對待測試裝置進行測試,並直至完成所有測試項目或次數為止;紀錄待測設備的每一次的測試結果至校驗單元;由校驗單元統計測試結果後回覆至測試主機。In order to achieve the above objective, a test method for a new generation peripheral connection interface disclosed in the present invention includes the following steps: electrically connecting a switch to a device under test and a test host, and the switch includes a register. And the verification unit; setting the register to the loop state; setting the plurality of test parameters of the switch; sending the test signal to the switch by the test host to test the device to be tested, and until all test items or times are completed Record each test result of the device to be tested to the check unit; the test result is counted by the check unit and then returned to the test host.
本發明提供一種新世代周邊連接界面的測試系統及其方法,其係透過交換器直接與新世代周邊連接界面進行訊息的交換。本發明係不需經過測試主機與待測設備中各層級間的信息交換,可以更能正確檢測出待測設備的傳輸速度。The invention provides a test system and a method for a new generation peripheral connection interface, which directly exchanges information with a new generation peripheral connection interface through a switch. The invention does not need to exchange information between the test host and each level in the device under test, and can more correctly detect the transmission speed of the device to be tested.
有關本發明的特徵與實作,茲配合圖示作最佳實施例詳細說明如下。The features and implementations of the present invention are described in detail below with reference to the preferred embodiments.
請參考「第2圖」所示,其係為本發明之系統架構示意圖。在本發明的測試系統200中包括有:測試主機210、交換器220與待測設備230。交換器220電性連接於待測設備230與測試主機210之間,在交換器220中更包括有暫存器221與校驗單元222。測試主機210中更包括有處理單元211、儲存單元212與測試程序212。儲存單元212儲存測試程序213,且處理單元211用以執行測試程序213。待測設備230中更包括有緩衝區231。交換器220與待測設備230係利用8/10b編碼進行訊息傳遞。緩衝區231係接收來自交換器220的測試訊號,緩衝區231用以穩定所接收的測試訊號之完整。Please refer to "Figure 2" for a schematic diagram of the system architecture of the present invention. The test system 200 of the present invention includes: a test host 210, a switch 220, and a device under test 230. The switch 220 is electrically connected between the device under test 230 and the test host 210. The switch 220 further includes a register 221 and a check unit 222. The test host 210 further includes a processing unit 211, a storage unit 212, and a test program 212. The storage unit 212 stores the test program 213, and the processing unit 211 is configured to execute the test program 213. A buffer 231 is further included in the device under test 230. The switch 220 and the device under test 230 use 8/10b encoding for message delivery. The buffer 231 receives the test signal from the switch 220, and the buffer 231 is used to stabilize the integrity of the received test signal.
測試程序213中更包括複數筆測試項目,測試項目可以是介面版本測試、電力測試、系統管理總線(System Management Bus,簡稱SMB)、JTAG(Joint Test Action Group,簡稱JTAG)測試、喚醒測試、預先重設測試、差分時脈及資料之測試與/或頻寬測試之任一。其中,頻寬測試係分別切換該新世代周邊連接介面的X1、X4、X8、X16、X24或X32的頻寬進行測試。The test program 213 further includes a plurality of test items, which may be interface version test, power test, System Management Bus (SMB), JTAG (Joint Test Action Group, JTAG for short) test, wake-up test, advance Reset any of the test, differential clock, and data test and/or bandwidth tests. The bandwidth test is to test the bandwidth of X1, X4, X8, X16, X24 or X32 of the connection interface of the new generation.
測試連結速度的方式係包括以下種類:The way to test the link speed includes the following categories:
1.頻寬傳輸速率=傳輸的位數/頻寬數目/傳輸時間,計算結果為每個頻寬的傳輸速率。1. Bandwidth transmission rate = number of transmitted bits/number of bandwidths/transmission time, and the calculation result is the transmission rate of each bandwidth.
2.連接埠傳輸速率=傳輸的位數/傳輸時間,計算結果為連接埠的傳輸速率,速率在計算後會與預設的數值比較。2. Connection 埠 transmission rate = number of transmissions / transmission time, the calculation result is the transmission rate of the connection ,, the rate will be compared with the preset value after calculation.
3.頻寬錯誤率=錯誤計數/(頻寬傳輸速率*傳輸時間*頻寬數目)。3. Bandwidth error rate = error count / (bandwidth transmission rate * transmission time * number of bandwidths).
請參考「第3圖」所示,其係為本發明之運作流程示意圖。將交換器電性連接於待測設備與測試主機之間(步驟S310)。接著,將暫存器設定為迴路狀態(步驟S320),使得交換器220被設定為主控模式,且該待測設備230設定為從屬模式。設定交換器的複數筆測試參數(步驟S330),其係用以設定交換器220中的測試環境參數:測試時間、單次傳輸位元數目、傳輸引腳數目。Please refer to "Figure 3" for a schematic diagram of the operational flow of the present invention. The switch is electrically connected between the device under test and the test host (step S310). Next, the register is set to the loop state (step S320), so that the switch 220 is set to the master mode, and the device under test 230 is set to the slave mode. The plurality of test parameters of the switch are set (step S330), which are used to set the test environment parameters in the switch 220: test time, number of single transmission bits, number of transmission pins.
由測試主機發送測試訊號至該交換器,用以命令交換器對待待測設備進行測試(步驟S340)。交換器對待測設備傳送測試數據,並將待測設備傳回的數據儲存於暫存器(步驟S350)。記錄待測設備的每一次的測試結果至校驗單元(步驟S360),在每一次執行後就回覆。由校驗單元統計測試結果後回覆至測試主機(步驟S370)。判斷測試結果是否正確(步驟S380)。若測試結果錯誤時,則測試主機執行一警示訊息(步驟S381),用以提醒測試人員待測試設備的硬體架構發生錯誤。The test host sends a test signal to the switch for instructing the switch to test the device under test (step S340). The switch transmits the test data to the device under test, and stores the data returned by the device under test in the register (step S350). Each test result of the device to be tested is recorded to the check unit (step S360), and is replied after each execution. The test result is counted by the check unit and then returned to the test host (step S370). It is judged whether or not the test result is correct (step S380). If the test result is wrong, the test host executes a warning message (step S381) to remind the tester that the hardware structure of the test device is wrong.
本發明提供一種新世代周邊連接界面的測試系統200及其方法,其係透過交換器220直接與新世代周邊連接界面進行訊息的交換。本發明係不需經過測試主機210與待測設備230中各層級間的信息交換,所以可以更能正確檢測出待測設備230的傳輸速度。在測試過程中最大限度降低系統消耗,如記憶體以及中央處理單元的佔用。The invention provides a test system 200 for a new generation peripheral connection interface and a method thereof, which exchanges information directly with a new generation peripheral connection interface through a switch 220. The present invention does not need to exchange information between the test host 210 and the various levels in the device under test 230, so that the transmission speed of the device under test 230 can be detected more correctly. Minimize system consumption during testing, such as memory and central processing unit occupancy.
雖然本發明以前述之較佳實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。While the present invention has been described above in terms of the preferred embodiments thereof, it is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The patent protection scope of the invention is subject to the definition of the scope of the patent application attached to the specification.
200‧‧‧測試系統200‧‧‧Test System
210‧‧‧測試主機210‧‧‧Test host
211‧‧‧處理單元211‧‧‧Processing unit
212‧‧‧儲存單元212‧‧‧ storage unit
213‧‧‧測試程序213‧‧‧Test procedure
220‧‧‧交換器220‧‧‧Switch
221‧‧‧暫存器221‧‧‧ register
222‧‧‧校驗單元222‧‧‧Check unit
230‧‧‧待測設備230‧‧‧Device under test
231‧‧‧緩衝區231‧‧‧ buffer zone
第1圖係為習知技術之架構示意圖。Figure 1 is a schematic diagram of the architecture of the prior art.
第2圖係為本發明之系統架構示意圖。Figure 2 is a schematic diagram of the system architecture of the present invention.
第3圖係為本發明之運作流程示意圖。Figure 3 is a schematic diagram of the operational flow of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97139578A TWI381174B (en) | 2008-10-15 | 2008-10-15 | A testing system and method of the peripheral component interconnect express |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97139578A TWI381174B (en) | 2008-10-15 | 2008-10-15 | A testing system and method of the peripheral component interconnect express |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201015079A TW201015079A (en) | 2010-04-16 |
TWI381174B true TWI381174B (en) | 2013-01-01 |
Family
ID=44829893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97139578A TWI381174B (en) | 2008-10-15 | 2008-10-15 | A testing system and method of the peripheral component interconnect express |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI381174B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI743851B (en) * | 2020-06-19 | 2021-10-21 | 英業達股份有限公司 | Pcie slot detection system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200424843A (en) * | 2003-03-25 | 2004-11-16 | Intel Corp | A high performance serial bus testing methodology |
US20060041701A1 (en) * | 2004-08-19 | 2006-02-23 | Chih-Jung Lin | Method and device for adjusting lane ordering of peripheral component interconnect express |
US20060294279A1 (en) * | 2005-06-28 | 2006-12-28 | Mckee Kenneth G | Mechanism for peripheral component interconnect express (PCIe) connector multiplexing |
US20070283059A1 (en) * | 2006-06-02 | 2007-12-06 | Kuan-Jui Ho | Method for configuring a Peripheral Component Interconnect Express (PCIE) |
TW200813445A (en) * | 2006-09-08 | 2008-03-16 | Hon Hai Prec Ind Co Ltd | Power test card for interfaces |
CN101206631A (en) * | 2006-12-22 | 2008-06-25 | 中芯国际集成电路制造(上海)有限公司 | High speed peripheral component interlinkage interface and signal processing method |
CN101276304A (en) * | 2007-03-30 | 2008-10-01 | 鸿富锦精密工业(深圳)有限公司 | PCIE test card |
-
2008
- 2008-10-15 TW TW97139578A patent/TWI381174B/en not_active IP Right Cessation
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200424843A (en) * | 2003-03-25 | 2004-11-16 | Intel Corp | A high performance serial bus testing methodology |
US20060041701A1 (en) * | 2004-08-19 | 2006-02-23 | Chih-Jung Lin | Method and device for adjusting lane ordering of peripheral component interconnect express |
US20060294279A1 (en) * | 2005-06-28 | 2006-12-28 | Mckee Kenneth G | Mechanism for peripheral component interconnect express (PCIe) connector multiplexing |
US20070283059A1 (en) * | 2006-06-02 | 2007-12-06 | Kuan-Jui Ho | Method for configuring a Peripheral Component Interconnect Express (PCIE) |
TW200813445A (en) * | 2006-09-08 | 2008-03-16 | Hon Hai Prec Ind Co Ltd | Power test card for interfaces |
CN101206631A (en) * | 2006-12-22 | 2008-06-25 | 中芯国际集成电路制造(上海)有限公司 | High speed peripheral component interlinkage interface and signal processing method |
CN101276304A (en) * | 2007-03-30 | 2008-10-01 | 鸿富锦精密工业(深圳)有限公司 | PCIE test card |
Also Published As
Publication number | Publication date |
---|---|
TW201015079A (en) | 2010-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7536267B2 (en) | Built-in self test for memory interconnect testing | |
TWI452469B (en) | Pcie mass storage device, system having the same, and method for operating the same | |
CN104516843B (en) | Non- mount type memorizer test device based on FPGA | |
US6996750B2 (en) | Methods and apparatus for computer bus error termination | |
US8301941B2 (en) | Memory controller with loopback test interface | |
US7356737B2 (en) | System, method and storage medium for testing a memory module | |
US6609221B1 (en) | Method and apparatus for inducing bus saturation during operational testing of busses using a pattern generator | |
US7849235B2 (en) | DMA controller, node, data transfer control method and storage medium | |
KR101614456B1 (en) | Multi-site testing of computer memory devices and serial io ports | |
US20080147897A1 (en) | Memory controller including a dual-mode memory interconnect | |
KR100640037B1 (en) | File control system and file control device | |
CN106415293A (en) | Duty cycle based timing margining for I/O AC timing | |
US20120326738A1 (en) | Pattern synthesis apparatus and semiconductor test system having the same | |
US20140029364A1 (en) | Bit error testing and training in double data rate (ddr) memory system | |
US9626241B2 (en) | Watchdogable register-based I/O | |
US8595408B2 (en) | Methods and structure for identifying support for super-standard features in communications between serial attached SCSI devices | |
US9542251B2 (en) | Error detection on a low pin count bus | |
CN115685785B (en) | Universal bus model and simulation test method | |
TW201729096A (en) | Serial I/O functional tester | |
US7650540B2 (en) | Detecting and differentiating SATA loopback modes | |
CN101770416B (en) | Bus testing method for new generation of peripheral connecting interface | |
JP5125430B2 (en) | Information processing apparatus and information processing method | |
US20090103443A1 (en) | Loopback configuration for bi-directional interfaces | |
CN101727375B (en) | System and method for testing new-generation peripheral component interconnect express | |
TWI381174B (en) | A testing system and method of the peripheral component interconnect express |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |