WO2023024694A1 - Chip testing and pin reuse unit, and chip testing and pin reuse method - Google Patents

Chip testing and pin reuse unit, and chip testing and pin reuse method Download PDF

Info

Publication number
WO2023024694A1
WO2023024694A1 PCT/CN2022/102128 CN2022102128W WO2023024694A1 WO 2023024694 A1 WO2023024694 A1 WO 2023024694A1 CN 2022102128 W CN2022102128 W CN 2022102128W WO 2023024694 A1 WO2023024694 A1 WO 2023024694A1
Authority
WO
WIPO (PCT)
Prior art keywords
chip
module
pins
signal
pin multiplexing
Prior art date
Application number
PCT/CN2022/102128
Other languages
French (fr)
Chinese (zh)
Inventor
郑文杰
Original Assignee
深圳英集芯科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳英集芯科技股份有限公司 filed Critical 深圳英集芯科技股份有限公司
Publication of WO2023024694A1 publication Critical patent/WO2023024694A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • G01R31/2886Features relating to contacting the IC under test, e.g. probe heads; chucks
    • G01R31/2889Interfaces, e.g. between probe and tester

Definitions

  • the application relates to the field of integrated circuit testing, in particular to a chip testing and pin multiplexing unit, and a chip testing and pin multiplexing method.
  • the chip Before the chip is mass-produced, the chip needs to enter the test mode of various chip tests. In the test mode, the chip can be tested by the built-in test circuit. Then, after the test is completed, the chip enters the working mode of the normal chip function from the test mode, and performs related chip functions through the built-in chip function circuit, thereby ensuring the quality of chip production and operation.
  • test mode of the chip is usually performed by using a separate pin (PIN pin).
  • PIN pin a separate pin
  • This application provides a chip testing and pin multiplexing unit and a chip testing and pin multiplexing method, in order to achieve chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip without additional
  • the test adds independent pins, which helps to reduce the pins of the chip in design, packaging and integration, which in turn helps to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
  • the present application provides a chip testing and pin multiplexing unit, which is applied to a chip, and the chip includes M chip functional units, M pins and the chip testing and pin multiplexing unit, the The chip functional unit is in one-to-one correspondence with the pins; the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules.
  • the value is an integer greater than 1, and the value of N is twice the value of M;
  • the chip testing module is connected to the M pins through the M first switch modules and the pin multiplexing module;
  • Each of the chip functional units is connected to one of the pins corresponding to the chip functional unit through the second switch module and the pin multiplexing module;
  • the pin multiplexing module is respectively connected to the M pins, the M first switch modules and the M second switch modules;
  • the chip testing module is configured to perform a chip test on the chip by multiplexing the pins corresponding to each of the M chip functional units;
  • the chip functional unit is used to execute the chip functions of the chip functional unit
  • the pin multiplexing module is configured to control the M first switch modules and the M second switch modules so that the chip test module multiplexes the respective corresponding pins of the M chip functional units. pins described above.
  • the chip test and pin multiplexing unit of the present application realizes chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without additionally adding independent pins for chip testing, thereby helping to reduce the number of chips.
  • the pins in the links of design, packaging and integration are beneficial to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
  • the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
  • the present application provides a method for chip testing and pin multiplexing, which is applied to a chip.
  • the chip includes M chip functional units, M pins, and a chip testing and pin multiplexing unit.
  • the units correspond to the pins one by one
  • the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules, and the value of M is An integer greater than 1, the value of N is twice the value of M; the method includes:
  • a wake-up signal is received, and the wake-up signal is used to trigger the chip to enter the detection state;
  • the M first switch modules and the M second switch modules are controlled by the signals detected by the pin multiplexing module from the M pins so that the chip testing module multiplexes the pins corresponding to each of the M chip functional units.
  • this application achieves chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without adding additional independent pins for chip testing, thereby helping to reduce the number of links in the design, packaging and integration of the chip. pins, which in turn helps to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
  • the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
  • the present application provides a chip, including M chip functional units, M pins and the chip testing and pin multiplexing unit in the first aspect, the chip functional units correspond to the pins one by one , the value of M is an integer greater than 1.
  • FIG. 1 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of another chip provided by an embodiment of the present application.
  • FIG. 3 to FIG. 6 are structural schematic diagrams of state control and transition of a chip provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for chip testing and pin multiplexing provided by an embodiment of the present application.
  • connection should be interpreted in a broad sense, for example, “connection” can be a fixed connection, an electrical connection, a detachable connection, an elastic connection, a direct connection, an indirect connection through an intermediary Connected, connected at intervals, etc., there is no specific limitation on this.
  • FIG. 1 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 10 may include: M chip functional units (such as chip functional unit 1201, chip functional unit 1202, etc.), M pins (such as pins 1301, 1302, etc.) and a chip testing and pin multiplexing unit 110.
  • the chip testing and pin multiplexing unit 110 may include a chip testing module 1101, a pin multiplexing module 1102, M first switch modules (such as the first switch module 1103, the first switch module 1104, etc.)
  • the second switch module such as the second switch module 1105 and the second switch module 1106), the value of M is an integer greater than 1, and the value of N is twice the value of M.
  • the functional units of the chip and the pins can be in one-to-one correspondence. It can be understood that the existing chip functional units of the chip 10 respectively have corresponding pins.
  • the chip functional unit 1201 corresponds to the pin 1301
  • the chip functional unit 1202 corresponds to the pin 1302 .
  • the chip testing module 1101 can connect M pins through the M first switch modules and the pin multiplexing module 1102 .
  • the chip testing module 1101 is connected to the pin 1301 and the pin 1302 through the first switch module 1103 , the first switch module 1104 and the pin multiplexing module 1102 .
  • Each of the chip functional units can be connected to a corresponding pin of the chip functional unit through a second switch module and the pin multiplexing module 1102 .
  • the chip functional unit 1201 is connected to the pin 1301 through the second switch module 1105 and the pin multiplexing module 1102
  • the chip functional unit 1202 is connected to the pin 1302 through the second switch module 1106 and the pin multiplexing module 1102 .
  • the pin multiplexing module 1102 can respectively connect M pins, M first switch modules and M second switch modules.
  • the pin multiplexing module 1102 is respectively connected to the pin 1301 , the pin 1302 , the first switch module 1103 , the first switch module 1104 , the second switch module 1105 , and the second switch module 1106 .
  • the chip testing module 1101 can be used to perform a chip test on the chip 10 by multiplexing the pins corresponding to each of the M chip functional units.
  • the chip testing module 1101 performs a chip test on the chip 10 by multiplexing the pin 1301 and the pin 1302 .
  • the chip functional unit can be used to execute the chip functions possessed by the chip functional unit.
  • different chip functional units may perform different chip functions of the chip 10 .
  • the pin multiplexing module 1102 can be used to control the M first switch modules and the M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units. It can be understood that the pin multiplexing module 1102 can control the M first switch modules and M second switch modules and their on-off states.
  • the pin multiplexing module 1102 controls the on-off state of the first switch module 1103, the first switch module 1104, the second switch module 1105 and the second switch module 1106 so that the chip test module 1101 multiplexes the The corresponding pin 1301 and the corresponding pin 1302 of the chip functional unit 1202 .
  • the chip needs to enter the test mode of various chip tests.
  • the chip can be tested by the built-in test circuit. Then, after the test is completed, the chip enters the working mode of the normal chip function from the test mode, and performs related chip functions through the built-in chip function circuit, thereby ensuring the quality of chip output and operation.
  • test mode of the chip is usually performed by using a separate pin (PIN pin).
  • PIN pin a separate pin
  • chip 20 has added two extra pins for chip testing, namely pin 2301 and pin 2302, and these two pins are corresponding to the pin of chip functional unit (chip functional unit 2201 corresponds to the pin 2303, and the chip function unit 2202 corresponds to the pin 2304).
  • chip 20 can reuse the pins 2301 and 2302 to enter the test mode by the chip test module 2101, but when the chip 20 completes the test and enters the working mode to use the chip functional unit, the additional two pins will in an idle waste state. Therefore, when pin resources of the chip are particularly tight, adding additional pins for chip testing will increase the size of the chip and increase the cost of chip design/integration/packaging.
  • the pin multiplexing module 1102 of the embodiment of the present application controls M first switch modules and M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, and then A chip test is performed on the chip 10 by the chip test module through the multiplexed M pins.
  • the chip test and pin multiplexing unit 110 of the embodiment of the present application implements chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip 10, without adding additional independent pins for chip testing, thereby It is conducive to reducing the pins of the chip in the links of design, packaging, and integration, which in turn is beneficial to reducing the volume of the chip and reducing the cost of the chip in design, integration, and packaging.
  • the pin multiplexing module 1102 can control M first switch modules and M second switch modules, the M pins can be repeatedly assigned to the chip test module 1101 for use by the chip test module 1101, thereby ensuring that the chip 10 can be used for multiple times. Repeatedly enter and exit the test mode to improve the efficiency of chip testing and improve the utilization efficiency of chips.
  • pin multiplexing module 1102 of the embodiment of the present application will be described in detail below.
  • the pin multiplexing module 1102 can be specifically used to detect the first signal through M pins; the first signal can be used to trigger the pin multiplexing module 110 to control M first switch modules and M second switch modules.
  • the switch module can be used by allocating M pins to the chip testing module 1101 or M chip functional units.
  • the pin multiplexing module 1102 of the present application can detect external signals of the chip 10 through the M pins to determine whether to allocate the M pins to the chip testing module 1101 or to M chip function modules. .
  • the pin multiplexing module 1102 controls M first switch modules and M second switch modules To allocate M pins to the chip testing module 1101 for use.
  • the pin multiplexing module 1102 If the chip 10 needs to enter the working mode, or the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the first signal through the M pins, then the pin multiplexing module 1102 controls the M pins.
  • a switch module and M second switch modules are used to allocate M pins to M chip functional units.
  • the first signal may include a pull-up voltage signal or a pull-down voltage signal.
  • the pin multiplexing module 1102 determines whether the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins. If the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules to convert M pins are assigned to the chip testing module 1101; if the pin multiplexing module 1102 detects the pull-down voltage signal outside the chip 10 through M pins, then the pin multiplexing module 1102 controls M first switch modules and M A second switch module is used to allocate M pins to M chip functional units.
  • the M pins are assigned to the chip testing module 1101 for use, and there is no specific limitation on this.
  • the chip 10 is in a standby state after being powered on. When a wake-up signal is generated, the chip 10 enters the detection state, and in the detection state, the external signals applied to the M pins are detected by the pin multiplexing module 1102 .
  • pin multiplexing module 1102 detects the pull-up voltage signal through the M pins, then control M first switch modules and M second switch modules to assign M pins to the chip test module 1101 for use, thereby It is realized that the chip 10 enters the test mode.
  • pin multiplexing module 1102 detects the pull-down voltage signal through the M pins, then control M first switch modules and M second switch modules to allocate M pins to M chip functional units for use, thereby It is realized that the chip 10 enters the working mode.
  • the pin multiplexing module 1102 detects the pull-down voltage signal through the M pins, then control the M first switch modules and the M second switch modules so that the M The pins are assigned to the M chip functional units, so that the chip 10 can enter the working mode from the test mode.
  • the chip 10 can choose whether to enter the standby state according to the current state, so as to continuously circulate, thereby ensuring the random switching of the chip 10 between the test mode and the working mode according to actual needs, and realizing the multiplexing of M pins Purpose.
  • the pin multiplexing module 1102 can be specifically used to detect whether there is a second signal within a preset time through the M pins; the second signal can be used to trigger the pin multiplexing module 1102 to control the M first
  • the switch module and M second switch modules are used to assign M pins to the chip test module; wherein, if the second signal is detected within the preset time, the pin multiplexing module 1102 assigns the M pins to The chip testing module 1101 uses it; if the second signal is not detected within a preset time, the pin multiplexing module 1102 allocates M pins to M chip functional units for use.
  • this application also considers that there is no need to detect external signals to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units, but directly through the preset It is determined whether a second signal is detected within the time. If the second signal is detected within the preset time, M pins are assigned to the chip testing module 1101 for use; if the second signal is not detected within the preset time, then M pins are assigned to M chips Functional units are used, which is beneficial to improve processing efficiency.
  • the second signal may include a pull-up voltage signal or a pull-down voltage signal.
  • the pin multiplexing module 1102 will allocate M pins to the chip testing module 1101 by controlling M first switch modules and M second switch modules. ; If the pull-up voltage signal is not detected within the preset time, the pin multiplexing module 1102 will distribute M pins to M chip functional units by controlling M first switch modules and M second switch modules use.
  • the chip 10 is in a standby state after being powered on.
  • the chip 10 enters the detection state, and in the detection state, the pin multiplexing module 1102 detects whether external signals are applied to the M pins PIN within a preset time.
  • pin multiplexing module 1102 detects the second signal through the M pins within the preset time, then control M first switch modules and M second switch modules to distribute M pins to the chip test module 1101 is used, so that the chip 10 enters the test mode.
  • pin multiplexing module 1102 If the pin multiplexing module 1102 does not detect the pull-up voltage signal through the M pins within the preset time, then control M first switch modules and M second switch modules to assign M pins to M Each chip functional unit is used, so that the chip 10 enters the working mode.
  • the chip 10 needs to enter the working mode by the test mode, then by detecting the signal to exit the test mode (the first signal can be detected by the pin multiplexing module 1102 to exit the test mode, and the signal can also be detected by the chip test module 1101 to exit the test mode, which will be described in detail below), so as to realize that the chip 10 enters the working mode from the test mode.
  • the chip 10 can choose whether to enter the standby state according to the current state, so as to continuously cycle, so as to ensure random switching between the test mode and the working mode according to actual needs, and realize the purpose of multiplexing the M pins.
  • chip testing module 1101 of the embodiment of the present application will be described in detail below.
  • the chip test module 1101 can be specifically used to detect the third signal through the M pins when the M pins are allocated to the chip test module 1101; the third signal can be used to trigger the chip test module 1101 to send a signal to the pin
  • the multiplexing module 1102 sends a fourth signal; the fourth signal is used to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units by controlling M first switch modules and M second switch modules. .
  • the M pins are allocated to the chip testing module 1101, which can be understood as that the chip testing module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the testing mode. Therefore, when the chip 10 needs to enter the working mode from the test mode, the chip test module 1101 can detect the third signal through the M pins, and the third signal triggers the chip test module 1101 to send the fourth signal to the pin multiplexing module 1102 , and finally the fourth signal triggers the pin multiplexing module 1102 to allocate M pins to M chip functional units, so that the chip 10 enters the working mode from the test mode.
  • the third signal may include at least one of the following: an internal integrated circuit (Inter-Integrated Circuit, I2C) protocol signal, a serial peripheral interface (Serial Peripheral Interface, SPI) protocol signal, a joint test working group (Joint Test Action Group, JTAG) protocol signal.
  • I2C Inter-Integrated Circuit
  • SPI Serial Peripheral Interface
  • JTAG Joint Test Action Group
  • the third signal includes an I2C protocol signal, and the I2C protocol is usually a two-wire serial bus, then the value of M can be 2, that is, the chip test module reuses the existing two chip functions of the chip 10
  • the corresponding pins of the units are used to implement the chip 10 from the test mode to the working mode through the two-wire communication protocol (I2C).
  • the third signal includes an SPI protocol signal, and the SPI protocol is usually a three-wire or four-wire serial bus, then the value of M can be 3 or 4, that is, the chip test module reuses the existing 3 or 4 of the chip 10.
  • the corresponding pins of the functional units of the chip realize that the chip 10 enters the working mode from the test mode through the three-wire or four-wire communication protocol (SPI).
  • the third signal includes a JTAG protocol signal, and the JTAG protocol is usually a four-wire serial bus, then the value of M can be 4, that is, the chip test module reuses the existing 4 chip functional units corresponding to each of the chip 10. pins, so as to realize that the chip 10 enters the working mode from the test mode through the four-wire communication protocol (JTAG).
  • JTAG four-wire communication protocol
  • the fourth signal may be determined by a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
  • a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
  • FIG. 5 or 6 if the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the third signal through the M pins, the chip The test module 1101 sends a fourth signal to the pin multiplexing module 1102, and the pin multiplexing module 110 controls M first switch modules and M second switch modules to distribute M pins to M chip functional units use, so that the chip 10 enters the working mode.
  • the chip testing module 1101 can be specifically used to detect the fifth signal through the M pins when the M pins are assigned to the chip testing module 1101; the fifth signal can be used to determine the chip testing strategy for the chip,
  • the chip testing strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, and writing configuration parameters to the memory of the chip.
  • the configuration parameters can be used to update and upgrade the chip 10, detect the chip, and so on.
  • the chip test module 1101 when the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the test mode, the chip test module 1101 can detect the fifth signal through the M pins To read the internal operating status of the chip 10, debug and calibrate the internal circuit of the chip 10, write configuration parameters to the memory of the chip 10, etc.
  • the fifth signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
  • the fifth signal includes an I2C protocol signal, and the I2C protocol is usually a two-wire serial bus, then the value of M can be 2, that is, the chip test module reuses the existing two chip functions of the chip 10 The corresponding pins of the units are used to realize the chip test on the chip 10 through the two-wire communication protocol (I2C).
  • I2C two-wire communication protocol
  • the fifth signal includes the SPI protocol signal, and the SPI protocol is usually a three-wire or four-wire serial bus, then the value of M can be 3 or 4, that is, the chip test module reuses the existing 3 or 4 of the chip 10.
  • the corresponding pins of the functional units of the chip can realize the chip test on the chip 10 through the three-wire or four-wire communication protocol (SPI).
  • the fifth signal includes a JTAG protocol signal
  • the JTAG protocol is usually a four-wire serial bus
  • the value of M can be 4, that is, the chip test module reuses the existing 4 chip functional units corresponding to each of the chip 10. pins, so as to implement the chip test on the chip 10 through the four-wire communication protocol (JTAG).
  • FIG. 7 is a schematic flow chart of a method for chip testing and pin multiplexing provided in the embodiment of the present application. The method is applied to a chip 10.
  • the chip 10 includes M chip functional units, M pins, and chip testing and pin multiplexing.
  • the chip functional units correspond to the pins one by one
  • the chip testing and pin multiplexing unit 110 may include a chip testing module 1101, a pin multiplexing module 1102, M first switch modules and M second switch modules , the value of M is an integer greater than 1, and the value of N is twice the value of M; the method includes the following steps:
  • the chip 10 needs to detect the wake-up signal in the standby state, and enter the detection state from the standby state after detecting the wake-up signal.
  • the wake-up signal can be determined by the communication protocol supported by the internal mode of the chip 10 , such as serial signal, synchronous serial signal and so on.
  • the chip 10 performs signal detection in the detection state to determine whether to enter the detection state or the working state.
  • the chip 10 in the test mode, can perform a chip test through the chip test module; in the working mode, the chip 10 can perform related chip functions through M chip functional units.
  • the pin multiplexing module 1102 in the chip 10 controls the M first switch modules and M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, so that the chip 10 After entering the test mode, the chip test module 1101 finally performs a chip test on the chip 10 through the multiplexed M pins.
  • this application achieves chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without adding additional independent pins for chip testing, thereby helping to reduce chip design, packaging and integration.
  • the pins on the link are beneficial to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
  • the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
  • the signals detected from the M pins by the pin multiplexing module in S730 are used to control M first switch modules and M second switch modules so that the chip test module multiplexes the M chip functional units
  • the corresponding pins may include: the first signal is detected from the M pins through the pin multiplexing module, and the first signal may be used to trigger the pin multiplexing module by controlling M first switch modules and M
  • the second switch module is used for allocating M pins to the chip testing module or M chip functional units.
  • the pin multiplexing module 1102 of the present application can detect external signals of the chip 10 through the M pins to determine whether to allocate the M pins to the chip testing module 1101 or to M chip function modules. .
  • the pin multiplexing module 1102 controls M first switch modules and M second switch modules To allocate M pins to the chip testing module 1101 for use.
  • the pin multiplexing module 1102 If the chip 10 needs to enter the working mode, or the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the first signal through the M pins, then the pin multiplexing module 1102 controls the M pins.
  • a switch module and M second switch modules are used to allocate M pins to M chip functional units.
  • the first signal may include a pull-up voltage signal or a pull-down voltage signal.
  • the pin multiplexing module 1102 determines whether the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins. If the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules to convert M pins are assigned to the chip testing module 1101; if the pin multiplexing module 1102 detects the pull-down voltage signal outside the chip 10 through M pins, then the pin multiplexing module 1102 controls M first switch modules and M A second switch module is used to allocate M pins to M chip functional units.
  • the M pins are assigned to the chip testing module 1101 for use, and there is no specific limitation on this.
  • FIG. 3 please refer to the above-mentioned FIG. 3 , which will not be repeated here.
  • the signals detected from the M pins by the pin multiplexing module in S730 are used to control M first switch modules and M second switch modules so that the chip test module multiplexes the M chip functional units
  • the corresponding pins may include: detecting whether there is a second signal from the M pins within a preset time through the pin multiplexing module, and the second signal can be used to trigger the pin multiplexing module to control the M pins
  • a switch module and M second switch modules are used to assign M pins to the chip test module; wherein, if the second signal is detected within the preset time, the M pins are assigned to the chip test module; If the second signal is not detected within the preset time, the M pins are allocated to the M chip functional units.
  • this application also considers that there is no need to detect external signals to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units, but directly through the preset It is determined whether a second signal is detected within the time. If the second signal is detected within the preset time, M pins are assigned to the chip testing module 1101 for use; if the second signal is not detected within the preset time, then M pins are assigned to M chips Functional units are used, which is beneficial to improve processing efficiency.
  • the second signal may include a pull-up voltage signal or a pull-down voltage signal.
  • the pin multiplexing module 1102 will allocate M pins to the chip testing module 1101 by controlling M first switch modules and M second switch modules. ; If the pull-up voltage signal is not detected within the preset time, the pin multiplexing module 1102 will distribute M pins to M chip functional units by controlling M first switch modules and M second switch modules use.
  • FIG. 4 please refer to the above-mentioned FIG. 4 , which will not be repeated here.
  • the present application may also include: when the chip test module multiplexes the corresponding pins of the M chip functional units, the chip test module detects the third signal from the M pins, and the third signal is used to trigger the chip The test module sends a fourth signal to the pin multiplexing module, and the fourth signal is used to trigger the pin multiplexing module to allocate M pins to M chips by controlling M first switch modules and M second switch modules Functional unit used.
  • the M pins are allocated to the chip testing module 1101, which can be understood as that the chip testing module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the testing mode. Therefore, when the chip 10 needs to enter the working mode from the test mode, the chip test module 1101 can detect the third signal through the M pins, and the third signal triggers the chip test module 1101 to send the fourth signal to the pin multiplexing module 1102 , and finally the fourth signal triggers the pin multiplexing module 1102 to allocate M pins to M chip functional units, so that the chip 10 enters the working mode from the test mode.
  • the third signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
  • the chip 10 may enter the working mode from the test mode through the two-wire communication protocol (I2C), or through the three-wire or four-wire communication protocol (SPI, JTAG).
  • I2C two-wire communication protocol
  • SPI three-wire or four-wire communication protocol
  • JTAG three-wire or four-wire communication protocol
  • the fourth signal may be determined by a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
  • a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
  • FIG. 5 please refer to the above-mentioned FIG. 5 or FIG. 6 , which will not be repeated here.
  • the present application may also include: when the chip test module multiplexes the corresponding pins of the M chip functional units, the chip test module detects the fifth signal from the M pins, and the fifth signal is used to determine the A chip testing strategy for the chip.
  • the chip testing strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, and writing configuration parameters to the memory of the chip.
  • the configuration parameters can be used to update and upgrade the chip 10, detect the chip, and so on.
  • the chip test module 1101 when the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the test mode, the chip test module 1101 can detect the fifth signal through the M pins To read the internal operating status of the chip 10, debug and calibrate the internal circuit of the chip 10, write configuration parameters to the memory of the chip 10, etc.
  • the fifth signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
  • the present application can implement chip testing on the chip 10 through the two-wire communication protocol (I2C), three-wire or four-wire communication protocol (SPI, JTAG), such as reading the internal operating state of the chip, debugging and calibrating the chip. Internal circuits, programming configuration parameters to the memory of the chip, etc.
  • I2C two-wire communication protocol
  • SPI three-wire or four-wire communication protocol
  • JTAG four-wire communication protocol
  • Internal circuits programming configuration parameters to the memory of the chip, etc.

