A system and method for performing scan chain ECO

By processing the uplink and downlink operations of registers through the scan chain ECO module in the system and method, the problem of reduced test coverage caused by scan chain ECO in digital chip design is solved, and efficient processing of register changes and optimal scan chain optimization are achieved. .

CN118520826BActive Publication Date: 2024-10-01EASY-LOGIC TECH (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410981490.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In the digital chip design process, traditional methods are difficult to effectively handle register changes caused by scan chain ECO, resulting in reduced test coverage and increased test risks, and there is a lack of effective methods to make necessary modifications based on changes in the ECO patch report.

Method used

Provide a system and method that receives the original netlist and register modification list input by the user, uses the scan chain ECO module to perform register uplink and downlink operations, and judges based on the preset operation logic and the clock domain of the Scan DEF file. Optimize the structure of the scan chain to ensure that the registers are in the same clock domain or insert latches to ensure data synchronization.

Benefits of technology

This method can efficiently perform scan chain ECO tasks, reduce register leaks and mis-registrations, prevent loss of test coverage, provide optimized patches to achieve the best scan chain effect, and is easy to integrate with third-party design processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520826B_ABST
    Figure CN118520826B_ABST
Patent Text Reader

Abstract

The present invention proposes a system and method for performing scan chain ECO, the method receiving an original netlist input by a user as first input information, the original netlist containing scan chain information in the original design; receiving a register modification list and a Scan DEF file input by the user as second input information, the register modification list being used to indicate register information to be linked up and / or to be linked down; performing a modification operation on the original netlist according to the first input information and the second input information, completing the linking up and / or linking down of the register list in the second input information, and obtaining a modified scan chain netlist; returning the modified scan chain netlist to the user; the method can accurately and efficiently complete the modification of the original netlist, and prevent the loss of test coverage due to operations such as Functional ECO.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of ECO technology, and in particular relates to a system and method for performing ECO of a scan chain. Background Art

[0002] ECO (Engineering Change Order) refers to the process of directly modifying integrated circuits in the digital chip design process, that is, the process of modifying the gate-level netlist at each design stage (synthesis stage, DFT stage, PNR stage, etc.) so that the modified circuit logic function is consistent with the expected one.

[0003] Scan chain ECO is an important step during ECO. It is an incremental design method for revising existing ASIC designs. The basic principle of the scan chain is to connect all the triggers in the design into a chain and drive them with a unified scanclk, so that the pre-designed scan pattern can be sent to the chip, and then the capture enable is turned on. In this way, the Q-end output of each trigger is transmitted to the combinational circuit they drive, and the D-end of the next level trigger in the scan chain will capture the output of this combinational circuit, and then the capture enable is invalid. This set of vectors is compared with the expected pre-calculated by the tool, and this is used as a basis to determine whether there are manufacturing errors in the chip; the workflow of Scan is first scan insertion. After the chip function design is completed, it is the process of replacing the entire netlist with a bunch of ordinary registers with scan registers, so that the newly added registers and the original registers together constitute the scan chain and participate in the testing of the chip.

[0004] Once the RTL code is modified, new registers are added or old registers are abolished, the scan chain ECO can partially update the scan chain to adapt to the changes in these registers while retaining the circuit characteristics of most other areas. Traditionally, DFT engineers must resolve scan chain vulnerabilities generated in Functional ECO tasks. Since scan chains and test patterns are usually generated by ATPG tools, DFT engineers usually lack an effective way to make necessary modifications based on the changes in the ECO patch report. They can only use ATPG tools to re-check the cause of the error and re-refer to the existing scan chain architecture to correct the DFTDRC (Design Rule Check) errors caused by Functional ECO; or directly choose to abandon the newly added registers, resulting in reduced test coverage and increased test risk; or directly ignore the registers that are no longer functional and can be removed, which may affect the back-end routing performance and timing convergence. Summary of the invention

[0005] The present invention provides a system and method for performing scan chain ECO, and aims to use the system and method to give designers the ability to efficiently perform scan chain ECO tasks to cope with the increase or decrease of registers in the design, and to reduce the situation where registers are missed or wrongly added in the scan chain during the process.

[0006] The scheme of the present invention is as follows:

[0007] In a first aspect, the present invention provides a system for performing scan chain ECO, the system comprising: a first input module, a second input module, a scan chain ECO module and an output module, the first input module and the second input module are respectively connected to the scan chain ECO module.

[0008] The first input module is used to receive an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in an original design.

[0009] The second input module is used to receive a register modification list and a Scan DEF file input by a user as second input information, and the register modification list is used to indicate register information to be uploaded and / or downloaded.

[0010] The scan chain ECO module is connected to the output module, and is used to perform a modification operation on the original netlist according to the first input information and the second input information, complete the uplink and / or downlink of the register list in the second input information, and obtain a modified scan chain netlist.

[0011] The output module is used to receive the modified scan chain netlist and return it to the user.

[0012] Furthermore, the original netlist received by the first input module is automatically generated by a third-party ECO tool or manually created by a user, and the scan chain information in the original design includes at least the number of scan chains and register distribution data contained in each scan chain.

[0013] Further, performing a modification operation on the original netlist according to the first input information and the second input information includes:

[0014] When the second input information includes register information to be linked down, the scan chain ECO module finds the distribution of registers to be linked down in the original netlist, deletes the corresponding registers in the scan chain, and completes register linking down.

[0015] When the second input information includes register information to be chained, the scan chain ECO module inserts the register to be chained into the scan chain of the current netlist according to the register distribution in the current netlist and based on the preset operation logic to complete the register chaining.

[0016] When the second input information includes register information to be downlinked and uplinked, the register downlink operation is performed first, and then the register uplink operation is performed.

[0017] Furthermore, the preset operation logic includes: when inserting the register to be linked, first search on the scan chain whether there is a target register in the same module and the same clock domain as the register to be linked; if so, insert the register to be linked into the front end of the target register.

[0018] If not, find out whether there is a target register in the same clock domain as the register to be chained on the scan chain; if so, insert the register to be chained into the front end of the target register.

[0019] If it does not exist, the register to be used will be inserted into the scan chain of a different clock domain.

[0020] Furthermore, after completing the register uplink and / or downlink operation, the Scan DEF file is used to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same;

[0021] If so, it is determined that the two registers belong to the same clock domain.

[0022] If not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

[0023] In a second aspect, the present invention provides a method for performing scan chain ECO, the method comprising the following steps:

[0024] Step S1, receiving an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in an original design.

[0025] Step S2, receiving a register modification list input by a user and a Scan DEF file as second input information, wherein the register modification list is used to indicate register information to be uploaded and / or downloaded.

[0026] Step S3, performing a modification operation on the original netlist according to the first input information and the second input information, completing the uplink and / or downlink of the register list in the second input information, and obtaining a modified scan chain netlist.

[0027] Step S4, returning the modified scan chain netlist to the user.

[0028] Furthermore, the original netlist is automatically generated by a third-party ECO tool or manually created by a user, and the scan chain information in the original design at least includes the number of scan chains and register distribution data included in each scan chain.

[0029] Further, performing a modification operation on the original netlist according to the first input information and the second input information includes:

[0030] When the second input information includes information of registers to be linked down, the distribution of the registers to be linked down is found in the original netlist, and the corresponding registers are deleted in the scan chain to complete the register linking down.

[0031] When the second input information includes register information to be linked, the register to be linked is inserted into the scan chain of the current netlist based on the distribution of registers in the current netlist and the preset operation logic to complete the register linking.

[0032] When the second input information includes register information to be downlinked and uplinked, the register downlink operation is performed first, and then the register uplink operation is performed.

[0033] Furthermore, the preset operation logic includes: when inserting the register to be linked, first search on the scan chain whether there is a target register in the same module and the same clock domain as the register to be linked; if so, insert the register to be linked into the front end of the target register.

[0034] If not, find out whether there is a target register in the same clock domain as the register to be chained on the scan chain; if so, insert the register to be chained into the front end of the target register.

[0035] If it does not exist, the register to be used will be inserted into the scan chain of a different clock domain.

[0036] Furthermore, after completing the register uplink and / or downlink operation, the Scan DEF file is used to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same.

[0037] If so, it is determined that the two registers belong to the same clock domain.

[0038] If not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] The method for performing scan chain ECO of the present invention can prevent the loss of test coverage caused by operations such as Functional ECO; it is easy to use and can provide optimized patches to achieve the best scan chain implementation effect; the system is a plug-and-play tool that can be easily integrated with a third-party design process. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The figure is a schematic diagram of the system composition for performing scan chain ECO according to the present invention.

