CN108226741B - DMA self-test circuit - Google Patents
DMA self-test circuit Download PDFInfo
- Publication number
- CN108226741B CN108226741B CN201611153107.5A CN201611153107A CN108226741B CN 108226741 B CN108226741 B CN 108226741B CN 201611153107 A CN201611153107 A CN 201611153107A CN 108226741 B CN108226741 B CN 108226741B
- Authority
- CN
- China
- Prior art keywords
- dma
- host
- test
- self
- information exchange
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/2851—Testing of integrated circuits [IC]
- G01R31/2855—Environmental, reliability or burn-in testing
- G01R31/2856—Internal circuit aspects, e.g. built-in test features; Test chips; Measuring material aspects, e.g. electro migration [EM]
Abstract
The invention provides a DMA self-test circuit for performing isolation test on an FC-AE-ASM protocol processing chip host interface function and an FC protocol processing function. The DMA self-test circuit comprises a self-test register control area, a host DMA interface read-write test area, a sending and receiving DMA test area and an information interaction area. The host DMA interface read-write test circuit is connected with the host DMA interface, and the sending and receiving DMA test is connected with the sending interface channel circuit. The invention can carry out relatively independent isolation test on the receiving and transmitting functions of FC-AE-ASM chip FC frames and the DMA function of the host interface.
Description
Technical Field
The present invention relates to a detection circuit, and more particularly, to a DMA self-test circuit.
Background
The self-test circuit is widely applied to chip design, and the functions of the self-test circuit can test some basic functions of a chip without a chip peripheral circuit. Whether the basic functions of the chip are normal or not can be judged through self-test. For some chips with complex functions, if the self-test fails, the fault of the chip can not be located normally.
Disclosure of Invention
The purpose of the invention is as follows: a DMA self-test circuit capable of fault localization is provided.
The technical scheme of the invention is as follows: a DMA self-test circuit, said test circuit detecting DMA channel functionality, characterized by: the self-test circuit verifies whether each DMA channel is normal in function or not in a mode of trying to send data.
Preferably, the self-test circuit comprises an information exchange area and a host read BIST control module, the host read BIST control module sends a DMA read request to the PCIe interface, after the host interface responds, the information exchange area receives and stores data from the host interface, and the host determines whether the function of the DMA channel is normal according to whether the DMA test data is stored in the information exchange area.
Preferably, the self-test circuit comprises an information exchange area and a host write BIST control module, the host write BIST control module initiates a DMA write request to the PCIe receive DMA interface, after the host interface responds, the host main memory receives test data from the information exchange area, and the host determines whether the DMA channel functions normally according to whether the DMA test data exists in the corresponding main memory address space.
Preferably, the self-test circuit includes an information exchange area and a sending BIST control module, where the sending BIST control module sends test data in the information exchange area through the FC sending channel, records the test data through the FC analyzer, and determines whether the DMA channel functions normally according to whether the FC analyzer receives the test data.
Preferably, the self-test circuit comprises an information exchange area and a receiving BIST control module, the receiving BIST control module stores data of the FC receiving channel in the information exchange area, and judges whether the DMA channel functions normally according to whether the information exchange area receives test data.
Preferably, the information exchange area is divided into two address spaces, and the data acquired from the host and the data sent to the FC channel share the same address space; the data obtained from the FC channel shares the same address space with the data sent to the host.
The invention has the beneficial effects that: and trying to send data to each DMA channel from the test circuit according to the configured mode so as to verify whether the channel is normal in function. The technical scheme can complete the read-write test and the sending and receiving test isolation test of the host, and once the chip fails and the fault is not well positioned, the fault can be positioned to appear in a sending channel, a receiving channel or a host interface through the plurality of test modes.
Drawings
FIG. 1 is a DMA self-test circuit configuration.
Detailed Description
Referring to fig. 1, the processor configures a mode register in the BIST register control module through the register interface, and may be configured to a normal mode, a transmit BIST (self test) mode, a receive BIST mode, a host read BIST mode, and a host write BIST mode, and may also configure a test length (less than 4K) register for all BIST modes except the receive BIST mode, a test address register for an address in the main memory for the host to read and write BIST modes, and a self test enable register for a pulse signal for all BIST modes except the receive BIST mode.
In normal mode, the self-test circuit is not active. The host machine (PCIe) sending DMA interface is directly connected with the sending DMA channel, and the host machine (PCIe) receiving DMA interface is directly connected with the receiving DMA channel.
Host read BIST mode: the processing configuration test mode is that the host reads the BIST mode, configures the address register and the length register, and meanwhile, the host prepares test data with corresponding length in corresponding address space and configures the test enable register. The test circuit starts working, sends a DMA request to a PCIe (peripheral component interface express) interface according to the configured information, waits for a host interface response, and receives data from the host interface, and sequentially writes from the 0 address of the information interaction area until the DMA transmission is finished. This mode may complete the testing of the host interface transmit DMA channel functionality.
Host write BIST mode: the processing configuration test mode is to write the BIST mode, configure the address register and the length register for the host, and simultaneously the processor prepares test data in the high 4K address space of the information interaction area and configures the test enable register. The test circuit starts to work, the test circuit initiates a DMA receiving request to a PCIe receiving DMA interface according to the configured information, waits for the response of the host interface, and controls the signal to start to sequentially read data from the high 4K address of the information interaction area to the PCIeDMA receiving interface when detecting the DMA read enabling signal of the host interface. This mode may complete the test of the host interface for receiving the DMA channel functionality.
Sending a BIST mode: firstly, the processor writes data which are required to be tested and start from 0 address of the information interaction area to the information interaction area in sequence, configures a test length register according to the length of the test, configures the test mode as a BIST sending mode, configures a test enabling register at the same time, and enables a BIST sending circuit to work. The sending DMA channel circuit receives a sending BIST sending attribute, starts to send a DMA request according to the initiation, wherein the request length is a configured self-test length, the test circuit receives the DMA request from the sending DMA channel, and simultaneously reads data with the request length from the 0 address of the information interaction area in sequence according to the request length information, sends the data to the sending DMA channel and drives a corresponding data enable signal. And the sending DMA channel sends the received data out through the FC-ASM module. This mode can complete the testing of the transmit channel functionality.
Receiving a BIST mode: the processing configuration test mode is a BIST receiving mode, a received DMA request of a DMA channel is received, a read enable signal is driven according to the length information of the request, the test circuit stores the read data into the high 4K address space of the information interaction area at one time, and the mark signal of one frame is driven and received to be sent to the BIST register control module after the transmission is finished. This mode can complete the test of the function of the receiving channel.
Claims (3)
1. A DMA self-test circuit, said test circuit detecting DMA channel functionality, characterized by: the self-test circuit verifies whether each DMA channel has normal functions in a data trial sending mode;
the self-test circuit comprises an information exchange area and a host read BIST control module, wherein the host read BIST control module sends a DMA read request to a PCIe transmitting DMA interface, the information exchange area receives and stores data from the host interface after the host interface responds, and the host judges whether the DMA channel function is normal according to whether DMA test data are stored in the information exchange area;
the self-test circuit comprises an information exchange area and a host write BIST control module, wherein the host write BIST control module initiates a DMA write request to a PCIe receiving DMA interface, a host main memory receives test data from the information exchange area after the host interface responds, and the host judges whether the DMA channel function is normal according to whether the DMA test data exist in the corresponding main memory address space.
2. The DMA self-test circuit of claim 1, wherein: the self-test circuit comprises an information exchange area and a sending BIST control module, wherein the sending BIST control module sends test data in the information exchange area through an FC sending channel, records the test data through an FC analyzer, and judges whether the DMA channel functions normally or not according to whether the FC analyzer receives the test data;
the self-test circuit comprises an information exchange area and a receiving BIST control module, wherein the receiving BIST control module stores data of the FC receiving channel into the information exchange area, and judges whether the DMA channel is normal in function according to whether the information exchange area receives test data.
3. The DMA self-test circuit of claim 2, wherein: the information exchange area is divided into two address spaces, and the data acquired from the host and the data sent to the FC channel share the same address space; the data obtained from the FC channel shares the same address space with the data sent to the host.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611153107.5A CN108226741B (en) | 2016-12-14 | 2016-12-14 | DMA self-test circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611153107.5A CN108226741B (en) | 2016-12-14 | 2016-12-14 | DMA self-test circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108226741A CN108226741A (en) | 2018-06-29 |
CN108226741B true CN108226741B (en) | 2020-06-09 |
Family
ID=62638464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611153107.5A Active CN108226741B (en) | 2016-12-14 | 2016-12-14 | DMA self-test circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108226741B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112162890B (en) * | 2020-09-24 | 2021-09-21 | 深圳市航顺芯片技术研发有限公司 | DMA pressure test method and device of MCU and storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5465332A (en) * | 1992-09-21 | 1995-11-07 | International Business Machines Corporation | Selectable 8/16 bit DMA channels for "ISA" bus |
US5668815A (en) * | 1996-08-14 | 1997-09-16 | Advanced Micro Devices, Inc. | Method for testing integrated memory using an integrated DMA controller |
CN100342359C (en) * | 2004-12-24 | 2007-10-10 | 华为技术有限公司 | Method of data interchange by using mode of direct memory access |
US20090248910A1 (en) * | 2008-04-01 | 2009-10-01 | Apple Inc. | Central dma with arbitrary processing functions |
CN201465098U (en) * | 2009-07-14 | 2010-05-12 | 浪潮电子信息产业股份有限公司 | Multi-channel crossed DMA |
CN101996265B (en) * | 2009-08-25 | 2012-11-21 | 安凯(广州)微电子技术有限公司 | Verification system and method for memory controller |
CN102567168A (en) * | 2010-12-27 | 2012-07-11 | 北京国睿中数科技股份有限公司 | BIST (Built-in Self-test) automatic test circuit and test method aiming at PHY (Physical Layer) high-speed interface circuit |
CN102928009A (en) * | 2012-09-05 | 2013-02-13 | 成都华太航空科技有限公司 | Test board for system of DMA-37A distance measuring equipment |
CN103198001B (en) * | 2013-04-25 | 2017-02-01 | 加弘科技咨询(上海)有限公司 | Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method |
-
2016
- 2016-12-14 CN CN201611153107.5A patent/CN108226741B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108226741A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8140900B2 (en) | Establishing a connection between a testing and/or debugging interface and a connector | |
KR102133324B1 (en) | Selectors on the interface die for the memory device | |
CN104516843B (en) | Non- mount type memorizer test device based on FPGA | |
CN110865909B (en) | EMMC interface testing device and method based on FPGA | |
US9411700B2 (en) | Storage tester capable of individual control for a plurality of storage | |
US9196321B2 (en) | On-die termination apparatuses and methods | |
US10402288B2 (en) | USB-testing method and testing fixture board for USB device | |
US11828787B2 (en) | Eye diagram capture test during production | |
CN105786736A (en) | Method, chip and device for multi-chip cascading | |
US20200034321A1 (en) | Host device and removable system | |
CN108226741B (en) | DMA self-test circuit | |
US20130231888A1 (en) | Test apparatus and test module | |
WO2016184170A1 (en) | Smi interface device debugging apparatus and method, and storage medium | |
CN111124768A (en) | Method and apparatus for accessing high capacity test data through high speed interface | |
US20140225633A1 (en) | Fixture, system and method for performing functional test | |
CN110737552B (en) | SFC interface testing equipment and method based on FPGA | |
TW201504650A (en) | SAS expander, system and method for controlling maintenance of SAS expander | |
US20180151247A1 (en) | Semiconductor device and semiconductor integrated system | |
US20140325285A1 (en) | Serial attached scsi expander and method for debugging faults thereof | |
CN106030544B (en) | Method for detecting memory of computer equipment and computer equipment | |
US9362005B2 (en) | Semiconductor device for parallel bit test and test method thereof | |
CN103176926A (en) | Debug carrier transactions | |
KR20160146404A (en) | Input output line test device and method | |
CN110780189B (en) | SDIO interface test equipment and method based on FPGA | |
CN101071394A (en) | Inter-board transparent transmission bus test device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221010 Address after: Room S303, Innovation Building, No. 25, Gaoxin 1st Road, Xi'an, Shaanxi 710075 Patentee after: XI'AN XIANGTENG MICROELECTRONICS TECHNOLOGY Co.,Ltd. Address before: No.15, Jinye 2nd Road, Xi'an, Shaanxi 710000 Patentee before: AVIC XI''AN AERONAUTICS COMPUTING TECHNIQUE RESEARCH INSTITUTE |