Integrated circuits including test circuitry, related methods and computer program products

By configuring the storage circuit and control signals in the integrated circuit, the operation of the scanning element chain is simplified, the problems of complexity and high cost in the existing technology are solved, and efficient integrated circuit testing is achieved.

CN118584290APending Publication Date: 2024-09-03STMICROELECTRONICS INT NV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410236096.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-02-28
Filing Date
2024-03-01
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When the existing technology uses a scanning component chain in integrated circuit testing, the complexity and cost are high, and the ATPG stage needs to know the given value of each test mode, resulting in low efficiency.

Method used

Use a memory circuit configured to assert and deassert based on the test mode signal, control the operation of the scan element through the SCAN_MODE and TE signals, avoid using complex scan element chains, and manually add the memory element in the RTL model to exclude flip-flops that do not need to be replaced .

Benefits of technology

It simplifies the testing process of integrated circuits, reduces complexity and cost, improves test efficiency, and avoids unnecessary signal modifications, ensuring that status signals do not change during testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584290A_ABST
    Figure CN118584290A_ABST
Patent Text Reader

Abstract

The invention relates to an integrated circuit including a test circuit, a related method and a computer program product. An integrated circuit includes a sequential logic circuit and a circuit configured to change operation according to a state output signal provided by a state flip-flop of the sequential logic circuit. Where the test mode signal is asserted, the test circuit writes and reads the content of the state flip-flop in order to test the operation of the sequential logic circuit. The processing system includes at least one storage circuit interposed between the circuit and a corresponding status output signal. Each storage circuit receives a respective status output signal and provides a modified status signal to the circuit. When the test mode signal is de-asserted, the memory circuit provides the received state output signal to the circuit in a transparent manner and stores the received state output signal to the memory element. The storage circuit provides the stored state output signal to the circuit when the test mode signal is asserted.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority claim

[0002] This application claims the benefit of Italian Patent Application No. 102023000003870, filed on March 3, 2023, the contents of which are incorporated herein by reference in their entirety to the maximum extent permitted by law. Technical Field

[0003] Embodiments of the present disclosure relate to solutions for testing integrated circuits. Background Art

[0004] Integrated circuits are usually tested via scan testing and / or boundary scan testing. Such solutions are disclosed, for example, in IEEE Standard 1149.1 or in US Pat. Nos. 5,428,624, 8,996,939 or 8,745,456, which are incorporated herein by reference.

[0005] There is a need in the art to provide improved solutions for testing integrated circuits. Summary of the invention

[0006] One or more embodiments relate to integrated circuits.

[0007] In addition, embodiments relate to a related method and a corresponding computer program product that can be loaded into the memory of at least one computer and includes software code portions for implementing the steps of the method when the product is run on the computer. As used herein, reference to such a computer program product is understood to be equivalent to reference to a computer-readable device containing instructions for controlling a processing system to coordinate the execution of the method. The reference to "at least one computer" is clearly intended to highlight the possibility of implementing the present disclosure in a distributed / modular manner.

[0008] As described above, various embodiments of the present disclosure relate to an integrated circuit. The integrated circuit includes a sequential logic circuit, which includes a plurality of state flip-flops, wherein each state flip-flop is configured to generate a state output signal by storing an input signal in response to a clock signal, whereby the state flip-flop provides a state signal of the sequential logic circuit. A next-state combinational logic circuit is configured to generate an input signal of a state flip-flop according to the state output signal of the state flip-flop and at least one input signal. In various embodiments, the circuit is configured to change operation according to a subset of the state output signal provided by the state flip-flop. For example, the circuit may be a combinational logic circuit that generates an output signal of a sequential logic circuit, or the circuit may include an analog circuit configured to change operation according to a state signal.

[0009] According to the present disclosure, the integrated circuit further includes a test circuit configured to determine whether the test mode signal is asserted. In response to determining that the test mode signal is asserted, the test circuit writes and reads the contents of the plurality of state flip-flops to test the operation of the sequential logic circuit.

[0010] For example, the test circuit may include a scan chain. In this case, each state flip-flop forms part of a corresponding scan element, wherein the first scan element is configured to provide a serial input signal to the input of the corresponding state flip-flop when the scan mode enable signal is asserted. In addition, the following scan element is configured to provide the state output signal of the state flip-flop of the previous scan element to the input of the corresponding state flip-flop when the scan mode enable signal is asserted. Finally, the state output signal of the state flip-flop of the last scan element corresponds to the serial output signal. For example, in this case, the test circuit may include a test port, which is configured to assert the scan mode enable signal and sequentially apply data to the serial input signal so as to load the data into a plurality of state flip-flops. Then, the test port deasserts the scan mode enable signal, whereby the sequential logic circuit updates the content of the state flip-flop. Finally, the test port asserts the scan mode enable signal again, and sequentially reads the serial output signal so as to read the content of the plurality of state flip-flops. For this reason, when the test mode signal is asserted, the test port may also generate a clock signal for the state flip-flop.

[0011] Specifically, in various embodiments, the processing system further comprises at least one storage circuit. Each storage element is interposed between the circuit and a corresponding state output signal in the state output signal subset, wherein each storage element is configured to receive the corresponding state output signal and provide a modified state signal to the circuit. Specifically, in response to determining that the test mode signal is deasserted, the storage circuit provides the received state output signal to the circuit in a transparent manner, and stores the received state output signal to the storage element of the storage circuit. Conversely, in response to determining that the test mode signal is asserted, the storage circuit does not update the storage element, i.e., inhibits the storage of the received state output signal to the storage element, and provides the stored state output signal to the circuit.