[0042] Figure 2 The figure is a flow chart of a method for performing scan chain ECO according to the present invention.

[0043] Figure 3 Schematic diagram of the scan chain in the original netlist of the present invention.

[0044] Figure 4 This is a schematic diagram of registers that need to be linked in the present invention.

[0045] Figure 5 Schematic diagram of the scan chain after being processed by the scan chain ECO method of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example 1

[0047] like Figure 1 As shown, it is a schematic diagram of the system composition of a scan chain ECO of the present invention, the system includes: a first input module, a second input module, a scan chain ECO module and an output module, the first input module and the second input module are respectively connected to the scan chain ECO module.

[0048] The first input module is used to receive an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in an original design.

[0049] The original netlist received by the first input module is automatically generated by a third-party ECO tool or manually created by a user, and the scan chain information in the original design includes at least the number of scan chains and register distribution data contained in each scan chain.

[0050] The second input module is used to receive a register modification list and a Scan DEF file input by a user as second input information, and the register modification list is used to indicate register information to be uploaded and / or downloaded.

[0051] It should be noted that the system requires two inputs, namely the original netlist with scan chains and the list of registers that need to be added or reduced. In addition, the Scan DEF file needs to be input to assist the process. The original netlist with scan chains is provided by the user, and the list of registers that need to be added or reduced can be obtained from the report generated by a third-party ECO tool (such as EasyLogic ECO), or the register update list manually created by the user for a specific ECO case.

