Test channel switching method and circuit in pseudo-hierarchical test architecture
By using the test channel switching method in the pseudo-hierarchical test architecture, the verification problem of small-scale modules is solved, and the integrity of block-level and top-level verification without X-state crosstalk and EDT compression mode is achieved, thereby improving verification efficiency and hardware utilization.
Patent Information
- Application Number
- CN202611574537.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot achieve advance verification and top-level complete verification without building independent test blocks when dealing with smaller modules, and they also suffer from X-mode crosstalk and EDT compression mode corruption.
A pseudo-hierarchical test architecture is adopted. By configuring test channels in the EDT codec and branching into closed load paths and short scan chain paths on the decompressor output side, the path can be switched between block-level and top-level test stages using selection units to achieve the verification of external small modules.
It enables block-level early verification and top-level complete verification of external small modules without increasing hardware overhead, avoiding the destruction caused by X-state crosstalk and EDT compression mode, shortening the critical path and improving verification efficiency.
Smart Images

Figure CN123136352A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of integrated circuit testing technology, and more specifically, to a test channel switching method and circuit in a pseudo-hierarchical test architecture. Background Technology
[0002] Large-scale integrated circuits typically employ a hierarchical test architecture: the chip is divided into multiple test layers, with larger modules having independent test blocks configured with test wrappers and on-chip clock controllers (OCCs) as specified by the IEEE 1500 standard. At the block level, Design for Testability (DFT) insertion, Automatic Test Vector Generation (ATPG), and Design Rule Check (DRC) are performed to generate block-level test vectors, which are then reused at the top level of the chip through pattern retargeting. The core benefit is divide-and-conquer: block-level test generation can be parallelized and completed ahead of the top level, moving test approval work off the top-level critical path.
[0003] However, not all logic in a chip deserves a separate test block. Smaller modules (hereinafter referred to as small modules) also require scan testing. Existing technologies typically employ the following two approaches.
[0004] The first approach is to directly implement the testing at the top level: merging the logic of smaller modules into the top level, which is then uniformly covered by the top-level ATPG. The disadvantages of this approach are: smaller modules cannot be verified until the top-level testing environment is ready; the top-level ATPG is large, takes a long time to run, and is placed on the critical path of the design, so the test approval process is constrained by the top-level environment.
[0005] The second approach is to create a separate test block: A separate test block is created for each small module, configuring a wrapper, an independent OCC, and a test controller, and incurring the cost of the pattern retargeting process. The disadvantage of this approach is that the wrapper area and timing overhead, as well as the cost of the independent OCC and controller, are disproportionate to the size of the small module, resulting in low cost-effectiveness.
[0006] Furthermore, without wrapper isolation, directly connecting short scan chains of small modules to hierarchical test blocks for block-level testing presents two problems. First, during block-level testing (especially transition testing), unknown states (X states) generated by external unprepared logic will propagate into the block during the capture cycle, causing coverage loss. Second, embedded deterministic test (EDT) codecs have constraints on channel integrity and minimum scan chain length. When external short scan chains are not yet accessible (e.g., the top-level test environment is not ready or the short scan chain has not yet been connected), block-level verification lacks a deterministic channel load, and the EDT logic cannot run independently.
[0007] Therefore, how to enable the short scan chain of the external small module carried by the pseudo-hierarchical test block to be verified in advance and fully verified at the top level without creating an independent test block or introducing wrapper overhead, and without introducing X-state crosstalk or destroying the EDT compression mode in both verification states, has become a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0008] To address the shortcomings of existing technologies, the purpose of this invention is to provide a test channel switching method and circuit in a pseudo-hierarchical test architecture.
[0009] According to the present invention, a test channel switching method in a pseudo-hierarchical test architecture is applied to the testing of an integrated circuit including a pseudo-hierarchical test block and at least one external small module located outside the pseudo-hierarchical test block. The pseudo-hierarchical test block integrates an embedded deterministic test EDT codec, and the EDT codec includes a decompressor and a compressor. The method includes: Based on the number of short scan chains inside the external module, a corresponding number of test channels are configured in the EDT codec. Each test channel corresponds to one short scan chain. The input of the test channel is connected to the output of the decompressor, and the output of the test channel is connected to the input of the compressor. Each of the test channels is branched into a closed load path and a short scan chain path on the output side of the decompressor. The closed load path consists of at least one level of registers. The short scan chain path is connected to the corresponding short scan chain. The decompressor broadcasts the test data to both the closed load path and the short scan chain path simultaneously. A selection unit is provided on the output side of each of the test channels. The first input terminal of the selection unit is connected to the output terminal of the closed load path, the second input terminal of the selection unit is connected to the output terminal of the short scan chain path, and the control terminal of the selection unit is connected to the test control register. During the block-level testing phase, the test control register controls the selection unit to select the first input terminal, so that the test channel is closed with the closed load path, and block-level testing is performed on the pseudo-hierarchical test block. During the top-level test phase, the test control register controls the selection unit to select the second input terminal, so that the short scan link is connected to the test channel to execute the top-level test including the external small module.
[0010] Furthermore, all the selection units for the aforementioned test channels share a single control bit; Alternatively, the selection unit for each of the aforementioned test channels can be controlled by an independent control bit; Alternatively, multiple test channels may be grouped into a channel group, with each channel group controlled by an independent control bit.
[0011] Furthermore, the switching of the selection unit is completed during the pattern test setup phase: Before entering the scan-shift and capture operation, the configuration is completed through the test control register, and during the scan-shift and capture operation, the control terminal level of the selection unit remains stable.
[0012] Furthermore, when the number of test channels is greater than the number of short scan chains, the selection unit for redundant test channels not corresponding to the short scan chains selects the first input terminal in both the block-level test stage and the top-level test stage, so that the redundant test channels remain closed with the closed load path.
[0013] Furthermore, the default state of the control terminal of the selection unit after power-on or reset is to select the first input terminal, so that the test channel is closed by default with the closed load path.
[0014] Furthermore, the block-level testing phase also includes: Perform block-level automatic test vector generation (ATPG), timing checks, and design rule checks, and complete block-level approval after coverage and timing targets are met; If the target is not met, the block-level test will be re-executed after correcting the pseudo-hierarchical test block or the short scan chain.
[0015] Furthermore, the pseudo-hierarchical test block provides the external small module with a scan clock signal, a scan reset signal, and a scan enable signal. The external small module does not have an independent test controller or an on-chip clock controller. The external small module is located close to the pseudo-hierarchical test block to constrain the scan trace length from the broadcast fork point of the decompressor through the short scan chain to the selection unit. Timing budgeting and static timing analysis are performed on the scan path that crosses the boundary of the pseudo-hierarchical test block, and latches or buffer units are inserted at locations where timing risks exist.
[0016] Furthermore, the block-level test phase and the top-level test phase share the EDT codec and the test channel, and the block-level test vector and the top-level test vector are generated separately; Alternatively, the fault models for the block-level test and the top-level test include at least one of fixed faults and transition faults; the method is also applicable to bridging faults, path delays, IDDQ tests, and failure chain diagnosis in compressed mode.
[0017] According to the present invention, a test channel switching circuit in a pseudo-hierarchical test architecture is applied to an integrated circuit including a pseudo-hierarchical test block and at least one external small module located outside the pseudo-hierarchical test block. The circuit includes: The EDT codec, integrated within the pseudo-hierarchical test block, includes a decompressor and a compressor. The input of the decompressor is connected to the scan input channel of the test equipment, and the output of the compressor is connected to the scan output channel of the test equipment. The number of test channels corresponds to the number of short scan chains inside the external module. The input of each test channel is connected to the output of the decompressor, and the output is connected to the input of the compressor. Each test channel branches into a closed load path and a short scan chain path on the output side of the decompressor. The closed load path consists of at least one level of registers. The short scan chain path is connected to the corresponding short scan chain. The decompressor broadcasts the test data simultaneously to the closed load path and the short scan chain path. A selection unit is set on the output side of each of the test channels. The first input terminal of the selection unit is connected to the output terminal of the closed load path, the second input terminal is connected to the output terminal of the short scan chain path, and the control terminal is connected to the test control register. In the block-level testing phase, the selection unit selects the first input terminal under the control of the test control register, so that the test channel is closed with the closed load path. During the top-level testing phase, the selection unit selects the second input terminal under the control of the test control register, so that the short scan link is connected to the test channel.
[0018] Furthermore, the test control register is the test data register (TDR) on the IEEE 1687 network, which is accessed through the JTAG test access port, and all the selection units of the test channels share one control bit of the TDR; Alternatively, the closed load path consists of at least two levels of registers, and the number of levels of the at least two levels of registers is not less than the minimum length requirement of a single scan chain for the EDT codec; Alternatively, the test control register may be any of the following: a test data register on an IEEE 1149.1 standard JTAG network, a test control register configured within the integrated circuit, a dedicated test mode pin, or a scan-loadable configuration register; The selection unit is a 2-to-1 multiplexer, and the first input terminal, the second input terminal, and the control terminal are respectively the first data input terminal, the second data input terminal, and the selection control terminal of the 2-to-1 multiplexer; or, the selection unit is implemented by any one of the following: a transmission gate, an AND-OR gate combination, or a decoder gating structure.
[0019] Compared with the prior art, the present invention has the following beneficial effects: Early approval and shortened critical path: By selecting units to close the load path during the block-level testing phase, the EDT channel can determine the load closure. The pseudo-hierarchical test block can independently complete block-level ATPG verification and QC even when the top-level test environment is not ready. The test approval work is moved forward and does not occupy the top-level critical path.
[0020] No wrapper overhead: The external small module does not need to create an independent test block, set up a wrapper and an independent controller. It only needs to add a selection unit, close the load register and test control bit in the carrier block, resulting in low hardware overhead.
[0021] Complete verification: After the top-level environment is ready, the short scan chain path is switched and selected through the test control register. The short scan chain is actually connected to the EDT channel to participate in the top-level compression mode test, with complete coverage. The two stages share the same EDT codec, and no additional test resources are required.
[0022] X-state isolation: The output-side selection unit naturally isolates unselected paths. During the block-level test phase, the X-state of the external short scan chain will not enter the compressor, and no additional isolation logic is required.
[0023] The process is scalable: the number of test channels can be expanded according to the number of short scan chains, and it can be flexibly adapted to different numbers of external small modules. Attached Figure Description
[0024] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a comparative diagram of the existing technical solution and the solution of the present invention; Figure 2 This is a schematic diagram of the overall architecture logic of one embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the dual-mode switching mechanism and switching timing constraints according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a two-stage verification implementation process according to an embodiment of the present invention. Detailed Implementation
[0025] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0026] Example 1 Figure 1 This is a comparative diagram of the existing technical solutions and the solution of the present invention. The purpose of the present invention is to provide a test channel switching method and circuit in a pseudo-hierarchical test architecture, so as to realize the two-stage test of block-level early verification and top-level complete verification of the short scan chain of the external small module without establishing an independent test block and without wrapper overhead, and without introducing X-state crosstalk or destroying the EDT compression mode.
[0027] Figure 2 The overall architecture of one embodiment of the present invention is shown. Figure 2 As shown, the integrated circuit adopts a pseudo-hierarchical test architecture, including a pseudo-hierarchical test block and at least one external small module located outside the pseudo-hierarchical test block. Figure 2 The external modules SM1, SM2, and SM3 are illustrated in the figure. The pseudo-hierarchical test block integrates an EDT codec, which includes a decompressor and a compactor. The input of the decompressor is connected to the scan input channel of the test equipment (such as an ATE, not shown in the figure), and the output of the compactor is connected to the scan output channel of the test equipment. The external modules internally contain a short scan chain (…). Figure 2 The diagram is illustrated with two registers and an ellipsis (the number of registers depends on the module size). Short scan chains do not have wrappers, independent test controllers, or on-chip clock controllers.
[0028] The pseudo-hierarchical test block is configured with test channels ( Figure 2 The example shows channels CH1, CH2, and CH3, which correspond to external sub-modules SM1, SM2, and SM3, respectively. The number of test channels corresponds to the number of short scan chains inside the external sub-modules. The input of each test channel is connected to the output of the decompressor, and the output is connected to the input of the compressor through the selection unit MUX.
[0029] Each test channel branches into two paths at the output of the decompressor via a broadcast fork point: a closed load path and a short scan chain path. The closed load path consists of at least one level of registers (DFF), and in this embodiment, it consists of two levels of registers connected in series, serving as the closed load for the test channel in the block-level test phase. The short scan chain path is connected to the short scan chain within the corresponding external small module. The decompressor broadcasts the test data simultaneously to both the closed load path and the short scan chain path.
[0030] Each test channel has a selection unit (MUX) on its output side. The first input of the selection unit is connected to the output of the closed load path, the second input is connected to the output of the short scan chain path, the output is connected to the corresponding input of the compressor, and the control terminal is connected to the test control register (TDR). In this embodiment, the selection unit is a 2-to-1 multiplexer, with the first input, second input, control terminal, and output terminal corresponding to the I0 terminal, I1 terminal, selection control terminal S terminal, and output terminal Y terminal of the selection unit, respectively.
[0031] In this embodiment, the test control register is the Test Data Register (TDR) on the IEEE 1687 (IJTAG) network, accessed through the JTAG Test Access Port (TAP). All test channel selection units share a single control bit, meaning the control terminal of each selection unit is uniformly connected to the output of the test control register.
[0032] The pseudo-hierarchical test block provides scan clock signals (scan clk), scan reset signals (scan rst), and scan enable signals (scan enable) to each external module via control signal lines. The short scan chains within the external modules complete scan shift and capture operations under the control of these signals. No independent on-chip clock controller is provided; clock and reset are managed uniformly by the pseudo-hierarchical test block.
[0033] In this embodiment, the switching between two test modes is achieved through the test control register: Mode ① is block-level independent verification. The test control register controls the selection unit to select the first input terminal. The test channel is closed with a closed load path (two-level dummy registers). At this time, block-level ATPG, timing check, DRC, etc. can be executed independently without the need for a top-level test environment.
[0034] Mode ② is a top-level complete verification. The test control register controls the selection unit to select the second input terminal, and a short scan link is connected to the test channel. External small modules actually participate in the top-level compression mode test.
[0035] Figure 3 The dual-mode switching mechanism and switching timing constraints are illustrated. For example... Figure 3 As shown, the switching timing constraint is as follows: the switching of the control terminal of the selection unit (i.e., the S terminal of the MUX) is completed in the pattern test setup stage, that is, before entering the scan shift and capture operations, the configuration is completed through the test control register; during the scan shift and capture, the level of the control terminal remains stable, thereby avoiding switching glitches or X state entering the EDT channel.
[0036] The following is based on Figure 2 Taking the 3-channel embodiment shown as an example, combined with Figure 4 Detailed explanation of the workflow of Mode ①: Step S1: Connect the registers separately in series within the external small module to form a short scan chain.
[0037] In step S2, the EDT codec within the pseudo-hierarchical test block is configured with the corresponding number of test channels according to the number of short scan chains, and selection units are inserted. When tracing the short scan chains, the EDA tool (such as Tessent) traces from the end of the chain to the beginning, which is compatible with this architecture (tool compatibility verification status [to be confirmed]).
[0038] Step S3: Access the IJTAG 1687 network via JTAG TAP. During the pattern test setup phase, configure the test control register to 0. After TDR update, the control terminals of each selection unit are stable at 0, and the selection unit selects the first input terminal. The decompressor broadcasts the test data and simultaneously drives the closed load path and the short scan chain path. The output of the short scan chain path is isolated by the selection unit and does not introduce the X state. Execute block-level ATPG (fixed fault / transition fault model) to generate compressed mode test vectors.
[0039] Step S4: Perform block-level timing checks, DRC, and coverage analysis. If the coverage and timing meet the standards, the block-level approval is completed. If they do not meet the standards, correct the issues and re-execute the block-level test.
[0040] The workflow of Mode 2 is as follows: In step S8, after the top-level test environment (netlist, constraints, clock) is ready, the test control register is configured to 1 during the pattern test setup stage. After TDR update, the control terminal of each selection unit is stable at 1, and the selection unit selects the second input terminal.
[0041] In step S9, the decompressor still uses broadcast output, simultaneously driving the closed load path and the short scan chain path. The output of the closed load path is isolated by the selected unit, and the top-level ATPG compression mode test is performed. The short scan chain actually participates in the test.
[0042] Step S10: Complete the top-level coverage approval, which includes external sub-modules.
[0043] The two-stage test uses the same EDT codec and test channel. Block-level test vectors and top-level test vectors are generated separately and do not interfere with each other.
[0044] Figure 4 The two-phase verification implementation process is illustrated. For example... Figure 4 As shown, the process includes: Block-level stage (top-level test environment not ready): Step S1 connects short scan chains, Step S2 reserves channels and inserts selection cells, Step S3 executes mode ① verification (block-level ATPG+QC), Step S4 determines whether coverage / timing meets the standard; if not, it is corrected and rerun; if it meets the standard, it enters the top-level integration stage; Top-level integration stage: Step S5 physical proximity layout, placing external small modules near the pseudo-hierarchical test block, constraining the trace distance, and preventing scan path timing issues, Step S6 determines whether the distance / timing meets the standard; if not, the layout is adjusted, Step S7 waits for the top-level test environment to be ready (netlist, constraints, clock); Top-level verification stage: Step S8 switches to mode ② (TDR configured to 1, short scan chain enters channel), Step S9 executes top-level ATPG (compressed mode complete verification), Step S10 completes coverage approval including external small modules.
[0045] Example 2 Unlike Embodiment 1, in this embodiment, the selection unit for each test channel can be controlled by an independent control bit, or multiple test channels can be grouped into a channel group, with each channel group controlled by an independent control bit. This is suitable for scenarios where external small modules are reused and ready in batches. When the number of reserved test channels is greater than the actual number of short scan chains, the selection unit for the excess test channels not connected to the short scan chains will always select the first input terminal in both modes, i.e., always select the closed load path, so that the channel is a defined load in both modes, without being suspended or introducing an X state.
[0046] Preferably, the power-on / reset default value of the control terminal of the selection unit is designed to be 0, that is, the first input terminal is selected by default and the load path is closed. When the test control register has not yet been configured or the test process is abnormally interrupted, the EDT channel is always in a block-level closed deterministic state, avoiding the unknown state of an unready short scan chain from the outside directly entering the compressor, and ensuring the safety of the default state.
[0047] Example 3 Unlike Embodiment 1, in this embodiment, the control signal of the control selection unit can be provided by any of the following carriers: test data register on the IEEE 1149.1 standard JTAG network, test control register configured in the integrated circuit, dedicated test mode pin, or scan-loadable configuration register; as long as the control signal can be stably configured during the pattern testsetup stage and maintained during scan shift and capture.
[0048] In addition to a 2-to-1 multiplexer, the selection unit can also be implemented by a transmission gate, an AND-OR gate combination, a decoder gating, or other equivalent selection structures. When the control granularity is multiple groups or multiple channels, a single multi-input selector or a cross switch can also be used to achieve the same result.
[0049] At the physical implementation level, external modules need to be placed close to the pseudo-hierarchical test block that carries them. This ensures that the scan trace length from the broadcast fork point of the decompressor to the output-side selection unit via the external short scan chain is controllable, preventing setup / hold time violations caused by long traces at the scan shift frequency. Specific engineering measures include: applying proximity constraints to the pseudo-hierarchical test block and each external module during the physical implementation phase; performing timing budgeting and static timing analysis (STA) on scan paths that cross the boundary of the pseudo-hierarchical test block, reserving timing margins according to the scan shift frequency; inserting lockup latches or buffers when traces cross clock domains or pose timing risks; and performing timing QC on cross-boundary scan paths at the block level, returning to layout adjustments if conditions are not met, thus forming a... Figure 4 The judgment loop in the middle.
[0050] Other variations Bearing relationship and channel mapping variant: A pseudo-hierarchical test block can carry 1 or N external small modules (N is greater than or equal to 1); a test channel can also correspond to multiple short scan chains through the secondary selection structure inside the external small module; external small modules can be distributed in different physical directions around the pseudo-hierarchical test block, and the number of test channels is configured according to the total number of short scan chains.
[0051] Test mode and fault model variants: This solution is applicable to compressed mode testing of fixed faults and transformed fault models. It is also applicable to other scan-based testing and diagnostic scenarios, such as bridging faults, path delays, IDDQ testing, fault diagnosis and location, and failure chain diagnosis in compressed mode. The switching mechanism between mode ① and mode ② does not change due to different fault models.
[0052] Register level variants for closed load paths: The number of register levels in a closed load path is not limited to two levels. The minimum number of levels is determined by the minimum length requirement of a single scan chain for the EDT tool used. It can be adjusted to N levels depending on the tool version and channel length configuration, where N is an integer not less than the minimum value required by the tool. On channels where the length of the external short scan chain itself already meets the minimum chain length constraint, the closed load path can retain only the number of register levels required to close the channel.
[0053] The technical features in the above embodiments can be combined in any way, as long as the combined technical solution can achieve the purpose of the present invention.
[0054] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0055] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A test channel switching method in a pseudo-hierarchical test architecture, characterized in that, The test is applied to the testing of integrated circuits including a pseudo-hierarchical test block and at least one external small module located outside the pseudo-hierarchical test block, wherein the pseudo-hierarchical test block integrates an embedded deterministic test EDT codec, and the EDT codec includes a decompressor and a compressor. The method includes: Based on the number of short scan chains inside the external module, a corresponding number of test channels are configured in the EDT codec. Each test channel corresponds to one short scan chain. The input of the test channel is connected to the output of the decompressor, and the output of the test channel is connected to the input of the compressor. Each of the test channels is branched into a closed load path and a short scan chain path on the output side of the decompressor. The closed load path consists of at least one level of registers. The short scan chain path is connected to the corresponding short scan chain. The decompressor broadcasts the test data to both the closed load path and the short scan chain path simultaneously. A selection unit is provided on the output side of each of the test channels. The first input terminal of the selection unit is connected to the output terminal of the closed load path, the second input terminal of the selection unit is connected to the output terminal of the short scan chain path, and the control terminal of the selection unit is connected to the test control register. During the block-level testing phase, the test control register controls the selection unit to select the first input terminal, so that the test channel is closed with the closed load path, and block-level testing is performed on the pseudo-hierarchical test block. During the top-level test phase, the test control register controls the selection unit to select the second input terminal, so that the short scan link is connected to the test channel to execute the top-level test including the external small module.
2. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, All the selection units for the test channels share a single control bit; Alternatively, the selection unit for each of the aforementioned test channels can be controlled by an independent control bit; Alternatively, multiple test channels may be grouped into a channel group, with each channel group controlled by an independent control bit.
3. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, The switching of the selected unit is completed during the pattern test setup phase: Before entering the scan-shift and capture operation, the configuration is completed through the test control register, and during the scan-shift and capture operation, the control terminal level of the selection unit remains stable.
4. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, When the number of test channels is greater than the number of short scan chains, the selection unit for redundant test channels that do not correspond to the short scan chains selects the first input terminal in both the block-level test stage and the top-level test stage, so that the redundant test channels remain closed with the closed load path.
5. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, The default state of the control terminal of the selection unit after power-on or reset is to select the first input terminal, so that the test channel is closed by default with the closed load path.
6. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, The block-level testing phase also includes: Perform block-level automatic test vector generation (ATPG), timing checks, and design rule checks, and complete block-level approval after coverage and timing targets are met; If the target is not met, the block-level test will be re-executed after correcting the pseudo-hierarchical test block or the short scan chain.
7. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, The pseudo-hierarchical test block provides the external small module with a scan clock signal, a scan reset signal, and a scan enable signal. The external small module does not have an independent test controller or an on-chip clock controller. The external small module is located close to the pseudo-hierarchical test block to constrain the scan trace length from the broadcast fork point of the decompressor through the short scan chain to the selection unit. Timing budgeting and static timing analysis are performed on the scan path that crosses the boundary of the pseudo-hierarchical test block, and latches or buffer units are inserted at locations where timing risks exist.
8. The test channel switching method in the pseudo-hierarchical test architecture according to claim 1, characterized in that, The block-level test phase and the top-level test phase share the EDT codec and the test channel, and the block-level test vector and the top-level test vector are generated separately. Alternatively, the fault models for the block-level test and the top-level test include at least one of fixed faults and transition faults; the method is also applicable to bridging faults, path delays, IDDQ tests, and failure chain diagnosis in compressed mode.
9. A test channel switching circuit in a pseudo-hierarchical test architecture, characterized in that, Applied to an integrated circuit including a pseudo-hierarchical test block and at least one external small module located outside the pseudo-hierarchical test block; The circuit includes: The EDT codec, integrated within the pseudo-hierarchical test block, includes a decompressor and a compressor. The input of the decompressor is connected to the scan input channel of the test equipment, and the output of the compressor is connected to the scan output channel of the test equipment. The number of test channels corresponds to the number of short scan chains inside the external module. The input of each test channel is connected to the output of the decompressor, and the output is connected to the input of the compressor. Each test channel branches into a closed load path and a short scan chain path on the output side of the decompressor. The closed load path consists of at least one level of registers. The short scan chain path is connected to the corresponding short scan chain. The decompressor broadcasts the test data simultaneously to the closed load path and the short scan chain path. A selection unit is set on the output side of each of the test channels. The first input terminal of the selection unit is connected to the output terminal of the closed load path, the second input terminal is connected to the output terminal of the short scan chain path, and the control terminal is connected to the test control register. In the block-level testing phase, the selection unit selects the first input terminal under the control of the test control register, so that the test channel is closed with the closed load path. During the top-level testing phase, the selection unit selects the second input terminal under the control of the test control register, so that the short scan link is connected to the test channel.
10. The test channel switching circuit in the pseudo-hierarchical test architecture according to claim 9, characterized in that, The test control register is the Test Data Register (TDR) on the IEEE 1687 network. The TDR is accessed through the JTAG test access port, and all the selection units of the test channels share one control bit of the TDR. Alternatively, the closed load path consists of at least two levels of registers, and the number of levels of the at least two levels of registers is not less than the minimum length requirement of a single scan chain for the EDT codec; Alternatively, the test control register may be any of the following: a test data register on an IEEE 1149.1 standard JTAG network, a test control register configured within the integrated circuit, a dedicated test mode pin, or a scan-loadable configuration register; The selection unit is a 2-to-1 multiplexer, and the first input terminal, the second input terminal, and the control terminal are respectively the first data input terminal, the second data input terminal, and the selection control terminal of the 2-to-1 multiplexer; or, the selection unit is implemented by any one of the following: a transmission gate, an AND-OR gate combination, or a decoder gating structure.