[0012] For example, in various embodiments, the storage circuit includes a flip-flop configured to store the corresponding received state output signal in response to the clock signal when the test mode signal is de-asserted. To this end, the storage circuit may include a first multiplexer configured to generate an input signal of the corresponding flip-flop by selecting the received state output signal when the test mode signal is de-asserted, and to generate an input signal of the corresponding flip-flop by selecting the output signal of the flip-flop when the test mode signal is asserted. In addition, the second multiplexer may be configured to generate a modified state signal by selecting the received state output signal when the test mode signal is de-asserted and selecting the output signal of the flip-flop when the test mode signal is asserted.

[0013] In various embodiments, the storage circuits may thus ensure that a given state signal does not change during testing of the integrated circuit. Preferably, the disclosed mechanism is used only for a subset of the state signals, such as state signals used by power supplies, or voltage or current regulators. Thus, in various embodiments, the number of storage circuits is (significantly) smaller than the number of state flip-flops.

[0014] In various embodiments, the previously mentioned scan elements may also be added automatically. For example, for this purpose, the software tool may obtain an RTL model of a digital circuit including (at least) a sequential logic circuit and a storage circuit. For example, the RTL model may be generated by a synthesis operation of a higher language model of the digital circuit.

[0015] Therefore, in various embodiments, two types of triggers may be used: a first group of triggers form part of a sequential logic circuit, and a second group of triggers are used for storage elements. In order to distinguish these triggers, the triggers of the storage circuit are preferably marked. Therefore, in this way, the software tool can perform a series of operations for each trigger of the RTL model. First, the software tool can determine whether the trigger is marked. In response to determining that the trigger is not marked, the software tool can replace the trigger with a scan element. Conversely, in response to determining that the trigger is marked, the software tool may not replace the trigger, that is, it may be prohibited to replace the trigger with a scan element. Next, the software tool can connect the scan elements in series to form one or more scan chains. Optionally, the software tool can also add a test port to the RTL model. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Embodiments of the present disclosure will now be described with reference to the accompanying drawings, provided by way of non-limiting examples only, in which:

[0017] Figure 1 A sequential logic circuit is shown;

[0018] Figure 2 A sequential logic circuit including a test circuit is shown;

[0019] Figure 3 One embodiment of a processing system is shown;

[0020] Figure 4 An embodiment of an integrated circuit comprising one or more chains of scan elements for scan testing and / or boundary scan testing is shown;

[0021] Figure 5 An embodiment of a scanning element chain is shown;

[0022] Figure 6 An embodiment of a method for implementing a scan element chain in an integrated circuit is shown; and

[0023] Figure 7 , Figure 8 and Fig. 9 An embodiment of a modification chain of scanning elements is shown. DETAILED DESCRIPTION

[0024] In the following description, many specific details are given to provide a thorough understanding of the embodiments. The embodiments can be practiced without one or several of the specific details, or with other methods, components, materials, etc. In other cases, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the embodiments.

[0025] References throughout this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the phrases "in one embodiment" or "in an embodiment" appearing in various places in this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0026] The headings provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.

[0027] Figure 1 A general purpose sequential logic circuit 20 is shown, for example implemented in an integrated circuit.

[0028] Specifically, the sequential logic circuit includes a plurality of (internal) memory elements 202 , which are usually implemented with flip-flops and can be grouped into one or more registers. Specifically, these internal memory elements 202 store the internal state STATE of the sequential logic circuit 20 .

[0029] The sequential logic circuit 20 further includes a first combinational logic circuit 200, which is configured to generate a next state signal NS as a function of the state signal STATE and one or more input signals IN, the one or more input signals IN being received, for example, via corresponding pads of the integrated circuit die or via pins of the packaged integrated circuit. Specifically, in response to the clock signal CLK, the internal memory element 202 stores the next state signal NS, thereby updating the state STATE.

[0030] In addition, the sequential logic circuit 20 typically includes a second combinational logic circuit 204, which is configured to generate one or more output signals OUT exclusively according to the state signal STATE (in the case of a Moore state machine) or by combining the state signal STATE with the input signal IN (in the case of a Mealy state machine, as shown by the dotted arrow). In general, the combinational logic circuit 204 is purely optional, because one or more of the output signals OUT may also directly correspond to the corresponding bits of the state signal STATE. For example, the output signal OUT may be provided to individual pads / pins POUT of the integrated circuit. Additionally or optionally, the signal OUT (or directly one or more state signals STATE) may be provided to a circuit 220, which may be integrated in the integrated circuit or externally connected to the pad / pin POUT. Typically, the circuit (Funct) 220 may be an analog and / or digital circuit that is configured to change the operation of the analog and / or digital circuit.

[0031] Figure 2An embodiment of a test circuit 30 configured to test the operation of sequential logic circuits, and in particular, the operation of the combinational logic circuits 200 and 204 is shown.

[0032] Specifically, in order to test the operation of the combinatorial logic circuit, the test circuit 30 should be able to provide input signals to the combinatorial logic circuit and monitor output signals generated by the combinatorial logic circuit.