[0052] In addition, the system supports some optional inputs, such as the user specifying which registers can or cannot be inserted into the scan chain, or which scan chains can or cannot be inserted into registers; and the user specifying which registers must or cannot be inserted into which scan chain, etc. After the Scan Chain ECO tool, we can get a netlist with the scan chain modified according to the above inputs.

[0053] The scan chain ECO module is connected to the output module, and is used to perform a modification operation on the original netlist according to the first input information and the second input information, complete the uplink and / or downlink of the register list in the second input information, and obtain a modified scan chain netlist. The output module is used to receive the modified scan chain netlist and return it to the user.

[0054] Performing a modification operation on the original netlist according to the first input information and the second input information includes:

[0055] When the second input information includes register information to be linked down, the scan chain ECO module finds the distribution of registers to be linked down in the original netlist, deletes the corresponding registers in the scan chain, and completes register linking down.

[0056] When the second input information includes register information to be chained, the scan chain ECO module inserts the register to be chained into the scan chain of the current netlist according to the register distribution in the current netlist and based on the preset operation logic to complete the register chaining.

[0057] When the second input information includes register information to be downlinked and uplinked, the register downlink operation is performed first, and then the register uplink operation is performed.

[0058] The preset operation logic includes: when inserting the register to be linked, first find out whether there is a target register in the same module and the same clock domain as the register to be linked on the scan chain, if so, insert the register to be linked to the front end of the target register. If not, find out whether there is a target register in the same clock domain as the register to be linked on the scan chain, if so, insert the register to be linked to the front end of the target register, if not, insert the register to be linked to the scan chain in a different clock domain.

[0059] After completing the register uplink and / or downlink operation, use the Scan DEF file to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same; if so, it is determined that the two registers belong to the same clock domain; if not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

[0060] Assume that we have an original hardware design netlist with multiple scan chains and some already placed registers. Due to design changes, we need to remove some registers from the scan chain (down chain) and add some new registers to the scan chain (up chain). In addition, we also need to ensure that latches are added between registers across clock domain boundaries to ensure data synchronization.

[0061] The first input module receives the original netlist file input by the user through the graphical interface or command line tool, which describes the overall structure of the design and the initial layout of the scan chain. The system reads the netlist file and parses out the number of scan chains, the register distribution data contained in each scan chain, and other information.

[0062] The second input module receives the user input register modification list, which clearly indicates which registers need to be chained up and which need to be chained down. The user also provides a Scan DEF file, which contains key information such as the PARTITION attribute of the scan chain for clock domain judgment.

[0063] The scan chain ECO module first performs the chain down operation according to the register modification list. The module locates the registers that need to be chained down in the original netlist and updates the structure of the scan chain to remove these registers. Then it performs the chain up operation. The module finds a suitable position on the scan chain to insert the new register according to the preset operation logic. The operation logic takes into account the module and clock domain information of the register. When performing a chain up operation across clock domains, the module uses the PARTITION attribute in the Scan DEF file to determine whether the registers are in different clock domains. If so, a latch is inserted between the relevant registers.

[0064] The output module generates a modified scan chain netlist file, which includes the updated scan chain structure and register layout; the system returns the modified netlist file to the user, and the user can perform subsequent design or verification work based on it. Example 2

[0065] like Figure 2 FIG. 1 is a flow chart of a method for performing scan chain ECO according to the present invention, and the method comprises the following steps:

[0066] Step S1, receiving an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in an original design.

[0067] The original netlist is automatically generated by a third-party ECO tool or created manually by a user, and the scan chain information in the original design at least includes the number of scan chains and register distribution data included in each scan chain.

[0068] Step S2, receiving a register modification list input by a user and a Scan DEF file as second input information, wherein the register modification list is used to indicate register information to be uploaded and / or downloaded.

[0069] Step S3, performing a modification operation on the original netlist according to the first input information and the second input information, completing the uplink and / or downlink of the register list in the second input information, and obtaining a modified scan chain netlist.

[0070] Performing a modification operation on the original netlist according to the first input information and the second input information includes:

[0071] When the second input information includes information of registers to be linked down, the distribution of the registers to be linked down is found in the original netlist, and the corresponding registers are deleted in the scan chain to complete the register linking down.

[0072] When the second input information includes register information to be linked, the register to be linked is inserted into the scan chain of the current netlist based on the distribution of registers in the current netlist and the preset operation logic to complete the register linking.

[0073] When the second input information includes register information to be downlinked and uplinked, the register downlink operation is performed first, and then the register uplink operation is performed.

[0074] The preset operation logic includes: when inserting the register to be linked, first find out whether there is a target register in the same module and the same clock domain as the register to be linked on the scan chain, if so, insert the register to be linked to the front end of the target register. If not, find out whether there is a target register in the same clock domain as the register to be linked on the scan chain, if so, insert the register to be linked to the front end of the target register. If not, insert the register to be linked to the scan chain into a scan chain of a different clock domain.

[0075] Step S4, returning the modified scan chain netlist to the user.

[0076] After completing the register uplink and / or downlink operation, use the Scan DEF file to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same; if so, it is determined that the two registers belong to the same clock domain. If not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

[0077] like Figure 3 As shown, it is a schematic diagram of the scan chain in the original netlist of the present invention. There are four scan chains in the netlist, with signals edt_scan_in[0]-edt_scan_in[3] as the beginning of the scan chain and signals edt_scan_out[0]-edt_scan_out[3] as the end of the scan chain. In addition, there are already several registers on these four scan chains.

[0078] On the scan chain where the edt_scan_out[2] signal is the end of the chain, registers c_reg_4 to c_reg_7 need to perform downlink operations. Figure 4 A schematic diagram of registers that need to be chained in the present invention. In a certain module, registers numbered e_reg_0 to e_reg_2 need to be chained. These registers can be obtained through a report generated by a third-party ECO tool, or a register update list manually created by a user for a specific ECO case.

[0079] At this time, the distribution of the registers to be chained down is found in the original netlist, and the registers numbered c_reg_4 to c_reg_7 are deleted in the scan chain to complete the register chaining down; according to the register distribution in the current netlist, the registers numbered e_reg_0 to e_reg_2 are inserted into the scan chain of the current netlist to complete the register chaining up. The scan chain processed by the scan chain ECO method is as follows Figure 5As shown, the registers numbered e_reg_0 to e_reg_2 are respectively inserted into the middle position of the scan chain with signals edt_scan_out[0], edt_scan_out[1], and edt_scan_out[3] as the ends of the scan chain.

[0080] We consider the following technical points when performing chain operations on registers:

[0081] like Figure 5 As shown, when inserting registers into the scan chain, we will consider the clock domain to which the registers belong, and try to insert the registers to be chained before the registers in the same module and the same clock domain. If both cannot be met, we will prioritize ensuring that they are in the same clock domain. If it is impossible to insert registers into the same clock domain, in order to ensure the synchronization of the register clocks, a latch needs to be added between two registers in different clock domains.

[0082] In addition, each scan chain has a current maximum length, and users can also manually set the maximum chain length to limit the maximum number of registers on each scan chain. When inserting registers, we will ensure that the number of inserted registers does not exceed the maximum length of the chain. At the same time, we will place the registers as evenly as possible so that there is not too much difference in the number of registers on each scan chain.

[0083] The present invention is described by specific embodiments, and it should be understood by those skilled in the art that various changes and equivalent substitutions may be made to the present invention without departing from the scope of the present invention. In addition, various modifications may be made to the present invention for specific situations or materials without departing from the scope of the present invention. Therefore, the present invention is not limited to the disclosed specific embodiments, but should include all implementation methods falling within the scope of the claims of the present invention.

Claims

