[go: up one dir, main page]

WO2015198367A1 - Test circuit for integrated circuit, information processing device, and test method for integrated circuit - Google Patents

Test circuit for integrated circuit, information processing device, and test method for integrated circuit Download PDF

Info

Publication number
WO2015198367A1
WO2015198367A1 PCT/JP2014/003410 JP2014003410W WO2015198367A1 WO 2015198367 A1 WO2015198367 A1 WO 2015198367A1 JP 2014003410 W JP2014003410 W JP 2014003410W WO 2015198367 A1 WO2015198367 A1 WO 2015198367A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
scan
integrated circuit
test
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2014/003410
Other languages
French (fr)
Japanese (ja)
Inventor
滝男 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to PCT/JP2014/003410 priority Critical patent/WO2015198367A1/en
Priority to JP2015530800A priority patent/JPWO2015198367A1/en
Publication of WO2015198367A1 publication Critical patent/WO2015198367A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Definitions

  • the present invention relates to an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method.
  • JTAG Joint Test Action Group
  • IEEE 1149.1 IEEE 1149.1
  • IEEE1149.1 is also referred to as JTAG.
  • An integrated circuit corresponding to JTAG has an interface signal terminal called TAP (Test Access Port), a TAP controller, a scan instruction register, a plurality of scan data registers, and the like.
  • the TAP controller receives, for example, an interface signal TMS (Test Mode Select) for selecting a test mode and outputs a control signal for controlling an instruction register and a data register.
  • TMS Test Mode Select
  • the instruction register is used, for example, to select a data register to be scanned.
  • the data register executes a scan operation based on, for example, control signals from the TAP controller and the instruction register.
  • the integrated circuit test apparatus compares the value written in the data register by scan-in with the value read from the data register by scan-out to determine the presence or absence of an error.
  • the error check function for the signal line for the interface signal between the integrated circuit test apparatus and the integrated circuit may take a long time to detect the error of the test interface (for example, the signal line for the interface signal).
  • an integrated circuit test apparatus detects an error by executing scan-out after executing scan-in. In this case, since two steps of scan-in and scan-out are executed, it takes time until an error in the test interface is found. In the method of observing the control output pin of the additional circuit, the number of terminals of the integrated circuit or the like increases.
  • the integrated circuit test circuit, the information processing apparatus, and the integrated circuit test method disclosed herein are intended to reduce the time of error detection of the test interface.
  • the test circuit of the integrated circuit has a test control unit that supplies scan-in data to the integrated circuit via the first signal line and receives scan-out data from the integrated circuit via the second signal line.
  • the test control unit controls the integrated circuit so that the scan-in data is folded back by the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line and the integrated circuit.
  • the scan-in data is received from the signal control unit, the return data of the scan-in data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are compared to determine whether the return data is correct. And a determination unit.
  • the information processing apparatus includes an integrated circuit and a test circuit that tests the integrated circuit.
  • the test circuit supplies scan-in data to the integrated circuit via the first signal line, and scans the integrated circuit.
  • a test control unit configured to receive out-data from the integrated circuit via the second signal line; the test control unit controls the integrated circuit so that the scan-in data is folded back by the integrated circuit;
  • a signal control unit supplied to the integrated circuit via the line, scan-in data supplied to the integrated circuit is received from the signal control unit, and return data of the scan-in data is received from the integrated circuit via the second signal line.
  • a determination unit that compares the data and the return data to determine whether the return data is correct;
  • the integrated circuit is controlled so that the scan-in data is folded back by the integrated circuit, and the scan-in data is transferred from the test control unit to the integrated circuit via the first signal line. Then, the return data of the scan-in data is transferred from the integrated circuit to the test control unit via the second signal line, and the scan-in data held in the test control unit is compared with the return data transferred to the test control unit. Then, it is determined whether the return data is correct.
  • the integrated circuit test circuit, the information processing apparatus, and the integrated circuit test method disclosed in the present disclosure can reduce the error detection time of the test interface.
  • FIG. 1 is a diagram illustrating an embodiment of an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method
  • FIG. FIG. 2 is a diagram illustrating an example of a determination circuit illustrated in FIG. 1. It is a figure which shows an example of the state transition of the TAP controller shown in FIG.
  • FIG. 2 is a diagram illustrating an example of operation of the test circuit illustrated in FIG. 1. It is a figure which shows an example of the time chart of each signal shown in FIG. It is a figure which shows another example of the time chart of each signal shown in FIG. It is a figure which shows another example of the time chart of each signal shown in FIG.
  • FIGS. 1 and 2 show an example of the flow of data and control signals.
  • the same reference numerals as those attached to the signals transmitted to the signal lines are used for the signal lines connecting the integrated circuit 100 and the test control apparatus 200.
  • the same reference numerals as those attached to the signals transmitted to the terminals are used for the terminals (double circles in FIG. 1) of the integrated circuit 100 and the test control apparatus 200.
  • the terminal is, for example, a pad on a semiconductor chip or a lead of a package in which the semiconductor chip is stored.
  • FIG. 1 shows an embodiment of an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method.
  • the information processing apparatus 10 includes an integrated circuit 100 such as an LSI (Large Scale Integration) corresponding to a test method standardized by JTAG (Joint Test Action Group) as IEEE1149.1.
  • JTAG Joint Test Action Group
  • IEEE1149.1 is also referred to as JTAG.
  • the information processing apparatus 10 includes an integrated circuit 100 including a test circuit compatible with JTAG, a test control apparatus 200 that controls a test circuit compatible with JTAG, and a system control apparatus 300 that controls the test control apparatus 200. is doing.
  • the test circuit 20 of the integrated circuit 100 includes, for example, a test control device 200 and a test circuit provided in the integrated circuit 100.
  • the integrated circuit 100 includes, for example, interface signal terminals TCK (Test ClocK), TMS (Test Mode Reselect), TRST (Test Data Re In), TDI (Test Data In), and TDO (Test Data Out) is provided.
  • TCK Transmission ClocK
  • TMS Transmission Mode Reselect
  • TRST Transmission Data Re In
  • TDI Transmission Data In
  • TDO Test Data Out
  • the terminals TCK, TMS, TRST, TDI, and TDO of the integrated circuit 100 are connected to the terminals TCK, TMS, TRST, TDI, and TDO of the test control device 20 through the signal lines TCK, TMS, TRST, TDI, and TDO.
  • the description of a circuit that realizes the original function of the integrated circuit 100 is omitted to make the drawing easier to see.
  • the integrated circuit 100 includes a TAP controller 110, an instruction register 120, a data register 130, a selector 150, a selector control circuit 160, a flip-flop 170, and a loopback control circuit 180 as a part of the test circuit 20.
  • the instruction register 120 is also referred to as IR (Instruction-Register) 120
  • the data register 130 is also referred to as DR (Data-Register) 130.
  • the test clock TCK which is one of interface signals, is transmitted to the terminal TCK.
  • the test clock TCK is, for example, a clock signal (test clock) that synchronizes the operation of the state machine in the integrated circuit 100.
  • the test clock TCK is also referred to as a signal TCK.
  • a part of a signal line to which a clock such as the signal TCK is transmitted is omitted.
  • the test mode select TMS which is one of interface signals, is transmitted to the terminal TMS.
  • the test mode select TMS is a signal for controlling the state transition of the TAP controller 110. That is, the test mode select TMS is a signal for selecting a test mode. For example, the test mode select TMS is read at the rising edge of the test clock TCK.
  • test mode select TMS is also referred to as signal TMS.
  • test reset TRST which is one of interface signals, is transmitted to the terminal TRST.
  • the test reset TRST is a signal for resetting the state machine of the TAP controller 110.
  • the test reset TRST is also referred to as a signal TRST.
  • the test reset TRST is an option signal.
  • the data TDI which is one of interface signals, is transmitted to the terminal TDI.
  • the data TDI is data scanned into the integrated circuit 100, for example.
  • the data TDI is read at the rising edge of the test clock TCK.
  • the data TDI is also referred to as scan-in data TDI or signal TDI.
  • the data TDO which is one of the interface signals is transmitted to the terminal TDO.
  • the data TDO is, for example, scan-out data from the integrated circuit 100.
  • the data TDO is output at the falling edge of the test clock TCK.
  • the data TDO is also referred to as scan-out data TDO or a signal TDO.
  • the TAP controller 110 is a synchronous state machine controlled by signals TCK, TMS, and TRST.
  • the TAP controller 110 receives signals TCK, TMS, and TRST from the test control apparatus 200 and outputs control signals for controlling the instruction register 120 and the data register 130.
  • the TAP controller 110 executes a state transition according to the value of the test mode select TMS at the rising edge of the test clock TCK. In accordance with each state, the operation of the JTAG circuit (the test circuit 20 included in the integrated circuit 100) is determined.
  • the instruction register 120 is used, for example, for selecting a data register 130 (any one of the data registers 134, 136, 138, and 138) to be scanned.
  • the instruction register 120 receives control signals such as signals CAPTUREIR, UPDATATEIR, IRACK, and IRBCK from the TAP controller 110, and receives data TDI indicating an instruction code and the like from the test control device 200. Then, the instruction register 120 outputs a set instruction code, for example.
  • the signals IRACK and IRBCK are scan clocks for executing scan shift.
  • the signals IRACK and IRBCK are also referred to as scan clocks IRACK and IRBCK.
  • the instruction register 120 includes a shift register in which scan shift is executed and a flip-flop that holds the value of the shift register. That is, the instruction register 120 is a scannable register. For example, when the state of the TAP controller 110 transitions to the Capture IR state, a user-defined fixed value is set in the shift register.
  • the state of the TAP controller 110 transitions to the Shift IR state
  • the value of the data TDI is sequentially transmitted to the shift register by a shift operation.
  • an instruction code or the like is set in the shift register.
  • the state of the TAP controller 110 transitions to the Update IR state
  • the value of the shift register is set in the flip-flop, and the value of the flip-flop is transmitted to the integrated circuit 100.
  • user-defined instructions can be set in the instruction register 120 of this embodiment.
  • the UR scan-in instruction with loopback is, for example, an instruction for outputting the return data of the scan-in data TDI to the terminal TDO of the integrated circuit 100 during the period when the scan-in data TDI is written in the data register 138.
  • the data register 130 performs a scan operation based on control signals from the TAP controller 110 and the instruction register 120, for example.
  • the data register 130 includes a plurality of scanable data registers 132, 134, 136, 138, a data register control circuit 140, and a selector 142.
  • the data register 132 is a boundary scan register.
  • the data register 132 is also referred to as a boundary scan register 132 or BS (BoundaryBoundScan register) 132.
  • the BS 132 is a shift register provided at each terminal of the integrated circuit 100, for example.
  • the test control apparatus 200 can perform reading and writing with respect to each terminal of the integrated circuit 100 by causing the BS 132 to perform a scanning operation.
  • the data register 134 is a register that holds information such as an ID (IDentification) of a device (for example, the integrated circuit 100).
  • ID IDentification
  • the data register 134 is also referred to as an IDCODE register 134 or IDCODE (ID CODE register) 134.
  • the data register 136 is a bypass register.
  • the data register 136 is also referred to as a bypass register 136 or BYPS (BYPaSs register) 136.
  • the BYPS 136 is, for example, a one-stage shift register.
  • the BYPS 136 sequentially receives the data TDI and sequentially outputs the received data TDI as data TDO.
  • the test control apparatus 200 can perform access by the scan operation at high speed by bypassing a device that is not an access target by the BYPS 136.
  • the data register 138 is a user-defined register.
  • the data register 138 is also referred to as a user register 138 or a UR (User Register) 136.
  • the UR 136 is used, for example, when accessing the inside of the integrated circuit 100 by a scanning operation.
  • the data register control circuit 140 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code or the like from the instruction register 120, for example.
  • the data register control circuit 140 supplies the scan clock to the data registers 132 to 138 that execute the scan operation and controls the selector 142 based on the control signals received from the TAP controller 110 and the instruction register 120.
  • the data register control circuit 140 supplies the scan clocks URACK and URBCK (hereinafter also referred to as signals URACK and URBCK) to the UR 138. Further, the data register control circuit 140 controls the selector 142 so that an output signal of the UR 138 (hereinafter also referred to as a scan-out signal) is transmitted to the selector 150.
  • the selector 142 is controlled by the data register control circuit 140 and selects one of the scan-out signals of the data registers 132-138. For example, when the UR 138 performs a scan operation, the selector 142 selects a scan-out signal of the UR 138 and outputs the selected scan-out signal to the selector 150. As a state of the selector 142, there may be a state where none of the output signals of the data registers 132-138 is selected.
  • the selector control circuit 160 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code or the like from the instruction register 120, for example.
  • the selector control circuit 160 controls the selector 150 based on control signals received from the TAP controller 110 and the instruction register 120.
  • the selector control circuit 160 selects the output signal LBDO of the flip-flop 170 in a cycle when a predetermined condition is satisfied, in addition to the selection control for realizing the operation specified in IEEE1149.1. 150 is controlled.
  • the selector 150 is controlled by the selector control circuit 160, for example, and selects any one of the output signals (scanout signals) of the IR 120, the DR 130 (more specifically, the selector 142) and the flip-flop 170 as the data TDO. Then, the selector 150 outputs the data TDO (selected scan-out signal) to the outside of the integrated circuit 100 via the terminal TDO.
  • Select LBDO is an output signal of the flip-flop 170, and is loopback data of the data TDI.
  • the state of the selector 150 there may be a state in which none of the output signals of the IR 120, the DR 130, and the flip-flop 170 is selected.
  • the loopback control circuit 180 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code and the like from the instruction register 120, for example.
  • the loopback control circuit 180 controls the scan shift of the flip-flop 170 based on the control signals received from the TAP controller 110 and the instruction register 120.
  • the loopback control circuit 180 supplies the scan clock to the flip-flop 170 in the next cycle. Thereby, the scan shift of the flip-flop 170 is controlled.
  • the flip-flop 170 is an example of a flip-flop that outputs scan-in data as loopback data in synchronization with a test clock.
  • the flip-flop 170 is, for example, a 1-bit long scan shift register.
  • the flip-flop 170 is a D-type flip-flop circuit that operates in synchronization with a scan clock (for example, a clock that is the same as or similar to the signals URACK and URBCK).
  • the flip-flop 170 sequentially receives the data TDI from the test control device 200 via the terminal TDI, and sequentially outputs the received data TDI to the selector 150 as a signal LBDO.
  • the flip-flop 170 provided in the integrated circuit 100 outputs the signal LBDO to the test control device 200 via the selector 150, the terminal TDO, and the like as the data TDI folded data (data TDO).
  • the system control device 300 is connected to the test control device 200 by, for example, a control bus.
  • the system control device 300 executes a read / write request and data transfer to a register (for example, IR 120, DR 130, etc.) in the integrated circuit 100 via the control bus and the test control device 200.
  • a register for example, IR 120, DR 130, etc.
  • the test control apparatus 200 supplies scan-in data to the integrated circuit 100 via a first signal line (for example, signal line TDI), and scan-out data from the integrated circuit 100 to a second signal line (for example, signal line TDO). It is an example of the test control part received via.
  • the test control device 200 controls the test circuit in the integrated circuit 100 in accordance with a command from the system control device 300.
  • the test control device 200 includes a signal control circuit 210 and a determination circuit 220.
  • the signal control circuit 210 is an example of a signal control unit that controls the integrated circuit so that the scan-in data is folded back by the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line.
  • the signal control circuit 210 controls the integrated circuit 100 using the signals TCK, TMS, TRST, and TDI so that the scan-in data TDI is turned back by the integrated circuit 100.
  • the signal control circuit 210 outputs signals TCK, TMS, TRST, and TDI to the integrated circuit 100 via the signal lines TCK, TMS, TRST, and TDI in response to a request from the system control device 300. Further, the signal control circuit 210 receives the signal TDO (scan-out data TDO) from the integrated circuit 100 via the signal line TDO.
  • TDO scan-out data TDO
  • the signal control circuit 210 outputs the signal TDI (scan-in data TDI) and the delay valid signal DEN to the determination circuit 220 and receives the mismatch signal ESIG from the determination circuit 220. For example, when the UR scan-in instruction with loopback is set in the IR 120, the signal control circuit 210 asserts the delay valid signal DEN while outputting the scan-in data TDI to the UR 138.
  • the determination circuit 220 is an example of a determination unit that compares the scan-in data with the return data of the scan-in data to determine whether the return data is correct. For example, the determination circuit 220 receives the scan-in data TDI and the delay valid signal DEN from the signal control circuit 210, and receives data TDO from the integrated circuit 100 through the signal line TDO as the return data of the scan-in data TDI. Then, the determination circuit 220 compares the scan-in data TDI and the return data TDO to determine whether the return data TDO is correct.
  • the determination circuit 220 asserts the mismatch signal ESIG when the scan-in data TDI and the return data TDO do not match in the determination period based on the delay valid signal DEN (when the return data TDO is abnormal). That is, the mismatch signal ESIG is negated when the scan-in data TDI and the return data TDO match (when the return data TDO is correct).
  • the test control device 200 uses a test interface such as terminals TCK, TMS, TRST, TDI, TDO, signal lines TCK, TMS, TRST, TDI, TDO, etc. It is determined that there is an abnormality. Note that the return data TDO of the scan-in data TDI reaches the determination circuit 220 during the period when the scan-in data TDI is written in the UR 138, for example.
  • the determination circuit 220 receives the return data TDO during a period in which the scan-in data TDI is written to the data register in the integrated circuit 200, and determines whether the return data TDO is correct. Therefore, the determination circuit 220 can determine whether or not the return data TDO of the scan-in data TDI is correct before the value written in the UR 138 (the value of the scan-in data TDI) is read. Therefore, the test control apparatus 200 can shorten the error detection time of the test interface without adding a terminal for error detection of the test interface from the TAP (terminals TCK, TMS, TRST, TDI, TDO).
  • the test circuit 20 of the integrated circuit 100 includes the test control device 200, the TAP controller 110, the IR 120, the DR 130, the selector 150, the selector control circuit 160, the flip-flop 170, and the loop back control circuit 180.
  • the test circuit 20 may be defined except for the test circuit in the integrated circuit 100. That is, the test control apparatus 200 is also an aspect of the test circuit 20.
  • the configurations of the test circuit 20 and the information processing apparatus 10 of the integrated circuit 100 are not limited to this example.
  • the system control device 300 may be provided in the test control device 200.
  • the system control apparatus 300 may be provided outside the information processing apparatus 10.
  • the flip-flop 170 and the loopback control circuit 180 may be omitted.
  • the selector 150 receives the signal TDI from the terminal TDI instead of the signal LBDO.
  • the selectors 142 and 150 may output the output signal of the BYPS 136 to the test control apparatus 200 as the return data TDO of the scan-in data TDI when the flip-flop 170 or the like is omitted.
  • the selector control circuit 160 outputs the loopback data TDO (for example, the signal LBDO) of the scan-in data TDI to the terminal TDO based on the value set in a register other than the instruction register 120 in the integrated circuit 100. It may be determined whether or not. Alternatively, the selector control circuit 160 may determine whether to output the loopback data TDO (for example, the signal LBDO) of the scan-in data TDI to the terminal TDO based on the input signal supplied to the integrated circuit 100. .
  • the loopback data TDO for example, the signal LBDO
  • FIG. 2 shows an example of the determination circuit 220 shown in FIG.
  • the determination circuit 220 includes, for example, a delay circuit 222 and a coincidence determination circuit 224.
  • the delay circuit 222 is an example of a timing adjustment unit that outputs the scan-in data TDI received from the signal control circuit 210 after being delayed by a predetermined number of cycles in synchronization with the test clock (test clock TCK).
  • the delay circuit 222 receives the test clock TCK, the scan-in data TDI, and the delay valid signal DEN from the signal control circuit 210, and delays the scan-in data TDI and the delay valid signal DEN. Then, the delay circuit 222 outputs the signals DENdd and TDIdd obtained by delaying the signals TDI and DEN to the coincidence determination circuit 224.
  • the delay amounts of the signals TDI and DEN are, for example, delay amounts corresponding to the time until the scan-in data TDI output from the test control device 200 reaches the test control device 200 via the flip-flop 170, the selector 150, and the like. is there.
  • the delay circuit 222 includes flip-flops DFF1, DFF2, DFF3, and DFF4.
  • the flip-flops DFF1 to DFF4 are, for example, D-type flip-flop circuits that operate in synchronization with the test clock TCK.
  • the input terminal D of the flip-flop DFF1 receives the delay valid signal DEN, and the output terminal Q of the flip-flop DFF1 is connected to the input terminal D of the flip-flop DFF2. That is, the flip-flop DFF1 outputs the signal DENd obtained by delaying the delay valid signal DEN to the input terminal D of the flip-flop DFF2.
  • the output terminal Q of the flip-flop DFF2 is connected to the input of the AND circuit AND1 of the coincidence determination circuit 224. That is, the flip-flop DFF2 outputs the signal DENdd obtained by delaying the signal DENd to the AND circuit AND1.
  • the input terminal D of the flip-flop DFF3 receives the scan-in data TDI, and the output terminal Q of the flip-flop DFF3 is connected to the input terminal D of the flip-flop DFF4. That is, the flip-flop DFF3 outputs a signal TDId obtained by delaying the scan-in data TDI to the input terminal D of the flip-flop DFF4.
  • the output terminal Q of the flip-flop DFF4 is connected to the input of the exclusive OR circuit EXOR1 of the coincidence determination circuit 224. That is, the flip-flop DFF4 outputs the signal TDIdd obtained by delaying the signal TDId to the exclusive OR circuit EXOR1.
  • the coincidence determination circuit 224 is an example of a comparison unit that compares the scan-in data TDI and the return data TDO.
  • the coincidence determination circuit 224 receives the return data TDO of the scan-in data TDI from the integrated circuit 100 via the signal line TDO or the like, and receives the test clock TCK from the signal control circuit 210. Further, the coincidence determination circuit 224 receives from the delay circuit 222 a signal DENdd obtained by delaying the delay effective signal DEN by two stages of flip-flops and a signal TDIdd obtained by delaying the scan-in data TDI by two stages of flip-flops.
  • the coincidence determination circuit 224 compares the scan-in data TDI after timing adjustment with the return data TDO during the period when the signal DENdd (delay effective signal DEN after timing adjustment) received from the delay circuit 222 is asserted. For example, the coincidence determination circuit 224 asserts the disagreement signal ESIG when the scan-in data TDI after the timing adjustment does not coincide with the return data TDO. In this case, the test control apparatus 200 determines that there is an error in the test interface. Further, the coincidence determination circuit 224 negates the non-coincidence signal ESIG when the scan-in data TDI after the timing adjustment coincides with the return data TDO.
  • the coincidence determination circuit 224 includes a flip-flop DFF5, an exclusive OR circuit EXOR1, and an AND circuit AND1.
  • the flip-flop DFF5 is, for example, a D-type flip-flop circuit that operates in synchronization with the test clock TCK.
  • the input terminal D of the flip-flop DFF5 receives the return data TDO, and the output terminal Q of the flip-flop DFF5 is connected to the input of the exclusive OR circuit EXOR1. That is, the flip-flop DFF5 outputs a signal TDOd obtained by delaying the loopback data TDO to the exclusive OR circuit EXOR1.
  • the exclusive OR circuit EXOR1 calculates the exclusive OR of the signal TDIdd and the signal TDOd and outputs the calculation result to the AND circuit AND1. For example, the exclusive OR circuit EXOR1 outputs a signal having a logical value “0” to the AND circuit AND1 when the signal TDIdd and the signal TDOd match, and when the signal TDIdd and the signal TDOd do not match, A signal having a logical value “1” is output to the AND circuit AND1.
  • the AND circuit AND1 calculates a logical product of the operation result of the exclusive OR circuit EXOR1 (exclusive OR of the signal TDAdd and the signal TDOd) and the signal DENdd, and uses the operation result as the mismatch signal ESIG to the signal control circuit 210. Output to.
  • the AND circuit AND1 negates the mismatch signal ESIG when the signal DENdd is negated or when the signal TDidd and the signal TDOd match.
  • the AND circuit AND1 asserts the mismatch signal ESIG when the signal DENdd is asserted and the signal TDDD and the signal TDOd do not match.
  • the configuration of the determination circuit 220 is not limited to this example.
  • the flip-flop 170 shown in FIG. 1 when the flip-flop 170 shown in FIG. 1 is omitted, one of the flip-flops DFF1 and DFF2 and one of the flip-flops DFF3 and DFF4 may be omitted.
  • the coincidence determination circuit 224 generates a signal (signal DENd) obtained by delaying the delay effective signal DEN by one flip-flop and a signal (signal TDId) obtained by delaying the scan-in data TDI by one flip-flop. Received from delay circuit 222.
  • FIG. 3 shows an example of state transition of the TAP controller 110 shown in FIG.
  • the state of the test mode select TMS when the test clock TCK rises will be simply referred to as the state of the test mode select TMS.
  • the Test Logic Reset state ST1 is a state in which the test logic cannot be used and the normal operation of the system logic can be used. For example, when the signal TRST is asserted, the state of the TAP controller 110 returns to the state ST1. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Run Test Idle state ST2. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 is maintained at the state ST1.
  • Run Test Idle state ST2 is an internal test execution state or an intermediate state during a scan operation (between scan operations).
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 is maintained in the state ST2.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Select DR Scan state ST3.
  • the scan sequence of the data register 130 is selected.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Capture DR state ST5.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Select IR Scan state ST4.
  • the scan sequence of the instruction register 120 is selected.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Capture IR state ST11.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Test Logic Reset state ST1.
  • the internal state of the integrated circuit 100 is set in the shift register of the data register 130.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Shift DR state ST6.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit DR state ST7.
  • the data register 130 is connected between the terminal TDI and the terminal TDO.
  • the data register 130 shifts the data bit by bit to the terminal TDO in synchronization with the rising edge of the test clock TCK.
  • the scan shift of the data register 130 is executed.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 is maintained in the state ST6.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit DR state ST7.
  • Exit DR state ST7 the scan is terminated.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Pause DR state ST8.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Updata DR state ST10.
  • Pause DR state ST8 the scan shift operation in the serial path between the terminal TDI and the terminal TDO is suspended.
  • state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 is maintained at the state ST8.
  • state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit2 DR state ST9.
  • Exit2 DR state ST9 the scan is terminated.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Shift DR state ST6.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Updata DR state ST10.
  • the value of the data register 130 (for example, any of the data registers 132, 134, 136, and 138) is transmitted to the integrated circuit 100.
  • the value of BS 132 is set to the terminal of integrated circuit 100.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Run Test Idle state ST2.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Select DR Scan state ST3.
  • Capture IR state ST11 a fixed pattern defined by the device (for example, the integrated circuit 100) is set in the shift register of the instruction register 120.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Shift IR state ST12.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit IR state ST13.
  • the shift register of the instruction register 120 is connected between the terminal TDI and the terminal TDO.
  • the shift register of the instruction register 120 shifts the data bit by bit to the terminal TDO in synchronization with the rising edge of the test clock TCK. In this way, the scan shift of the shift register of the instruction register 120 is executed.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 is maintained at the state ST12.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit IR state ST13.
  • Exit IR state ST13 the scan is terminated.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Pause IR state ST14.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Updata IR state ST16.
  • Pause IR state ST14 the scan shift operation in the serial path between the terminal TDI and the terminal TDO is suspended.
  • state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 is maintained at the state ST14.
  • state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Exit2 IR state ST15.
  • Exit2 IR state ST15 the scan is terminated.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Shift IR state ST12.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Updata IR state ST16.
  • the value of the shift register of the instruction register 120 is held in the flip-flop of the instruction register 120. That is, the data scanned into the shift register of the instruction register 120 is latched by the flip-flop of the instruction register 120.
  • the value of the flip-flop of the instruction register 120 is transmitted to the inside of the integrated circuit 100.
  • the state of the test mode select TMS is the logical value “0”
  • the state of the TAP controller 110 transitions to the Run Test Idle state ST2.
  • the state of the test mode select TMS is the logical value “1”
  • the state of the TAP controller 110 transitions to the Select DR Scan state ST3.
  • test control apparatus 200 changes the state of the TAP controller 110 to the Shift IR state ST12, the Shift DR state ST6, etc., and accesses the instruction register 120 and the data register 130.
  • An example of an access procedure for the instruction register 120 and the data register 130 is shown below.
  • the test control apparatus 200 controls the signals TCK, TMS, TRST, etc., and changes the state of the TAP controller 110 to the state ST12 via the states ST1, ST2, ST3, ST4, ST11. Then, in the state ST12, the test control device 200 outputs the value set in the instruction register 120 to the terminal TDI of the integrated circuit 100 in synchronization with the test clock TCK. Note that the value of the instruction register 120 is output to the terminal TDO of the integrated circuit 100 via the selector 150.
  • test control apparatus 200 changes the state of the TAP controller 110 from the state ST12 to the state ST16 via the state ST13.
  • the instruction code set in the instruction register 120 is output from the instruction register 120 to the data register control circuit 140 and the like.
  • the test control apparatus 200 changes the state of the TAP controller 110 from the state ST16 through the state ST2 or directly from the state ST16 to the state ST3.
  • the state of the TAP controller 110 transitions from the IR read / write sequence (states ST4, ST11-ST13, ST16, etc.) to the DR read / write sequence (states ST3, ST5-ST7, ST10, etc.).
  • the data register 130 to be read / written is selected based on the value (instruction code) of the instruction register 120 set in the IR read / write sequence, for example.
  • the test control apparatus 200 changes the state of the TAP controller 110 from the state ST3 to the state ST6 through the state ST5.
  • the test control device 200 In the state ST6, the test control device 200 outputs the value set in the data register 130 to the terminal TDI of the integrated circuit 100 in synchronization with the test clock TCK. Note that the value of the data register 130 (any one of the data registers 132 to 138) selected by the selectors 142 and 150 is output to the terminal TDO of the integrated circuit 100. Thereafter, the test control apparatus 200 changes the state of the TAP controller 110 from the state ST6 to the state ST2 via the states ST7 and ST10. As described above, the test control device 200 can access the instruction register 120 and the data register 130 using the signals TCK, TMS, TRST, TDI, and TDO.
  • FIG. 4 shows an example of the operation of the test circuit 20 shown in FIG. That is, FIG. 4 shows one form of a test method for the integrated circuit 100.
  • the operation of FIG. 4 may be realized only by hardware, or may be realized by controlling the hardware by software.
  • the operation of the test control device 200 in the test circuit 20 will be mainly described.
  • step S100 the signal control circuit 210 of the test control apparatus 200 sets the UR scan-in instruction with loopback in the instruction register 120.
  • the test control apparatus 200 sets an instruction code (for example, 1101) indicating a UR scan-in instruction with loopback in the instruction register 120 in the IR read / write sequence described with reference to FIG.
  • the test control apparatus 200 changes the state of the TAP controller 110 to the DR read / write sequence.
  • the signal control circuit 210 controls the integrated circuit 100 so that the scan-in data TDI is turned back by the integrated circuit 100.
  • step S200 the signal control circuit 210 of the test control apparatus 200 sequentially supplies the scan-in data TDI to the integrated circuit 100.
  • the scan-in data TDI is sequentially written into the UR 138, and the return data LBDO of the scan-in data TDI is sequentially output from the flip-flop 170.
  • step S300 the test control apparatus 200 sequentially acquires the return data LBDO of the scan-in data TDI from the integrated circuit 100 as the scan-out data TDO.
  • the test control device 200 sequentially receives the output signal LBDO of the flip-flop 170 in the integrated circuit 100 from the integrated circuit 100.
  • step S400 the determination circuit 220 of the test control apparatus 200 compares the scan-in data TDI supplied to the integrated circuit 100 in step S200 with the return data TDO acquired in step S300. For example, the determination circuit 220 adjusts the comparison timing of the scan-in data TDI and the return data TDO according to the delay of the return data TDO, and compares the scan-in data TDI after timing adjustment with the return data TDO after timing adjustment. .
  • step S500 the determination circuit 220 of the test control apparatus 200 determines whether or not the scan-in data TDI and the return data TDO match.
  • the operation of the test control device 200 proceeds to step S600.
  • the scan-in data TDI and the return data TDO do not match No in step S500
  • the operation of the test control apparatus 200 moves to step S700.
  • step S600 the determination circuit 220 of the test control device 200 negates the mismatch signal ESIG. In this case, the test control apparatus 200 determines that there is no abnormality in the test interface.
  • step S700 the determination circuit 220 of the test control apparatus 200 asserts the mismatch signal ESIG.
  • the test control apparatus 200 determines that there is an abnormality in the test interface. That is, the test control device 200 detects an error in the test interface.
  • test control apparatus 200 can shorten the time for detecting an error in the test interface. Note that the operation of the test circuit 20 is not limited to this example.
  • FIG. 5 shows an example of a time chart of each signal shown in FIG. A period T3-T10 in FIG. 5 corresponds to the IR write sequence (scan-in to the IR 120).
  • IR (SHIFT) in FIG. 5 indicates the value of the shift register of IR 120
  • IR (FF) indicates the value of the flip-flop of IR 120 (instruction code set in IR 120).
  • the value of the register that receives data TDI corresponds to the leftmost value of IR (SHIFT), and the value of the register that outputs data TDO is the rightmost value of IR (SHIFT).
  • SHIFT leftmost value of IR
  • SHIFT rightmost value of IR
  • the description will be made assuming that the bit length of the shift register of IR 120 is 4 bits.
  • the bit length of the IR120 shift register is not limited to 4 bits.
  • Select DR in the figure indicates Select DR Scan state ST3
  • Select IR indicates Select IR Scan state ST4.
  • the state of the TAP controller 110 is the Run Test Idle state ST2.
  • the state of the TAP controller 110 changes according to the state of the test mode select TMS when the test clock TCK rises. For example, when the TAP controller 110 detects in the Run Test Idle state ST2 that the test mode select TMS at the rising edge of the test clock TCK is a logical value “1”, the TAP controller 110 transitions to the Select DR Scan state ST3 (period T2 ).
  • the state of the TAP controller 110 transits from the Select DR Scan state ST3 to the Select IR Scan state ST4 to the Capture IR state ST11 under the control of the test mode select TMS.
  • the Capture IR state ST11 (period T4), a predetermined fixed value (0001 in the example of FIG. 5) is set in the shift register of the IR 120.
  • the TAP controller 110 outputs a one-shot pulse to the IR 120 in synchronization with the falling edge of the test clock TCK as the signal CAPTUREIR.
  • a predetermined fixed “0001” is set in the shift register of the IR 120 in synchronization with the rising edge of the signal CAPTUREIR.
  • the state of the TAP controller 110 transitions from the Capture IR state ST11 to the Shift IR state ST12 since the test mode select TMS at the rising edge of the test clock TCK is the logical value “0” (period T5).
  • the state of the TAP controller 110 is maintained in the Shift IR state ST12.
  • the state of the TAP controller 110 changes from the Shift IR state ST12 to the Exit IR state ST13 because the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”.
  • the scan shift of the IR 120 shift register is executed in the Shift IR state ST12, and the scan shift of the IR 120 shift register is completed in the Exit IR state ST13.
  • the TAP controller 110 outputs the scan clock IRACK to the IR 120 in synchronization with the rising edge of the test clock TCK, and outputs the scan clock IRBCK to the IR 120 in synchronization with the falling edge of the test clock TCK.
  • the scan clocks IRACK and IRBCK are supplied to the IR 120, for example, from the next cycle (period T6) in which the transition is made to the Shift IR state ST12 to the cycle of the Exit IR state ST13 (period T9).
  • Each shift register of IR120 outputs, for example, the value held (the value received at the input terminal when the clock IRACK rises) to the next stage in synchronization with the rise of the clock IRBCK.
  • the last stage register outputs the held value to selector 150 in synchronization with the rising edge of clock IRBCK.
  • serial data “1011” of the instruction code “1101” indicating the UR scan-in instruction with loopback is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK.
  • the instruction code “1011” indicating the UR scan-in instruction with loopback is set in the shift register of the IR 120 by the period T9.
  • the selector 150 selects the output signal of the IR 120 as the data TDO to be output to the terminal TDO. Therefore, the rightmost value of IR (SHIFT) is output as data TDO in each of the periods T5-T9.
  • the state of the TAP controller 110 is the Exit IR state ST13, the scan-in to the shift register of the IR 120 is completed. Further, since the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”, the state of the TAP controller 110 transitions from the Exit IR state ST13 to the Updata IR state ST16 (period T10).
  • the TAP controller 110 In the period T10, since the state of the TAP controller 110 is the Updata IR state ST16, the value of the IR120 shift register is held in the IR120 flip-flop. For example, in the period T10, the TAP controller 110 outputs a one-shot pulse to the IR 120 in synchronization with the falling edge of the test clock TCK as the signal UPDATEIR.
  • the value “1101” of the shift register of the IR 120 is set in the flip-flop of the IR 120 in synchronization with the rising edge of the signal UPDATEIR. That is, the UR scan-in instruction with loopback is set in the IR 120.
  • the data scanned into the IR 120 shift register is latched in the IR 120 flip-flop.
  • the value of the IR 120 flip-flop is transmitted to the integrated circuit 100.
  • FIG. 6 shows another example of a time chart of each signal shown in FIG. 6 corresponds to a DR write sequence (scan-in to UR 138) executed after the IR write sequence (period T3-T10 in FIG. 5) shown in FIG. Therefore, in FIG. 6, the operation based on the UR scan-in instruction with loopback is executed.
  • IR (FF) and Select DR in FIG. 6 are the same as or similar to those in FIG.
  • UR in FIG. 6 indicates the value of UR138.
  • UR138 will be described as a 4-bit shift register.
  • the bit length of UR138 (shift register) is not limited to 4 bits.
  • the state of the TAP controller 110 is the Updata IR state ST16.
  • an instruction code “1101” indicating a UR scan-in instruction with a loopback is set in the IR 120.
  • the state of the TAP controller 110 changes according to the state of the test mode select TMS when the test clock TCK rises. For example, when the TAP controller 110 detects that the test mode select TMS at the rising edge of the test clock TCK is the logical value “1” in the Updata IR state ST16, the TAP controller 110 transits to the Select DR Scan state ST3 (period T11). .
  • the state of the TAP controller 110 transitions from the Select DR Scan state ST3 to the Capture DR state ST5 to the Shift DR state ST6 under the control of the test mode select TMS.
  • the signal SHIFTDR is asserted.
  • the TAP controller 110 asserts the signal SHIFTDR during the Shift DR state ST6.
  • the state of the TAP controller 110 is maintained in the Shift DR state ST6.
  • the state of the TAP controller 110 changes from the Shift DR state ST6 to the Exit DR state ST7 because the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”.
  • the UR 138 scan shift is executed in the Shift DR state ST6, and the UR 138 scan shift ends in the Exit DR state ST7.
  • the data register control circuit 140 and the loopback control circuit 180 control the scan shift operations of the UR 138 and the flip-flop 170 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110, respectively.
  • the scan shift operation of the UR 138 will be described.
  • the data register control circuit 140 supplies the scan clocks URACK and URBCK to the UR 138 from the next cycle (period T14) in which the signal SHIFTDR is asserted to the cycle (period T17) in which the signal SHIFTDR is negated.
  • the data register control circuit 140 outputs the scan clock URACK to the UR 138 in synchronization with the rising edge of the test clock TCK, and outputs the scan clock URBCK to the UR 138 in synchronization with the falling edge of the test clock TCK.
  • Each register of the UR 138 outputs, for example, a held value (value received at the input terminal when the clock URACK rises) to the next stage in synchronization with the rise of the clock URBCK. Note that the last-stage register of the UR 138 outputs the held value to the selector 142 in synchronization with the rising edge of the clock URBCK.
  • serial data “1001” is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK. Thereby, the scan-in data “1001” is set in the UR 138 by the period T17.
  • the selector 142 selects the output signal of the UR 138 as a signal to be output to the selector 150 based on the control of the data register control circuit 140.
  • the loopback control circuit 180 supplies a scan clock that is the same as or similar to the scan clocks URACK and URBCK to the flip-flop 170.
  • the scan clock supplied to the flip-flop 170 is also referred to as scan clocks URACK and URBCK.
  • the loopback control circuit 180 outputs the scan clock URACK to the flip-flop 170 in synchronization with the rising edge of the test clock TCK.
  • the loopback control circuit 180 outputs the scan clock URBCK to the flip-flop 170 in synchronization with the falling edge of the test clock TCK.
  • the flip-flop 170 outputs the value of the data TDI received at the input terminal at the rising edge of the clock URACK as the signal LBDO in synchronization with the rising edge of the clock URBCK.
  • the selector control circuit 160 controls the selector 150 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110. For example, the selector control circuit 160 controls the selector 150 to select the output signal LBDO of the flip-flop 170 because the value of the IR 120 is the instruction code “1101” indicating the UR scan-in instruction with loopback.
  • the selector 150 outputs the output signal LBDO of the flip-flop 170 as data TDO to the terminal TDO in synchronization with the falling edge of the test clock TCK in the next cycle (period T14) in which the signal SHIFTDR is asserted. To do.
  • the selector 150 continues to output the output signal LBDO of the flip-flop 170 as data TDO to the terminal TDO until the falling edge of the test clock TCK in the next cycle (period T18) in which the signal SHIFTDR is negated.
  • the loopback data LBDO of the data TDI is output from the integrated circuit 100 to the test controller 200 as the data TDO.
  • the selector 150 since the selector 150 selects the output signal LBDO of the flip-flop 170, the value of the UR138 is not output to the terminal TDO.
  • the signal control circuit 220 of the test control apparatus 200 asserts the delay valid signal DEN while outputting the scan-in data “1001” as the data TDI (from the middle of the period T13 to the middle of the period T17).
  • the delay circuit 222 delays the delay valid signal DEN and the data TDI by two cycles in synchronization with the test clock TCK (signals DENdd and TDIdd in FIG. 6). For example, the delay circuit 222 delays the delay valid signal DEN using the flip-flops DFF1 and DFF2, and delays the data TDI using the flip-flops DFF3 and DFF4.
  • the coincidence determination circuit 224 delays the data TDO by one cycle in synchronization with the test clock TCK (signal TDOd in FIG. 6). For example, the coincidence determination circuit 224 delays the delay valid signal DEN using the flip-flop DFF5. Then, when the signal DENdd obtained by delaying the delay valid signal DEN is asserted, the coincidence determination circuit 224 compares the value of the signal TDidd with the value of the signal TDOd (period T15-T18). In the example of FIG. 6, the value of the signal TDIdd and the value of the signal TDOd match in each of the periods T15 to T18, so the mismatch signal ESIG is negated. Note that if the value of the signal TDIdd and the value of the signal TDOd do not match, the mismatch signal ESIG is asserted.
  • the test control apparatus 200 detects that a failure has occurred in the terminals TDI, TDO, signal lines TDI, TDO, etc., which are test interfaces, by detecting a mismatch between the value of the signal TDIdd and the value of the signal TDOd. It can be detected. Note that, for example, when a failure occurs in the signal lines TCK, TMS, and TRST, the loopback to the test control device 200 is not normally performed. Therefore, the failure of the signal lines TCK, TMS, and TRST is caused by the value of the signal TDAdd. And the value of the signal TDOd are detected as mismatches.
  • the test control apparatus 200 can detect an error in the test interface only by the DR write sequence (scan-in), for example. Therefore, in this embodiment, the procedure for detecting an error in the test interface can be simplified. Further, in this embodiment, the processing time required for detecting an error in the test interface can be shortened.
  • FIG. 7 shows another example of a time chart of each signal shown in FIG. A period T31 to T38 in FIG. 7 corresponds to the DR write sequence (scan-in to the UR 138).
  • the IR write sequence for setting the UR scan-in instruction in IR 120 is the same as or similar to the IR write sequence shown in FIG. 5 except for serial data “0011” (instruction code “1100”) given as data TDI.
  • serial data “1011” of the instruction code “1101” is given as data TDI.
  • IR (FF), UR, and Select DR in FIG. 7 are the same as or similar to those in FIG. Detailed description of the same or similar operations as those described in FIG. 6 is omitted.
  • the period T30 to T40 corresponds to the period T10 to T20 in FIG.
  • the state of the TAP controller 110 is the Updata IR state ST16.
  • an instruction code “1100” indicating a UR scan-in instruction is set in the IR 120.
  • the UR 138 holds data “1001” (for example, scan-in data set in the UR 138 by the DR write sequence in FIG. 6).
  • the data register control circuit 140 and the loopback control circuit 180 control the scan shift operations of the UR 138 and the flip-flop 170 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110, respectively.
  • the loopback control circuit 180 does not execute the scan shift operation of the flip-flop 170 because the instruction code “1100” indicating the UR scan-in instruction is set in the IR 120. Therefore, the scan shift operation of the UR 138 will be described focusing on the operation different from the operation of FIG.
  • the data register control circuit 140 supplies the scan clocks URACK and URBCK to the UR 138 from the next cycle (period T34) in which the signal SHIFTDR is asserted to the cycle (period T37) in which the signal SHIFTDR is negated.
  • Each register of the UR 138 outputs, for example, a held value (value received at the input terminal when the clock URACK rises) to the next stage in synchronization with the rise of the clock URBCK.
  • the last-stage register of the UR 138 outputs the held value to the selector 142 in synchronization with the rising edge of the clock URBCK.
  • serial data “0110” is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK.
  • the scan-in data “0110” is set in the UR 138 by the period T37.
  • the selector 142 selects the output signal of the UR 138 (the value of the register at the final stage of the UR 138) as a signal to be output to the selector 150 based on the control of the data register control circuit 140.
  • the selector control circuit 160 selects the output signal of the DR 130 (the output signal of the UR 138 selected by the selector 142). 150 is controlled.
  • the selector 150 synchronizes with the falling edge of the test clock TCK in the cycle (period T33) in which the signal SHIFTDR is asserted, and the value of the last-stage register of the UR 138 (the rightmost value of the UR).
  • the data TDO is output to the terminal TDO.
  • the selector 150 uses the value of the last-stage register of UR 138 (the rightmost value of UR) as data TDO until the falling edge of the test clock TCK in the cycle (period T37) in which the signal SHIFTDR is negated. Continue to output.
  • the data “1001” held in the UR 138 before the DR write sequence in FIG. 7 is executed is output as the data TDO from the integrated circuit 100 to the test control device 200 (period T33-T37).
  • the selector 150 since the selector 150 selects the output signal of the DR 130, the output signal LBDO of the flip-flop 170 is not output to the terminal TDO.
  • the signal control circuit 220 of the test control apparatus 200 does not assert the delay valid signal DEN because the UR scan-in command is executed. That is, the delay valid signal DEN is negated. For this reason, the coincidence determination circuit 224 does not perform a comparison between the value of the signal TDIdd and the value of the signal TDOd. Therefore, the mismatch signal ESIG is negated in the UR scan-in instruction.
  • the test control apparatus 200 integrates the scan-in data TDI through the signal line TDI. Supply to circuit 100. Then, the test control device 200 receives the return data of the scan-in data TDI as the scan-out data TDO from the integrated circuit 100 via the signal line TDO. Further, the determination circuit 222 of the test control device 200 compares the scan-in data TDI and the return data TDO to determine whether the return data TDO is correct.
  • the test control apparatus 200 can detect an error in the test interface. For example, when the determination circuit 222 determines that the return data TDO is not correct, the test control apparatus 200 determines that a failure has occurred in the test interface. In this embodiment, since it is determined whether or not the return data TDO of the scan-in data TDI is correct, an error in the test interface can be detected only by scan-in of scan-in and scan-out.
  • the procedure for detecting an error in the test interface can be simplified, and the processing time required for detecting the error in the test interface can be shortened. That is, in this embodiment, it is possible to shorten the time for detecting an error in the test interface.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Semiconductor Integrated Circuits (AREA)