[0033] For example, for the combinational logic circuit 200, the test circuit 30 should be able to provide the signals IN and STATE to the combinational logic circuit 200. For example, with respect to the signal STATE, the test circuit 30 may be configured to read / monitor and modify / write the contents of the memory element / flip-flop 202. Conversely, with respect to the signal IN, the test circuit 30 may apply an external signal to the pad / pin PIN, or the system 20 may include a circuit 206 configured to set the input signal IN based on the signal received from the test circuit 30. For example, in Figure 2 , the system comprises for each signal IN a corresponding circuit 206, which in turn comprises a multiplexer 210 and an optional flip-flop 212, wherein the value of the flip-flop 212 can be written by the test circuit 30, and the multiplexer 210 is configured to select the signal received via the corresponding pad / pin PIN or the output signal of the corresponding flip-flop 212 (or the signal received directly from the test circuit 30). Finally, in order to monitor the signal NS generated by the combinatorial logic circuit 200, it is sufficient for the test circuit 30 to generate a clock signal CLK, which allows the test circuit 30 to read the content of the storage element / flip-flop 202.

[0034] Conversely, with respect to the combinatorial logic circuit 204, and given that the test circuit 30 is already able to write and read the contents of the storage element / flip-flop 202, it is sufficient that the test circuit 30 can monitor / read the output signal OUT. For example, the test circuit 30 can monitor the signal at the pad / pin POUT externally, or the test circuit 30 can monitor the signal OUT internally. For example, in Figure 2 , for each signal OUT, the system comprises a corresponding flip-flop 208, which is configured to store the corresponding signal OUT in response to the clock signal CLK. Therefore, in order to monitor the signal OUT, it is sufficient for the test circuit 30 to generate the clock signal CLK, which allows the test circuit 30 to read the content of the flip-flop 208.

[0035] This basic testing of the sequential logic circuit 20 may also be applied to more complex integrated circuits including multiple internal registers 202 .

[0036] For example, Figure 3 A block diagram of an embodiment of a processing system 10, such as a microcontroller, is shown.

[0037] In the embodiment under consideration, the processing system 10 includes a digital processing circuit, such as a microprocessor (DPC) 102, typically a central processing unit (CPU), which is programmed by software instructions. Typically, the software executed by the microprocessor 102 is stored in a non-volatile program memory (NMEM) 104, such as a flash memory or an EEPROM. Thus, the memory 104 is configured to store firmware for the microprocessor 102, wherein the firmware includes software instructions to be executed by the microprocessor 102. The microprocessor 102 is also typically associated with a volatile memory (VMEM) 104b, such as a random access memory (RAM). The memory 104b can be used to store temporary data, such as, for example, a memory device. Figure 3 As shown, communication with the memory 104 and / or 104b is typically performed via one or more memory controllers (Cont) 100. The memory controller(s) 100 may be integrated into the microprocessor 102 or connected to the microprocessor 102 via a communication channel (e.g., a system bus of the processing system 10). Similarly, the memory 104 and / or 104b may be integrated with the microprocessor 102 in a single integrated circuit, or the memory 104 and / or 104b may be in the form of a separate integrated circuit and connected to the microprocessor 102, for example, via traces of a printed circuit board.

[0038] The processing system 10 may also include one or more (hardware) resources / peripherals 106, for example selected from:

[0039] one or more communication interfaces IF, for example for exchanging data via the communication system 20, such as a Universal Asynchronous Receiver / Transmitter (UART), a Serial Peripheral Interface Bus (SPI), an Inter-Integrated Circuit (I2C), a Controller Area Network (CAN) bus and / or an Ethernet interface; and / or

[0040] - one or more analog-to-digital converters AD and / or digital-to-analog converters DA; and / or

[0041] - one or more dedicated digital components DC, such as hardware timers and / or counters, or cryptographic co-processors; and / or

[0042] - one or more analog components AC, such as comparators, sensors, such as temperature sensors, etc.; and / or

[0043] - One or more mixed signal components MSC, such as PWM (Pulse Width Modulation) drivers.

[0044] For example, in the case of a microcontroller, the resources / peripherals 106 are connected to the microprocessor 102 via a suitable communication system such as one or more system buses.

[0045] Thus, each of circuits 100, 102, and 106 may include one or more sequential logic circuits 20, which in turn include a plurality of registers. For example, status registers 202 may include instruction and special function registers of microprocessor 102, or registers for interfacing peripherals 106.

[0046] in this regard, Figure 4 An embodiment of an integrated circuit 12 having an integrated test interface (testIF) 300 is shown.

[0047] Specifically, in the embodiment under consideration, the integrated circuit 12 includes a processing system 10 and a plurality of pads / pins P. For example, Figure 4 Three input pads / pins P1, P2 and P3 and three output pads / pins P4, P5 and P6 are shown in FIG.

[0048] Therefore, in order to test the processing system 10, the test circuit 30 should be able to: modify the signals received via the input pads / pins (e.g., pads / pins P1, P2 and P3); read and modify the contents of the internal trigger 202 of the processing system 10; and read the contents of the signals provided to the output pads / pins (e.g., pads / pins P4, P5 and P6).

[0049] For example, in the integrated circuit 12, the internal flip-flops 202 are controlled by a so-called "scan test". Specifically, in this case, the internal flip-flops 202 are connected in series to form one or more flip-flop chains. Figure 4 Two chains 202a and 202b are shown in FIG. For example, one or more (or each) of the circuits 100, 102 and 106 may be implemented using an intellectual property core that includes a respective chain of flip-flops. Such solutions are disclosed, for example, in U.S. Patents 5,428,624, 8,996,939 or 8,745,456.

[0050] For example, Figure 5 An embodiment of a trigger chain 40 is shown that may be used, for example, in each of the chains 202a or 202b.

[0051] Specifically, in Figure 5 4 shows a plurality of flip-flops 402 , wherein each flip-flop 402 receives a binary input signal D and provides a binary output signal Q, wherein each flip-flop 402 is configured to store a value of the input signal D in response to a clock signal.