1. A system for performing scan chain ECO, characterized in that: The system comprises: a first input module, a second input module, a scan chain ECO module and an output module, wherein the first input module and the second input module are respectively connected to the scan chain ECO module; The first input module is used to receive an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in the original design; The second input module is used to receive a register modification list and a Scan DEF file input by a user as second input information, wherein the register modification list is used to indicate register information to be uploaded and / or downloaded; The scan chain ECO module is connected to the output module, and is used to perform a modification operation on the original netlist according to the first input information and the second input information, complete the uplink and / or downlink of the register list in the second input information, and obtain a modified scan chain netlist; The output module is used to receive the modified scan chain netlist and return it to the user; Performing a modification operation on the original netlist according to the first input information and the second input information includes: When the second input information includes register information to be chained down, the scan chain ECO module finds the distribution of the registers to be chained down in the original netlist, deletes the corresponding registers in the scan chain, and completes register chaining; When the second input information includes register information to be chained, the scan chain ECO module inserts the register to be chained into the scan chain of the current netlist based on the register distribution in the current netlist and the preset operation logic to complete the register chaining; When the second input information includes register information to be linked down and to be linked up, the register link down operation is performed first, and then the register link up operation is performed; The preset operation logic includes: when inserting the register to be chained, first find out whether there is a target register in the same module and the same clock domain as the register to be chained on the scan chain, and if so, insert the register to be chained into the front end of the target register; If not, find out whether there is a target register in the same clock domain as the register to be chained on the scan chain; if so, insert the register to be chained into the front end of the target register; If it does not exist, the register to be used will be inserted into the scan chain of a different clock domain.

2. A system for performing scan chain ECO according to claim 1, characterized in that: The original netlist received by the first input module is automatically generated by a third-party ECO tool or manually created by a user, and the scan chain information in the original design includes at least the number of scan chains and register distribution data contained in each scan chain.

3. A system for performing scan chain ECO according to claim 2, characterized in that: After completing the register uplink and / or downlink operation, use the Scan DEF file to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same. If so, it is determined that the two registers belong to the same clock domain; If not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

4. A method for performing scan chain ECO, characterized in that: The method comprises the following steps: Step S1, receiving an original netlist input by a user as first input information, wherein the original netlist includes scan chain information in an original design; Step S2, receiving a register modification list and a Scan DEF file input by a user as second input information, wherein the register modification list is used to indicate register information to be uploaded and / or downloaded; Step S3, performing a modification operation on the original netlist according to the first input information and the second input information, completing the uplink and / or downlink of the register list in the second input information, and obtaining a modified scan chain netlist; Step S4, returning the modified scan chain netlist to the user; Performing a modification operation on the original netlist according to the first input information and the second input information includes: When the second input information includes register information to be chained down, the distribution of the registers to be chained down is found in the original netlist, and the corresponding registers are deleted in the scan chain to complete the register chaining down; When the second input information includes register information to be chained, the register to be chained is inserted into the scan chain of the current netlist based on the distribution of registers in the current netlist and the preset operation logic to complete the register chaining; When the second input information includes register information to be linked down and to be linked up, the register link down operation is performed first, and then the register link up operation is performed; The preset operation logic includes: when inserting the register to be chained, first find out whether there is a target register in the same module and the same clock domain as the register to be chained on the scan chain, and if so, insert the register to be chained into the front end of the target register; If not, find out whether there is a target register in the same clock domain as the register to be chained on the scan chain; if so, insert the register to be chained into the front end of the target register; If it does not exist, the register to be used will be inserted into the scan chain of a different clock domain.

5. The method for performing scan chain ECO according to claim 4, characterized in that: The original netlist is automatically generated by a third-party ECO tool or created manually by a user, and the scan chain information in the original design at least includes the number of scan chains and register distribution data included in each scan chain.

6. The method for performing scan chain ECO according to claim 5, characterized in that: After completing the register uplink and / or downlink operation, use the Scan DEF file to perform clock domain judgment on the register according to the PARTITION attribute of each scan chain, and compare whether the PARTITION attributes of the clock signal ends of the two registers are the same. If so, it is determined that the two registers belong to the same clock domain; If not, it is determined that the two registers do not belong to the same clock domain, and a latch is inserted between the two registers.

Citation Information

Patent Citations

  • Register access method and device, electronic equipment and computer readable storage medium

    CN115983184A

  • Engineering modification device and method

    CN117764010A

  • Method for using Scan DEF file in ECO

    CN118332979A

  • Method, apparatus and computer program product for implementing scan-chain-specific control signals as part of a scan chain

    US20070101221A1

  • System and Method of Test Mode Gate Operation

    US20110219277A1