Abstract

A chip testing and pin reuse unit (110), and a chip testing and pin reuse method. The chip testing and pin reuse unit (110) is applied to a chip (10), the chip (10) comprising M chip function units (1201, 1202), M pins (1301, 1302) and the chip testing and pin reuse unit (110), wherein the chip function units (1201, 1202) correspond to the pins (1301, 1302) on a one-to-one basis; the chip testing and pin reuse unit (110) comprises a chip testing module (1101), a pin reuse module (1102), M first switch modules (1103, 1104) and M second switch modules (1105, 1106); the value of M is an integer greater than 1; and the value of N is twice the value of M. Therefore, the present pins (1301, 1302) of the chip (10) that correspond to the chip function units (1201, 1202) are reused to realize the testing of the chip (10) without the need to additionally newly add independent pins for the testing of the chip (10), such that the reduction of pins in processes such as design, encapsulation and integration of the chip (10) is facilitated, thereby facilitating the reduction of the volume of the chip (10) and the reduction of design, integration and encapsulation costs of the chip (10).

Description

芯片测试与引脚复用单元、芯片测试与引脚复用方法Chip testing and pin multiplexing unit, chip testing and pin multiplexing method
本申请要求于2021年08月24日递交的发明名称为“芯片测试与引脚复用单元、芯片测试与引脚复用方法”的申请号2021109711691的在先申请优先权,上述在先申请的内容以引入的方式并入本申请中。This application claims the priority of the earlier application of the application number 2021109711691 with the title of "chip testing and pin multiplexing unit, chip testing and pin multiplexing method" submitted on August 24, 2021. The contents are incorporated into this application by reference.
技术领域technical field
本申请涉及集成电路测试领域,具体涉及芯片测试与引脚复用单元、芯片测试与引脚复用方法。The application relates to the field of integrated circuit testing, in particular to a chip testing and pin multiplexing unit, and a chip testing and pin multiplexing method.
背景技术Background technique
在芯片量产之前,芯片需要进入各类芯片测试的测试模式。在测试模式下,该芯片可以通过内置的测试电路对其进行芯片测试。然后,在完成测试之后,该芯片由测试模式进入到正常芯片功能的工作模式,并通过内置的芯片功能电路执行相关的芯片功能,从而保证芯片的出片和运行的质量。Before the chip is mass-produced, the chip needs to enter the test mode of various chip tests. In the test mode, the chip can be tested by the built-in test circuit. Then, after the test is completed, the chip enters the working mode of the normal chip function from the test mode, and performs related chip functions through the built-in chip function circuit, thereby ensuring the quality of chip production and operation.
然而,目前芯片的测试模式往往都是利用单独的引脚(PIN脚)进行。这就造成在芯片设计、芯片集成和芯片封装等环节上需要额外新增PIN脚以用于芯片测试,从而导致芯片的体积增大,以及增加芯片在设计、集成和封装上的成本等。However, at present, the test mode of the chip is usually performed by using a separate pin (PIN pin). This results in the need to add additional PIN pins for chip testing in links such as chip design, chip integration, and chip packaging, resulting in increased chip size and increased chip design, integration, and packaging costs.
发明内容Contents of the invention
本申请提供了一种芯片测试与引脚复用单元和芯片测试与引脚复用方法,以期望通过复用芯片已有芯片功能单元所对应的引脚以实现芯片测试,而无需额外为芯片测试新增独立的引脚,从而有利于减少芯片在设计、封装和集成等环节上的引脚,进而有利于减小芯片的体积,以及降低芯片在设计、集成和封装上的成本。This application provides a chip testing and pin multiplexing unit and a chip testing and pin multiplexing method, in order to achieve chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip without additional The test adds independent pins, which helps to reduce the pins of the chip in design, packaging and integration, which in turn helps to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
第一方面,本申请提供一种芯片测试与引脚复用单元,应用于芯片,所述芯片包括M个芯片功能单元、M个引脚和所述芯片测试与引脚复用单元,所述芯片功能单元和所述引脚一一对应;所述芯片测试与引脚复用单元包括芯片测试模块、引脚复用模块、M个第一开关模块和M个第二开关模块,M的取值为大于1的整数,N的取值为M的取值的2倍;In the first aspect, the present application provides a chip testing and pin multiplexing unit, which is applied to a chip, and the chip includes M chip functional units, M pins and the chip testing and pin multiplexing unit, the The chip functional unit is in one-to-one correspondence with the pins; the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules. The value is an integer greater than 1, and the value of N is twice the value of M;
所述芯片测试模块通过M个所述第一开关模块和所述引脚复用模块连接M个所述引脚;The chip testing module is connected to the M pins through the M first switch modules and the pin multiplexing module;
所述芯片功能单元各自通过一个所述第二开关模块和所述引脚复用模块连接所述芯片功能单元所对应的一个所述引脚;Each of the chip functional units is connected to one of the pins corresponding to the chip functional unit through the second switch module and the pin multiplexing module;
所述引脚复用模块分别连接M个所述引脚、M个所述第一开关模块和M个所述第二开关模块;The pin multiplexing module is respectively connected to the M pins, the M first switch modules and the M second switch modules;
所述芯片测试模块,用于通过复用M个所述芯片功能单元各自所对应的所述引脚以对所述芯片进行芯片测试;The chip testing module is configured to perform a chip test on the chip by multiplexing the pins corresponding to each of the M chip functional units;
所述芯片功能单元,用于执行所述芯片功能单元所具备的芯片功能;The chip functional unit is used to execute the chip functions of the chip functional unit;
所述引脚复用模块,用于通过控制M个所述第一开关模块和M个所述第二开关模块以使得所述芯片测试模块复用M个所述芯片功能单元各自所对应的所述引脚。The pin multiplexing module is configured to control the M first switch modules and the M second switch modules so that the chip test module multiplexes the respective corresponding pins of the M chip functional units. pins described above.
可见,本申请的芯片测试与引脚复用单元通过复用芯片已有芯片功能单元所对应的引脚以实现芯片测试,而无需额外为芯片测试新增独立的引脚,从而有利于减少芯片在设计、封装和集成等环节上的引脚,进而有利于减小芯片的体积,以及降低芯片在设计、集成和封装上的成本。It can be seen that the chip test and pin multiplexing unit of the present application realizes chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without additionally adding independent pins for chip testing, thereby helping to reduce the number of chips. The pins in the links of design, packaging and integration are beneficial to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
另外,由于引脚复用模块可以控制M个第一开关模块和M个第二开关模块,从而可以将M个引脚多次反复分配给芯片测试模块所使用,进而保证芯片可以多次反复进出测试模式,提升芯片测试的效率,以及提高芯片的利用效益。In addition, since the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
第二方面,本申请提供一种芯片测试与引脚复用方法,应用于芯片,所述芯片包括M个芯片功能单元、M个引脚和芯片测试与引脚复用单元,所述芯片功能单元和所述引脚一一对应,所述芯片测试与引脚复用单元包括芯片测试模块、引脚复用模块、M个第一开关模块和M个第二开关模块,M的取值为大于1的整数,N的取值为M的取值的2倍;所述方法包括:In a second aspect, the present application provides a method for chip testing and pin multiplexing, which is applied to a chip. The chip includes M chip functional units, M pins, and a chip testing and pin multiplexing unit. The units correspond to the pins one by one, and the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules, and the value of M is An integer greater than 1, the value of N is twice the value of M; the method includes:
在所述芯片上电处于待机状态下,接收唤醒信号,所述唤醒信号用于触发所述芯片进入检测状态;When the chip is powered on and in the standby state, a wake-up signal is received, and the wake-up signal is used to trigger the chip to enter the detection state;
在所述芯片进入所述检测状态下,通过所述引脚复用模块从M个所述引脚中检测到的信号来控制M个所述第一开关模块和M个所述第二开关模块以使得所述芯片测试模块复用M个所述芯片功能单元各自所对应的所述引脚。When the chip enters the detection state, the M first switch modules and the M second switch modules are controlled by the signals detected by the pin multiplexing module from the M pins so that the chip testing module multiplexes the pins corresponding to each of the M chip functional units.
可见,本申请通过复用芯片已有芯片功能单元所对应的引脚以实现芯片测试,而无需额外为芯片测试新增独立的引脚,从而有利于减少芯片在设计、封装和集成等环节上的引脚,进而有利于减小芯片的体积,以及降低芯片在设计、集成和封装上的成本。It can be seen that this application achieves chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without adding additional independent pins for chip testing, thereby helping to reduce the number of links in the design, packaging and integration of the chip. pins, which in turn helps to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
另外,由于引脚复用模块可以控制M个第一开关模块和M个第二开关模块,从而可以将M个引脚多次反复分配给芯片测试模块所使用,进而保证芯片可以多次反复进出测试模式,提升芯片测试的效率,以及提高芯片的利用效益。In addition, since the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
第三方面,本申请提供一种芯片,包括M个芯片功能单元、M个引脚和第一方面中的芯片测试与引脚复用单元,所述芯片功能单元和所述引脚一一对应,M的取值为大于1的整数。In the third aspect, the present application provides a chip, including M chip functional units, M pins and the chip testing and pin multiplexing unit in the first aspect, the chip functional units correspond to the pins one by one , the value of M is an integer greater than 1.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍。显而易见地,下面描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that are used in the embodiments of the present application. Apparently, the drawings described below are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1是本申请实施例提供的一种芯片的结构示意图;FIG. 1 is a schematic structural diagram of a chip provided by an embodiment of the present application;
图2是本申请实施例提供的又一种芯片的结构示意图;FIG. 2 is a schematic structural diagram of another chip provided by an embodiment of the present application;
图3至图6是本申请实施例提供的一种芯片的状态控制与转变的结构示意图;FIG. 3 to FIG. 6 are structural schematic diagrams of state control and transition of a chip provided by an embodiment of the present application;
图7是本申请实施例提供的一种芯片测试与引脚复用方法的流程示意图。FIG. 7 is a schematic flowchart of a method for chip testing and pin multiplexing provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、软件、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, software, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本申请中,除非另有明确的规定和限定,术语“连接”应做广义理解,例如,“连接”可以是固定连接、电气连接、可拆卸连接、弹性连接、直接相连、通过中间媒介间接相连、间隔连接等,对此不作具体限制。In this application, unless otherwise specified and limited, the term "connection" should be interpreted in a broad sense, for example, "connection" can be a fixed connection, an electrical connection, a detachable connection, an elastic connection, a direct connection, an indirect connection through an intermediary Connected, connected at intervals, etc., there is no specific limitation on this.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。下面结合附图,对本申请实施例进行详细介绍。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments. The following describes the embodiments of the present application in detail with reference to the accompanying drawings.
请参阅图1,图1是本申请实施例提供的一种芯片的结构示意图。其中,芯片10可以包括:M个芯片功能单元(如芯片功能单元1201、芯片功能单元1202等)、M个引脚(如引脚1301、引脚1302等)和芯片测试与引脚复用单元110,芯片测试与引脚复用单元110可以包括芯片测试模块1101、引脚复用模块1102、M个第一开关模块(如第一开关模块1103、第一开关模块1104等)和M个第二开关模块(如第二开关模块1105、第二开关模块1106),M的取值为大于1的整数,N的取值为M的取值的2倍。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of a chip provided by an embodiment of the present application. Wherein, the chip 10 may include: M chip functional units (such as chip functional unit 1201, chip functional unit 1202, etc.), M pins (such as pins 1301, 1302, etc.) and a chip testing and pin multiplexing unit 110. The chip testing and pin multiplexing unit 110 may include a chip testing module 1101, a pin multiplexing module 1102, M first switch modules (such as the first switch module 1103, the first switch module 1104, etc.) For the second switch module (such as the second switch module 1105 and the second switch module 1106), the value of M is an integer greater than 1, and the value of N is twice the value of M.
其中,芯片功能单元和引脚可以一一对应。可以理解的是,芯片10已有的芯片功能单元各自对应有引脚。Wherein, the functional units of the chip and the pins can be in one-to-one correspondence. It can be understood that the existing chip functional units of the chip 10 respectively have corresponding pins.
例如,芯片功能单元1201对应引脚1301、芯片功能单元1202对应引脚1302。For example, the chip functional unit 1201 corresponds to the pin 1301 , and the chip functional unit 1202 corresponds to the pin 1302 .
其中,芯片测试模块1101可以通过M个第一开关模块和引脚复用模块1102连接M个引脚。Wherein, the chip testing module 1101 can connect M pins through the M first switch modules and the pin multiplexing module 1102 .
例如,芯片测试模块1101通过第一开关模块1103、第一开关模块1104和引脚复用模块1102连接引脚1301、引脚1302。For example, the chip testing module 1101 is connected to the pin 1301 and the pin 1302 through the first switch module 1103 , the first switch module 1104 and the pin multiplexing module 1102 .
其中,芯片功能单元各自可以通过一个第二开关模块和引脚复用模块1102连接芯片功能单元所对应的一个引脚。Each of the chip functional units can be connected to a corresponding pin of the chip functional unit through a second switch module and the pin multiplexing module 1102 .
例如,芯片功能单元1201通过第二开关模块1105和引脚复用模块1102连接引脚1301、芯片功能单元1202通过第二开关模块1106和引脚复用模块1102连接引脚1302。For example, the chip functional unit 1201 is connected to the pin 1301 through the second switch module 1105 and the pin multiplexing module 1102 , and the chip functional unit 1202 is connected to the pin 1302 through the second switch module 1106 and the pin multiplexing module 1102 .
其中,引脚复用模块1102可以分别连接M个引脚、M个第一开关模块和M个第二开关模块。Wherein, the pin multiplexing module 1102 can respectively connect M pins, M first switch modules and M second switch modules.
例如,引脚复用模块1102分别连接引脚1301、引脚1302、第一开关模块1103、第一开关模块1104、第二开关模块1105、第二开关模块1106。For example, the pin multiplexing module 1102 is respectively connected to the pin 1301 , the pin 1302 , the first switch module 1103 , the first switch module 1104 , the second switch module 1105 , and the second switch module 1106 .
其中,芯片测试模块1101,可以用于通过复用M个芯片功能单元各自所对应的引脚以对芯片10进行芯片测试。Wherein, the chip testing module 1101 can be used to perform a chip test on the chip 10 by multiplexing the pins corresponding to each of the M chip functional units.
例如,芯片测试模块1101通过复用引脚1301和引脚1302以对芯片10进行芯片测试。For example, the chip testing module 1101 performs a chip test on the chip 10 by multiplexing the pin 1301 and the pin 1302 .
其中,芯片功能单元,可以用于执行芯片功能单元所具备的芯片功能。另外,不同的芯片功能单元可能执行芯片10的不同芯片功能。Wherein, the chip functional unit can be used to execute the chip functions possessed by the chip functional unit. In addition, different chip functional units may perform different chip functions of the chip 10 .
其中,引脚复用模块1102,可以用于通过控制M个第一开关模块和M个第二开关模块以使得芯片测试模块1101复用M个芯片功能单元各自所对应的引脚。可以理解的是,引脚复用模块1102可以控制M个第一开关模块和M个第二开关模块和通断状态。Wherein, the pin multiplexing module 1102 can be used to control the M first switch modules and the M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units. It can be understood that the pin multiplexing module 1102 can control the M first switch modules and M second switch modules and their on-off states.
例如,引脚复用模块1102通过控制第一开关模块1103、第一开关模块1104、第二开关模块1105和第二开关模块1106的通断状态以使得芯片测试模块1101复用芯片功能单元1201所对应的引脚1301以及芯片功能单元1202所对应的引脚1302。For example, the pin multiplexing module 1102 controls the on-off state of the first switch module 1103, the first switch module 1104, the second switch module 1105 and the second switch module 1106 so that the chip test module 1101 multiplexes the The corresponding pin 1301 and the corresponding pin 1302 of the chip functional unit 1202 .
需要说明的是,在芯片量产之前,芯片需要进入各类芯片测试的测试模式。在测试模式下,该芯片可以通过内置的测试电路对其进行芯片测试。然后,在完成测试之后,该芯片由测试模式进入到正常芯片功能的工作模式,并通过内置的芯片功能电路执行相关的芯片功能,从而保证芯片的出片和运行的质量。It should be noted that before the chip is mass-produced, the chip needs to enter the test mode of various chip tests. In the test mode, the chip can be tested by the built-in test circuit. Then, after the test is completed, the chip enters the working mode of the normal chip function from the test mode, and performs related chip functions through the built-in chip function circuit, thereby ensuring the quality of chip output and operation.
然而,目前芯片的测试模式往往都是利用单独的引脚(PIN脚)进行。这就造成在芯片设计、芯片集成和芯片封装等环节上需要额外新增PIN脚以用于芯片测试,从而导致芯片的体积增大,以及增加芯片在设计、集成和封装上的成本等。However, at present, the test mode of the chip is usually performed by using a separate pin (PIN pin). This results in the need to add additional PIN pins for chip testing in links such as chip design, chip integration, and chip packaging, resulting in increased chip size and increased chip design, integration, and packaging costs.
例如,在图2中,芯片20额外增加了两个引脚以用于芯片测试,即引脚2301和引脚2302,而该两个引脚与芯片功能单元所对应的引脚(芯片功能单元2201对应引脚2303、芯片功能单元2202对应引脚2304)无关。虽然芯片20可以通过芯片测试模块2101重复利用引脚2301和引脚2302以进入测试模式,但是当芯片20完成测试而进入到工作模式以使用芯片功能单元时,额外增加的该两个引脚将处于空闲浪费状态。因此,在芯片的引脚资源尤为紧张的情况下,额外增加用于芯片测试的引脚将增大芯片的体积,以及增加芯片在设计/集成/封装上的成本等。For example, in Fig. 2, chip 20 has added two extra pins for chip testing, namely pin 2301 and pin 2302, and these two pins are corresponding to the pin of chip functional unit (chip functional unit 2201 corresponds to the pin 2303, and the chip function unit 2202 corresponds to the pin 2304). Although the chip 20 can reuse the pins 2301 and 2302 to enter the test mode by the chip test module 2101, but when the chip 20 completes the test and enters the working mode to use the chip functional unit, the additional two pins will in an idle waste state. Therefore, when pin resources of the chip are particularly tight, adding additional pins for chip testing will increase the size of the chip and increase the cost of chip design/integration/packaging.
基于此,本申请实施例的引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以使得芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,再由芯片测试模块通过复用的M个引脚对芯片10进行芯片测试。Based on this, the pin multiplexing module 1102 of the embodiment of the present application controls M first switch modules and M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, and then A chip test is performed on the chip 10 by the chip test module through the multiplexed M pins.
可见,本申请实施例的芯片测试与引脚复用单元110通过复用芯片10已有芯片功能单元所对应的引脚以实现芯片测试,而无需额外为芯片测试新增独立的引脚,从而有利于减少芯片在设计、封装和集成等环节上的引脚,进而有利于减小芯片的体积,以及降低芯片在设计、集成和封装上的成本。It can be seen that the chip test and pin multiplexing unit 110 of the embodiment of the present application implements chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip 10, without adding additional independent pins for chip testing, thereby It is conducive to reducing the pins of the chip in the links of design, packaging, and integration, which in turn is beneficial to reducing the volume of the chip and reducing the cost of the chip in design, integration, and packaging.
另外,由于引脚复用模块1102可以控制M个第一开关模块和M个第二开关模块,从而可以将M个引脚多次反复分配给芯片测试模块1101所使用,进而保证芯片10可以多次反复进出测试模式,提升芯片测试的效率,以及提高芯片的利用效益。In addition, since the pin multiplexing module 1102 can control M first switch modules and M second switch modules, the M pins can be repeatedly assigned to the chip test module 1101 for use by the chip test module 1101, thereby ensuring that the chip 10 can be used for multiple times. Repeatedly enter and exit the test mode to improve the efficiency of chip testing and improve the utilization efficiency of chips.
结合上述描述,下面对本申请实施例的引脚复用模块1102进行具体说明。In combination with the above description, the pin multiplexing module 1102 of the embodiment of the present application will be described in detail below.
具体的,引脚复用模块1102,可以具体用于通过M个引脚检测第一信号;第一信号可以用于触发引脚复用模块110通过控制M个第一开关模块和M个第二开关模块以将M个引 脚分配给芯片测试模块1101或者M个芯片功能单元使用。Specifically, the pin multiplexing module 1102 can be specifically used to detect the first signal through M pins; the first signal can be used to trigger the pin multiplexing module 110 to control M first switch modules and M second switch modules. The switch module can be used by allocating M pins to the chip testing module 1101 or M chip functional units.
需要说明的是,本申请的引脚复用模块1102可以通过M个引脚检测芯片10外部的信号以确定是将M个引脚分配给芯片测试模块1101使用还是分配给M个芯片功能模块使用。It should be noted that the pin multiplexing module 1102 of the present application can detect external signals of the chip 10 through the M pins to determine whether to allocate the M pins to the chip testing module 1101 or to M chip function modules. .
例如,若芯片10需要进入测试模式,且引脚复用模块1102通过M个引脚检测到第一信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用。For example, if the chip 10 needs to enter the test mode, and the pin multiplexing module 1102 detects the first signal through M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules To allocate M pins to the chip testing module 1101 for use.
若芯片10需要进入工作模式,或者芯片10需要由测试模式进入到工作模式,且引脚复用模块1102通过M个引脚检测到第一信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。If the chip 10 needs to enter the working mode, or the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the first signal through the M pins, then the pin multiplexing module 1102 controls the M pins. A switch module and M second switch modules are used to allocate M pins to M chip functional units.
可选的,第一信号可以包括上拉电压信号或者下拉电压信号。Optionally, the first signal may include a pull-up voltage signal or a pull-down voltage signal.
其中,若引脚复用模块1102通过M个引脚检测到芯片10外的上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用;若引脚复用模块1102通过M个引脚检测到芯片10外的下拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Wherein, if the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules to convert M pins are assigned to the chip testing module 1101; if the pin multiplexing module 1102 detects the pull-down voltage signal outside the chip 10 through M pins, then the pin multiplexing module 1102 controls M first switch modules and M A second switch module is used to allocate M pins to M chip functional units.
同理可知,当在芯片10的外部向M个引脚施加下拉电压时,将M个引脚分配给芯片测试模块1101使用,对此不作具体限制。Similarly, when the pull-down voltage is applied to the M pins outside the chip 10, the M pins are assigned to the chip testing module 1101 for use, and there is no specific limitation on this.
示例性的,请参阅图3。芯片10上电后处于待机状态。当有唤醒信号产生时,芯片10进入检测状态,并在检测状态下通过引脚复用模块1102对外部向M个引脚施加的信号进行检测。Exemplarily, please refer to FIG. 3 . The chip 10 is in a standby state after being powered on. When a wake-up signal is generated, the chip 10 enters the detection state, and in the detection state, the external signals applied to the M pins are detected by the pin multiplexing module 1102 .
若引脚复用模块1102通过该M个引脚检测到上拉电压信号,则控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用,从而实现芯片10进入测试模式。If the pin multiplexing module 1102 detects the pull-up voltage signal through the M pins, then control M first switch modules and M second switch modules to assign M pins to the chip test module 1101 for use, thereby It is realized that the chip 10 enters the test mode.
若引脚复用模块1102通过该M个引脚检测到下拉电压信号,则控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用,从而实现芯片10进入工作模式。If the pin multiplexing module 1102 detects the pull-down voltage signal through the M pins, then control M first switch modules and M second switch modules to allocate M pins to M chip functional units for use, thereby It is realized that the chip 10 enters the working mode.
若芯片10需要由测试模式进入到工作模式,且引脚复用模块1102通过该M个引脚检测到下拉电压信号,则控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用,从而实现芯片10由测试模式进入到工作模式。If the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the pull-down voltage signal through the M pins, then control the M first switch modules and the M second switch modules so that the M The pins are assigned to the M chip functional units, so that the chip 10 can enter the working mode from the test mode.
在工作模式下,芯片10可以根据当前状态选择是否进入待机状态,如此不断循环,从而根据实际需求保证芯片10在测试模式和工作模式之间的随意切换,以及实现对M个引脚的复用目的。In the working mode, the chip 10 can choose whether to enter the standby state according to the current state, so as to continuously circulate, thereby ensuring the random switching of the chip 10 between the test mode and the working mode according to actual needs, and realizing the multiplexing of M pins Purpose.
具体的,引脚复用模块1102,可以具体用于通过M个引脚在预设时间内检测是否存在第二信号;第二信号可以用于触发引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块使用;其中,若在预设时间内检测到第二信号,则引脚复用模块1102将M个引脚分配给芯片测试模块1101使用;若在预设时间内未检测到第二信号,则引脚复用模块1102将M个引脚分配给M个芯片功能单元使用。Specifically, the pin multiplexing module 1102 can be specifically used to detect whether there is a second signal within a preset time through the M pins; the second signal can be used to trigger the pin multiplexing module 1102 to control the M first The switch module and M second switch modules are used to assign M pins to the chip test module; wherein, if the second signal is detected within the preset time, the pin multiplexing module 1102 assigns the M pins to The chip testing module 1101 uses it; if the second signal is not detected within a preset time, the pin multiplexing module 1102 allocates M pins to M chip functional units for use.
需要说明的是,与上述不同的是,本申请还考虑不需要检测外部的信号来触发引脚复 用模块1102将M个引脚分配给M个芯片功能单元使用,而是直接通过在预设时间内是否检测有第二信号来确定。若在预设时间内检测到第二信号,则将M个引脚分配给芯片测试模块1101使用;若在预设时间内非检测到第二信号,则将M个引脚分配给M个芯片功能单元使用,从而有利于提高处理效率。It should be noted that, different from the above, this application also considers that there is no need to detect external signals to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units, but directly through the preset It is determined whether a second signal is detected within the time. If the second signal is detected within the preset time, M pins are assigned to the chip testing module 1101 for use; if the second signal is not detected within the preset time, then M pins are assigned to M chips Functional units are used, which is beneficial to improve processing efficiency.
可选的,第二信号可以包括上拉电压信号或者下拉电压信号。Optionally, the second signal may include a pull-up voltage signal or a pull-down voltage signal.
其中,若在预设时间内检测到上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用;若在预设时间内未检测到上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Wherein, if the pull-up voltage signal is detected within the preset time, the pin multiplexing module 1102 will allocate M pins to the chip testing module 1101 by controlling M first switch modules and M second switch modules. ; If the pull-up voltage signal is not detected within the preset time, the pin multiplexing module 1102 will distribute M pins to M chip functional units by controlling M first switch modules and M second switch modules use.
示例性的,请参阅图4。芯片10上电后处于待机状态。当有唤醒信号产生时,芯片10进入检测状态,并在检测状态下通过引脚复用模块1102对预设时间内是否外部向M个引脚PIN施加的信号进行检测。Exemplarily, please refer to FIG. 4 . The chip 10 is in a standby state after being powered on. When a wake-up signal is generated, the chip 10 enters the detection state, and in the detection state, the pin multiplexing module 1102 detects whether external signals are applied to the M pins PIN within a preset time.
若引脚复用模块1102在预设时间内通过该M个引脚检测到第二信号,则控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用,从而实现芯片10进入测试模式。If the pin multiplexing module 1102 detects the second signal through the M pins within the preset time, then control M first switch modules and M second switch modules to distribute M pins to the chip test module 1101 is used, so that the chip 10 enters the test mode.
若引脚复用模块1102在预设时间内通过该M个引脚未检测到上拉电压信号,则控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用,从而实现芯片10进入工作模式。If the pin multiplexing module 1102 does not detect the pull-up voltage signal through the M pins within the preset time, then control M first switch modules and M second switch modules to assign M pins to M Each chip functional unit is used, so that the chip 10 enters the working mode.
若芯片10需要由测试模式进入到工作模式,则通过检测信号以退出测试模式(可以通过引脚复用模块1102检测第一信号以退出测试模式,也可以通过芯片测试模块1101检测信号以退出测试模式,具体于下文描述),从而实现芯片10由测试模式进入到工作模式。If the chip 10 needs to enter the working mode by the test mode, then by detecting the signal to exit the test mode (the first signal can be detected by the pin multiplexing module 1102 to exit the test mode, and the signal can also be detected by the chip test module 1101 to exit the test mode, which will be described in detail below), so as to realize that the chip 10 enters the working mode from the test mode.
在工作模式下,芯片10可以根据当前状态选择是否进入待机状态,如此不断循环,从而根据实际需求保证在测试模式和工作模式之间的随意切换,以及实现对M个引脚的复用目的。In the working mode, the chip 10 can choose whether to enter the standby state according to the current state, so as to continuously cycle, so as to ensure random switching between the test mode and the working mode according to actual needs, and realize the purpose of multiplexing the M pins.
结合上述描述,下面对本申请实施例的芯片测试模块1101进行具体说明。In combination with the above description, the chip testing module 1101 of the embodiment of the present application will be described in detail below.
具体的,芯片测试模块1101,可以具体用于在M个引脚分配给芯片测试模块1101使用下,通过M个引脚检测第三信号;第三信号可以用于触发芯片测试模块1101向引脚复用模块1102发送第四信号;第四信号用于触发引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Specifically, the chip test module 1101 can be specifically used to detect the third signal through the M pins when the M pins are allocated to the chip test module 1101; the third signal can be used to trigger the chip test module 1101 to send a signal to the pin The multiplexing module 1102 sends a fourth signal; the fourth signal is used to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units by controlling M first switch modules and M second switch modules. .
需要说明的是,M个引脚分配给芯片测试模块1101使用,可以理解为,芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,或者芯片10进入测试模式。因此,当芯片10需要由测试模式进入工作模式时,芯片测试模块1101可以通过M个引脚检测第三信号,并由第三信号触发芯片测试模块1101向引脚复用模块1102发送第四信号,最后由第四信号触发引脚复用模块1102将M个引脚分配给M个芯片功能单元使用,从而实现芯片10由测试模式进入工作模式。It should be noted that the M pins are allocated to the chip testing module 1101, which can be understood as that the chip testing module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the testing mode. Therefore, when the chip 10 needs to enter the working mode from the test mode, the chip test module 1101 can detect the third signal through the M pins, and the third signal triggers the chip test module 1101 to send the fourth signal to the pin multiplexing module 1102 , and finally the fourth signal triggers the pin multiplexing module 1102 to allocate M pins to M chip functional units, so that the chip 10 enters the working mode from the test mode.
可选的,第三信号可以包括以下至少之一:内部集成电路(Inter-Integrated Circuit,I2C)协议信号、串行外设接口(Serial Peripheral Interface,SPI)协议信号、联合测试工作组(Joint Test Action Group,JTAG)协议信号。Optionally, the third signal may include at least one of the following: an internal integrated circuit (Inter-Integrated Circuit, I2C) protocol signal, a serial peripheral interface (Serial Peripheral Interface, SPI) protocol signal, a joint test working group (Joint Test Action Group, JTAG) protocol signal.
需要说明的是,若第三信号包括I2C协议信号,而I2C协议通常为两线式串行总线,则M的取值可以为2,即芯片测试模块复用芯片10已有的2个芯片功能单元各自所对应的引脚,从而通过两线通信协议(I2C)实现芯片10由测试模式进入工作模式。It should be noted that if the third signal includes an I2C protocol signal, and the I2C protocol is usually a two-wire serial bus, then the value of M can be 2, that is, the chip test module reuses the existing two chip functions of the chip 10 The corresponding pins of the units are used to implement the chip 10 from the test mode to the working mode through the two-wire communication protocol (I2C).
若第三信号包括SPI协议信号,而SPI协议通常为三线式或四线式串行总线,则M的取值可以为3或4,即芯片测试模块复用芯片10已有的3或4个芯片功能单元各自所对应的引脚,从而通过三线或四线通信协议(SPI)实现芯片10由测试模式进入工作模式。If the third signal includes an SPI protocol signal, and the SPI protocol is usually a three-wire or four-wire serial bus, then the value of M can be 3 or 4, that is, the chip test module reuses the existing 3 or 4 of the chip 10. The corresponding pins of the functional units of the chip realize that the chip 10 enters the working mode from the test mode through the three-wire or four-wire communication protocol (SPI).
若第三信号包括JTAG协议信号,而JTAG协议通常为四线式串行总线,则M的取值可以为4,即芯片测试模块复用芯片10已有的4个芯片功能单元各自所对应的引脚,从而通过四线通信协议(JTAG)实现芯片10由测试模式进入工作模式。If the third signal includes a JTAG protocol signal, and the JTAG protocol is usually a four-wire serial bus, then the value of M can be 4, that is, the chip test module reuses the existing 4 chip functional units corresponding to each of the chip 10. pins, so as to realize that the chip 10 enters the working mode from the test mode through the four-wire communication protocol (JTAG).
可选的,第四信号可以由芯片测试模块1101和引脚复用模块1102所支持的协议接口确定,如串行接口、同步串行接口、I2C协议接口。Optionally, the fourth signal may be determined by a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
示例性的,请参阅图5或图6。结合上述图3或图4可知,在图5或图6中,若芯片10需要由测试模式进入到工作模式,且引脚复用模块1102通过该M个引脚检测到第三信号,则芯片测试模块1101向引脚复用模块1102发送第四信号,并由引脚复用模块110控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用,从而实现芯片10进入工作模式。For example, please refer to FIG. 5 or FIG. 6 . 3 or 4 above, in FIG. 5 or 6, if the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the third signal through the M pins, the chip The test module 1101 sends a fourth signal to the pin multiplexing module 1102, and the pin multiplexing module 110 controls M first switch modules and M second switch modules to distribute M pins to M chip functional units use, so that the chip 10 enters the working mode.
具体的,芯片测试模块1101,可以具体用于在M个引脚分配给芯片测试模块1101使用下,通过M个引脚检测第五信号;第五信号可以用于确定针对芯片的芯片测试策略,芯片测试策略包括以下至少之一:读取芯片的内部运行状态、调试并校准芯片的内部电路、烧写配置参数到芯片的存储器。Specifically, the chip testing module 1101 can be specifically used to detect the fifth signal through the M pins when the M pins are assigned to the chip testing module 1101; the fifth signal can be used to determine the chip testing strategy for the chip, The chip testing strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, and writing configuration parameters to the memory of the chip.
其中,配置参数可以用于对芯片10进行更新升级、芯片检测等。Wherein, the configuration parameters can be used to update and upgrade the chip 10, detect the chip, and so on.
需要说明的是,在芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,或者芯片10进入测试模式的情况下,芯片测试模块1101可以通过M个引脚检测到的第五信号来读取芯片10的内部运行状态、调试并校准芯片10的内部电路、烧写配置参数到芯片10的存储器等。It should be noted that, when the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the test mode, the chip test module 1101 can detect the fifth signal through the M pins To read the internal operating status of the chip 10, debug and calibrate the internal circuit of the chip 10, write configuration parameters to the memory of the chip 10, etc.
可选的,第五信号可以包括以下至少之一:I2C协议信号、SPI协议信号、JTAG协议信号。Optionally, the fifth signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
需要说明的是,若第五信号包括I2C协议信号,而I2C协议通常为两线式串行总线,则M的取值可以为2,即芯片测试模块复用芯片10已有的2个芯片功能单元各自所对应的引脚,从而通过两线通信协议(I2C)实现对芯片10进行芯片测试。It should be noted that if the fifth signal includes an I2C protocol signal, and the I2C protocol is usually a two-wire serial bus, then the value of M can be 2, that is, the chip test module reuses the existing two chip functions of the chip 10 The corresponding pins of the units are used to realize the chip test on the chip 10 through the two-wire communication protocol (I2C).
若第五信号包括SPI协议信号,而SPI协议通常为三线式或四线式串行总线,则M的取值可以为3或4,即芯片测试模块复用芯片10已有的3或4个芯片功能单元各自所对应的引脚,从而通过三线或四线通信协议(SPI)实现对芯片10进行芯片测试。If the fifth signal includes the SPI protocol signal, and the SPI protocol is usually a three-wire or four-wire serial bus, then the value of M can be 3 or 4, that is, the chip test module reuses the existing 3 or 4 of the chip 10. The corresponding pins of the functional units of the chip can realize the chip test on the chip 10 through the three-wire or four-wire communication protocol (SPI).
若第五信号包括JTAG协议信号,而JTAG协议通常为四线式串行总线,则M的取值可以为4,即芯片测试模块复用芯片10已有的4个芯片功能单元各自所对应的引脚,从而通过四线通信协议(JTAG)实现对芯片10进行芯片测试。If the fifth signal includes a JTAG protocol signal, and the JTAG protocol is usually a four-wire serial bus, then the value of M can be 4, that is, the chip test module reuses the existing 4 chip functional units corresponding to each of the chip 10. pins, so as to implement the chip test on the chip 10 through the four-wire communication protocol (JTAG).
与上述实施例一致,下面本申请实施例将从方法示例的角度介绍上述芯片测试与引脚复用单元的执行步骤,请参阅图7。图7是本申请实施例提供的一种芯片测试与引脚复用方 法的流程示意图,该方法应用于芯片10,芯片10包括M个芯片功能单元、M个引脚和芯片测试与引脚复用单元110,芯片功能单元和引脚一一对应,芯片测试与引脚复用单元110可以包括芯片测试模块1101、引脚复用模块1102、M个第一开关模块和M个第二开关模块,M的取值为大于1的整数,N的取值为M的取值的2倍;该方法包括如下步骤:Consistent with the above-mentioned embodiments, the following embodiments of the present application will introduce the execution steps of the above-mentioned chip testing and pin multiplexing unit from the perspective of a method example, please refer to FIG. 7 . FIG. 7 is a schematic flow chart of a method for chip testing and pin multiplexing provided in the embodiment of the present application. The method is applied to a chip 10. The chip 10 includes M chip functional units, M pins, and chip testing and pin multiplexing. With the unit 110, the chip functional units correspond to the pins one by one, and the chip testing and pin multiplexing unit 110 may include a chip testing module 1101, a pin multiplexing module 1102, M first switch modules and M second switch modules , the value of M is an integer greater than 1, and the value of N is twice the value of M; the method includes the following steps:
S710、在芯片上电处于待机状态下,接收唤醒信号,该唤醒信号用于触发芯片进入检测状态。S710. When the chip is powered on and in the standby state, receive a wake-up signal, and the wake-up signal is used to trigger the chip to enter the detection state.
S720、在芯片进入检测状态下,通过引脚复用模块从M个引脚中检测到的信号来控制M个第一开关模块和M个第二开关模块以使得芯片测试模块复用M个芯片功能单元各自所对应的引脚。S720. When the chip enters the detection state, control M first switch modules and M second switch modules through the signals detected by the pin multiplexing module from M pins so that the chip test module multiplexes M chips The corresponding pins of the functional units.
需要说明的是,首先,芯片10在待机状态下需要进行唤醒信号的检测,并在检测到唤醒信号后由待机状态进入检测状态。其中,唤醒信号可以由芯片10内部模式所支持的通信协议确定,如串行信号、同步串行信号等。It should be noted that, firstly, the chip 10 needs to detect the wake-up signal in the standby state, and enter the detection state from the standby state after detecting the wake-up signal. Wherein, the wake-up signal can be determined by the communication protocol supported by the internal mode of the chip 10 , such as serial signal, synchronous serial signal and so on.
其次,芯片10在检测状态下进行信号的检测,以确定是进入检测状态还是工作状态。其中,在测试模式下,芯片10可以通过芯片测试模块对其进行芯片测试;在工作模式下,芯片10可以通过M个芯片功能单元执行相关的芯片功能。Secondly, the chip 10 performs signal detection in the detection state to determine whether to enter the detection state or the working state. Wherein, in the test mode, the chip 10 can perform a chip test through the chip test module; in the working mode, the chip 10 can perform related chip functions through M chip functional units.
最后,芯片10中的引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以使得芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,使得芯片10进入测试模式,最终由芯片测试模块1101通过复用的M个引脚对芯片10进行芯片测试。Finally, the pin multiplexing module 1102 in the chip 10 controls the M first switch modules and M second switch modules so that the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, so that the chip 10 After entering the test mode, the chip test module 1101 finally performs a chip test on the chip 10 through the multiplexed M pins.
可以看出,本申请通过复用芯片已有芯片功能单元所对应的引脚以实现芯片测试,而无需额外为芯片测试新增独立的引脚,从而有利于减少芯片在设计、封装和集成等环节上的引脚,进而有利于减小芯片的体积,以及降低芯片在设计、集成和封装上的成本。It can be seen that this application achieves chip testing by multiplexing the pins corresponding to the existing chip functional units of the chip, without adding additional independent pins for chip testing, thereby helping to reduce chip design, packaging and integration. The pins on the link are beneficial to reduce the size of the chip and reduce the cost of chip design, integration and packaging.
另外,由于引脚复用模块可以控制M个第一开关模块和M个第二开关模块,从而可以将M个引脚多次反复分配给芯片测试模块所使用,进而保证芯片可以多次反复进出测试模式,提升芯片测试的效率,以及提高芯片的利用效益。In addition, since the pin multiplexing module can control M first switch modules and M second switch modules, M pins can be repeatedly allocated to the chip test module for use, thereby ensuring that the chip can be repeatedly entered and exited Test mode, improve the efficiency of chip testing, and improve the utilization efficiency of chips.
具体的,S730中的通过引脚复用模块从M个引脚中检测到的信号来控制M个第一开关模块和M个第二开关模块以使得芯片测试模块复用M个芯片功能单元各自所对应的引脚,可以包括:通过引脚复用模块从M个引脚中检测到第一信号,第一信号可以用于触发引脚复用模块通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块或者M个芯片功能单元使用。Specifically, the signals detected from the M pins by the pin multiplexing module in S730 are used to control M first switch modules and M second switch modules so that the chip test module multiplexes the M chip functional units The corresponding pins may include: the first signal is detected from the M pins through the pin multiplexing module, and the first signal may be used to trigger the pin multiplexing module by controlling M first switch modules and M The second switch module is used for allocating M pins to the chip testing module or M chip functional units.
需要说明的是,本申请的引脚复用模块1102可以通过M个引脚检测芯片10外部的信号以确定是将M个引脚分配给芯片测试模块1101使用还是分配给M个芯片功能模块使用。It should be noted that the pin multiplexing module 1102 of the present application can detect external signals of the chip 10 through the M pins to determine whether to allocate the M pins to the chip testing module 1101 or to M chip function modules. .
例如,若芯片10需要进入测试模式,且引脚复用模块1102通过M个引脚检测到第一信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用。For example, if the chip 10 needs to enter the test mode, and the pin multiplexing module 1102 detects the first signal through M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules To allocate M pins to the chip testing module 1101 for use.
若芯片10需要进入工作模式,或者芯片10需要由测试模式进入到工作模式,且引脚复用模块1102通过M个引脚检测到第一信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。If the chip 10 needs to enter the working mode, or the chip 10 needs to enter the working mode from the test mode, and the pin multiplexing module 1102 detects the first signal through the M pins, then the pin multiplexing module 1102 controls the M pins. A switch module and M second switch modules are used to allocate M pins to M chip functional units.
可选的,第一信号可以包括上拉电压信号或者下拉电压信号。Optionally, the first signal may include a pull-up voltage signal or a pull-down voltage signal.
其中,若引脚复用模块1102通过M个引脚检测到芯片10外的上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用;若引脚复用模块1102通过M个引脚检测到芯片10外的下拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Wherein, if the pin multiplexing module 1102 detects the pull-up voltage signal outside the chip 10 through the M pins, the pin multiplexing module 1102 controls M first switch modules and M second switch modules to convert M pins are assigned to the chip testing module 1101; if the pin multiplexing module 1102 detects the pull-down voltage signal outside the chip 10 through M pins, then the pin multiplexing module 1102 controls M first switch modules and M A second switch module is used to allocate M pins to M chip functional units.
同理可知,当在芯片10的外部向M个引脚施加下拉电压时,将M个引脚分配给芯片测试模块1101使用,对此不作具体限制。Similarly, when the pull-down voltage is applied to the M pins outside the chip 10, the M pins are assigned to the chip testing module 1101 for use, and there is no specific limitation on this.
示例性的,请参阅上述的图3,在此不再赘述。For example, please refer to the above-mentioned FIG. 3 , which will not be repeated here.
具体的,S730中的通过引脚复用模块从M个引脚中检测到的信号来控制M个第一开关模块和M个第二开关模块以使得芯片测试模块复用M个芯片功能单元各自所对应的引脚,可以包括:通过引脚复用模块在预设时间内从M个引脚中检测是否存在第二信号,第二信号可以用于触发引脚复用模块通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块使用;其中,若在预设时间内检测到第二信号,则将M个引脚分配给芯片测试模块使用;若在预设时间内未检测到第二信号,则将M个引脚分配给M个芯片功能单元使用。Specifically, the signals detected from the M pins by the pin multiplexing module in S730 are used to control M first switch modules and M second switch modules so that the chip test module multiplexes the M chip functional units The corresponding pins may include: detecting whether there is a second signal from the M pins within a preset time through the pin multiplexing module, and the second signal can be used to trigger the pin multiplexing module to control the M pins A switch module and M second switch modules are used to assign M pins to the chip test module; wherein, if the second signal is detected within the preset time, the M pins are assigned to the chip test module; If the second signal is not detected within the preset time, the M pins are allocated to the M chip functional units.
需要说明的是,与上述不同的是,本申请还考虑不需要检测外部的信号来触发引脚复用模块1102将M个引脚分配给M个芯片功能单元使用,而是直接通过在预设时间内是否检测有第二信号来确定。若在预设时间内检测到第二信号,则将M个引脚分配给芯片测试模块1101使用;若在预设时间内非检测到第二信号,则将M个引脚分配给M个芯片功能单元使用,从而有利于提高处理效率。It should be noted that, different from the above, this application also considers that there is no need to detect external signals to trigger the pin multiplexing module 1102 to allocate M pins to M chip functional units, but directly through the preset It is determined whether a second signal is detected within the time. If the second signal is detected within the preset time, M pins are assigned to the chip testing module 1101 for use; if the second signal is not detected within the preset time, then M pins are assigned to M chips Functional units are used, which is beneficial to improve processing efficiency.
可选的,第二信号可以包括上拉电压信号或者下拉电压信号。Optionally, the second signal may include a pull-up voltage signal or a pull-down voltage signal.
其中,若在预设时间内检测到上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给芯片测试模块1101使用;若在预设时间内未检测到上拉电压信号,则引脚复用模块1102通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Wherein, if the pull-up voltage signal is detected within the preset time, the pin multiplexing module 1102 will allocate M pins to the chip testing module 1101 by controlling M first switch modules and M second switch modules. ; If the pull-up voltage signal is not detected within the preset time, the pin multiplexing module 1102 will distribute M pins to M chip functional units by controlling M first switch modules and M second switch modules use.
示例性的,请参阅上述的图4,在此不再赘述。For example, please refer to the above-mentioned FIG. 4 , which will not be repeated here.
具体的,本申请还可以包括:在芯片测试模块复用M个芯片功能单元各自所对应的引脚下,通过芯片测试模块从M个引脚中检测第三信号,第三信号用于触发芯片测试模块向引脚复用模块发送第四信号,第四信号用于触发引脚复用模块通过控制M个第一开关模块和M个第二开关模块以将M个引脚分配给M个芯片功能单元使用。Specifically, the present application may also include: when the chip test module multiplexes the corresponding pins of the M chip functional units, the chip test module detects the third signal from the M pins, and the third signal is used to trigger the chip The test module sends a fourth signal to the pin multiplexing module, and the fourth signal is used to trigger the pin multiplexing module to allocate M pins to M chips by controlling M first switch modules and M second switch modules Functional unit used.
需要说明的是,M个引脚分配给芯片测试模块1101使用,可以理解为,芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,或者芯片10进入测试模式。因此,当芯片10需要由测试模式进入工作模式时,芯片测试模块1101可以通过M个引脚检测第三信号,并由第三信号触发芯片测试模块1101向引脚复用模块1102发送第四信号,最后由第四信号触发引脚复用模块1102将M个引脚分配给M个芯片功能单元使用,从而实现芯片10由测试模式进入工作模式。It should be noted that the M pins are allocated to the chip testing module 1101, which can be understood as that the chip testing module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the testing mode. Therefore, when the chip 10 needs to enter the working mode from the test mode, the chip test module 1101 can detect the third signal through the M pins, and the third signal triggers the chip test module 1101 to send the fourth signal to the pin multiplexing module 1102 , and finally the fourth signal triggers the pin multiplexing module 1102 to allocate M pins to M chip functional units, so that the chip 10 enters the working mode from the test mode.
可选的,第三信号可以包括以下至少之一:I2C协议信号、SPI协议信号、JTAG协议信号。Optionally, the third signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
需要说明的是,本申请可以通过两线通信协议(I2C)、通过三线或四线通信协议(SPI、JTAG)实现芯片10由测试模式进入工作模式。It should be noted that, in the present application, the chip 10 may enter the working mode from the test mode through the two-wire communication protocol (I2C), or through the three-wire or four-wire communication protocol (SPI, JTAG).
可选的,第四信号可以由芯片测试模块1101和引脚复用模块1102所支持的协议接口确定,如串行接口、同步串行接口、I2C协议接口。Optionally, the fourth signal may be determined by a protocol interface supported by the chip testing module 1101 and the pin multiplexing module 1102, such as a serial interface, a synchronous serial interface, and an I2C protocol interface.
示例性的,请参阅上述的图5或图6,在此不再赘述。For example, please refer to the above-mentioned FIG. 5 or FIG. 6 , which will not be repeated here.
具体的,本申请还可以包括:在芯片测试模块复用M个芯片功能单元各自所对应的引脚下,通过芯片测试模块从M个引脚中检测第五信号,第五信号用于确定针对芯片的芯片测试策略,芯片测试策略包括以下至少之一:读取芯片的内部运行状态、调试并校准芯片的内部电路、烧写配置参数到芯片的存储器。Specifically, the present application may also include: when the chip test module multiplexes the corresponding pins of the M chip functional units, the chip test module detects the fifth signal from the M pins, and the fifth signal is used to determine the A chip testing strategy for the chip. The chip testing strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, and writing configuration parameters to the memory of the chip.
其中,配置参数可以用于对芯片10进行更新升级、芯片检测等。Wherein, the configuration parameters can be used to update and upgrade the chip 10, detect the chip, and so on.
需要说明的是,在芯片测试模块1101复用M个芯片功能单元各自所对应的引脚,或者芯片10进入测试模式的情况下,芯片测试模块1101可以通过M个引脚检测到的第五信号来读取芯片10的内部运行状态、调试并校准芯片10的内部电路、烧写配置参数到芯片10的存储器等。It should be noted that, when the chip test module 1101 multiplexes the corresponding pins of the M chip functional units, or the chip 10 enters the test mode, the chip test module 1101 can detect the fifth signal through the M pins To read the internal operating status of the chip 10, debug and calibrate the internal circuit of the chip 10, write configuration parameters to the memory of the chip 10, etc.
可选的,第五信号可以包括以下至少之一:I2C协议信号、SPI协议信号、JTAG协议信号。Optionally, the fifth signal may include at least one of the following: an I2C protocol signal, an SPI protocol signal, and a JTAG protocol signal.
需要说明的是,本申请可以通过两线通信协议(I2C)、三线或四线通信协议(SPI、JTAG)实现对芯片10进行芯片测试,如读取芯片的内部运行状态、调试并校准芯片的内部电路、烧写配置参数到芯片的存储器等。It should be noted that the present application can implement chip testing on the chip 10 through the two-wire communication protocol (I2C), three-wire or four-wire communication protocol (SPI, JTAG), such as reading the internal operating state of the chip, debugging and calibrating the chip. Internal circuits, programming configuration parameters to the memory of the chip, etc.
以上对本申请实施例所提供的芯片测试与引脚复用单元、芯片测试与引脚复用方法进行了详细介绍,本文中应用了具体实施例对本申请实施例所涉及的原理和实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请实施例的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请实施例的限制。The chip testing and pin multiplexing unit and the chip testing and pin multiplexing method provided by the embodiments of the present application have been described in detail above. The specific examples are used in this paper to describe the principles and implementation methods involved in the embodiments of the present application. Explain that the descriptions of the above embodiments are only used to help understand the methods and core ideas of the embodiments of the present application; at the same time, for those of ordinary skill in the art, according to the ideas of the embodiments of the present application, both the specific implementation and the scope of application There may be changes. In summary, the content of this specification should not be understood as limiting the embodiment of the application.