[0052] Specifically, in the embodiment considered, each flip-flop 402 of the chain is modified to implement a scanning element 400. For example, in Figure 54 , a first scan element 4001, a last scan element 4003 and one or more intermediate scan elements 4002 are shown. Specifically, each scan element 400 comprises a respective multiplexer 404 in addition to a respective flip-flop 402. Specifically, this multiplexer 404 is configured to receive a test mode enable signal TE (generally identified as a scan enable signal) and to apply a respective original input signal D either (when the test mode enable signal TE has a first logical logic level, e.g. low) or (when the test mode enable signal TE has a second logical level, e.g. high) to an input of a respective flip-flop 402. In the case of the first scan element 4001 of the chain, the serial data input signal TI (generally identified as a scan input signal); and in the case of all subsequent scan elements 400 of the chain (e.g. elements 4002 and 4003), the signal at the output of the flip-flop 402 of the preceding / upstream scan element 402.

[0053] In addition, the output of the last scan element 4003 of the chain also corresponds to the serial data output signal TO (usually identified as the scan output signal).

[0054] Therefore, by Figure 4 In the illustrated embodiment, using such a scan chain 40, the test circuit 30 can sequentially load data into the scan chain 202 by setting the corresponding test mode enable signal TE to the second logic level, sequentially applying the data to the serial signal TI of the scan chain, and generating a clock signal for the flip-flop of the scan chain. Therefore, once the data is loaded into the scan element, the corresponding flip-flop provides the corresponding output signal Q to the associated circuit. In addition, the test circuit 30 can obtain the content of the scan chain 40 by reading the signal TO and generating a clock signal for the flip-flop of the scan chain.

[0055] For example, if Figure 5 As schematically shown in , a clock signal CLK′ for a flip-flop 402 may be generated via a multiplexer 406, wherein the multiplexer 406 is configured to select a clock signal CLK of the processing system 10 when the test mode signal has a first logic level, and to select a test clock signal TCLK (usually identified as a scan clock signal) provided, for example, by a test circuit 30 when the test mode signal has a second logic level.

[0056] Typically, the scanning element 400 can also be more complex, for example, to sequentially preload input data into other triggers in response to a preload completion signal and transfer the data from the preload trigger to the trigger 402, thereby ensuring that the content of the trigger 402 is updated only when all bits of the signal TI have been loaded into the processing system 10.

[0057] Thus, when using scan testing, the contents of the flip-flops 202 of the sequential logic circuits of the integrated circuit 12 can be modified by sequentially loading the serial data stream TI into the corresponding chain of flip-flops. Similarly, the contents of the flip-flops 202 can be read by sequentially reading the serial stream of data TO from the corresponding chain of flip-flops.

[0058] For example, Figure 4 As shown, in order to generate the serial signal TI and read the serial signal TO, the integrated circuit may include a test access port (TAP) 300, such as a Joint Test Action Group (JTAG) TAP according to IEEE Standard 1149.1. For example, in this case, the (external) test circuit 30 of the integrated circuit 12 and the TAP port 300 may exchange data via a serial data input signal TDI, a serial data output signal TDO and a clock signal TCLK. Typically, the communication may also use additional signals, such as Figure 4 The test mode select (TMS) and test reset (TRST) are not shown in FIG. Figure 4 , but the test port 300 may also generate additional signals, such as Figure 5 The signal TE and / or the clock signal TCLK shown in FIG.

[0059] As described above, in order to apply an input signal to the processing system 10, the test circuit 30 may apply an external signal to the input pad / pin, or may add an additional circuit 206 to set the input signal. In addition, in order to read an output signal of the processing system 10, the test circuit 30 may read a signal provided via an output pad / pin from the outside, or may additionally add additional flip-flops 208, and the test circuit may read the contents of these flip-flops 208.

[0060] For example, circuit 206 ( Figure 2 ) can also be connected in series with scanning elements 400 (see Figure 5 ) instead, thereby generating an input scan chain 206 that allows loading the flip-flop 212 / 402 of the circuit 206 and optionally reading the contents of the flip-flop 212 / 402. Specifically, in this case, the original data signal D will be connected to the input signal received via the input pad / pin, and the output signal of the flip-flop 402 will be connected to the processing system 10.

[0061] Similarly, the flip-flop 208 can also be replaced by a series connection of scanning elements 400 (see Figure 5), thereby generating an output scan chain 208, which allows reading the content of the flip-flop 208 and optionally loading the flip-flop 208. Specifically, in this case, the original data signal D will be connected to the output signal of the processing system 10, and the output signal of the flip-flop 402 will be connected to the output pad / pin.

[0062] like Figure 4 As shown, typically the input scan chain 206 and the output scan chain 208 can be connected in series, whereby a serial input data signal and a serial output data signal can be used to write and read the chains 206 and 208. Typically, the interaction with such triggers associated with input and output pads / pins (or input and output terminals of more complex circuits in general) is identified as a "boundary scan test". Typically, the chains 202, 206 and 208 can be controlled via the same test port 300 or via multiple test ports. In addition, the chains 206 and / or 208 can also be integrated in the processing system 10 and already form part of the chain of triggers 202.

[0063] Thus, in essence, in a scan test, the contents of the flip-flops are modified by the test circuit 30 in order to verify the correct operation of the flip-flops and / or the combinational logic circuits of the integrated circuit. Such scan tests and boundary scan tests are well known in the art. For example, reference may be made to standards developed by the Joint Test Action Group (JTAG), such as IEEE Standard 1149.1.