Abstract

This test circuit for an integrated circuit comprises a test control unit which supplies scan-in data to an integrated circuit via a first signal line and receives scan-out data from the integrated circuit via a second signal line, said test control unit comprising: a signal control unit which controls the integrated circuit so that the scan-in data is returned through the integrated circuit, and which supplies the original scan-in data to the integrated circuit via the first signal line; and a determination unit which receives, from the signal control unit, the original scan-in data to be supplied to the integrated circuit, receives the returned version of the scan-in data from the integrated circuit via the second signal line, and compares the original scan-in data with the returned version to determine whether the returned version is valid.

Description

集積回路のテスト回路、情報処理装置および集積回路のテスト方法Integrated circuit test circuit, information processing apparatus, and integrated circuit test method

 本発明は、集積回路のテスト回路、情報処理装置および集積回路のテスト方法に関する。 The present invention relates to an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method.

 LSI(Large Scale Integration)の高集積化やプリント基板の高密度化に伴い、LSIやプリント基板のテストが困難になってきている。このため、例えば、IEEE1149.1としてJTAG(Joint Test Action Group)により標準化されたテスト手法に対応する集積回路が普及している。以下、IEEE1149.1をJTAGとも称する。JTAGに対応した集積回路では、TAP(Test Access Port)と呼ばれるインターフェース信号用の端子、TAPコントローラ、スキャン可能な命令レジスタ、スキャン可能な複数のデータレジスタ等を有している。 With high integration of LSI (Large Scale Integration) and high density of printed circuit boards, testing of LSIs and printed circuit boards has become difficult. For this reason, for example, an integrated circuit corresponding to a test method standardized by JTAG (Joint Test Action Group) as IEEE 1149.1 has become widespread. Hereinafter, IEEE1149.1 is also referred to as JTAG. An integrated circuit corresponding to JTAG has an interface signal terminal called TAP (Test Access Port), a TAP controller, a scan instruction register, a plurality of scan data registers, and the like.

 TAPコントローラは、例えば、テストモードを選択するためのインターフェース信号TMS(Test Mode Select)等を受け、命令レジスタやデータレジスタを制御するための制御信号を出力する。命令レジスタは、例えば、スキャン動作させるデータレジスタの選択に使用される。データレジスタは、例えば、TAPコントローラおよび命令レジスタからの制御信号等に基づいて、スキャン動作を実行する。 The TAP controller receives, for example, an interface signal TMS (Test Mode Select) for selecting a test mode and outputs a control signal for controlling an instruction register and a data register. The instruction register is used, for example, to select a data register to be scanned. The data register executes a scan operation based on, for example, control signals from the TAP controller and the instruction register.

 これにより、集積回路のテストが実行される。例えば、スキャン動作では、インターフェース信号TDI(Test Data In)の値(論理値)がデータレジスタに順次書き込まれる(スキャンイン)。そして、スキャンインによりデータレジスタに書き込まれた値は、インターフェース信号TDO(Test Data Out)としてデータレジスタから順次読み出される(スキャンアウト)。例えば、集積回路のテスト装置は、スキャンインでデータレジスタに書き込んだ値と、スキャンアウトでデータレジスタから読み出した値とを比較して、エラーの有無を判定する。 This will test the integrated circuit. For example, in the scan operation, the value (logical value) of the interface signal TDI (Test Data In) is sequentially written into the data register (scan-in). The values written in the data register by the scan-in are sequentially read out from the data register as the interface signal TDO (Test (Data Out) (scan-out). For example, the integrated circuit test apparatus compares the value written in the data register by scan-in with the value read from the data register by scan-out to determine the presence or absence of an error.

 この種のテストでは、集積回路の本来の機能を実現する回路の異常かテスト回路の異常かを判別することは困難である。このため、TAPコントローラから出力される制御信号を外部から確認するための制御出力ピンを有する付加回路を追加したバウンダリスキャンテスト回路が提案されている(例えば、特許文献1参照)。例えば、ユーザは、付加回路の制御出力ピンをテスタ等で観測することにより、TAPコントローラの状態遷移が正常か否かを確認する。 In this type of test, it is difficult to determine whether the circuit that realizes the original function of the integrated circuit is abnormal or the test circuit is abnormal. For this reason, a boundary scan test circuit has been proposed in which an additional circuit having a control output pin for confirming a control signal output from the TAP controller from the outside is added (for example, see Patent Document 1). For example, the user confirms whether the state transition of the TAP controller is normal by observing the control output pin of the additional circuit with a tester or the like.

特開平7-72203号公報Japanese Patent Laid-Open No. 7-72203

 集積回路のテスト装置と集積回路との間のインターフェース信号用の信号線に対するエラーチェック機能が設けられていない場合、テスト用インターフェース(例えば、インターフェース信号用の信号線)のエラー検出に時間がかかるおそれがある。例えば、集積回路のテスト装置は、スキャンインを実行した後にスキャンアウトを実行してエラーを検出する。この場合、スキャンインおよびスキャンアウトの2段階の処理を実行するため、テスト用インターフェースのエラーが判明するまでに時間がかかる。なお、付加回路の制御出力ピンを観測する方法では、集積回路等の端子数が増加する。 If the error check function for the signal line for the interface signal between the integrated circuit test apparatus and the integrated circuit is not provided, it may take a long time to detect the error of the test interface (for example, the signal line for the interface signal). There is. For example, an integrated circuit test apparatus detects an error by executing scan-out after executing scan-in. In this case, since two steps of scan-in and scan-out are executed, it takes time until an error in the test interface is found. In the method of observing the control output pin of the additional circuit, the number of terminals of the integrated circuit or the like increases.

 1つの側面では、本件開示の集積回路のテスト回路、情報処理装置および集積回路のテスト方法は、テスト用インターフェースのエラー検出の時間を短縮することを目的とする。 In one aspect, the integrated circuit test circuit, the information processing apparatus, and the integrated circuit test method disclosed herein are intended to reduce the time of error detection of the test interface.

 一観点によれば、集積回路のテスト回路は、スキャンインデータを第1信号線を介して集積回路に供給し、スキャンアウトデータを集積回路から第2信号線を介して受けるテスト制御部を有し、テスト制御部は、スキャンインデータが集積回路で折り返されるように集積回路を制御し、スキャンインデータを第1信号線を介して集積回路に供給する信号制御部と、集積回路に供給するスキャンインデータを信号制御部から受け、スキャンインデータの折り返しデータを集積回路から第2信号線を介して受け、スキャンインデータと折り返しデータとを比較して、折り返しデータが正しいか否かを判定する判定部とを有している。 According to one aspect, the test circuit of the integrated circuit has a test control unit that supplies scan-in data to the integrated circuit via the first signal line and receives scan-out data from the integrated circuit via the second signal line. The test control unit controls the integrated circuit so that the scan-in data is folded back by the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line and the integrated circuit. The scan-in data is received from the signal control unit, the return data of the scan-in data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are compared to determine whether the return data is correct. And a determination unit.

 別の観点によれば、情報処理装置は、集積回路と、集積回路をテストするテスト回路とを有し、テスト回路は、スキャンインデータを第1信号線を介して集積回路に供給し、スキャンアウトデータを集積回路から第2信号線を介して受けるテスト制御部を有し、テスト制御部は、スキャンインデータが集積回路で折り返されるように集積回路を制御し、スキャンインデータを第1信号線を介して集積回路に供給する信号制御部と、集積回路に供給するスキャンインデータを信号制御部から受け、スキャンインデータの折り返しデータを集積回路から第2信号線を介して受け、スキャンインデータと折り返しデータとを比較して、折り返しデータが正しいか否かを判定する判定部とを有している。 According to another aspect, the information processing apparatus includes an integrated circuit and a test circuit that tests the integrated circuit. The test circuit supplies scan-in data to the integrated circuit via the first signal line, and scans the integrated circuit. A test control unit configured to receive out-data from the integrated circuit via the second signal line; the test control unit controls the integrated circuit so that the scan-in data is folded back by the integrated circuit; A signal control unit supplied to the integrated circuit via the line, scan-in data supplied to the integrated circuit is received from the signal control unit, and return data of the scan-in data is received from the integrated circuit via the second signal line. A determination unit that compares the data and the return data to determine whether the return data is correct;

 別の観点によれば、集積回路のテスト方法では、スキャンインデータが集積回路で折り返されるように集積回路を制御し、スキャンインデータをテスト制御部から第1信号線を介して集積回路に転送し、スキャンインデータの折り返しデータを集積回路から第2信号線を介してテスト制御部に転送し、テスト制御部で保持しているスキャンインデータとテスト制御部に転送された折り返しデータとを比較して、折り返しデータが正しいか否かを判定する。 According to another aspect, in the integrated circuit test method, the integrated circuit is controlled so that the scan-in data is folded back by the integrated circuit, and the scan-in data is transferred from the test control unit to the integrated circuit via the first signal line. Then, the return data of the scan-in data is transferred from the integrated circuit to the test control unit via the second signal line, and the scan-in data held in the test control unit is compared with the return data transferred to the test control unit. Then, it is determined whether the return data is correct.

 本件開示の集積回路のテスト回路、情報処理装置および集積回路のテスト方法は、テスト用インターフェースのエラー検出の時間を短縮できる。 The integrated circuit test circuit, the information processing apparatus, and the integrated circuit test method disclosed in the present disclosure can reduce the error detection time of the test interface.

集積回路のテスト回路、情報処理装置および集積回路のテスト方法の一実施形態を示す図である。1 is a diagram illustrating an embodiment of an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method; FIG. 図1に示した判定回路の一例を示す図である。FIG. 2 is a diagram illustrating an example of a determination circuit illustrated in FIG. 1. 図1に示したTAPコントローラの状態遷移の一例を示す図である。It is a figure which shows an example of the state transition of the TAP controller shown in FIG. 図1に示したテスト回路の動作の一例を示す図である。FIG. 2 is a diagram illustrating an example of operation of the test circuit illustrated in FIG. 1. 図1に示した各信号のタイムチャートの一例を示す図である。It is a figure which shows an example of the time chart of each signal shown in FIG. 図1に示した各信号のタイムチャートの別の例を示す図である。It is a figure which shows another example of the time chart of each signal shown in FIG. 図1に示した各信号のタイムチャートの別の例を示す図である。It is a figure which shows another example of the time chart of each signal shown in FIG.

 以下、実施形態を図面を用いて説明する。図1および図2の破線の矢印は、データや制御信号の流れの一例を示している。また、集積回路100とテスト制御装置200とを接続する信号線には、信号線に伝達される信号に付した符号と同じ符号を使用する。同様に、集積回路100およびテスト制御装置200の端子(図1の二重の丸印)にも、端子に伝達される信号に付した符号と同じ符号を使用する。端子は、例えば、半導体チップ上のパッド、あるいは半導体チップが収納されるパッケージのリードである。 Hereinafter, embodiments will be described with reference to the drawings. The broken-line arrows in FIGS. 1 and 2 show an example of the flow of data and control signals. Further, the same reference numerals as those attached to the signals transmitted to the signal lines are used for the signal lines connecting the integrated circuit 100 and the test control apparatus 200. Similarly, the same reference numerals as those attached to the signals transmitted to the terminals are used for the terminals (double circles in FIG. 1) of the integrated circuit 100 and the test control apparatus 200. The terminal is, for example, a pad on a semiconductor chip or a lead of a package in which the semiconductor chip is stored.

 図1は、集積回路のテスト回路、情報処理装置および集積回路のテスト方法の一実施形態を示している。この実施形態の情報処理装置10は、例えば、IEEE1149.1としてJTAG(Joint Test Action Group)により標準化されたテスト手法に対応するLSI(Large Scale Integration)等の集積回路100を有している。以下、IEEE1149.1をJTAGとも称する。 FIG. 1 shows an embodiment of an integrated circuit test circuit, an information processing apparatus, and an integrated circuit test method. The information processing apparatus 10 according to this embodiment includes an integrated circuit 100 such as an LSI (Large Scale Integration) corresponding to a test method standardized by JTAG (Joint Test Action Group) as IEEE1149.1. Hereinafter, IEEE1149.1 is also referred to as JTAG.

 例えば、情報処理装置10は、JTAGに対応したテスト回路を含む集積回路100と、JTAGに対応したテスト回路を制御するテスト制御装置200と、テスト制御装置200を制御するシステム制御装置300とを有している。また、集積回路100のテスト回路20は、例えば、テスト制御装置200と、集積回路100内に設けられたテスト回路とを有している。 For example, the information processing apparatus 10 includes an integrated circuit 100 including a test circuit compatible with JTAG, a test control apparatus 200 that controls a test circuit compatible with JTAG, and a system control apparatus 300 that controls the test control apparatus 200. is doing. Further, the test circuit 20 of the integrated circuit 100 includes, for example, a test control device 200 and a test circuit provided in the integrated circuit 100.

 集積回路100には、例えば、TAP(Test Access Port)と呼ばれるインターフェース信号用の端子TCK(Test ClocK)、TMS(Test Mode Select)、TRST(Test ReSeT)、TDI(Test Data In)、TDO(Test Data Out)が設けられている。例えば、集積回路100の端子TCK、TMS、TRST、TDI、TDOは、信号線TCK、TMS、TRST、TDI、TDOにより、テスト制御装置20の端子TCK、TMS、TRST、TDI、TDOに接続されている。なお、図1では、図を見やすくするために、集積回路100の本来の機能を実現する回路の記載を省略している。 The integrated circuit 100 includes, for example, interface signal terminals TCK (Test ClocK), TMS (Test Mode Reselect), TRST (Test Data Re In), TDI (Test Data In), and TDO (Test Data Out) is provided. For example, the terminals TCK, TMS, TRST, TDI, and TDO of the integrated circuit 100 are connected to the terminals TCK, TMS, TRST, TDI, and TDO of the test control device 20 through the signal lines TCK, TMS, TRST, TDI, and TDO. Yes. In FIG. 1, the description of a circuit that realizes the original function of the integrated circuit 100 is omitted to make the drawing easier to see.

 例えば、集積回路100は、テスト回路20の一部として、TAPコントローラ110、命令レジスタ120、データレジスタ130、セレクタ150、セレクタ制御回路160、フリップフロップ170およびループバック制御回路180を有している。以下、命令レジスタ120をIR(Instruction Register)120とも称し、データレジスタ130をDR(Data Register)130とも称する。 For example, the integrated circuit 100 includes a TAP controller 110, an instruction register 120, a data register 130, a selector 150, a selector control circuit 160, a flip-flop 170, and a loopback control circuit 180 as a part of the test circuit 20. Hereinafter, the instruction register 120 is also referred to as IR (Instruction-Register) 120, and the data register 130 is also referred to as DR (Data-Register) 130.

 端子TCKには、インターフェース信号の1つであるテストクロックTCKが伝達される。テストクロックTCKは、例えば、集積回路100内のステートマシーンの動作を同期させるクロック信号(テスト用のクロック)である。以下、テストクロックTCKを信号TCKとも称する。なお、図1では、図を見やすくするために、信号TCK等のクロックが伝達される信号線の一部の記載を省略している。 The test clock TCK, which is one of interface signals, is transmitted to the terminal TCK. The test clock TCK is, for example, a clock signal (test clock) that synchronizes the operation of the state machine in the integrated circuit 100. Hereinafter, the test clock TCK is also referred to as a signal TCK. In FIG. 1, in order to make the drawing easier to see, a part of a signal line to which a clock such as the signal TCK is transmitted is omitted.

 端子TMSには、インターフェース信号の1つであるテストモードセレクトTMSが伝達される。テストモードセレクトTMSは、TAPコントローラ110の状態遷移を制御するための信号である。すなわち、テストモードセレクトTMSは、テストモードを選択するための信号である。例えば、テストモードセレクトTMSは、テストクロックTCKの立ち上がりで読み込まれる。以下、テストモードセレクトTMSを信号TMSとも称する。 The test mode select TMS, which is one of interface signals, is transmitted to the terminal TMS. The test mode select TMS is a signal for controlling the state transition of the TAP controller 110. That is, the test mode select TMS is a signal for selecting a test mode. For example, the test mode select TMS is read at the rising edge of the test clock TCK. Hereinafter, test mode select TMS is also referred to as signal TMS.

 端子TRSTには、インターフェース信号の1つであるテストリセットTRSTが伝達される。テストリセットTRSTは、TAPコントローラ110のステートマシーンをリセットする信号である。以下、テストリセットTRSTを信号TRSTとも称する。なお、IEEE1149.1では、テストリセットTRSTは、オプション信号である。 A test reset TRST, which is one of interface signals, is transmitted to the terminal TRST. The test reset TRST is a signal for resetting the state machine of the TAP controller 110. Hereinafter, the test reset TRST is also referred to as a signal TRST. In IEEE1149.1, the test reset TRST is an option signal.

 端子TDIには、インターフェース信号の1つであるデータTDIが伝達される。データTDIは、例えば、集積回路100にスキャンインされるデータである。例えば、データTDIは、テストクロックTCKの立ち上がりで読み込まれる。以下、データTDIを、スキャンインデータTDIあるいは信号TDIとも称する。 The data TDI, which is one of interface signals, is transmitted to the terminal TDI. The data TDI is data scanned into the integrated circuit 100, for example. For example, the data TDI is read at the rising edge of the test clock TCK. Hereinafter, the data TDI is also referred to as scan-in data TDI or signal TDI.

 端子TDOには、インターフェース信号の1つであるデータTDOが伝達される。データTDOは、例えば、集積回路100からのスキャンアウトデータである。例えば、データTDOは、テストクロックTCKの立ち下がりで出力される。以下、データTDOを、スキャンアウトデータTDOあるいは信号TDOとも称する。 The data TDO which is one of the interface signals is transmitted to the terminal TDO. The data TDO is, for example, scan-out data from the integrated circuit 100. For example, the data TDO is output at the falling edge of the test clock TCK. Hereinafter, the data TDO is also referred to as scan-out data TDO or a signal TDO.

 TAPコントローラ110は、信号TCK、TMS、TRSTにより制御される同期式のステートマシーンである。例えば、TAPコントローラ110は、信号TCK、TMS、TRSTをテスト制御装置200から受け、命令レジスタ120やデータレジスタ130を制御するための制御信号を出力する。例えば、TAPコントローラ110は、テストクロックTCKの立ち上がりエッジで、テストモードセレクトTMSの値に応じた状態遷移を実行する。各状態に応じて、JTAG回路(集積回路100に含まれる部分のテスト回路20)の動作が決定される。 The TAP controller 110 is a synchronous state machine controlled by signals TCK, TMS, and TRST. For example, the TAP controller 110 receives signals TCK, TMS, and TRST from the test control apparatus 200 and outputs control signals for controlling the instruction register 120 and the data register 130. For example, the TAP controller 110 executes a state transition according to the value of the test mode select TMS at the rising edge of the test clock TCK. In accordance with each state, the operation of the JTAG circuit (the test circuit 20 included in the integrated circuit 100) is determined.

 命令レジスタ120は、例えば、スキャン動作させるデータレジスタ130(データレジスタ134、136、138、138のいずれか)の選択に使用される。例えば、命令レジスタ120は、信号CAPTUREIR、UPDATATEIR、IRACK、IRBCK等の制御信号をTAPコントローラ110から受け、命令コード等を示すデータTDIをテスト制御装置200から受ける。そして、命令レジスタ120は、例えば、セットされた命令コードを出力する。ここで、例えば、信号IRACK、IRBCKは、スキャンシフトを実行するためのスキャンクロックである。以下、信号IRACK、IRBCKをスキャンクロックIRACK、IRBCKとも称する。 The instruction register 120 is used, for example, for selecting a data register 130 (any one of the data registers 134, 136, 138, and 138) to be scanned. For example, the instruction register 120 receives control signals such as signals CAPTUREIR, UPDATATEIR, IRACK, and IRBCK from the TAP controller 110, and receives data TDI indicating an instruction code and the like from the test control device 200. Then, the instruction register 120 outputs a set instruction code, for example. Here, for example, the signals IRACK and IRBCK are scan clocks for executing scan shift. Hereinafter, the signals IRACK and IRBCK are also referred to as scan clocks IRACK and IRBCK.

 例えば、命令レジスタ120は、スキャンシフトが実行されるシフトレジスタと、シフトレジスタの値を保持するフリップフロップとを有している。すなわち、命令レジスタ120は、スキャン可能なレジスタである。例えば、TAPコントローラ110の状態がCapture IR状態に遷移したとき、ユーザ定義の固定値がシフトレジスタにセットされる。 For example, the instruction register 120 includes a shift register in which scan shift is executed and a flip-flop that holds the value of the shift register. That is, the instruction register 120 is a scannable register. For example, when the state of the TAP controller 110 transitions to the Capture IR state, a user-defined fixed value is set in the shift register.

 また、TAPコントローラ110の状態がShift IR状態に遷移したとき、データTDIの値がシフトレジスタにシフト動作により順次伝達される。これにより、命令コード等がシフトレジスタにセットされる。そして、TAPコントローラ110の状態がUpdate IR状態に遷移したとき、シフトレジスタの値がフリップフロップにセットされ、フリップフロップの値が集積回路100の内部に伝達される。 Also, when the state of the TAP controller 110 transitions to the Shift IR state, the value of the data TDI is sequentially transmitted to the shift register by a shift operation. Thereby, an instruction code or the like is set in the shift register. When the state of the TAP controller 110 transitions to the Update IR state, the value of the shift register is set in the flip-flop, and the value of the flip-flop is transmitted to the integrated circuit 100.

 なお、この実施形態の命令レジスタ120には、IEEE1149.1に規定された必須の命令の他に、ユーザ定義の命令もセット可能である。例えば、この実施形態では、URスキャンイン命令(例えば、IR=1100)やループバック付きURスキャンイン命令(例えば、IR=1101)がユーザ定義の命令として実装されている。ループバック付きURスキャンイン命令は、例えば、スキャンインデータTDIがデータレジスタ138に書き込まれている期間に、スキャンインデータTDIの折り返しデータを集積回路100の端子TDOに出力させる命令である。 Note that in addition to the essential instructions defined in IEEE1149.1, user-defined instructions can be set in the instruction register 120 of this embodiment. For example, in this embodiment, a UR scan-in instruction (for example, IR = 1100) and a UR scan-in instruction with loopback (for example, IR = 1110) are implemented as user-defined instructions. The UR scan-in instruction with loopback is, for example, an instruction for outputting the return data of the scan-in data TDI to the terminal TDO of the integrated circuit 100 during the period when the scan-in data TDI is written in the data register 138.

 データレジスタ130は、例えば、TAPコントローラ110および命令レジスタ120からの制御信号等に基づいて、スキャン動作を実行する。例えば、データレジスタ130は、スキャン可能な複数のデータレジスタ132、134、136、138と、データレジスタ制御回路140と、セレクタ142とを有している。 The data register 130 performs a scan operation based on control signals from the TAP controller 110 and the instruction register 120, for example. For example, the data register 130 includes a plurality of scanable data registers 132, 134, 136, 138, a data register control circuit 140, and a selector 142.

 データレジスタ132は、バウンダリスキャンレジスタである。以下、データレジスタ132をバウンダリスキャンレジスタ132あるいはBS(Boundary Scan register)132とも称する。BS132は、例えば、集積回路100の各端子に設けられたシフトレジスタである。例えば、テスト制御装置200は、BS132をスキャン動作させることにより、集積回路100の各端子に対する読み書きを実行できる。 The data register 132 is a boundary scan register. Hereinafter, the data register 132 is also referred to as a boundary scan register 132 or BS (BoundaryBoundScan register) 132. The BS 132 is a shift register provided at each terminal of the integrated circuit 100, for example. For example, the test control apparatus 200 can perform reading and writing with respect to each terminal of the integrated circuit 100 by causing the BS 132 to perform a scanning operation.

 データレジスタ134は、デバイス(例えば、集積回路100)のID(IDentification)等の情報を保持するレジスタである。以下、データレジスタ134をIDCODEレジスタ134あるいはIDCODE(ID CODE register)134とも称する。 The data register 134 is a register that holds information such as an ID (IDentification) of a device (for example, the integrated circuit 100). Hereinafter, the data register 134 is also referred to as an IDCODE register 134 or IDCODE (ID CODE register) 134.

 データレジスタ136は、バイパスレジスタである。以下、データレジスタ136をバイパスレジスタ136あるいはBYPS(BYPaSs register)136とも称する。BYPS136は、例えば、1段のシフトレジスタである。例えば、BYPS136は、データTDIを順次受け、受けたデータTDIをデータTDOとして順次出力する。例えば、テスト制御装置200は、複数のデバイスをスキャンチェーンに接続する際に、アクセス対象でないデバイスをBYPS136でバイパスすることにより、スキャン動作によるアクセスを高速に実行できる。 The data register 136 is a bypass register. Hereinafter, the data register 136 is also referred to as a bypass register 136 or BYPS (BYPaSs register) 136. The BYPS 136 is, for example, a one-stage shift register. For example, the BYPS 136 sequentially receives the data TDI and sequentially outputs the received data TDI as data TDO. For example, when connecting a plurality of devices to the scan chain, the test control apparatus 200 can perform access by the scan operation at high speed by bypassing a device that is not an access target by the BYPS 136.

 データレジスタ138は、ユーザ定義のレジスタである。以下、データレジスタ138をユーザレジスタ138あるいはUR(User Register)136とも称する。UR136は、例えば、集積回路100の内部にスキャン動作でアクセスする際に使用される。 The data register 138 is a user-defined register. Hereinafter, the data register 138 is also referred to as a user register 138 or a UR (User Register) 136. The UR 136 is used, for example, when accessing the inside of the integrated circuit 100 by a scanning operation.

 データレジスタ制御回路140は、例えば、信号SHIFTDR等の制御信号をTAPコントローラ110から受け、命令コード等を示す制御信号を命令レジスタ120から受ける。そして、データレジスタ制御回路140は、TAPコントローラ110および命令レジスタ120から受けた制御信号に基づいて、スキャン動作を実行するデータレジスタ132-138にスキャンクロックを供給するとともに、セレクタ142を制御する。 The data register control circuit 140 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code or the like from the instruction register 120, for example. The data register control circuit 140 supplies the scan clock to the data registers 132 to 138 that execute the scan operation and controls the selector 142 based on the control signals received from the TAP controller 110 and the instruction register 120.

 例えば、UR138がスキャン動作を実行する場合、データレジスタ制御回路140は、スキャンクロックURACK、URBCK(以下、信号URACK、URBCKとも称する)をUR138に供給する。また、データレジスタ制御回路140は、UR138の出力信号(以下、スキャンアウト信号とも称する)がセレクタ150に伝達されるように、セレクタ142を制御する。 For example, when the UR 138 performs a scan operation, the data register control circuit 140 supplies the scan clocks URACK and URBCK (hereinafter also referred to as signals URACK and URBCK) to the UR 138. Further, the data register control circuit 140 controls the selector 142 so that an output signal of the UR 138 (hereinafter also referred to as a scan-out signal) is transmitted to the selector 150.

 セレクタ142は、データレジスタ制御回路140により制御され、各データレジスタ132-138のスキャンアウト信号のいずれかを選択する。例えば、セレクタ142は、UR138がスキャン動作を実行する場合、UR138のスキャンアウト信号を選択し、選択したスキャンアウト信号をセレクタ150に出力する。なお、セレクタ142の状態として、各データレジスタ132-138の出力信号のいずれも選択していない状態が存在してもよい。 The selector 142 is controlled by the data register control circuit 140 and selects one of the scan-out signals of the data registers 132-138. For example, when the UR 138 performs a scan operation, the selector 142 selects a scan-out signal of the UR 138 and outputs the selected scan-out signal to the selector 150. As a state of the selector 142, there may be a state where none of the output signals of the data registers 132-138 is selected.

 セレクタ制御回路160は、例えば、信号SHIFTDR等の制御信号をTAPコントローラ110から受け、命令コード等を示す制御信号を命令レジスタ120から受ける。そして、セレクタ制御回路160は、TAPコントローラ110および命令レジスタ120から受けた制御信号に基づいて、セレクタ150を制御する。 The selector control circuit 160 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code or the like from the instruction register 120, for example. The selector control circuit 160 controls the selector 150 based on control signals received from the TAP controller 110 and the instruction register 120.

 例えば、セレクタ制御回路160は、IEEE1149.1に規定された動作を実現するための選択制御に加えて、所定の条件を満たしたときにサイクルでフリップフロップ170の出力信号LBDOを選択するようにセレクタ150を制御する。所定の条件は、例えば、IR120からの制御信号がループバック付きURスキャンイン命令を示し(例えば、IR=1101)、TAPコントローラ110からの制御信号SHIFTDRが前のサイクルでアサートされているときである。 For example, the selector control circuit 160 selects the output signal LBDO of the flip-flop 170 in a cycle when a predetermined condition is satisfied, in addition to the selection control for realizing the operation specified in IEEE1149.1. 150 is controlled. The predetermined condition is, for example, when the control signal from the IR 120 indicates a UR scan-in instruction with loopback (for example, IR = 1101) and the control signal SHIFTDR from the TAP controller 110 is asserted in the previous cycle. .

 セレクタ150は、例えば、セレクタ制御回路160により制御され、IR120、DR130(より詳細には、セレクタ142)およびフリップフロップ170のそれぞれの出力信号(スキャンアウト信号)のいずれかをデータTDOとして選択する。そして、セレクタ150は、データTDO(選択したスキャンアウト信号)を端子TDOを介して集積回路100の外部に出力する。 The selector 150 is controlled by the selector control circuit 160, for example, and selects any one of the output signals (scanout signals) of the IR 120, the DR 130 (more specifically, the selector 142) and the flip-flop 170 as the data TDO. Then, the selector 150 outputs the data TDO (selected scan-out signal) to the outside of the integrated circuit 100 via the terminal TDO.

 例えば、セレクタ150は、IR120からの制御信号がURスキャンイン命令を示し(IR=1100)、TAPコントローラ110からの制御信号SHIFTDRがアサートされているとき、DR130の出力信号を選択する。また、例えば、セレクタ150は、IR120からの制御信号がループバック付きURスキャンイン命令を示し(IR=1101)、TAPコントローラ110からの制御信号SHIFTDRがアサートされているとき、次のサイクルで、信号LBDOを選択する。信号LBDOは、フリップフロップ170の出力信号であり、データTDIの折り返しデータである。 For example, the selector 150 selects the output signal of the DR 130 when the control signal from the IR 120 indicates a UR scan-in command (IR = 1100) and the control signal SHIFTDR from the TAP controller 110 is asserted. Further, for example, when the control signal from the IR 120 indicates the UR scan-in instruction with loopback (IR = 1110) and the control signal SHIFTDR from the TAP controller 110 is asserted, the selector 150 performs the signal in the next cycle. Select LBDO. The signal LBDO is an output signal of the flip-flop 170, and is loopback data of the data TDI.

 なお、セレクタ150の状態として、IR120、DR130およびフリップフロップ170のそれぞれの出力信号のいずれも選択していない状態が存在してもよい。 It should be noted that as the state of the selector 150, there may be a state in which none of the output signals of the IR 120, the DR 130, and the flip-flop 170 is selected.

 ループバック制御回路180は、例えば、信号SHIFTDR等の制御信号をTAPコントローラ110から受け、命令コード等を示す制御信号を命令レジスタ120から受ける。そして、ループバック制御回路180は、TAPコントローラ110および命令レジスタ120から受けた制御信号に基づいて、フリップフロップ170のスキャンシフトを制御する。 The loopback control circuit 180 receives a control signal such as a signal SHIFTDR from the TAP controller 110 and receives a control signal indicating an instruction code and the like from the instruction register 120, for example. The loopback control circuit 180 controls the scan shift of the flip-flop 170 based on the control signals received from the TAP controller 110 and the instruction register 120.

 例えば、ループバック制御回路180は、ループバック付きURスキャンイン命令がセットされ、制御信号SHIFTDRがアサートされたとき、次のサイクルで、フリップフロップ170にスキャンクロックを供給する。これにより、フリップフロップ170のスキャンシフトが制御される。 For example, when the UR scan-in instruction with loopback is set and the control signal SHIFTDR is asserted, the loopback control circuit 180 supplies the scan clock to the flip-flop 170 in the next cycle. Thereby, the scan shift of the flip-flop 170 is controlled.

 フリップフロップ170は、スキャンインデータを折り返しデータとして、テスト用のクロックに同期して出力するフリップフロップの一例である。フリップフロップ170は、例えば、1ビット長のスキャンシフトレジスタである。例えば、フリップフロップ170は、スキャンクロック(例えば、信号URACK、URBCKと同一または同様のクロック)に同期して動作するD型フリップフロップ回路である。フリップフロップ170は、データTDIを端子TDIを介してテスト制御装置200から順次受け、受けたデータTDIを信号LBDOとしてセレクタ150に順次出力する。 The flip-flop 170 is an example of a flip-flop that outputs scan-in data as loopback data in synchronization with a test clock. The flip-flop 170 is, for example, a 1-bit long scan shift register. For example, the flip-flop 170 is a D-type flip-flop circuit that operates in synchronization with a scan clock (for example, a clock that is the same as or similar to the signals URACK and URBCK). The flip-flop 170 sequentially receives the data TDI from the test control device 200 via the terminal TDI, and sequentially outputs the received data TDI to the selector 150 as a signal LBDO.

 このように、集積回路100内に設けられたフリップフロップ170は、データTDIの折り返しデータ(データTDO)として、信号LBDOをセレクタ150、端子TDO等を介してテスト制御装置200に出力する。 As described above, the flip-flop 170 provided in the integrated circuit 100 outputs the signal LBDO to the test control device 200 via the selector 150, the terminal TDO, and the like as the data TDI folded data (data TDO).

 システム制御装置300は、例えば、制御バスにより、テスト制御装置200に接続されている。例えば、システム制御装置300は、制御バスおよびテスト制御装置200を介して、集積回路100内のレジスタ(例えば、IR120、DR130等)へのリード/ライト要求やデータ転送を実行する。 The system control device 300 is connected to the test control device 200 by, for example, a control bus. For example, the system control device 300 executes a read / write request and data transfer to a register (for example, IR 120, DR 130, etc.) in the integrated circuit 100 via the control bus and the test control device 200.

 テスト制御装置200は、スキャンインデータを第1信号線(例えば、信号線TDI)を介して集積回路100に供給し、スキャンアウトデータを集積回路100から第2信号線(例えば、信号線TDO)を介して受けるテスト制御部の一例である。例えば、テスト制御装置200は、システム制御装置300からの命令に応じて、集積回路100内のテスト回路を制御する。テスト制御装置200は、信号制御回路210および判定回路220を有している。 The test control apparatus 200 supplies scan-in data to the integrated circuit 100 via a first signal line (for example, signal line TDI), and scan-out data from the integrated circuit 100 to a second signal line (for example, signal line TDO). It is an example of the test control part received via. For example, the test control device 200 controls the test circuit in the integrated circuit 100 in accordance with a command from the system control device 300. The test control device 200 includes a signal control circuit 210 and a determination circuit 220.

 信号制御回路210は、スキャンインデータが集積回路で折り返されるように集積回路を制御し、スキャンインデータを第1信号線を介して集積回路に供給する信号制御部の一例である。例えば、信号制御回路210は、スキャンインデータTDIが集積回路100で折り返されるように、信号TCK、TMS、TRST、TDIを用いて集積回路100を制御する。 The signal control circuit 210 is an example of a signal control unit that controls the integrated circuit so that the scan-in data is folded back by the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line. For example, the signal control circuit 210 controls the integrated circuit 100 using the signals TCK, TMS, TRST, and TDI so that the scan-in data TDI is turned back by the integrated circuit 100.

 例えば、信号制御回路210は、システム制御装置300からの要求に応じて、信号TCK、TMS、TRST、TDIを信号線TCK、TMS、TRST、TDIを介して集積回路100に出力する。また、信号制御回路210は、信号TDO(スキャンアウトデータTDO)を集積回路100から信号線TDOを介して受ける。 For example, the signal control circuit 210 outputs signals TCK, TMS, TRST, and TDI to the integrated circuit 100 via the signal lines TCK, TMS, TRST, and TDI in response to a request from the system control device 300. Further, the signal control circuit 210 receives the signal TDO (scan-out data TDO) from the integrated circuit 100 via the signal line TDO.

 さらに、信号制御回路210は、信号TDI(スキャンインデータTDI)および遅延有効信号DENを判定回路220に出力し、不一致信号ESIGを判定回路220から受ける。なお、信号制御回路210は、例えば、ループバック付きURスキャンイン命令がIR120にセットされている場合、UR138へのスキャンインデータTDIを出力している間、遅延有効信号DENをアサートする。 Furthermore, the signal control circuit 210 outputs the signal TDI (scan-in data TDI) and the delay valid signal DEN to the determination circuit 220 and receives the mismatch signal ESIG from the determination circuit 220. For example, when the UR scan-in instruction with loopback is set in the IR 120, the signal control circuit 210 asserts the delay valid signal DEN while outputting the scan-in data TDI to the UR 138.

 判定回路220は、スキャンインデータとスキャンインデータの折り返しデータとを比較して、折り返しデータが正しいか否かを判定する判定部の一例である。例えば、判定回路220は、スキャンインデータTDIおよび遅延有効信号DENを信号制御回路210から受け、スキャンインデータTDIの折り返しデータとしてデータTDOを集積回路100から信号線TDOを介して受ける。そして、判定回路220は、スキャンインデータTDIと折り返しデータTDOとを比較して、折り返しデータTDOが正しいか否かを判定する。 The determination circuit 220 is an example of a determination unit that compares the scan-in data with the return data of the scan-in data to determine whether the return data is correct. For example, the determination circuit 220 receives the scan-in data TDI and the delay valid signal DEN from the signal control circuit 210, and receives data TDO from the integrated circuit 100 through the signal line TDO as the return data of the scan-in data TDI. Then, the determination circuit 220 compares the scan-in data TDI and the return data TDO to determine whether the return data TDO is correct.

 例えば、判定回路220は、遅延有効信号DENに基づく判定期間において、スキャンインデータTDIと折り返しデータTDOとが一致していないとき(折り返しデータTDOが異常な場合)、不一致信号ESIGをアサートする。すなわち、不一致信号ESIGは、スキャンインデータTDIと折り返しデータTDOとが一致している場合(折り返しデータTDOが正しい場合)、ネゲートされる。 For example, the determination circuit 220 asserts the mismatch signal ESIG when the scan-in data TDI and the return data TDO do not match in the determination period based on the delay valid signal DEN (when the return data TDO is abnormal). That is, the mismatch signal ESIG is negated when the scan-in data TDI and the return data TDO match (when the return data TDO is correct).

 例えば、テスト制御装置200は、スキャンインデータTDIと折り返しデータTDOとが不一致の場合、端子TCK、TMS、TRST、TDI、TDO、信号線TCK、TMS、TRST、TDI、TDO等のテスト用インターフェースに異常があると判定する。なお、スキャンインデータTDIの折り返しデータTDOは、例えば、UR138にスキャンインデータTDIが書き込まれている期間に、判定回路220に到達する。 For example, when the scan-in data TDI and the loopback data TDO do not match, the test control device 200 uses a test interface such as terminals TCK, TMS, TRST, TDI, TDO, signal lines TCK, TMS, TRST, TDI, TDO, etc. It is determined that there is an abnormality. Note that the return data TDO of the scan-in data TDI reaches the determination circuit 220 during the period when the scan-in data TDI is written in the UR 138, for example.

 すなわち、判定回路220は、スキャンインデータTDIが集積回路200内のデータレジスタに書き込まれる期間に折り返しデータTDOを受け、折り返しデータTDOが正しいか否かを判定する。このため、判定回路220は、UR138に書き込まれた値(スキャンインデータTDIの値)が読み出される前に、スキャンインデータTDIの折り返しデータTDOが正しいか否かを判定できる。したがって、テスト制御装置200は、テスト用インターフェースのエラー検出のための端子をTAP(端子TCK、TMS、TRST、TDI、TDO)から追加することなく、テスト用インターフェースのエラー検出の時間を短縮できる。 That is, the determination circuit 220 receives the return data TDO during a period in which the scan-in data TDI is written to the data register in the integrated circuit 200, and determines whether the return data TDO is correct. Therefore, the determination circuit 220 can determine whether or not the return data TDO of the scan-in data TDI is correct before the value written in the UR 138 (the value of the scan-in data TDI) is read. Therefore, the test control apparatus 200 can shorten the error detection time of the test interface without adding a terminal for error detection of the test interface from the TAP (terminals TCK, TMS, TRST, TDI, TDO).

 このように、集積回路100のテスト回路20は、テスト制御装置200、TAPコントローラ110、IR120、DR130、セレクタ150、セレクタ制御回路160、フリップフロップ170およびループバック制御回路180を有している。なお、テスト回路20は、集積回路100内のテスト回路を除いて定義されてもよい。すなわち、テスト制御装置200もテスト回路20の一態様である。 As described above, the test circuit 20 of the integrated circuit 100 includes the test control device 200, the TAP controller 110, the IR 120, the DR 130, the selector 150, the selector control circuit 160, the flip-flop 170, and the loop back control circuit 180. Note that the test circuit 20 may be defined except for the test circuit in the integrated circuit 100. That is, the test control apparatus 200 is also an aspect of the test circuit 20.

 また、集積回路100のテスト回路20および情報処理装置10の構成は、この例に限定されない。例えば、システム制御装置300は、テスト制御装置200内に設けられてもよい。あるいは、システム制御装置300は、情報処理装置10の外部に設けられてもよい。 Further, the configurations of the test circuit 20 and the information processing apparatus 10 of the integrated circuit 100 are not limited to this example. For example, the system control device 300 may be provided in the test control device 200. Alternatively, the system control apparatus 300 may be provided outside the information processing apparatus 10.

 また、例えば、信号伝送の時間的制約を満足する場合、フリップフロップ170およびループバック制御回路180は、省かれてもよい。この場合、セレクタ150は、例えば、信号LBDOの代わりに、信号TDIを端子TDIから受ける。あるいは、セレクタ142、150は、フリップフロップ170等が省かれた場合、BYPS136の出力信号を、スキャンインデータTDIの折り返しデータTDOとしてテスト制御装置200に出力してもよい。 Also, for example, when the signal transmission time constraint is satisfied, the flip-flop 170 and the loopback control circuit 180 may be omitted. In this case, for example, the selector 150 receives the signal TDI from the terminal TDI instead of the signal LBDO. Alternatively, the selectors 142 and 150 may output the output signal of the BYPS 136 to the test control apparatus 200 as the return data TDO of the scan-in data TDI when the flip-flop 170 or the like is omitted.

 また、例えば、セレクタ制御回路160は、集積回路100内の命令レジスタ120以外のレジスタにセットされた値に基づいて、スキャンインデータTDIの折り返しデータTDO(例えば、信号LBDO)を端子TDOに出力するか否かを判定してもよい。あるいは、セレクタ制御回路160は、集積回路100に供給される入力信号に基づいて、スキャンインデータTDIの折り返しデータTDO(例えば、信号LBDO)を端子TDOに出力するか否かを判定してもよい。 Further, for example, the selector control circuit 160 outputs the loopback data TDO (for example, the signal LBDO) of the scan-in data TDI to the terminal TDO based on the value set in a register other than the instruction register 120 in the integrated circuit 100. It may be determined whether or not. Alternatively, the selector control circuit 160 may determine whether to output the loopback data TDO (for example, the signal LBDO) of the scan-in data TDI to the terminal TDO based on the input signal supplied to the integrated circuit 100. .

 図2は、図1に示した判定回路220の一例を示している。判定回路220は、例えば、遅延回路222および一致判定回路224を有している。 FIG. 2 shows an example of the determination circuit 220 shown in FIG. The determination circuit 220 includes, for example, a delay circuit 222 and a coincidence determination circuit 224.

 遅延回路222は、信号制御回路210から受けたスキャンインデータTDIを、テスト用のクロック(テストクロックTCK)に同期して所定のサイクル数分遅延させて出力するタイミング調整部の一例である。例えば、遅延回路222は、テストクロックTCK、スキャンインデータTDIおよび遅延有効信号DENを信号制御回路210から受け、スキャンインデータTDIおよび遅延有効信号DENを遅延させる。そして、遅延回路222は、信号TDI、DENを遅延させた信号DENdd、TDIddを一致判定回路224に出力する。 The delay circuit 222 is an example of a timing adjustment unit that outputs the scan-in data TDI received from the signal control circuit 210 after being delayed by a predetermined number of cycles in synchronization with the test clock (test clock TCK). For example, the delay circuit 222 receives the test clock TCK, the scan-in data TDI, and the delay valid signal DEN from the signal control circuit 210, and delays the scan-in data TDI and the delay valid signal DEN. Then, the delay circuit 222 outputs the signals DENdd and TDIdd obtained by delaying the signals TDI and DEN to the coincidence determination circuit 224.

 信号TDI、DENの遅延量は、例えば、テスト制御装置200から出力されたスキャンインデータTDIがフリップフロップ170、セレクタ150等を介してテスト制御装置200に到達するまでの時間に対応する遅延量である。例えば、遅延回路222は、フリップフロップDFF1、DFF2、DFF3、DFF4を有している。フリップフロップDFF1-DFF4は、例えば、テストクロックTCKに同期して動作するD型フリップフロップ回路である。 The delay amounts of the signals TDI and DEN are, for example, delay amounts corresponding to the time until the scan-in data TDI output from the test control device 200 reaches the test control device 200 via the flip-flop 170, the selector 150, and the like. is there. For example, the delay circuit 222 includes flip-flops DFF1, DFF2, DFF3, and DFF4. The flip-flops DFF1 to DFF4 are, for example, D-type flip-flop circuits that operate in synchronization with the test clock TCK.

 フリップフロップDFF1の入力端子Dは遅延有効信号DENを受け、フリップフロップDFF1の出力端子QはフリップフロップDFF2の入力端子Dに接続されている。すなわち、フリップフロップDFF1は、遅延有効信号DENを遅延させた信号DENdを、フリップフロップDFF2の入力端子Dに出力する。フリップフロップDFF2の出力端子Qは、一致判定回路224の論理積回路AND1の入力に接続されている。すなわち、フリップフロップDFF2は、信号DENdを遅延させた信号DENddを、論理積回路AND1に出力する。 The input terminal D of the flip-flop DFF1 receives the delay valid signal DEN, and the output terminal Q of the flip-flop DFF1 is connected to the input terminal D of the flip-flop DFF2. That is, the flip-flop DFF1 outputs the signal DENd obtained by delaying the delay valid signal DEN to the input terminal D of the flip-flop DFF2. The output terminal Q of the flip-flop DFF2 is connected to the input of the AND circuit AND1 of the coincidence determination circuit 224. That is, the flip-flop DFF2 outputs the signal DENdd obtained by delaying the signal DENd to the AND circuit AND1.

 フリップフロップDFF3の入力端子DはスキャンインデータTDIを受け、フリップフロップDFF3の出力端子QはフリップフロップDFF4の入力端子Dに接続されている。すなわち、フリップフロップDFF3は、スキャンインデータTDIを遅延させた信号TDIdを、フリップフロップDFF4の入力端子Dに出力する。フリップフロップDFF4の出力端子Qは、一致判定回路224の排他的論理和回路EXOR1の入力に接続されている。すなわち、フリップフロップDFF4は、信号TDIdを遅延させた信号TDIddを、排他的論理和回路EXOR1に出力する。 The input terminal D of the flip-flop DFF3 receives the scan-in data TDI, and the output terminal Q of the flip-flop DFF3 is connected to the input terminal D of the flip-flop DFF4. That is, the flip-flop DFF3 outputs a signal TDId obtained by delaying the scan-in data TDI to the input terminal D of the flip-flop DFF4. The output terminal Q of the flip-flop DFF4 is connected to the input of the exclusive OR circuit EXOR1 of the coincidence determination circuit 224. That is, the flip-flop DFF4 outputs the signal TDIdd obtained by delaying the signal TDId to the exclusive OR circuit EXOR1.

 一致判定回路224は、スキャンインデータTDIと折り返しデータTDOとを比較する比較部の一例である。例えば、一致判定回路224は、スキャンインデータTDIの折り返しデータTDOを集積回路100から信号線TDO等を介して受け、テストクロックTCKを信号制御回路210から受ける。さらに、一致判定回路224は、遅延有効信号DENをフリップフロップ2段分遅延させた信号DENddと、スキャンインデータTDIをフリップフロップ2段分遅延させた信号TDIddとを、遅延回路222から受ける。 The coincidence determination circuit 224 is an example of a comparison unit that compares the scan-in data TDI and the return data TDO. For example, the coincidence determination circuit 224 receives the return data TDO of the scan-in data TDI from the integrated circuit 100 via the signal line TDO or the like, and receives the test clock TCK from the signal control circuit 210. Further, the coincidence determination circuit 224 receives from the delay circuit 222 a signal DENdd obtained by delaying the delay effective signal DEN by two stages of flip-flops and a signal TDIdd obtained by delaying the scan-in data TDI by two stages of flip-flops.

 そして、一致判定回路224は、遅延回路222から受けた信号DENdd(タイミング調整後の遅延有効信号DEN)がアサートされている期間、タイミング調整後のスキャンインデータTDIと折り返しデータTDOとを比較する。例えば、一致判定回路224は、タイミング調整後のスキャンインデータTDIと折り返しデータTDOとが不一致の場合、不一致信号ESIGをアサートする。この場合、テスト制御装置200は、テスト用インターフェースのエラーと判定する。また、一致判定回路224は、タイミング調整後のスキャンインデータTDIと折り返しデータTDOとが一致している場合、不一致信号ESIGをネゲートする。 Then, the coincidence determination circuit 224 compares the scan-in data TDI after timing adjustment with the return data TDO during the period when the signal DENdd (delay effective signal DEN after timing adjustment) received from the delay circuit 222 is asserted. For example, the coincidence determination circuit 224 asserts the disagreement signal ESIG when the scan-in data TDI after the timing adjustment does not coincide with the return data TDO. In this case, the test control apparatus 200 determines that there is an error in the test interface. Further, the coincidence determination circuit 224 negates the non-coincidence signal ESIG when the scan-in data TDI after the timing adjustment coincides with the return data TDO.

 例えば、一致判定回路224は、フリップフロップDFF5、排他的論理和回路EXOR1および論理積回路AND1を有している。フリップフロップDFF5は、例えば、テストクロックTCKに同期して動作するD型フリップフロップ回路である。フリップフロップDFF5の入力端子Dは折り返しデータTDOを受け、フリップフロップDFF5の出力端子Qは排他的論理和回路EXOR1の入力に接続されている。すなわち、フリップフロップDFF5は、折り返しデータTDOを遅延させた信号TDOdを、排他的論理和回路EXOR1に出力する。 For example, the coincidence determination circuit 224 includes a flip-flop DFF5, an exclusive OR circuit EXOR1, and an AND circuit AND1. The flip-flop DFF5 is, for example, a D-type flip-flop circuit that operates in synchronization with the test clock TCK. The input terminal D of the flip-flop DFF5 receives the return data TDO, and the output terminal Q of the flip-flop DFF5 is connected to the input of the exclusive OR circuit EXOR1. That is, the flip-flop DFF5 outputs a signal TDOd obtained by delaying the loopback data TDO to the exclusive OR circuit EXOR1.

 排他的論理和回路EXOR1は、信号TDIddと信号TDOdとの排他的論理和を演算し、演算結果を論理積回路AND1に出力する。例えば、排他的論理和回路EXOR1は、信号TDIddと信号TDOdとが一致している場合、論理値”0”の信号を論理積回路AND1に出力し、信号TDIddと信号TDOdとが不一致の場合、論理値”1”の信号を論理積回路AND1に出力する。 The exclusive OR circuit EXOR1 calculates the exclusive OR of the signal TDIdd and the signal TDOd and outputs the calculation result to the AND circuit AND1. For example, the exclusive OR circuit EXOR1 outputs a signal having a logical value “0” to the AND circuit AND1 when the signal TDIdd and the signal TDOd match, and when the signal TDIdd and the signal TDOd do not match, A signal having a logical value “1” is output to the AND circuit AND1.

 論理積回路AND1は、排他的論理和回路EXOR1の演算結果(信号TDIddと信号TDOdとの排他的論理和)と信号DENddとの論理積を演算し、演算結果を不一致信号ESIGとして信号制御回路210に出力する。例えば、論理積回路AND1は、信号DENddがネゲートされている場合、あるいは、信号TDIddと信号TDOdとが一致している場合、不一致信号ESIGをネゲートする。また、例えば、論理積回路AND1は、信号DENddがアサートされ、かつ、信号TDIddと信号TDOdとが不一致の場合、不一致信号ESIGをアサートする。 The AND circuit AND1 calculates a logical product of the operation result of the exclusive OR circuit EXOR1 (exclusive OR of the signal TDAdd and the signal TDOd) and the signal DENdd, and uses the operation result as the mismatch signal ESIG to the signal control circuit 210. Output to. For example, the AND circuit AND1 negates the mismatch signal ESIG when the signal DENdd is negated or when the signal TDidd and the signal TDOd match. In addition, for example, the AND circuit AND1 asserts the mismatch signal ESIG when the signal DENdd is asserted and the signal TDDD and the signal TDOd do not match.

 なお、判定回路220の構成は、この例に限定されない。例えば、図1に示したフリップフロップ170が省かれた場合、フリップフロップDFF1、DFF2の一方およびフリップフロップDFF3、DFF4の一方は、省かれてもよい。この場合、一致判定回路224は、遅延有効信号DENをフリップフロップ1段分遅延させた信号(信号DENd)と、スキャンインデータTDIをフリップフロップ1段分遅延させた信号(信号TDId)とを、遅延回路222から受ける。 Note that the configuration of the determination circuit 220 is not limited to this example. For example, when the flip-flop 170 shown in FIG. 1 is omitted, one of the flip-flops DFF1 and DFF2 and one of the flip-flops DFF3 and DFF4 may be omitted. In this case, the coincidence determination circuit 224 generates a signal (signal DENd) obtained by delaying the delay effective signal DEN by one flip-flop and a signal (signal TDId) obtained by delaying the scan-in data TDI by one flip-flop. Received from delay circuit 222.

 図3は、図1に示したTAPコントローラ110の状態遷移の一例を示している。図3では、テストクロックTCKの立ち上がり時のテストモードセレクトTMSの状態を、単に、テストモードセレクトTMSの状態と称して説明する。 FIG. 3 shows an example of state transition of the TAP controller 110 shown in FIG. In FIG. 3, the state of the test mode select TMS when the test clock TCK rises will be simply referred to as the state of the test mode select TMS.

 Test Logic Reset状態ST1は、テスト論理は使用不可で、システム論理の通常動作が使用可能な状態である。例えば、信号TRSTがアサートされることにより、TAPコントローラ110の状態は、状態ST1に戻る。また、テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Run Test Idle状態ST2に遷移する。なお、テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、状態ST1に維持される。 The Test Logic Reset state ST1 is a state in which the test logic cannot be used and the normal operation of the system logic can be used. For example, when the signal TRST is asserted, the state of the TAP controller 110 returns to the state ST1. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Run Test Idle state ST2. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 is maintained at the state ST1.

 Run Test Idle状態ST2は、内蔵テストの実行状態またはスキャン動作中(スキャンオペレーション間)の中間状態である。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、状態ST2に維持される。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Select DR Scan状態ST3に遷移する。 Run Test Idle state ST2 is an internal test execution state or an intermediate state during a scan operation (between scan operations). When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 is maintained in the state ST2. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Select DR Scan state ST3.

 Select DR Scan状態ST3では、データレジスタ130のスキャンシーケンスが選択される。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Capture DR状態ST5に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Select IR Scan状態ST4に遷移する。 In the Select DR Scan state ST3, the scan sequence of the data register 130 is selected. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Capture DR state ST5. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Select IR Scan state ST4.

 Select IR Scan状態ST4では、命令レジスタ120のスキャンシーケンスが選択される。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Capture IR状態ST11に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Test Logic Reset状態ST1に遷移する。 In the Select IR Scan state ST4, the scan sequence of the instruction register 120 is selected. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Capture IR state ST11. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Test Logic Reset state ST1.

 Capture DR状態ST5では、データレジスタ130のシフトレジスタに集積回路100の内部状態がセットされる。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Shift DR状態ST6に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit DR状態ST7に遷移する。 In the Capture DR state ST5, the internal state of the integrated circuit 100 is set in the shift register of the data register 130. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Shift DR state ST6. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit DR state ST7.

 Shift DR状態ST6では、端子TDIと端子TDOとの間にデータレジスタ130が接続される。そして、データレジスタ130は、テストクロックTCKの立ち上がりに同期して、データを1ビットずつ端子TDOへシフトする。このように、データレジスタ130のスキャンシフトが実行される。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、状態ST6に維持される。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit DR状態ST7に遷移する。 In the Shift DR state ST6, the data register 130 is connected between the terminal TDI and the terminal TDO. The data register 130 shifts the data bit by bit to the terminal TDO in synchronization with the rising edge of the test clock TCK. Thus, the scan shift of the data register 130 is executed. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 is maintained in the state ST6. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit DR state ST7.

 Exit DR状態ST7では、スキャンを終了する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Pause DR状態ST8に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Updata DR状態ST10に遷移する。 In Exit DR state ST7, the scan is terminated. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Pause DR state ST8. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Updata DR state ST10.

 Pause DR状態ST8では、端子TDIと端子TDOとの間のシリアルパスにおけるスキャンシフト動作を休止する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、状態ST8に維持される。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit2 DR状態ST9に遷移する。 In Pause DR state ST8, the scan shift operation in the serial path between the terminal TDI and the terminal TDO is suspended. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 is maintained at the state ST8. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit2 DR state ST9.

 Exit2 DR状態ST9では、スキャンを終了する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Shift DR状態ST6に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Updata DR状態ST10に遷移する。 In Exit2 DR state ST9, the scan is terminated. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Shift DR state ST6. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Updata DR state ST10.

 Updata DR状態ST10では、データレジスタ130(例えば、データレジスタ132、134、136、138のいずれか)の値が集積回路100の内部に伝達される。なお、例えば、BS132が選択されている場合は、BS132の値が集積回路100の端子にセットされる。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Run Test Idle状態ST2に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Select DR Scan状態ST3に遷移する。 In the Updata DR state ST10, the value of the data register 130 (for example, any of the data registers 132, 134, 136, and 138) is transmitted to the integrated circuit 100. For example, when BS 132 is selected, the value of BS 132 is set to the terminal of integrated circuit 100. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Run Test Idle state ST2. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Select DR Scan state ST3.

 Capture IR状態ST11では、命令レジスタ120のシフトレジスタにデバイス(例えば、集積回路100)で定義された固定パターンがセットされる。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Shift IR状態ST12に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit IR状態ST13に遷移する。 In the Capture IR state ST11, a fixed pattern defined by the device (for example, the integrated circuit 100) is set in the shift register of the instruction register 120. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Shift IR state ST12. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit IR state ST13.

 Shift IR状態ST12では、端子TDIと端子TDOとの間に命令レジスタ120のシフトレジスタが接続される。そして、命令レジスタ120のシフトレジスタは、テストクロックTCKの立ち上がりに同期して、データを1ビットずつ端子TDOへシフトする。このように、命令レジスタ120のシフトレジスタのスキャンシフトが実行される。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、状態ST12に維持される。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit IR状態ST13に遷移する。 In the Shift IR state ST12, the shift register of the instruction register 120 is connected between the terminal TDI and the terminal TDO. The shift register of the instruction register 120 shifts the data bit by bit to the terminal TDO in synchronization with the rising edge of the test clock TCK. In this way, the scan shift of the shift register of the instruction register 120 is executed. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 is maintained at the state ST12. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit IR state ST13.

 Exit IR状態ST13では、スキャンを終了する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Pause IR状態ST14に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Updata IR状態ST16に遷移する。 In Exit IR state ST13, the scan is terminated. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Pause IR state ST14. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Updata IR state ST16.

 Pause IR状態ST14では、端子TDIと端子TDOとの間のシリアルパスにおけるスキャンシフト動作を休止する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、状態ST14に維持される。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Exit2 IR状態ST15に遷移する。 In Pause IR state ST14, the scan shift operation in the serial path between the terminal TDI and the terminal TDO is suspended. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 is maintained at the state ST14. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Exit2 IR state ST15.

 Exit2 IR状態ST15では、スキャンを終了する。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Shift IR状態ST12に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Updata IR状態ST16に遷移する。 In Exit2 IR state ST15, the scan is terminated. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Shift IR state ST12. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Updata IR state ST16.

 Updata IR状態ST16では、命令レジスタ120のシフトレジスタの値が命令レジスタ120のフリップフロップに保持される。すなわち、命令レジスタ120のシフトレジスタにスキャンインされたデータが命令レジスタ120のフリップフロップにラッチされる。命令レジスタ120のフリップフロップの値は、集積回路100の内部に伝達される。テストモードセレクトTMSの状態が論理値”0”の場合、TAPコントローラ110の状態は、Run Test Idle状態ST2に遷移する。テストモードセレクトTMSの状態が論理値”1”の場合、TAPコントローラ110の状態は、Select DR Scan状態ST3に遷移する。 In the Updata IR state ST16, the value of the shift register of the instruction register 120 is held in the flip-flop of the instruction register 120. That is, the data scanned into the shift register of the instruction register 120 is latched by the flip-flop of the instruction register 120. The value of the flip-flop of the instruction register 120 is transmitted to the inside of the integrated circuit 100. When the state of the test mode select TMS is the logical value “0”, the state of the TAP controller 110 transitions to the Run Test Idle state ST2. When the state of the test mode select TMS is the logical value “1”, the state of the TAP controller 110 transitions to the Select DR Scan state ST3.

 例えば、テスト制御装置200は、TAPコントローラ110の状態をShift IR状態ST12、Shift DR状態ST6等に遷移させて、命令レジスタ120やデータレジスタ130にアクセスする。命令レジスタ120およびデータレジスタ130に対するアクセス手順の一例を下記に示す。 For example, the test control apparatus 200 changes the state of the TAP controller 110 to the Shift IR state ST12, the Shift DR state ST6, etc., and accesses the instruction register 120 and the data register 130. An example of an access procedure for the instruction register 120 and the data register 130 is shown below.

 先ず、テスト制御装置200は、信号TCK、TMS、TRST等を制御して、TAPコントローラ110の状態を、状態ST1、ST2、ST3、ST4、ST11を経て状態ST12に遷移させる。そして、状態ST12において、テスト制御装置200は、命令レジスタ120にセットする値を、集積回路100の端子TDIにテストクロックTCKに同期して出力する。なお、命令レジスタ120の値は、セレクタ150を介して集積回路100の端子TDOに出力される。 First, the test control apparatus 200 controls the signals TCK, TMS, TRST, etc., and changes the state of the TAP controller 110 to the state ST12 via the states ST1, ST2, ST3, ST4, ST11. Then, in the state ST12, the test control device 200 outputs the value set in the instruction register 120 to the terminal TDI of the integrated circuit 100 in synchronization with the test clock TCK. Note that the value of the instruction register 120 is output to the terminal TDO of the integrated circuit 100 via the selector 150.

 そして、テスト制御装置200は、TAPコントローラ110の状態を、状態ST12から状態ST13を経て状態ST16に遷移させる。これにより、命令レジスタ120にセットされた命令コードが、命令レジスタ120からデータレジスタ制御回路140等に出力される。 Then, the test control apparatus 200 changes the state of the TAP controller 110 from the state ST12 to the state ST16 via the state ST13. As a result, the instruction code set in the instruction register 120 is output from the instruction register 120 to the data register control circuit 140 and the like.

 次に、テスト制御装置200は、TAPコントローラ110の状態を、状態ST16から状態ST2を経て、あるいは、状態ST16から直接、状態ST3に遷移させる。これにより、TAPコントローラ110の状態は、IRリード/ライトシーケンス(状態ST4、ST11-ST13、ST16等)からDRリード/ライトシーケンス(状態ST3、ST5-ST7、ST10等)に遷移する。 Next, the test control apparatus 200 changes the state of the TAP controller 110 from the state ST16 through the state ST2 or directly from the state ST16 to the state ST3. As a result, the state of the TAP controller 110 transitions from the IR read / write sequence (states ST4, ST11-ST13, ST16, etc.) to the DR read / write sequence (states ST3, ST5-ST7, ST10, etc.).

 リード/ライトの対象となるデータレジスタ130は、例えば、IRリード/ライトシーケンスでセットされた命令レジスタ120の値(命令コード)に基づいて選択される。テスト制御装置200は、TAPコントローラ110の状態を、状態ST3から状態ST5を経て状態ST6に遷移させる。 The data register 130 to be read / written is selected based on the value (instruction code) of the instruction register 120 set in the IR read / write sequence, for example. The test control apparatus 200 changes the state of the TAP controller 110 from the state ST3 to the state ST6 through the state ST5.

 そして、状態ST6において、テスト制御装置200は、データレジスタ130にセットする値を、集積回路100の端子TDIにテストクロックTCKに同期して出力する。なお、セレクタ142、150により選択されたデータレジスタ130(データレジスタ132-138のいずれか)の値は、集積回路100の端子TDOに出力される。その後、テスト制御装置200は、TAPコントローラ110の状態を、状態ST6から状態ST7、ST10を経て状態ST2に遷移させる。このように、テスト制御装置200は、信号TCK、TMS、TRST、TDI、TDOを用いて、命令レジスタ120およびデータレジスタ130にアクセスできる。 In the state ST6, the test control device 200 outputs the value set in the data register 130 to the terminal TDI of the integrated circuit 100 in synchronization with the test clock TCK. Note that the value of the data register 130 (any one of the data registers 132 to 138) selected by the selectors 142 and 150 is output to the terminal TDO of the integrated circuit 100. Thereafter, the test control apparatus 200 changes the state of the TAP controller 110 from the state ST6 to the state ST2 via the states ST7 and ST10. As described above, the test control device 200 can access the instruction register 120 and the data register 130 using the signals TCK, TMS, TRST, TDI, and TDO.

 図4は、図1に示したテスト回路20の動作の一例を示している。すなわち、図4は、集積回路100のテスト方法の一形態を示している。図4の動作は、ハードウエアのみで実現されてもよく、ハードウエアをソフトウエアにより制御することにより実現されてもよい。図4では、テスト回路20のうちのテスト制御装置200の動作を中心に説明する。 FIG. 4 shows an example of the operation of the test circuit 20 shown in FIG. That is, FIG. 4 shows one form of a test method for the integrated circuit 100. The operation of FIG. 4 may be realized only by hardware, or may be realized by controlling the hardware by software. In FIG. 4, the operation of the test control device 200 in the test circuit 20 will be mainly described.

 ステップS100では、テスト制御装置200の信号制御回路210は、ループバック付きURスキャンイン命令を命令レジスタ120にセットする。例えば、テスト制御装置200は、図3で説明したIRリード/ライトシーケンスにおいて、ループバック付きURスキャンイン命令を示す命令コード(例えば、1101)を、命令レジスタ120にセットする。その後、テスト制御装置200は、TAPコントローラ110の状態をDRリード/ライトシーケンスに遷移させる。このように、信号制御回路210は、スキャンインデータTDIが集積回路100で折り返されるように集積回路100を制御する。 In step S100, the signal control circuit 210 of the test control apparatus 200 sets the UR scan-in instruction with loopback in the instruction register 120. For example, the test control apparatus 200 sets an instruction code (for example, 1101) indicating a UR scan-in instruction with loopback in the instruction register 120 in the IR read / write sequence described with reference to FIG. Thereafter, the test control apparatus 200 changes the state of the TAP controller 110 to the DR read / write sequence. As described above, the signal control circuit 210 controls the integrated circuit 100 so that the scan-in data TDI is turned back by the integrated circuit 100.

 ステップS200では、テスト制御装置200の信号制御回路210は、スキャンインデータTDIを集積回路100に順次供給する。これにより、スキャンインデータTDIがUR138に順次書き込まれるとともに、スキャンインデータTDIの折り返しデータLBDOがフリップフロップ170から順次出力される。 In step S200, the signal control circuit 210 of the test control apparatus 200 sequentially supplies the scan-in data TDI to the integrated circuit 100. As a result, the scan-in data TDI is sequentially written into the UR 138, and the return data LBDO of the scan-in data TDI is sequentially output from the flip-flop 170.

 ステップS300では、テスト制御装置200は、スキャンインデータTDIの折り返しデータLBDOをスキャンアウトデータTDOとして、集積回路100から順次取得する。例えば、テスト制御装置200は、集積回路100内のフリップフロップ170の出力信号LBDOを、集積回路100から順次受ける。 In step S300, the test control apparatus 200 sequentially acquires the return data LBDO of the scan-in data TDI from the integrated circuit 100 as the scan-out data TDO. For example, the test control device 200 sequentially receives the output signal LBDO of the flip-flop 170 in the integrated circuit 100 from the integrated circuit 100.

 ステップS400では、テスト制御装置200の判定回路220は、ステップS200で集積回路100に供給したスキャンインデータTDIと、ステップS300で取得した折り返しデータTDOとを比較する。例えば、判定回路220は、スキャンインデータTDIおよび折り返しデータTDOの比較タイミングを折り返しデータTDOの遅延に合わせて調整し、タイミング調整後のスキャンインデータTDIとタイミング調整後の折り返しデータTDOとを比較する。 In step S400, the determination circuit 220 of the test control apparatus 200 compares the scan-in data TDI supplied to the integrated circuit 100 in step S200 with the return data TDO acquired in step S300. For example, the determination circuit 220 adjusts the comparison timing of the scan-in data TDI and the return data TDO according to the delay of the return data TDO, and compares the scan-in data TDI after timing adjustment with the return data TDO after timing adjustment. .

 ステップS500では、テスト制御装置200の判定回路220は、スキャンインデータTDIと折り返しデータTDOとが一致しているか否かを判定する。スキャンインデータTDIと折り返しデータTDOとが一致しているとき(ステップS500のYes)、テスト制御装置200の動作は、ステップS600に移る。一方、スキャンインデータTDIと折り返しデータTDOとが一致していないとき(ステップS500のNo)、テスト制御装置200の動作は、ステップS700に移る。 In step S500, the determination circuit 220 of the test control apparatus 200 determines whether or not the scan-in data TDI and the return data TDO match. When the scan-in data TDI and the return data TDO match (Yes in step S500), the operation of the test control device 200 proceeds to step S600. On the other hand, when the scan-in data TDI and the return data TDO do not match (No in step S500), the operation of the test control apparatus 200 moves to step S700.

 ステップS600では、テスト制御装置200の判定回路220は、不一致信号ESIGをネゲートする。この場合、テスト制御装置200は、テスト用インターフェースに異常がないと判定する。 In step S600, the determination circuit 220 of the test control device 200 negates the mismatch signal ESIG. In this case, the test control apparatus 200 determines that there is no abnormality in the test interface.

 ステップS700では、テスト制御装置200の判定回路220は、不一致信号ESIGをアサートする。この場合、テスト制御装置200は、テスト用インターフェースに異常があると判定する。すなわち、テスト制御装置200は、テスト用インターフェースのエラーを検出する。 In step S700, the determination circuit 220 of the test control apparatus 200 asserts the mismatch signal ESIG. In this case, the test control apparatus 200 determines that there is an abnormality in the test interface. That is, the test control device 200 detects an error in the test interface.

 このように、テスト制御装置200、UR138に書き込まれた値(スキャンインデータTDIの値)が読み出される前に、スキャンインデータTDIの折り返しデータTDOが正しいか否かを判定できる。したがって、テスト制御装置200は、テスト用インターフェースのエラー検出の時間を短縮できる。なお、テスト回路20の動作は、この例に限定されない。 As described above, it is possible to determine whether or not the return data TDO of the scan-in data TDI is correct before the value (the value of the scan-in data TDI) written in the test control device 200 and the UR 138 is read. Therefore, the test control apparatus 200 can shorten the time for detecting an error in the test interface. Note that the operation of the test circuit 20 is not limited to this example.

 図5は、図1に示した各信号のタイムチャートの一例を示している。図5の期間T3-T10は、IRライトシーケンス(IR120へのスキャンイン)に対応する。図5のIR(SHIFT)は、IR120のシフトレジスタの値を示し、IR(FF)は、IR120のフリップフロップの値(IR120にセットされた命令コード)を示している。 FIG. 5 shows an example of a time chart of each signal shown in FIG. A period T3-T10 in FIG. 5 corresponds to the IR write sequence (scan-in to the IR 120). IR (SHIFT) in FIG. 5 indicates the value of the shift register of IR 120, and IR (FF) indicates the value of the flip-flop of IR 120 (instruction code set in IR 120).

 例えば、IR120のシフトレジスタのうち、データTDIを受けるレジスタの値は、IR(SHIFT)の一番左側の値に対応し、データTDOを出力するレジスタの値は、IR(SHIFT)の一番右側の値に対応している。図5では、IR120のシフトレジスタのビット長を4ビットとして説明する。なお、IR120のシフトレジスタのビット長は、4ビットに限定されない。また、図のSelect DRは、Select DR Scan状態ST3を示し、Select IRは、Select IR Scan状態ST4を示している。 For example, among the IR120 shift registers, the value of the register that receives data TDI corresponds to the leftmost value of IR (SHIFT), and the value of the register that outputs data TDO is the rightmost value of IR (SHIFT). Corresponds to the value of. In FIG. 5, the description will be made assuming that the bit length of the shift register of IR 120 is 4 bits. The bit length of the IR120 shift register is not limited to 4 bits. In addition, Select DR in the figure indicates Select DR Scan state ST3, and Select IR indicates Select IR Scan state ST4.

 期間T0-T1では、TAPコントローラ110の状態は、Run Test Idle状態ST2である。TAPコントローラ110の状態は、図3に示したように、テストクロックTCKの立ち上がり時のテストモードセレクトTMSの状態に応じて、遷移する。例えば、TAPコントローラ110は、Run Test Idle状態ST2で、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”1”であることを検出した場合、Select DR Scan状態ST3に遷移する(期間T2)。 In the period T0-T1, the state of the TAP controller 110 is the Run Test Idle state ST2. As shown in FIG. 3, the state of the TAP controller 110 changes according to the state of the test mode select TMS when the test clock TCK rises. For example, when the TAP controller 110 detects in the Run Test Idle state ST2 that the test mode select TMS at the rising edge of the test clock TCK is a logical value “1”, the TAP controller 110 transitions to the Select DR Scan state ST3 (period T2 ).

 期間T2-T4では、テストモードセレクトTMSの制御により、TAPコントローラ110の状態は、Select DR Scan状態ST3からSelect IR Scan状態ST4を経て、Capture IR状態ST11に遷移する。Capture IR状態ST11(期間T4)では、IR120のシフトレジスタに所定の固定値(図5の例では、0001)がセットされる。 In the period T2-T4, the state of the TAP controller 110 transits from the Select DR Scan state ST3 to the Select IR Scan state ST4 to the Capture IR state ST11 under the control of the test mode select TMS. In the Capture IR state ST11 (period T4), a predetermined fixed value (0001 in the example of FIG. 5) is set in the shift register of the IR 120.

 例えば、期間T4では、TAPコントローラ110は、信号CAPTUREIRとして、1ショットのパルスをテストクロックTCKの立ち下がりに同期してIR120に出力する。これにより、所定の固定”0001”が、IR120のシフトレジスタに信号CAPTUREIRの立ち上がりに同期してセットされる。その後、TAPコントローラ110の状態は、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”0”であるため、Capture IR状態ST11からShift IR状態ST12に遷移する(期間T5)
 期間T5-T8では、TAPコントローラ110の状態は、Shift IR状態ST12に維持される。そして、期間T9において、TAPコントローラ110の状態は、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”1”であるため、Shift IR状態ST12からExit IR状態ST13に遷移する。例えば、Shift IR状態ST12で、IR120のシフトレジスタのスキャンシフトが実行され、Exit IR状態ST13で、IR120のシフトレジスタのスキャンシフトが終了する。
For example, in the period T4, the TAP controller 110 outputs a one-shot pulse to the IR 120 in synchronization with the falling edge of the test clock TCK as the signal CAPTUREIR. As a result, a predetermined fixed “0001” is set in the shift register of the IR 120 in synchronization with the rising edge of the signal CAPTUREIR. Thereafter, the state of the TAP controller 110 transitions from the Capture IR state ST11 to the Shift IR state ST12 since the test mode select TMS at the rising edge of the test clock TCK is the logical value “0” (period T5).
In the period T5-T8, the state of the TAP controller 110 is maintained in the Shift IR state ST12. In the period T9, the state of the TAP controller 110 changes from the Shift IR state ST12 to the Exit IR state ST13 because the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”. For example, the scan shift of the IR 120 shift register is executed in the Shift IR state ST12, and the scan shift of the IR 120 shift register is completed in the Exit IR state ST13.

 例えば、TAPコントローラ110は、スキャンクロックIRACKをテストクロックTCKの立ち上がりに同期してIR120に出力し、スキャンクロックIRBCKをテストクロックTCKの立ち下がりに同期してIR120に出力する。スキャンクロックIRACK、IRBCKは、例えば、Shift IR状態ST12に遷移した次のサイクル(期間T6)からExit IR状態ST13のサイクル(期間T9)まで、IR120に供給される。 For example, the TAP controller 110 outputs the scan clock IRACK to the IR 120 in synchronization with the rising edge of the test clock TCK, and outputs the scan clock IRBCK to the IR 120 in synchronization with the falling edge of the test clock TCK. The scan clocks IRACK and IRBCK are supplied to the IR 120, for example, from the next cycle (period T6) in which the transition is made to the Shift IR state ST12 to the cycle of the Exit IR state ST13 (period T9).

 IR120の各シフトレジスタは、例えば、保持している値(クロックIRACKの立ち上がり時に入力端子で受けていた値)を、クロックIRBCKの立ち上がりに同期して次段に出力する。なお、IR120のシフトレジスタのうちの最終段のレジスタは、保持している値を、クロックIRBCKの立ち上がりに同期してセレクタ150に出力する。 Each shift register of IR120 outputs, for example, the value held (the value received at the input terminal when the clock IRACK rises) to the next stage in synchronization with the rise of the clock IRBCK. Of the shift registers of IR 120, the last stage register outputs the held value to selector 150 in synchronization with the rising edge of clock IRBCK.

 図5の例では、データTDIとして、ループバック付きURスキャンイン命令を示す命令コード”1101”のシリアルデータ”1011”がテストクロックTCKに同期して端子TDIに供給される。これにより、期間T9までに、ループバック付きURスキャンイン命令を示す命令コード”1011”がIR120のシフトレジスタにセットされる。 In the example of FIG. 5, serial data “1011” of the instruction code “1101” indicating the UR scan-in instruction with loopback is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK. As a result, the instruction code “1011” indicating the UR scan-in instruction with loopback is set in the shift register of the IR 120 by the period T9.

 また、期間T5の途中から期間T9の途中まで、セレクタ150は、IR120の出力信号を端子TDOに出力するデータTDOとして選択している。このため、期間T5-T9の各期間では、IR(SHIFT)の一番右側の値がデータTDOとして出力される。 Further, from the middle of the period T5 to the middle of the period T9, the selector 150 selects the output signal of the IR 120 as the data TDO to be output to the terminal TDO. Therefore, the rightmost value of IR (SHIFT) is output as data TDO in each of the periods T5-T9.

 期間T9では、TAPコントローラ110の状態がExit IR状態ST13であるため、IR120のシフトレジスタへのスキャンインが終了する。また、TAPコントローラ110の状態は、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”1”であるため、Exit IR状態ST13からUpdata IR状態ST16に遷移する(期間T10)。 In the period T9, since the state of the TAP controller 110 is the Exit IR state ST13, the scan-in to the shift register of the IR 120 is completed. Further, since the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”, the state of the TAP controller 110 transitions from the Exit IR state ST13 to the Updata IR state ST16 (period T10).

 期間T10では、TAPコントローラ110の状態がUpdata IR状態ST16であるため、IR120のシフトレジスタの値がIR120のフリップフロップに保持される。例えば、期間T10では、TAPコントローラ110は、信号UPDATEIRとして、1ショットのパルスをテストクロックTCKの立ち下がりに同期してIR120に出力する。 In the period T10, since the state of the TAP controller 110 is the Updata IR state ST16, the value of the IR120 shift register is held in the IR120 flip-flop. For example, in the period T10, the TAP controller 110 outputs a one-shot pulse to the IR 120 in synchronization with the falling edge of the test clock TCK as the signal UPDATEIR.

 これにより、IR120のシフトレジスタの値”1101”が、IR120のフリップフロップに信号UPDATEIRの立ち上がりに同期してセットされる。すなわち、ループバック付きURスキャンイン命令がIR120にセットされる。 Thereby, the value “1101” of the shift register of the IR 120 is set in the flip-flop of the IR 120 in synchronization with the rising edge of the signal UPDATEIR. That is, the UR scan-in instruction with loopback is set in the IR 120.

 このように、IRライトシーケンスでは、IR120のシフトレジスタにスキャンインされたデータがIR120のフリップフロップにラッチされる。IR120のフリップフロップの値は、集積回路100の内部に伝達される。 Thus, in the IR write sequence, the data scanned into the IR 120 shift register is latched in the IR 120 flip-flop. The value of the IR 120 flip-flop is transmitted to the integrated circuit 100.

 図6は、図1に示した各信号のタイムチャートの別の例を示している。図6の期間T11-T18は、図5に示したIRライトシーケンス(図5の期間T3-T10)の後に実行されるDRライトシーケンス(UR138へのスキャンイン)に対応する。したがって、図6では、ループバック付きURスキャンイン命令に基づく動作が実行される。図6のIR(FF)、Select DRの意味は、図5と同一または同様である。また、図6のURは、UR138の値を示している。 FIG. 6 shows another example of a time chart of each signal shown in FIG. 6 corresponds to a DR write sequence (scan-in to UR 138) executed after the IR write sequence (period T3-T10 in FIG. 5) shown in FIG. Therefore, in FIG. 6, the operation based on the UR scan-in instruction with loopback is executed. The meanings of IR (FF) and Select DR in FIG. 6 are the same as or similar to those in FIG. Further, UR in FIG. 6 indicates the value of UR138.

 例えば、UR138の各レジスタのうち、データTDIを受けるレジスタの値は、URの一番左側の値に対応し、データTDOを出力するレジスタの値は、URの一番右側の値に対応している。図6では、UR138を4ビットのシフトレジスタとして説明する。なお、UR138(シフトレジスタ)のビット長は、4ビットに限定されない。 For example, among the registers of UR138, the value of the register that receives data TDI corresponds to the leftmost value of UR, and the value of the register that outputs data TDO corresponds to the rightmost value of UR. Yes. In FIG. 6, UR138 will be described as a 4-bit shift register. The bit length of UR138 (shift register) is not limited to 4 bits.

 期間T10では、TAPコントローラ110の状態は、Updata IR状態ST16である。また、IR120には、ループバック付きURスキャンイン命令を示す命令コード”1101”がセットされている。TAPコントローラ110の状態は、図3に示したように、テストクロックTCKの立ち上がり時のテストモードセレクトTMSの状態に応じて、遷移する。例えば、TAPコントローラ110は、Updata IR状態ST16で、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”1”であることを検出した場合、Select DR Scan状態ST3に遷移する(期間T11)。 In the period T10, the state of the TAP controller 110 is the Updata IR state ST16. In addition, an instruction code “1101” indicating a UR scan-in instruction with a loopback is set in the IR 120. As shown in FIG. 3, the state of the TAP controller 110 changes according to the state of the test mode select TMS when the test clock TCK rises. For example, when the TAP controller 110 detects that the test mode select TMS at the rising edge of the test clock TCK is the logical value “1” in the Updata IR state ST16, the TAP controller 110 transits to the Select DR Scan state ST3 (period T11). .

 期間T11-T13では、テストモードセレクトTMSの制御により、TAPコントローラ110の状態は、Select DR Scan状態ST3からCapture DR状態ST5を経て、Shift DR状態ST6に遷移する。Shift DR状態ST6では、信号SHIFTDRがアサートされる。例えば、TAPコントローラ110は、Shift DR状態ST6の間、信号SHIFTDRをアサートする。 During the period T11-T13, the state of the TAP controller 110 transitions from the Select DR Scan state ST3 to the Capture DR state ST5 to the Shift DR state ST6 under the control of the test mode select TMS. In the Shift DR state ST6, the signal SHIFTDR is asserted. For example, the TAP controller 110 asserts the signal SHIFTDR during the Shift DR state ST6.

 期間T13-T16では、TAPコントローラ110の状態は、Shift DR状態ST6に維持される。そして、期間T17において、TAPコントローラ110の状態は、テストクロックTCKの立ち上がり時のテストモードセレクトTMSが論理値”1”であるため、Shift DR状態ST6からExit DR状態ST7に遷移する。例えば、Shift DR状態ST6で、UR138のスキャンシフトが実行され、Exit DR状態ST7で、UR138のスキャンシフトが終了する。 In the period T13-T16, the state of the TAP controller 110 is maintained in the Shift DR state ST6. In the period T17, the state of the TAP controller 110 changes from the Shift DR state ST6 to the Exit DR state ST7 because the test mode select TMS at the rising edge of the test clock TCK is the logical value “1”. For example, the UR 138 scan shift is executed in the Shift DR state ST6, and the UR 138 scan shift ends in the Exit DR state ST7.

 例えば、データレジスタ制御回路140およびループバック制御回路180は、TAPコントローラ110から受ける信号SHIFTDRとIR120の値に基づいて、UR138およびフリップフロップ170のスキャンシフト動作をそれぞれ制御する。先ず、UR138のスキャンシフト動作について説明する。 For example, the data register control circuit 140 and the loopback control circuit 180 control the scan shift operations of the UR 138 and the flip-flop 170 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110, respectively. First, the scan shift operation of the UR 138 will be described.

 データレジスタ制御回路140は、例えば、信号SHIFTDRがアサートされた次のサイクル(期間T14)から信号SHIFTDRがネゲートされるサイクル(期間T17)まで、スキャンクロックURACK、URBCKをUR138に供給する。例えば、データレジスタ制御回路140は、スキャンクロックURACKをテストクロックTCKの立ち上がりに同期してUR138に出力し、スキャンクロックURBCKをテストクロックTCKの立ち下がりに同期してUR138に出力する。 For example, the data register control circuit 140 supplies the scan clocks URACK and URBCK to the UR 138 from the next cycle (period T14) in which the signal SHIFTDR is asserted to the cycle (period T17) in which the signal SHIFTDR is negated. For example, the data register control circuit 140 outputs the scan clock URACK to the UR 138 in synchronization with the rising edge of the test clock TCK, and outputs the scan clock URBCK to the UR 138 in synchronization with the falling edge of the test clock TCK.

 UR138の各レジスタは、例えば、保持している値(クロックURACKの立ち上がり時に入力端子で受けていた値)を、クロックURBCKの立ち上がりに同期して次段に出力する。なお、UR138のうちの最終段のレジスタは、保持している値を、クロックURBCKの立ち上がりに同期してセレクタ142に出力する。 Each register of the UR 138 outputs, for example, a held value (value received at the input terminal when the clock URACK rises) to the next stage in synchronization with the rise of the clock URBCK. Note that the last-stage register of the UR 138 outputs the held value to the selector 142 in synchronization with the rising edge of the clock URBCK.

 図6の例では、データTDIとして、シリアルデータ”1001”がテストクロックTCKに同期して端子TDIに供給される。これにより、期間T17までに、スキャンインデータ”1001”がUR138にセットされる。また、セレクタ142は、データレジスタ制御回路140の制御に基づいて、UR138の出力信号をセレクタ150に出力する信号として選択する。 In the example of FIG. 6, serial data “1001” is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK. Thereby, the scan-in data “1001” is set in the UR 138 by the period T17. The selector 142 selects the output signal of the UR 138 as a signal to be output to the selector 150 based on the control of the data register control circuit 140.

 次に、フリップフロップ170のスキャンシフト動作について説明する。ループバック制御回路180は、ループバック付きURスキャンイン命令を示す命令コード”1101”がIR120にセットされているため、スキャンクロックURACK、URBCKと同一または同様なスキャンクロックをフリップフロップ170に供給する。図6では、フリップフロップ170に供給されるスキャンクロックも、スキャンクロックURACK、URBCKと称して説明する。 Next, the scan shift operation of the flip-flop 170 will be described. Since the instruction code “1101” indicating the UR scan-in instruction with loopback is set in the IR 120, the loopback control circuit 180 supplies a scan clock that is the same as or similar to the scan clocks URACK and URBCK to the flip-flop 170. In FIG. 6, the scan clock supplied to the flip-flop 170 is also referred to as scan clocks URACK and URBCK.

 例えば、ループバック制御回路180は、スキャンクロックURACKをテストクロックTCKの立ち上がりに同期してフリップフロップ170に出力する。また、ループバック制御回路180は、スキャンクロックURBCKをテストクロックTCKの立ち下がりに同期してフリップフロップ170に出力する。フリップフロップ170は、例えば、クロックURACKの立ち上がり時に入力端子で受けていたデータTDIの値を、信号LBDOとして、クロックURBCKの立ち上がりに同期して出力する。 For example, the loopback control circuit 180 outputs the scan clock URACK to the flip-flop 170 in synchronization with the rising edge of the test clock TCK. The loopback control circuit 180 outputs the scan clock URBCK to the flip-flop 170 in synchronization with the falling edge of the test clock TCK. For example, the flip-flop 170 outputs the value of the data TDI received at the input terminal at the rising edge of the clock URACK as the signal LBDO in synchronization with the rising edge of the clock URBCK.

 セレクタ制御回路160は、TAPコントローラ110から受ける信号SHIFTDRとIR120の値に基づいて、セレクタ150を制御する。例えば、セレクタ制御回路160は、IR120の値がループバック付きURスキャンイン命令を示す命令コード”1101”であるため、フリップフロップ170の出力信号LBDOを選択するように、セレクタ150を制御する。 The selector control circuit 160 controls the selector 150 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110. For example, the selector control circuit 160 controls the selector 150 to select the output signal LBDO of the flip-flop 170 because the value of the IR 120 is the instruction code “1101” indicating the UR scan-in instruction with loopback.

 これにより、例えば、セレクタ150は、信号SHIFTDRがアサートされた次のサイクル(期間T14)のテストクロックTCKの立ち下がりに同期して、フリップフロップ170の出力信号LBDOをデータTDOとして、端子TDOに出力する。そして、セレクタ150は、信号SHIFTDRがネゲートされた次のサイクル(期間T18)のテストクロックTCKの立ち下がりまで、フリップフロップ170の出力信号LBDOをデータTDOとして、端子TDOに出力し続ける。 Thereby, for example, the selector 150 outputs the output signal LBDO of the flip-flop 170 as data TDO to the terminal TDO in synchronization with the falling edge of the test clock TCK in the next cycle (period T14) in which the signal SHIFTDR is asserted. To do. The selector 150 continues to output the output signal LBDO of the flip-flop 170 as data TDO to the terminal TDO until the falling edge of the test clock TCK in the next cycle (period T18) in which the signal SHIFTDR is negated.

 この結果、期間T14の途中から期間T18の途中まで、データTDIの折り返しデータLBDOがデータTDOとして集積回路100からテスト制御装置200に出力される。なお、ループバック付きURスキャンイン命令では、セレクタ150がフリップフロップ170の出力信号LBDOを選択しているため、UR138の値は端子TDOに出力されない。 As a result, from the middle of the period T14 to the middle of the period T18, the loopback data LBDO of the data TDI is output from the integrated circuit 100 to the test controller 200 as the data TDO. In the UR scan-in instruction with loopback, since the selector 150 selects the output signal LBDO of the flip-flop 170, the value of the UR138 is not output to the terminal TDO.

 テスト制御装置200の信号制御回路220は、スキャンインデータ”1001”をデータTDIとして出力している間(期間T13の途中から期間T17の途中まで)、遅延有効信号DENをアサートする。 The signal control circuit 220 of the test control apparatus 200 asserts the delay valid signal DEN while outputting the scan-in data “1001” as the data TDI (from the middle of the period T13 to the middle of the period T17).

 遅延回路222は、遅延有効信号DENおよびデータTDIを、テストクロックTCKに同期して2サイクル分遅延させる(図6の信号DENdd、TDIdd)。例えば、遅延回路222は、フリップフロップDFF1、DFF2を用いて遅延有効信号DENを遅延させ、フリップフロップDFF3、DFF4を用いてデータTDIを遅延させる。 The delay circuit 222 delays the delay valid signal DEN and the data TDI by two cycles in synchronization with the test clock TCK (signals DENdd and TDIdd in FIG. 6). For example, the delay circuit 222 delays the delay valid signal DEN using the flip-flops DFF1 and DFF2, and delays the data TDI using the flip-flops DFF3 and DFF4.

 また、例えば、一致判定回路224は、データTDOをテストクロックTCKに同期して1サイクル分遅延させる(図6の信号TDOd)。例えば、一致判定回路224は、フリップフロップDFF5を用いて遅延有効信号DENを遅延させる。そして、一致判定回路224は、遅延有効信号DENを遅延させた信号DENddがアサートされているとき、信号TDIddの値と信号TDOdの値とを比較する(期間T15-T18)。図6の例では、期間T15-T18の各期間で、信号TDIddの値と信号TDOdの値とが一致しているため、不一致信号ESIGは、ネゲートされている。なお、信号TDIddの値と信号TDOdの値とが不一致の場合、不一致信号ESIGは、アサートされる。 For example, the coincidence determination circuit 224 delays the data TDO by one cycle in synchronization with the test clock TCK (signal TDOd in FIG. 6). For example, the coincidence determination circuit 224 delays the delay valid signal DEN using the flip-flop DFF5. Then, when the signal DENdd obtained by delaying the delay valid signal DEN is asserted, the coincidence determination circuit 224 compares the value of the signal TDidd with the value of the signal TDOd (period T15-T18). In the example of FIG. 6, the value of the signal TDIdd and the value of the signal TDOd match in each of the periods T15 to T18, so the mismatch signal ESIG is negated. Note that if the value of the signal TDIdd and the value of the signal TDOd do not match, the mismatch signal ESIG is asserted.

 例えば、テスト制御装置200は、信号TDIddの値と信号TDOdの値との不一致を検出することにより、テスト用インターフェースである端子TDI、TDO、信号線TDI、TDO等に故障が生じていることを検出できる。なお、例えば、信号線TCK、TMS、TRSTに故障が生じている場合では、テスト制御装置200へのループバックが正常に実行されないため、信号線TCK、TMS、TRSTの故障も、信号TDIddの値と信号TDOdの値との不一致として検出される。 For example, the test control apparatus 200 detects that a failure has occurred in the terminals TDI, TDO, signal lines TDI, TDO, etc., which are test interfaces, by detecting a mismatch between the value of the signal TDIdd and the value of the signal TDOd. It can be detected. Note that, for example, when a failure occurs in the signal lines TCK, TMS, and TRST, the loopback to the test control device 200 is not normally performed. Therefore, the failure of the signal lines TCK, TMS, and TRST is caused by the value of the signal TDAdd. And the value of the signal TDOd are detected as mismatches.

 このように、テスト制御装置200は、例えば、DRライトシーケンス(スキャンイン)のみで、テスト用インターフェースのエラーを検出できる。したがって、この実施形態では、テスト用インターフェースのエラーを検出するための手順を簡略化できる。また、この実施形態では、テスト用インターフェースのエラーの検出にかかる処理時間を短縮できる。 Thus, the test control apparatus 200 can detect an error in the test interface only by the DR write sequence (scan-in), for example. Therefore, in this embodiment, the procedure for detecting an error in the test interface can be simplified. Further, in this embodiment, the processing time required for detecting an error in the test interface can be shortened.

 図7は、図1に示した各信号のタイムチャートの別の例を示している。図7の期間T31-T38は、DRライトシーケンス(UR138へのスキャンイン)に対応する。なお、図7の例では、DRライトシーケンスの前に実行されるIRライトシーケンスにより、URスキャンイン命令がIR120にセットされている(IR=1100)。URスキャンイン命令をIR120にセットするIRライトシーケンスは、データTDIとして与えられるシリアルデータ“0011”(命令コード“1100”)を除いて、図5に示したIRライトシーケンスと同一または同様である。例えば、図5では、命令コード”1101”のシリアルデータ“1011”がデータTDIとして与えられる。 FIG. 7 shows another example of a time chart of each signal shown in FIG. A period T31 to T38 in FIG. 7 corresponds to the DR write sequence (scan-in to the UR 138). In the example of FIG. 7, the UR scan-in instruction is set in the IR 120 by the IR write sequence executed before the DR write sequence (IR = 1100). The IR write sequence for setting the UR scan-in instruction in IR 120 is the same as or similar to the IR write sequence shown in FIG. 5 except for serial data “0011” (instruction code “1100”) given as data TDI. For example, in FIG. 5, serial data “1011” of the instruction code “1101” is given as data TDI.

 図7のIR(FF)、UR、Select DRの意味は、図6と同一または同様である。図6で説明した動作と同一または同様な動作については、詳細な説明を省略する。例えば、期間T30-T40は、図6の期間T10-T20に対応している。 7 The meanings of IR (FF), UR, and Select DR in FIG. 7 are the same as or similar to those in FIG. Detailed description of the same or similar operations as those described in FIG. 6 is omitted. For example, the period T30 to T40 corresponds to the period T10 to T20 in FIG.

 期間T30では、TAPコントローラ110の状態は、Updata IR状態ST16である。また、IR120には、URスキャンイン命令を示す命令コード”1100”がセットされている。そして、UR138は、データ”1001”(例えば、図6のDRライトシーケンスによりUR138にセットされたスキャンインデータ)を保持している。 In the period T30, the state of the TAP controller 110 is the Updata IR state ST16. In addition, an instruction code “1100” indicating a UR scan-in instruction is set in the IR 120. The UR 138 holds data “1001” (for example, scan-in data set in the UR 138 by the DR write sequence in FIG. 6).

 期間T33-T36では、例えば、データレジスタ制御回路140およびループバック制御回路180は、TAPコントローラ110から受ける信号SHIFTDRとIR120の値に基づいて、UR138およびフリップフロップ170のスキャンシフト動作をそれぞれ制御する。なお、ループバック制御回路180は、URスキャンイン命令を示す命令コード”1100”がIR120にセットされているため、フリップフロップ170のスキャンシフト動作を実行しない。したがって、UR138のスキャンシフト動作について、図6の動作と異なる動作を中心に説明する。 In the period T33-T36, for example, the data register control circuit 140 and the loopback control circuit 180 control the scan shift operations of the UR 138 and the flip-flop 170 based on the values of the signals SHIFTDR and IR 120 received from the TAP controller 110, respectively. The loopback control circuit 180 does not execute the scan shift operation of the flip-flop 170 because the instruction code “1100” indicating the UR scan-in instruction is set in the IR 120. Therefore, the scan shift operation of the UR 138 will be described focusing on the operation different from the operation of FIG.

 データレジスタ制御回路140は、例えば、信号SHIFTDRがアサートされた次のサイクル(期間T34)から信号SHIFTDRがネゲートされるサイクル(期間T37)まで、スキャンクロックURACK、URBCKをUR138に供給する。UR138の各レジスタは、例えば、保持している値(クロックURACKの立ち上がり時に入力端子で受けていた値)を、クロックURBCKの立ち上がりに同期して次段に出力する。なお、UR138のうちの最終段のレジスタは、保持している値を、クロックURBCKの立ち上がりに同期してセレクタ142に出力する。 For example, the data register control circuit 140 supplies the scan clocks URACK and URBCK to the UR 138 from the next cycle (period T34) in which the signal SHIFTDR is asserted to the cycle (period T37) in which the signal SHIFTDR is negated. Each register of the UR 138 outputs, for example, a held value (value received at the input terminal when the clock URACK rises) to the next stage in synchronization with the rise of the clock URBCK. Note that the last-stage register of the UR 138 outputs the held value to the selector 142 in synchronization with the rising edge of the clock URBCK.

 図7の例では、データTDIとして、シリアルデータ”0110”がテストクロックTCKに同期して端子TDIに供給される。これにより、期間T37までに、スキャンインデータ”0110”がUR138にセットされる。また、セレクタ142は、データレジスタ制御回路140の制御に基づいて、UR138の出力信号(UR138の最終段のレジスタの値)をセレクタ150に出力する信号として選択する。 In the example of FIG. 7, serial data “0110” is supplied to the terminal TDI as data TDI in synchronization with the test clock TCK. Thereby, the scan-in data “0110” is set in the UR 138 by the period T37. Further, the selector 142 selects the output signal of the UR 138 (the value of the register at the final stage of the UR 138) as a signal to be output to the selector 150 based on the control of the data register control circuit 140.

 セレクタ制御回路160は、例えば、IR120の値がURスキャンイン命令を示す命令コード”1100”であるため、DR130の出力信号(セレクタ142で選択されたUR138の出力信号)を選択するように、セレクタ150を制御する。 For example, since the value of the IR 120 is the instruction code “1100” indicating the UR scan-in instruction, the selector control circuit 160 selects the output signal of the DR 130 (the output signal of the UR 138 selected by the selector 142). 150 is controlled.

 これにより、例えば、セレクタ150は、信号SHIFTDRがアサートされたサイクル(期間T33)のテストクロックTCKの立ち下がりに同期して、UR138の最終段のレジスタの値(URの一番右側の値)をデータTDOとして、端子TDOに出力する。そして、セレクタ150は、信号SHIFTDRがネゲートされたサイクル(期間T37)のテストクロックTCKの立ち下がりまで、UR138の最終段のレジスタの値(URの一番右側の値)をデータTDOとして、端子TDOに出力し続ける。 Thereby, for example, the selector 150 synchronizes with the falling edge of the test clock TCK in the cycle (period T33) in which the signal SHIFTDR is asserted, and the value of the last-stage register of the UR 138 (the rightmost value of the UR). The data TDO is output to the terminal TDO. Then, the selector 150 uses the value of the last-stage register of UR 138 (the rightmost value of UR) as data TDO until the falling edge of the test clock TCK in the cycle (period T37) in which the signal SHIFTDR is negated. Continue to output.

 この結果、データTDOとして、図7のDRライトシーケンスが実行される前にUR138に保持されていたデータ”1001”が、集積回路100からテスト制御装置200に出力される(期間T33-T37)。なお、URスキャンイン命令では、セレクタ150がDR130の出力信号を選択しているため、フリップフロップ170の出力信号LBDOは端子TDOに出力されない。 As a result, the data “1001” held in the UR 138 before the DR write sequence in FIG. 7 is executed is output as the data TDO from the integrated circuit 100 to the test control device 200 (period T33-T37). In the UR scan-in instruction, since the selector 150 selects the output signal of the DR 130, the output signal LBDO of the flip-flop 170 is not output to the terminal TDO.

 テスト制御装置200の信号制御回路220は、URスキャンイン命令が実行されるため、遅延有効信号DENをアサートしない。すなわち、遅延有効信号DENは、ネゲートされている。このため、一致判定回路224は、信号TDIddの値と信号TDOdの値との比較を実行しない。したがって、URスキャンイン命令では、不一致信号ESIGは、ネゲートされている。 The signal control circuit 220 of the test control apparatus 200 does not assert the delay valid signal DEN because the UR scan-in command is executed. That is, the delay valid signal DEN is negated. For this reason, the coincidence determination circuit 224 does not perform a comparison between the value of the signal TDIdd and the value of the signal TDOd. Therefore, the mismatch signal ESIG is negated in the UR scan-in instruction.

 以上、図1から図7に示した実施形態の集積回路のテスト回路、情報処理装置および集積回路のテスト方法では、例えば、テスト制御装置200は、スキャンインデータTDIを信号線TDIを介して集積回路100に供給する。そして、テスト制御装置200は、スキャンインデータTDIの折り返しデータをスキャンアウトデータTDOとして集積回路100から信号線TDOを介して受ける。また、テスト制御装置200の判定回路222は、スキャンインデータTDIと折り返しデータTDOとを比較して、折り返しデータTDOが正しいか否かを判定する。 As described above, in the integrated circuit test circuit, the information processing apparatus, and the integrated circuit test method according to the embodiments shown in FIGS. 1 to 7, for example, the test control apparatus 200 integrates the scan-in data TDI through the signal line TDI. Supply to circuit 100. Then, the test control device 200 receives the return data of the scan-in data TDI as the scan-out data TDO from the integrated circuit 100 via the signal line TDO. Further, the determination circuit 222 of the test control device 200 compares the scan-in data TDI and the return data TDO to determine whether the return data TDO is correct.

 これにより、テスト制御装置200は、テスト用インターフェースのエラーを検出できる。例えば、テスト制御装置200は、折り返しデータTDOが正しくないと判定回路222で判定された場合、テスト用インターフェースに故障が生じていると判定する。この実施形態では、スキャンインデータTDIの折り返しデータTDOが正しいか否かを判定しているため、スキャンインおよびスキャンアウトのうちのスキャンインのみで、テスト用インターフェースのエラーを検出できる。 Thereby, the test control apparatus 200 can detect an error in the test interface. For example, when the determination circuit 222 determines that the return data TDO is not correct, the test control apparatus 200 determines that a failure has occurred in the test interface. In this embodiment, since it is determined whether or not the return data TDO of the scan-in data TDI is correct, an error in the test interface can be detected only by scan-in of scan-in and scan-out.

 この結果、この実施形態では、テスト用インターフェースのエラーを検出するための手順を簡略化でき、テスト用インターフェースのエラーの検出にかかる処理時間を短縮できる。すなわち、この実施形態では、テスト用インターフェースのエラー検出の時間を短縮できる。 As a result, in this embodiment, the procedure for detecting an error in the test interface can be simplified, and the processing time required for detecting the error in the test interface can be shortened. That is, in this embodiment, it is possible to shorten the time for detecting an error in the test interface.

 以上の詳細な説明により、実施形態の特徴点および利点は明らかになるであろう。これは、特許請求の範囲がその精神および権利範囲を逸脱しない範囲で前述のような実施形態の特徴点および利点にまで及ぶことを意図するものである。また、当該技術分野において通常の知識を有する者であれば、あらゆる改良および変更に容易に想到できるはずである。したがって、発明性を有する実施形態の範囲を前述したものに限定する意図はなく、実施形態に開示された範囲に含まれる適当な改良物および均等物に拠ることも可能である。 From the above detailed description, the features and advantages of the embodiment will become apparent. This is intended to cover the features and advantages of the embodiments described above without departing from the spirit and scope of the claims. Also, any improvement and modification should be readily conceivable by those having ordinary knowledge in the art. Therefore, there is no intention to limit the scope of the inventive embodiments to those described above, and appropriate modifications and equivalents included in the scope disclosed in the embodiments can be used.

Claims (12)

 集積回路のテスト回路であって、
 スキャンインデータを第1信号線を介して前記集積回路に供給し、スキャンアウトデータを前記集積回路から第2信号線を介して受けるテスト制御部を備え、
 前記テスト制御部は、
 前記スキャンインデータが前記集積回路で折り返されるように前記集積回路を制御し、前記スキャンインデータを前記第1信号線を介して前記集積回路に供給する信号制御部と、
 前記集積回路に供給する前記スキャンインデータを前記信号制御部から受け、前記スキャンインデータの折り返しデータを前記集積回路から前記第2信号線を介して受け、前記スキャンインデータと前記折り返しデータとを比較して、前記折り返しデータが正しいか否かを判定する判定部と
 を備えていることを特徴とするテスト回路。
An integrated circuit test circuit,
A test control unit for supplying scan-in data to the integrated circuit via a first signal line and receiving scan-out data from the integrated circuit via a second signal line;
The test control unit
A signal control unit that controls the integrated circuit so that the scan-in data is folded at the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line;
The scan-in data to be supplied to the integrated circuit is received from the signal control unit, the return data of the scan-in data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are received. A test circuit comprising: a determination unit that determines whether the return data is correct by comparison.
 請求項1に記載のテスト回路において、
 前記集積回路内に設けられ、前記スキャンインデータを受け、前記折り返しデータとして前記スキャンインデータをテスト用のクロックに同期して前記判定部に出力するフリップフロップを有し、
 前記信号制御部は、前記テスト用のクロックを前記集積回路に供給する
 ことを特徴とする集積回路のテスト回路。
The test circuit according to claim 1,
A flip-flop that is provided in the integrated circuit, receives the scan-in data, and outputs the scan-in data to the determination unit in synchronization with a test clock as the folded data;
The signal control unit supplies the test clock to the integrated circuit. An integrated circuit test circuit.
 請求項2に記載の集積回路のテスト回路において、
 前記判定部は、
 前記信号制御部から受けた前記スキャンインデータを、前記テスト用のクロックに同期して所定のサイクル数分遅延させて出力するタイミング調整部と、
 前記所定のサイクル数分遅延させられた前記スキャンインデータを前記タイミング調整部から受け、前記折り返しデータを前記集積回路から前記第2信号線を介して受け、前記スキャンインデータと前記折り返しデータとを比較する比較部と
 を備えていることを特徴とする集積回路のテスト回路。
The integrated circuit test circuit according to claim 2,
The determination unit
A timing adjustment unit that outputs the scan-in data received from the signal control unit with a predetermined number of cycles delayed in synchronization with the test clock; and
The scan-in data delayed by the predetermined number of cycles is received from the timing adjustment unit, the return data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are received. An integrated circuit test circuit comprising: a comparison unit for comparison.
 請求項1ないし請求項3のいずれか1項に記載の集積回路のテスト回路において、
 前記判定部は、前記スキャンインデータが前記集積回路内のデータレジスタに書き込まれる期間に前記折り返しデータを受け、前記折り返しデータが正しいか否かを判定する
 ことを特徴とする集積回路のテスト回路。
The integrated circuit test circuit according to any one of claims 1 to 3,
The test circuit for an integrated circuit, wherein the determination unit receives the return data during a period in which the scan-in data is written to a data register in the integrated circuit, and determines whether the return data is correct.
 集積回路と、前記集積回路をテストするテスト回路とを備え、
 前記テスト回路は、スキャンインデータを第1信号線を介して前記集積回路に供給し、スキャンアウトデータを前記集積回路から第2信号線を介して受けるテスト制御部を有し、
 前記テスト制御部は、
 前記スキャンインデータが前記集積回路で折り返されるように前記集積回路を制御し、前記スキャンインデータを前記第1信号線を介して前記集積回路に供給する信号制御部と、
 前記集積回路に供給する前記スキャンインデータを前記信号制御部から受け、前記スキャンインデータの折り返しデータを前記集積回路から前記第2信号線を介して受け、前記スキャンインデータと前記折り返しデータとを比較して、前記折り返しデータが正しいか否かを判定する判定部と
 を備えていることを特徴とする情報処理装置。
An integrated circuit, and a test circuit for testing the integrated circuit,
The test circuit includes a test control unit that supplies scan-in data to the integrated circuit via a first signal line and receives scan-out data from the integrated circuit via a second signal line,
The test control unit
A signal control unit that controls the integrated circuit so that the scan-in data is folded at the integrated circuit, and supplies the scan-in data to the integrated circuit via the first signal line;
The scan-in data to be supplied to the integrated circuit is received from the signal control unit, the return data of the scan-in data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are received. An information processing apparatus comprising: a determination unit configured to determine whether the return data is correct by comparison.
 請求項5に記載の情報処理装置において、
 前記集積回路は、前記スキャンインデータを受け、前記折り返しデータとして前記スキャンインデータをテスト用のクロックに同期して前記判定部に出力するフリップフロップを有し、
 前記信号制御部は、前記テスト用のクロックを前記集積回路に供給する
 ことを特徴とする情報処理装置。
The information processing apparatus according to claim 5,
The integrated circuit includes a flip-flop that receives the scan-in data and outputs the scan-in data as the loop-back data to the determination unit in synchronization with a test clock;
The signal control unit supplies the test clock to the integrated circuit.
 請求項6に記載の情報処理装置において、
 前記判定部は、
 前記信号制御部から受けた前記スキャンインデータを、前記テスト用のクロックに同期して所定のサイクル数分遅延させて出力するタイミング調整部と、
 前記所定のサイクル数分遅延させられた前記スキャンインデータを前記タイミング調整部から受け、前記折り返しデータを前記集積回路から前記第2信号線を介して受け、前記スキャンインデータと前記折り返しデータとを比較する比較部と
 を備えていることを特徴とする情報処理装置。
The information processing apparatus according to claim 6,
The determination unit
A timing adjustment unit that outputs the scan-in data received from the signal control unit with a predetermined number of cycles delayed in synchronization with the test clock; and
The scan-in data delayed by the predetermined number of cycles is received from the timing adjustment unit, the return data is received from the integrated circuit via the second signal line, and the scan-in data and the return data are received. An information processing apparatus comprising: a comparison unit for comparing.
 請求項5ないし請求項7のいずれか1項に記載の情報処理装置において、
 前記判定部は、前記スキャンインデータが前記集積回路内のデータレジスタに書き込まれる期間に前記折り返しデータを受け、前記折り返しデータが正しいか否かを判定する
 ことを特徴とする情報処理装置。
The information processing apparatus according to any one of claims 5 to 7,
The information processing apparatus, wherein the determination unit receives the return data during a period in which the scan-in data is written to a data register in the integrated circuit, and determines whether the return data is correct.
 集積回路のテスト方法であって、
 スキャンインデータが前記集積回路で折り返されるように前記集積回路を制御し、
 前記スキャンインデータをテスト制御部から前記第1信号線を介して前記集積回路に転送し、
 前記スキャンインデータの折り返しデータを前記集積回路から第2信号線を介して前記テスト制御部に転送し、
 前記テスト制御部で保持している前記スキャンインデータと前記テスト制御部に転送された前記折り返しデータとを比較して、前記折り返しデータが正しいか否かを判定する
 ことを特徴とする集積回路のテスト方法。
An integrated circuit test method comprising:
Controlling the integrated circuit such that scan-in data is folded at the integrated circuit;
Transferring the scan-in data from the test control unit to the integrated circuit via the first signal line;
Transfer back data of the scan-in data from the integrated circuit to the test control unit via a second signal line,
Comparing the scan-in data held in the test control unit with the return data transferred to the test control unit, it is determined whether or not the return data is correct. Test method.
 請求項9に記載の集積回路のテスト方法において、
 テスト用のクロックを前記テスト制御部から前記集積回路に転送し、
 前記スキャンインデータを前記テスト制御部から前記第1信号線を介して前記集積回路内のフリップフロップに転送し、
 前記スキャンインデータを受けた前記フリップフロップの出力信号を前記折り返しデータとして、前記集積回路から前記テスト制御部に前記テスト用のクロックに同期して転送する
 ことを特徴とする集積回路のテスト方法。
The method of testing an integrated circuit according to claim 9.
A test clock is transferred from the test control unit to the integrated circuit;
Transferring the scan-in data from the test control unit to the flip-flop in the integrated circuit via the first signal line;
A test method for an integrated circuit, wherein the output signal of the flip-flop that has received the scan-in data is transferred as the loopback data from the integrated circuit to the test control unit in synchronization with the test clock.
 請求項10に記載の集積回路のテスト方法において、
 前記テスト制御部に保持している前記スキャンインデータを、前記テスト用のクロックに同期して所定のサイクル数分遅延させ、
 前記集積回路から前記第2信号線を介して前記テスト制御部に転送された前記折り返しデータと、前記所定のサイクル数分遅延させられた前記スキャンインデータとを比較する
 ことを特徴とする集積回路のテスト方法。
The method of testing an integrated circuit according to claim 10.
The scan-in data held in the test control unit is delayed by a predetermined number of cycles in synchronization with the test clock,
An integrated circuit comprising: comparing the loop-back data transferred from the integrated circuit to the test control unit via the second signal line with the scan-in data delayed by the predetermined number of cycles. Testing method.
 請求項9ないし請求項11のいずれか1項に記載の集積回路のテスト方法において、
 前記スキャンインデータが前記集積回路内のデータレジスタに書き込まれる期間に前記折り返しデータを前記集積回路から前記第2信号線を介して前記テスト制御部に転送し、前記折り返しデータが正しいか否かを判定する
 ことを特徴とする集積回路のテスト方法。
12. The integrated circuit test method according to claim 9, wherein:
During the period in which the scan-in data is written to the data register in the integrated circuit, the loopback data is transferred from the integrated circuit to the test control unit via the second signal line, and whether the loopback data is correct or not is determined. A method for testing an integrated circuit, characterized by: determining.
PCT/JP2014/003410 2014-06-25 2014-06-25 Test circuit for integrated circuit, information processing device, and test method for integrated circuit Ceased WO2015198367A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2014/003410 WO2015198367A1 (en) 2014-06-25 2014-06-25 Test circuit for integrated circuit, information processing device, and test method for integrated circuit
JP2015530800A JPWO2015198367A1 (en) 2014-06-25 2014-06-25 Integrated circuit test circuit, information processing apparatus, and integrated circuit test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/003410 WO2015198367A1 (en) 2014-06-25 2014-06-25 Test circuit for integrated circuit, information processing device, and test method for integrated circuit

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US14/123,333 A-371-Of-International US9288792B2 (en) 2011-06-09 2012-05-25 Network node, terminal, bandwidth modification determination method and bandwidth modification method
US15/014,405 Continuation US10841842B2 (en) 2011-06-09 2016-02-03 Communication terminal apparatus and communication method

Publications (1)

Publication Number Publication Date
WO2015198367A1 true WO2015198367A1 (en) 2015-12-30

Family

ID=54937508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/003410 Ceased WO2015198367A1 (en) 2014-06-25 2014-06-25 Test circuit for integrated circuit, information processing device, and test method for integrated circuit

Country Status (2)

Country Link
JP (1) JPWO2015198367A1 (en)
WO (1) WO2015198367A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0862298A (en) * 1994-08-26 1996-03-08 Nec Corp Semiconductor integrated circuit and inspection method therefor
JP2004233202A (en) * 2003-01-30 2004-08-19 Seiko Epson Corp Test circuit, integrated circuit and test method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5368525A (en) * 1976-12-01 1978-06-19 Hitachi Ltd Interface diagnosis system
JP2000131394A (en) * 1998-10-29 2000-05-12 Hitachi Ltd Logic integrated circuit with diagnostic function
US7657809B1 (en) * 2003-11-19 2010-02-02 Cadence Design Systems, Inc. Dual scan chain design method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0862298A (en) * 1994-08-26 1996-03-08 Nec Corp Semiconductor integrated circuit and inspection method therefor
JP2004233202A (en) * 2003-01-30 2004-08-19 Seiko Epson Corp Test circuit, integrated circuit and test method

Also Published As

Publication number Publication date
JPWO2015198367A1 (en) 2017-04-20

Similar Documents

Publication Publication Date Title
US8266485B2 (en) Test mode soft reset circuitry and methods
CN207965049U (en) Circuitry for coupling TAP signals to a JTAG interface in an integrated circuit package
US7783946B2 (en) Scan based computation of a signature concurrently with functional operation
JP2009528535A (en) IC circuit having test access control circuit using JTAG interface
US8841952B1 (en) Data retention flip-flop
US7613968B2 (en) Device and method for JTAG test
US7380189B2 (en) Circuit for PLL-based at-speed scan testing
EP1890234B1 (en) Microcomputer and method for testing the same
CN101846724B (en) Method and apparatus for diagnosing an integrated circuit
JP4091957B2 (en) Testable integrated circuit including multiple clock generators
KR100907254B1 (en) System-on-Chip with IEEE 1500 Wrapper and Its Internal Delay Test Method
CN101065679B (en) Integrated circuit and method for testing multi-TAP integrated circuit
CN101545950B (en) Scan control method and device
US20120137187A1 (en) System and method for scan testing integrated circuits
WO2015198367A1 (en) Test circuit for integrated circuit, information processing device, and test method for integrated circuit
CN114609510B (en) Test control circuit and test control method for processor
US10386411B2 (en) Sequential test access port selection in a JTAG interface
KR100694315B1 (en) Cable Delay Failure Test Controller for System-on-Chip with Multiple System Clocks and Heterogeneous Cores
CN112585486A (en) Extended JTAG controller and method for resetting function by using extended JTAG controller
JP2010002345A (en) Ac test facilitating circuit and ac test method
US7843210B2 (en) Semiconductor integrated circuit device and testing method of the same
JP2005257366A (en) Semiconductor circuit device and scan test method concerning semiconductor circuit
US7902856B2 (en) Semiconductor integrated circuit
US20070011529A1 (en) Semiconductor device and test method thereof
CN119492975A (en) Method for testing synchronization domains during fixed testing

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2015530800

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 14895580

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895580

Country of ref document: EP

Kind code of ref document: A1