Claims (10)

  1. 一种芯片测试与引脚复用单元,其特征在于,应用于芯片,所述芯片包括M个芯片功能单元、M个引脚和所述芯片测试与引脚复用单元,所述芯片功能单元和所述引脚一一对应;所述芯片测试与引脚复用单元包括芯片测试模块、引脚复用模块、M个第一开关模块和M个第二开关模块,M的取值为大于1的整数;A chip testing and pin multiplexing unit is characterized in that it is applied to a chip, and the chip includes M chip functional units, M pins and the chip testing and pin multiplexing unit, and the chip functional unit One-to-one correspondence with the pins; the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules, and the value of M is greater than an integer of 1;
    所述芯片测试模块通过M个所述第一开关模块和所述引脚复用模块连接M个所述引脚;The chip testing module is connected to the M pins through the M first switch modules and the pin multiplexing module;
    所述芯片功能单元各自通过一个所述第二开关模块和所述引脚复用模块连接所述芯片功能单元所对应的一个所述引脚;Each of the chip functional units is connected to one of the pins corresponding to the chip functional unit through the second switch module and the pin multiplexing module;
    所述引脚复用模块分别连接M个所述引脚、M个所述第一开关模块和M个所述第二开关模块;The pin multiplexing module is respectively connected to the M pins, the M first switch modules and the M second switch modules;
    所述芯片测试模块,用于通过复用M个所述芯片功能单元各自所对应的所述引脚以对所述芯片进行芯片测试;The chip testing module is configured to perform a chip test on the chip by multiplexing the pins corresponding to each of the M chip functional units;
    所述芯片功能单元,用于执行所述芯片功能单元所具备的芯片功能;The chip functional unit is used to execute the chip functions of the chip functional unit;
    所述引脚复用模块,用于通过控制M个所述第一开关模块和M个所述第二开关模块以使得所述芯片测试模块复用M个所述芯片功能单元各自所对应的所述引脚。The pin multiplexing module is configured to control the M first switch modules and the M second switch modules so that the chip test module multiplexes the respective corresponding pins of the M chip functional units. pins described above.
  2. 根据权利要求1所述的芯片测试与引脚复用单元,其特征在于,所述引脚复用模块,具体用于通过M个所述引脚检测第一信号;The chip testing and pin multiplexing unit according to claim 1, wherein the pin multiplexing module is specifically used to detect the first signal through the M pins;
    所述第一信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给所述芯片测试模块或者M个所述芯片功能单元使用。The first signal is used to trigger the pin multiplexing module to allocate the M pins to the chip test module by controlling the M first switch modules and the M second switch modules M pieces of said chip functional units are used.
  3. 根据权利要求2所述的芯片测试与引脚复用单元,其特征在于,所述第一信号包括上拉电压信号或者下拉电压信号。The chip testing and pin multiplexing unit according to claim 2, wherein the first signal comprises a pull-up voltage signal or a pull-down voltage signal.
  4. 根据权利要求1所述的芯片测试与引脚复用单元,其特征在于,所述引脚复用模块,具体用于通过M个所述引脚在预设时间内检测是否存在第二信号;The chip testing and pin multiplexing unit according to claim 1, wherein the pin multiplexing module is specifically used to detect whether there is a second signal within a preset time through the M pins;
    所述第二信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给所述芯片测试模块使用;其中,The second signal is used to trigger the pin multiplexing module to allocate M pins to the chip testing module by controlling the M first switch modules and the M second switch modules ;in,
    若在所述预设时间内检测到所述第二信号,则所述引脚复用模块将M个所述引脚分配给所述芯片测试模块使用;If the second signal is detected within the preset time, the pin multiplexing module allocates the M pins to the chip testing module for use;
    若在所述预设时间内未检测到所述第二信号,则所述引脚复用模块将M个所述引脚分配给M个所述芯片功能单元使用。If the second signal is not detected within the preset time, the pin multiplexing module allocates the M pins to the M chip functional units.
  5. 根据权利要求1所述的芯片测试与引脚复用单元,其特征在于,所述芯片测试模块,具体用于在M个所述引脚分配给所述芯片测试模块使用下,通过M个所述引脚检测第三信号;The chip testing and pin multiplexing unit according to claim 1, wherein the chip testing module is specifically used to pass the M pins to the chip testing module when the M pins are allocated to the chip testing module. The pin detects the third signal;
    所述第三信号用于触发所述芯片测试模块向所述引脚复用模块发送第四信号;The third signal is used to trigger the chip testing module to send a fourth signal to the pin multiplexing module;
    所述第四信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给M个所述芯片功能单元使用。The fourth signal is used to trigger the pin multiplexing module to allocate the M pins to the M chip functions by controlling the M first switch modules and the M second switch modules unit use.
  6. 根据权利要求5所述的芯片测试与引脚复用单元,其特征在于,所述第三信号包括以下至少之一:内部集成电路I2C协议信号、串行外设接口SPI协议信号、联合测试工作组JTAG协议信号。The chip testing and pin multiplexing unit according to claim 5, wherein the third signal includes at least one of the following: internal integrated circuit I2C protocol signal, serial peripheral interface SPI protocol signal, joint test work Group of JTAG protocol signals.
  7. 根据权利要求1所述的芯片测试与引脚复用单元,其特征在于,所述芯片测试模块,具体用于在M个所述引脚分配给所述芯片测试模块使用下,通过M个所述引脚检测第五信号;The chip testing and pin multiplexing unit according to claim 1, wherein the chip testing module is specifically used to pass the M pins to the chip testing module when the M pins are allocated to the chip testing module. The pin detects the fifth signal;
    所述第五信号用于确定针对所述芯片的芯片测试策略,所述芯片测试策略包括以下至少之一:读取所述芯片的内部运行状态、调试并校准所述芯片的内部电路、烧写配置参数到所述芯片的存储器。The fifth signal is used to determine a chip test strategy for the chip, and the chip test strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, programming configuration parameters into the memory of the chip.
  8. 一种芯片测试与引脚复用方法,其特征在于,应用于芯片,所述芯片包括M个芯片功能单元、M个引脚和芯片测试与引脚复用单元,所述芯片功能单元和所述引脚一一对应,所述芯片测试与引脚复用单元包括芯片测试模块、引脚复用模块、M个第一开关模块和M个第二开关模块,M的取值为大于1的整数,N的取值为M的取值的2倍;所述方法包括:A chip testing and pin multiplexing method is characterized in that it is applied to a chip, and the chip includes M chip functional units, M pins and a chip testing and pin multiplexing unit, the chip functional unit and the pin multiplexing unit The pins are in one-to-one correspondence, and the chip test and pin multiplexing unit includes a chip test module, a pin multiplexing module, M first switch modules and M second switch modules, and the value of M is greater than 1 Integer, the value of N is twice the value of M; the method includes:
    在所述芯片上电处于待机状态下,接收唤醒信号,所述唤醒信号用于触发所述芯片进入检测状态;When the chip is powered on and in the standby state, a wake-up signal is received, and the wake-up signal is used to trigger the chip to enter the detection state;
    在所述芯片进入所述检测状态下,通过所述引脚复用模块从M个所述引脚中检测到的信号来控制M个所述第一开关模块和M个所述第二开关模块以使得所述芯片测试模块复用M个所述芯片功能单元各自所对应的所述引脚。When the chip enters the detection state, the M first switch modules and the M second switch modules are controlled by the signals detected by the pin multiplexing module from the M pins so that the chip testing module multiplexes the pins corresponding to each of the M chip functional units.
  9. 根据权利要求8所述的方法,其特征在于,所述通过所述引脚复用模块从M个所述引脚中检测到的信号来控制M个所述第一开关模块和M个所述第二开关模块以使得所述芯片测试模块复用M个所述芯片功能单元各自所对应的所述引脚,包括:The method according to claim 8, wherein the signals detected by the pin multiplexing module from the M pins are used to control the M first switch modules and the M The second switch module enables the chip test module to multiplex the pins corresponding to each of the M chip functional units, including:
    通过所述引脚复用模块从M个所述引脚中检测到第一信号,所述第一信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给所述芯片测试模块或者M个所述芯片功能单元使用;或者,The first signal is detected from the M pins by the pin multiplexing module, and the first signal is used to trigger the pin multiplexing module to control the M first switch modules and M The second switch module is used to allocate M pins to the chip test module or M chip functional units; or,
    通过所述引脚复用模块在预设时间内从M个所述引脚中检测是否存在第二信号,所述第二信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给所述芯片测试模块使用;其中,若在所述预设时间内检测到所述第二信号,则将M个所述引脚分配给所述芯片测试模块使用;若在所述预设时间内未检测到所述第二信号,则将M个所述引脚分配给M个所述芯片功能单元使用。The pin multiplexing module detects whether there is a second signal from the M pins within a preset time, and the second signal is used to trigger the pin multiplexing module to control the M first A switch module and M second switch modules are used to allocate M pins to the chip test module; wherein, if the second signal is detected within the preset time, the M Assigning the pins to the chip testing module; if the second signal is not detected within the preset time, then assigning the M pins to the functional units of the chip.
  10. 根据权利要求8或9所述的方法,其特征在于,还包括:The method according to claim 8 or 9, further comprising:
    在所述芯片测试模块复用M个所述芯片功能单元各自所对应的引脚下,通过所述芯片测试模块从M个所述引脚中检测第三信号,所述第三信号用于触发所述芯片测试模块向所述引脚复用模块发送第四信号,所述第四信号用于触发所述引脚复用模块通过控制M个所述第一开关模块和M个所述第二开关模块以将M个所述引脚分配给M个所述芯片功能单元使用;或者,When the chip test module multiplexes the respective pins corresponding to the M chip functional units, the chip test module detects a third signal from the M pins, and the third signal is used to trigger The chip testing module sends a fourth signal to the pin multiplexing module, and the fourth signal is used to trigger the pin multiplexing module to control the M first switching modules and the M second switching modules. The switch module is used to allocate the M pins to the M chip functional units; or,
    在所述芯片测试模块复用M个所述芯片功能单元各自所对应的引脚下,通过所述芯片测试模块从M个所述引脚中检测第五信号,所述第五信号用于确定针对所述芯片的芯片测试策略,所述芯片测试策略包括以下至少之一:读取所述芯片的内部运行状态、调试并校准所述芯片的内部电路、烧写配置参数到所述芯片的存储器。When the chip test module multiplexes the respective pins corresponding to the M chip functional units, the chip test module detects a fifth signal from the M pins, and the fifth signal is used to determine For the chip test strategy of the chip, the chip test strategy includes at least one of the following: reading the internal operating state of the chip, debugging and calibrating the internal circuit of the chip, and writing configuration parameters to the memory of the chip .