[0064] like Figure 6 As shown, in various embodiments, the ability to perform scan testing and / or boundary scan testing is automatically introduced during the IC development phase, such as via a software application executed on a computer.

[0065] For example, after the start step 1000, a register transfer level (RTL) model of the processing system 10 or a subcircuit thereof (e.g., the circuit 100, 102, or 106) is obtained at step 1002. In this regard, the digital circuit may have been described under an RTL model (as schematically shown via the output "Y" of step 1004), or may be provided via a higher language model such as VHDL or VERILOG (as schematically shown via the output "N" of step 1004). For example, an RTL model may be provided for a so-called intellectual property (IP) core, such as the circuit 100, 102, or 106. Conversely, in the case of a higher language model, the RTL model is typically generated by a synthesis (Syn) step 1006. Thus, once the RTL model is obtained, the software tool may process the RTL model at step 1008 (Proc), in particular in order to replace each flip-flop 202 with a corresponding scan element 402 and to connect the scan elements 402 in series, thereby forming one or more chains of flip-flops 202 for scan testing (see, e.g., Figure 5 Additionally or alternatively, the software tool may also add chains 206 and 208 to allow boundary scan testing. Step 1008 is often referred to as "scan insertion".

[0066] Typically, the RTL model of the IP core may also already include a scan element chain, ie, the developer of the IP core may have implemented step 1008. In this case, step 1008 may be omitted, or the software tool may add chains 206 and 208 to implement boundary scan testing.

[0067] Finally, the same software tool or another software tool may be used to implement automatic test pattern generation (ATPG) for the bits to be loaded into one or more flip-flop chains at step 1010, and the process stops at stop step 1012. In essence, this ATPG pattern is a specific pattern generated by an automatic tool to test the manufactured IC (die or packaged IC) in a test environment (i.e., when the IC 12 is connected to automatic test equipment (ATE)). Basically, ATPG attempts to find a test sequence that, when applied to a digital circuit, enables the tester to distinguish between correct and incorrect circuit behavior caused by functional anomalies.

[0068] Thus, as described above, the digital circuits of a modern integrated circuit 12 may be tested via scan testing and / or boundary scan testing. Figure 6 As described, an RTL model of a digital circuit may be obtained during the development of an integrated circuit (step 1002). Specifically, due to the large number of flip-flops of modern integrated circuits, a scan element chain for such scan testing and / or boundary scan testing may be automatically implemented via a software tool (step 1008). Specifically, as described above, such a scan element chain may be implemented by replacing the flip-flops of the RTL model with scan elements 400 connected in series to form one or more chains 202 suitable for scan testing; and / or adding additional scan elements 400 at the input and / or output pads of the RTL model to form chains 206 and / or 208 suitable for boundary scan testing.

[0069] Furthermore, an RTL model of a test port 300 (eg, TAP) may be added to communicate with each scan element chain, in particular to provide a serial input data stream TI to the scan element chain and to receive a serial output data stream TO from the scan element chain.

[0070] Thus, once the final RTL model of the digital circuit (with one or more scan element chains and test ports) has been obtained, the integrated circuit can be produced, for example, via physical synthesis of the RTL model based on a physical production process given the selected technology and integrated circuit layout, and the manufactured IC can be tested via ATE (see step 1010). Specifically, during scan testing or scan mode, ATPG patterns are shifted in the scan chains and / or boundary scan chains in order to test the correctness of the digital circuit.

[0071] However, the inventors have observed that data provided by the scan elements of such scan chains and / or boundary scan chains may also drive analog and / or digital circuits, which may not function correctly when provided with incorrect input data. Figure 1 As shown, digital input data IN provided to the digital circuit and / or digital data STATE stored in the internal trigger 202 and / or digital output data OUT can be used to drive circuit 220, such as an analog circuit, for example including one or more power supplies, current or voltage regulators, ground switches, etc.

[0072] Therefore, due to the shift-in operation of the ATPG test pattern, some signals may also be triggered to cause failures.

[0073] In the prior art solution, this problem is avoided by using a scanning element which, in addition to the flip-flops 402 forming a scan chain for sequentially loading data into and reading data from the flip-flops 402, also includes another flip-flop connected between the output of the corresponding 402 and the associated circuit. Specifically, the first flip-flop represents a preload flip-flop, and the second flip-flop is enabled via a preload or update signal, whereby the flip-flops 402 of the chain 40 can first be sequentially loaded, and then the preload signal is set in order to transfer the content from the first flip-flop to the second flip-flop, which actually drives the associated circuit. Such a solution is disclosed, for example, in US Pat. No. 7,409,612.

[0074] The inventors have observed that this solution is rather inefficient. For example, by using such a more complex scan element during the automatic insertion of the scan element, each flip-flop will be replaced by a corresponding scan element comprising two flip-flops, which significantly increases the complexity and cost of the integrated circuit. In addition, the ATPG stage must also know that each test pattern should include a given value of a specific scan element 400.

[0075] Therefore, different solutions are described below.

[0076] Specifically, Figure 7An embodiment is shown, in which a given signal Q provided by the scan element 400, in particular the corresponding flip-flop 402, can be fixed to a given (and preferably programmable) value.

[0077] Specifically, Figure 7 Again, a chain 40 of scan elements 4001, 4002 and 4003, such as scan elements of a scan chain and / or a boundary scan chain, is shown. As previously described, each scan element 400 provides a respective binary output signal Q to an associated circuit, which may be an integrated digital circuit (such as the combinatorial logic circuit 200 and / or the combinatorial logic circuit 204) or another (and possibly external) analog and / or digital circuit 220. As described above, in various embodiments, the value Q provided by the scan element 400 may be programmed by: a respective signal D when said signal TE is deasserted; and a signal TI when the signal TE is asserted.

[0078] In particular, in the embodiment considered, at least one of the signals Q provided by the chain 40 of scanning elements 400 is associated with a storage circuit 408. For example, Figure 7 In FIG. 4 , the signal Q provided by the scanning element 4001 is associated with the storage circuit 408. However, in general, other signals Q and / or multiple signals Q provided by the chain 40 may also have associated respective storage circuits 408.

[0079] Specifically, in the embodiment under consideration, the storage circuit 408 receives the corresponding signal Q and the control signal SCAN_MODE. Specifically, in response to determining that the signal SCAN_MODE is de-asserted and has a first logic level (e.g., "0"), the storage circuit 408 operates in a transparent mode and provides the signal Q as the signal Q'. In addition, the storage element 408 stores the value of the signal Q. Conversely, in response to determining that the signal SCAN_MODE is asserted and has a second logic level, e.g., "1", the storage circuit 408 provides the stored value Q as the signal Q'.

[0080] For example, Figure 8 As shown, in various embodiments, the storage element 408 can be implemented using an asynchronous latch. Figure 8 , storage element 408 includes a D-type latch 4086, wherein signal Q is provided to a data input of latch 4086, signal SCAN_MODE is provided to an enable input of latch 4086, and latch 4086 provides signal Q'. Thus, in the embodiment under consideration, latch 4086 provides signal Q and stores signal Q when signal SCAN_MODE is set high / "1", and provides stored signal Q when signal SCAN_MODE is set low / "0".

[0081] On the contrary, Figure 7 In the embodiment, the storage element 408 includes a synchronous flip-flop, such as a D-type flip-flop 4082. Specifically, in this case, the storage element 408, in particular the flip-flop 4082, is configured to store the signal Q when the signal SCAN_MODE has a first logic level (e.g., "0") and in response to a rising edge or a falling edge of a clock signal (e.g., a clock signal CLK').

[0082] For example, in the embodiment under consideration, the storage element 408 includes a first multiplexer 4080 configured to provide the signal Q (when the signal SCAN_MODE has a first logic level, such as “0”) or the signal stored by the flip-flop 4082 (when the signal SCAN_MODE has a second logic level, such as “1”) to the input of the flip-flop 4082. In addition, the storage element 408 includes a second multiplexer 4084 configured to provide the signal Q′ by selecting to receive the signal Q (when the signal SCAN_MODE has a first logic level, such as “0”) or the signal stored by the flip-flop 4082 (when the signal SCAN_MODE has a second logic level, such as “1”).

[0083] Thus, in this manner, when the signal SCAN_MODE is set to a first logic level (e.g., "0"), the value of a given signal Q provided by the scanning element 400 (particularly the corresponding flip-flop 402) can be programmed to a desired / requested value, whereby the storage circuit 408 stores the corresponding signal Q and provides the received signal Q as the signal Q' directly to the associated circuit (transparent mode). Next, once the signal SCAN_MODE is set to a second logic level, e.g., "1", the storage circuit 408 provides the stored value of the signal Q, thereby freezing the value of the signal Q'.

[0084] Therefore, in various embodiments, the integrated circuit 12 uses two signals: a first signal SCAN_MODE and a second signal TE. Specifically, the first signal SCAN_MODE is used to indicate that the processing system 10 is in a test mode. For example, based on the specific implementation of the processing system, the test mode of the processing system 10 can be activated, for example, via a software instruction executed by the processing unit 102, via a test pin of the integrated circuit 12, or via the test port 300, or a combination thereof. Conversely, the signal TE is used to enable writing (and reading) to the flip-flop 402 via the test port 300, for example, by using the serial signal TI and the clock signal TCLK.

[0085] In practice, modern processing systems 10, in particular microcontrollers, typically already use such a state signal SCAN_MODE in order to indicate that a test mode such as a scan test and / or a boundary scan test has been enabled. For example, in this case, the processing core 10 may initially be used during its normal operating mode (i.e., the signal SCAN_MODE is deasserted). Therefore, since the signal SCAN_MODE is deasserted, the storage element 408 operates in a transparent mode. Therefore, in order to update the data stored in the storage element 408, the processing system 10 may (for example) program the corresponding flip-flop 402 of the associated scan element by using the normal operation of the sequential logic circuit based on the signal D. Specifically, since the scan / test mode is not activated, the test port 300 typically also cannot assert the signal TE, whereby the flip-flop 402 can only be programmed via the corresponding signal D, i.e., the state flip-flop 402 is programmed via the normal operation of the processing system 10, i.e., via the signal D. Next, the scan / test mode of the processing system 10 is activated, whereby the signal SCAN_MODE is asserted. Thus, once signal SCAN_MODE is asserted, storage element 408 provides a stored signal Q′.

[0086] Therefore, at this time, the test circuit 30 and the test port 300 can be used to sequentially load data into the scan element 400 by using the signals TI and TE (while the signal SCAN_MODE is asserted / set to the second logic level).

[0087] Specifically, about Figure 5 1. The operation of the scan chain shown, once the signal SCAN_MODE is asserted, the test port 300 can assert the scan mode enable signal TE, and sequentially apply data to the serial input signal TI to load the data into the flip-flop 402. Next, the test port 300 can de-assert the scan mode enable signal TE, whereby the sequential logic circuit 20 updates the content of the flip-flop 402. Therefore, at this time, the test port 300 can again assert the scan mode enable signal TE, and sequentially read the serial output signal TO to read the content of the flip-flop 402, and possibly load new data into the flip-flop 402. In this arrangement, Figure 5 The multiplexer 406 shown in is preferably not driven by the scan mode enable signal TE, but by the scan / test mode signal SCAN_MODE, whereby the flip-flop 402 receives the test clock signal TCLK when the scan / test mode is activated (i.e., the signal SCAN_MODE is asserted), regardless of the actual value of the scan mode enable signal TE. For example, this allows triggering the update of the content of the flip-flop 402 via the test clock signal TCLK via the sequential logic circuit 20, for example in order to ensure that only a single state update is performed.

[0088] Thus, in the embodiment considered, the modification of the state signal Q occurring during the loading of the serial input stream TI, the updating of the flip-flop 402 and the reading of the serial output stream TO is not stored by the storage element 408, which still provides the previous value, since the scan / test mode signal SCAN_MODE remains asserted.

[0089] Thus, in the embodiment under consideration, by normal operation of the processing system 10, i.e. by the signal D (e.g. corresponding to Figure 2 The next state signal NS shown in FIG. 1 is used to program the contents of the storage element 408, for example, by executing software instructions on the microprocessor 102 and / or loading data from a memory (eg, configuration data stored in the non-volatile memory 104), and the signal SCAN_MODE is used to maintain the stored value.

[0090] Thus, in various embodiments, a given flip-flop 402 of the RTL model obtained at step 1002 is marked as protected, and step 1008 may replace the flip-flop 402 with a scan element 400 and automatically add a storage circuit 408 to the marked flip-flop 402. However, such automatic replacement is typically not possible using conventional software tools.

[0091] To this end, in various embodiments, the additional storage element 408 has been added to the RTL model obtained at step 1002, for example, by manually adding the storage element 408 to the RTL model 1002, or preferably by adding the storage element 408 to a higher language model of the integrated circuit, which is then synthesized into the RTL model at step 1006. Specifically, in this case, the flip-flop 4082 of the storage element 408 is marked as excluded from the scan chain(s), whereby step 1008 does not replace the flip-flop 4082 with the corresponding scan element 402, i.e., the software tool for automatically generating the scan chain(s) skips the (marked) flip-flop 4082, which is therefore excluded from the scan chain(s). In practice, such marking of flip-flops to be excluded during insertion of scan elements is usually supported by conventional software tools.

[0092] Fig. 9 Another embodiment of a scan element 400 with an associated storage element 408 is shown.

[0093] Specifically, in the embodiment considered, the flip-flop 402 of the scanning element 400 and the flip-flop 4082 of the storage element 408 have reset terminals, wherein the respective flip-flops are configured to reset their values ​​to a given reset value (e.g., low) when a reset signal received at the reset terminal is asserted (e.g., set to high).

[0094] Specifically, in conventional integrated circuits, the processing system 10 uses a reset signal RST corresponding to the usual reset signal of the integrated circuit. For example, this reset signal RST can be generated by the reset management circuit in response to a given event, such as power-on of the processing system signaled via the power supply monitoring circuit, or a given error event signaled by the fault collection and error management circuit. In the case of a scan test, the test port usually also generates (in addition to the test clock signal TCLK) a test or scan reset signal TRST, which allows resetting the flip-flops of the scan chain 40.

[0095] Therefore, in the embodiment under consideration, the flip-flop 402 receives the combined reset signal RST′ as a reset signal, and the combined reset signal RST′ is asserted when either the reset signal RST and / or the reset signal TRST is asserted. For example, the combined reset signal RST′ may be generated via a combinational logic circuit 410 (e.g., an OR gate), which is configured to: assert the combined reset signal RST′ when the reset signal RST is asserted or the reset signal TRST is asserted; and de-assert the combined reset signal RST′ when the reset signal RST is de-asserted and the reset signal TRST is de-asserted.

[0096] In contrast, in the considered embodiment, the flip-flop 4082 of the storage element 408 directly receives the reset signal RST as a reset signal, ie, the flip-flop 4082 is not reset in response to the test reset signal TRST, whereby the flip-flop 4082 also maintains its value when a test reset is performed.

[0097] In addition, if Fig. 9 As shown, when the trigger 402 of the scanning element 400 receives the clock signal CLK', the trigger 4082 of the storage element 4082 can receive: the clock signal CLK of the processing system 10, thereby the storage element can be updated only through the normal operation of the processing system, such as through software instructions executed by the microprocessor 102; or the clock signal CLK'.

[0098] As mentioned above, the storage element 408 may have been added to the RTL model of the corresponding circuit. Figure 7 As shown in the storage element, the trigger 4082 is marked as a storage element that is not replaced by the scanning element, whereby the software tool is configured to perform the following operations on each trigger of the obtained RTL model in step 1008: determining whether the DC component is marked; in response to determining that the trigger is not marked, replacing the corresponding trigger with the scanning element; and in response to determining that the trigger is marked, not replacing the trigger, i.e., prohibiting the replacement of the corresponding trigger with the scanning element.

[0099] Typically, the above operations apply to scan chains. In contrast, in the case of boundary scan chains, such chains can be added (externally) to the RTL model without modifying the internal structure of the RTL model.

[0100] In the case where the circuit is described in a higher language model, the labeling of the flip-flop 4082 may have been performed in the higher language model, and the synthesis operation at step 1006 may also maintain the labeling indication in the corresponding RTL model.

[0101] In this regard, Figure 7 The illustrated storage element 408 and, preferably, multiplexers 4080 and 4082 are also identified as being designed for test (DFT). This indication may be used, for example, in many synthesis programs to indicate that the corresponding circuit should not be optimized by logic synthesis operations.

[0102] Of course, without prejudice to the principle of the present disclosure, the details of construction and the embodiments may vary widely with respect to what has been described and shown herein purely by way of example, without thereby departing from the scope of the present disclosure as defined by the appended claims.

[0103] For example, although the foregoing description mainly relates to scan chains, the solutions disclosed herein may also be used with other test circuits of the sequential logic circuit 20. For example, in various embodiments, other test circuits 30 may also be used to write (and optionally read) the contents of the internal registers 202 of the sequential logic circuit 30 and / or to apply the input signal IN to the sequential logic circuit (see Figure 2 In this regard, at least one of the status signals is not provided directly to associated circuitry (e.g., Figure 1 4 or 220 ) shown in FIG. 4 , but rather uses storage element 408 to provide a modified state signal to the corresponding circuit.

[0104] The claims are an integral part of the technical teaching of the disclosure provided herein.

Claims

1. An integrated circuit, comprising: Sequential logic circuit, including: a plurality of state flip-flops providing state signals of the sequential logic circuit, wherein each state flip-flop is configured to generate a state output signal by storing an input signal in response to a clock signal; and a next state combinational logic circuit configured to generate the input signals for the plurality of state flip-flops based on the state output signals of the plurality of state flip-flops and at least one input signal; circuitry configured to change operation based on a subset of the state output signals provided by the plurality of state flip-flops; The test circuit is configured as: determining whether a test mode signal is asserted; and In response to determining that the test mode signal is asserted, writing and reading contents of the plurality of state flip-flops so as to test the operation of the sequential logic circuit; A processing system comprising at least one storage circuit, wherein each storage circuit is interposed between the circuit and a respective state output signal of the subset of the state output signals, wherein each storage circuit is configured to receive the respective state output signal and provide a modified state signal to the circuit by: In response to determining that the test mode signal is deasserted, providing the received state output signal to the circuit in a transparent manner and storing the received state output signal to a storage element of the storage circuit; and In response to determining that the test mode signal is asserted, storing the received state output signal to the storage element is inhibited, and the stored state output signal is provided to the circuit.

2. The integrated circuit of claim 1 , wherein the storage circuit comprises: A storage flip-flop is configured to store the corresponding received state output signal in response to the clock signal when the test mode signal is de-asserted.

3. The integrated circuit of claim 2, wherein the storage circuit comprises: A first multiplexer is configured to generate an input signal of the corresponding storage flip-flop by selecting: the status output signal received when the test mode signal is de-asserted, and the output signal of the storage flip-flop when the test mode signal is asserted; as well as A second multiplexer configured to generate the modified status signal by selecting: the status output signal received when the test mode signal is de-asserted, and When the test mode signal is asserted, the output signal of the storage flip-flop. 4 . The integrated circuit of claim 1 , wherein the circuit comprises analog circuitry configured to change operation based on the modified state signal.

5. The integrated circuit of claim 4, wherein the analog circuit comprises at least one of: a power supply, a current or voltage regulator, and a ground switch.

6. The integrated circuit of claim 1 , wherein the test circuit comprises a scan chain, wherein each state flip-flop of the plurality of state flip-flops forms part of a corresponding scan element, wherein: a first scanning element configured to provide a serial input signal to said input of a corresponding said state flip-flop when a scan mode enable signal is asserted; a subsequent scan element configured to provide the state output signal of the state flip-flop of a previous scan element to the input of a corresponding state flip-flop when the scan mode enable signal is asserted; and The state output signal of the state trigger of the last scanning element corresponds to the serial output signal.

7. The integrated circuit of claim 6, wherein the test circuit comprises a test port, the test port being configured to: asserting the scan mode enable signal; sequentially applying data to the serial input signal so as to load the data into the plurality of state flip-flops; deasserting the scan mode enable signal, whereby the sequential logic circuit updates the contents of the plurality of state flip-flops; asserting the scan mode enable signal; as well as The serial output signal is sequentially read to read the contents of the plurality of state flip-flops. 8 . The integrated circuit of claim 7 , wherein the test port is configured to generate the clock signal for the plurality of state flip-flops when the test mode signal is asserted.

9. The integrated circuit of claim 1, wherein the number of the storage circuits is less than the number of state flip-flops in the plurality of state flip-flops.

10. A method for producing an integrated circuit, comprising the steps of: obtaining an RTL model of a digital circuit including a sequential logic circuit and a storage circuit, wherein a flip-flop of the storage circuit is labeled; as well as For each trigger in the RTL model, perform the following operations: determining whether the trigger is flagged; In response to determining that the flip-flop is not marked, replacing the flip-flop with a scan element; In response to determining that the flip-flop is marked, inhibiting replacement of the flip-flop with a scanning element; The scan elements are connected in series to form one or more scan chains. 11 . The method of claim 10 , wherein obtaining the RTL model of the digital circuit comprises obtaining a higher language model of the digital circuit and generating the RTL model via a synthesis operation.

12. A computer program product comprising instructions which, when said program is run on a computer, cause said computer to implement the steps of the method according to claim 10.

Citation Information

Cited By

  • Double-pumped communication channel using double edge-triggered flip-flop with scan functionality

    US12744524B1