PCT/CN2022/102128 2021-08-24 2022-06-29 Chip testing and pin reuse unit, and chip testing and pin reuse method WO2023024694A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110971169.1A CN113419164B (en) 2021-08-24 2021-08-24 Chip test and pin multiplexing unit and chip test and pin multiplexing method
CN202110971169.1 2021-08-24

Publications (1)

Publication Number Publication Date
WO2023024694A1 true WO2023024694A1 (en) 2023-03-02

Family

ID=77719441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102128 WO2023024694A1 (en) 2021-08-24 2022-06-29 Chip testing and pin reuse unit, and chip testing and pin reuse method

Country Status (2)

Country Link
CN (2) CN115718248A (en)
WO (1) WO2023024694A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117214663A (en) * 2023-09-14 2023-12-12 南京天易合芯电子有限公司 Application method of system-level chip test board
CN117434428A (en) * 2023-12-18 2024-01-23 杭州晶华微电子股份有限公司 Chip calibration system, chip calibration mode entering method and chip

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718248A (en) * 2021-08-24 2023-02-28 深圳英集芯科技股份有限公司 Chip testing and pin multiplexing unit, related method and related chip
TWI792795B (en) * 2021-12-22 2023-02-11 凌陽科技股份有限公司 Chiplet system with auto-swapping, and signal communication method thereof
US20230204662A1 (en) * 2021-12-28 2023-06-29 Advanced Micro Devices Products (China) Co. Ltd., On-chip distribution of test data for multiple dies

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980014568A (en) * 1996-08-13 1998-05-25 김광호 An integrated circuit that can test performance without a separate test pin
CN103066985A (en) * 2012-12-06 2013-04-24 无锡中星微电子有限公司 Chip provided with multiplex pin
CN104345265A (en) * 2013-07-26 2015-02-11 北京兆易创新科技股份有限公司 Chip testing method and device thereof
CN106209066A (en) * 2016-08-17 2016-12-07 杰华特微电子(杭州)有限公司 A kind of method of multiplexing chip pins and chip
CN110647485A (en) * 2019-09-23 2020-01-03 大唐半导体科技有限公司 Chip and implementation method for multiplexing pins thereof
CN112039516A (en) * 2020-09-04 2020-12-04 珠海昇生微电子有限责任公司 Chip pin multiplexing circuit and method
CN113419164A (en) * 2021-08-24 2021-09-21 深圳英集芯科技股份有限公司 Chip test and pin multiplexing unit and chip test and pin multiplexing method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6668332B1 (en) * 2000-02-15 2003-12-23 International Business Machines Corporation Functional clock observation controlled by JTAG extensions
CN102289419A (en) * 2010-06-17 2011-12-21 珠海全志科技有限公司 Multiplex SOC(system on a chip) integrated circuit for functional interface and debugging interface
CN103376400B (en) * 2012-04-27 2016-08-03 华为技术有限公司 Chip detecting method and chip
CN203675086U (en) * 2013-12-31 2014-06-25 上海贝岭股份有限公司 Chip pin multiplexing circuit
CN103716034B (en) * 2013-12-31 2016-08-17 上海贝岭股份有限公司 A kind of multiplexing chip pins circuit
CN103888114A (en) * 2014-04-03 2014-06-25 无锡中星微电子有限公司 Power management chip with test mode
CN205749803U (en) * 2016-05-06 2016-11-30 北京华力创通科技股份有限公司 Civil Satellite Communication baseband chip
CN208797639U (en) * 2018-10-17 2019-04-26 深圳市富满电子集团股份有限公司 Use circuit and the mobile power source of mobile power source pin multiplexing circuit, multiplexing pins
CN111225472B (en) * 2020-01-20 2021-01-05 珠海智融科技有限公司 Temperature detection and LED drive pin multiplexing circuit, power supply chip and working method of pin multiplexing circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980014568A (en) * 1996-08-13 1998-05-25 김광호 An integrated circuit that can test performance without a separate test pin
CN103066985A (en) * 2012-12-06 2013-04-24 无锡中星微电子有限公司 Chip provided with multiplex pin
CN104345265A (en) * 2013-07-26 2015-02-11 北京兆易创新科技股份有限公司 Chip testing method and device thereof
CN106209066A (en) * 2016-08-17 2016-12-07 杰华特微电子(杭州)有限公司 A kind of method of multiplexing chip pins and chip
CN110647485A (en) * 2019-09-23 2020-01-03 大唐半导体科技有限公司 Chip and implementation method for multiplexing pins thereof
CN112039516A (en) * 2020-09-04 2020-12-04 珠海昇生微电子有限责任公司 Chip pin multiplexing circuit and method
CN113419164A (en) * 2021-08-24 2021-09-21 深圳英集芯科技股份有限公司 Chip test and pin multiplexing unit and chip test and pin multiplexing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117214663A (en) * 2023-09-14 2023-12-12 南京天易合芯电子有限公司 Application method of system-level chip test board
CN117214663B (en) * 2023-09-14 2024-03-29 南京天易合芯电子有限公司 Application method of system-level chip test board
CN117434428A (en) * 2023-12-18 2024-01-23 杭州晶华微电子股份有限公司 Chip calibration system, chip calibration mode entering method and chip
CN117434428B (en) * 2023-12-18 2024-03-26 杭州晶华微电子股份有限公司 Chip calibration system, chip calibration mode entering method and chip

Also Published As

Publication number Publication date
CN115718248A (en) 2023-02-28
CN113419164B (en) 2021-11-26
CN113419164A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
WO2023024694A1 (en) Chip testing and pin reuse unit, and chip testing and pin reuse method
JP6781163B2 (en) Methods and circuits for communication in a multi-die package
WO2021189322A1 (en) Chip testing apparatus and chip testing method
JP5318984B2 (en) Logic device and method for supporting scan testing
TWI227785B (en) Chip testing within a multi-chip semiconductor package
JP6074052B2 (en) Virtual GPIO
CN112817897B (en) Communication method and communication system for interconnecting bare chip and DSP/FPGA
US9563398B2 (en) Impedance-based flow control for a two-wire interface system with variable frame length
US20080120058A1 (en) Multi-cpu mobile terminal and multi-cpu test system and method
CN210986071U (en) Digital signal interface circuit, chip and electronic equipment
TW202201238A (en) Pcie slot detection system
CN200986699Y (en) Starting-up switch circuit for multi-processor
CN114996184B (en) Compatible implementation SPI or I 2 Interface module of slave C and data transmission method
CN113342726B (en) I2C bus system, chip with applied voltage working mode and method
CN114720850A (en) FT test system of power supply chip
WO2022041221A1 (en) Chip and chip package
CN112968948A (en) Gateway controller design method, gateway controller and automobile
CN115344105A (en) Chip with multiplexed interfaces and debugging system of chip
CN208092483U (en) Brain communication system controller and robot for robot
CN105260335A (en) Data processing system and method for extending optical interface
CN107564492B (en) Adaptive cascade graphic signal generation system
CN111581151B (en) MCU port drive reconfigurable method
TWI774116B (en) Automatic detection circuit for integrated circuit and automatic detection method for the same
TWI699101B (en) System and method for online cascaded loading firmware based on boundary scan
CN219534033U (en) Display module testing system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22860041

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE