US20020184562A1 - Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same - Google Patents

Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same Download PDF

Info

Publication number
US20020184562A1
US20020184562A1 US09/843,307 US84330701A US2002184562A1 US 20020184562 A1 US20020184562 A1 US 20020184562A1 US 84330701 A US84330701 A US 84330701A US 2002184562 A1 US2002184562 A1 US 2002184562A1
Authority
US
United States
Prior art keywords
tap
circuit
register
group
tdi
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.)
Granted
Application number
US09/843,307
Other versions
US6829730B2 (en
Inventor
Benoit Nadeau-Dostie
Jean-Francois Cote
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.)
Siemens Industry Software Inc
Original Assignee
LogicVision Inc
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 LogicVision Inc filed Critical LogicVision Inc
Priority to US09/843,307 priority Critical patent/US6829730B2/en
Assigned to LOGICVISION, INC. reassignment LOGICVISION, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: COTE, JEAN-FRANCOIS, NADEAU-DOSTIE, BENOIT
Priority to PCT/US2002/012267 priority patent/WO2002088945A1/en
Publication of US20020184562A1 publication Critical patent/US20020184562A1/en
Application granted granted Critical
Publication of US6829730B2 publication Critical patent/US6829730B2/en
Assigned to COMERICA BANK reassignment COMERICA BANK SECURITY AGREEMENT Assignors: LOGICVISION, INC.
Assigned to LOGICVISION, INC. reassignment LOGICVISION, INC. RELEASE BY SECURED PARTY (SEE DOCUMENT FOR DETAILS). Assignors: COMERICA BANK
Assigned to MENTOR GRAPHICS CORPORATION reassignment MENTOR GRAPHICS CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LOGICVISION, INC.
Assigned to SIEMENS INDUSTRY SOFTWARE INC. reassignment SIEMENS INDUSTRY SOFTWARE INC. MERGER AND CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: MENTOR GRAPHICS CORPORATION, SIEMENS INDUSTRY SOFTWARE INC.
Adjusted expiration legal-status Critical
Expired - Lifetime 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
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • G01R31/318533Reconfiguring for testing, e.g. LSSD, partitioning using scanning techniques, e.g. LSSD, Boundary Scan, JTAG
    • G01R31/318558Addressing or selecting of subparts of the device under test
    • G01R31/318563Multiple simultaneous testing of subparts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • G01R31/318533Reconfiguring for testing, e.g. LSSD, partitioning using scanning techniques, e.g. LSSD, Boundary Scan, JTAG
    • G01R31/318555Control logic

Definitions

  • the present invention relates, in general, to integrated circuits and, more specifically, to the design of integrated circuits having multiple Test Access Port (TAP) interfaces, a novel circuit, method of and program product for designing such circuits.
  • TAP Test Access Port
  • Test Access Port (TAP) interfaces are used to perform test and debug operations on a circuit.
  • a TAP includes an instruction register, at least one data register, and a test bus which includes a Test Clock input (TCK), a Test Mode Select (TMS) input, a Test Reset input (TRSTN), a Test Data Input (TDI) and a Test Data Output (TDO).
  • TCK Test Clock input
  • TMS Test Mode Select
  • TRSTN Test Reset input
  • TDO Test Data Input
  • TDO Test Data Output
  • a simple serial protocol such as the IEEE 1149.1 protocol illustrated in FIG. 5, is used to access the various test and instruction registers in a TAP.
  • TAP integrated circuits require only one TAP.
  • Embedded processor cores often include debug registers that can be accessed through a TAP under the control of a software development system. More than one such embedded core can be used on the same chip.
  • Most current software development systems assume that all TAPs are connected in a daisy-chain fashion in which the TDI of each TAP is connected to the TDO of the preceding TAP in the chain.
  • the TDI of the first TAP in a chain is connected to the TDI of the circuit and the TDO of the last TAP in a chain is connected to the TDO of the circuit.
  • the TAPs share the test clock input, the TMS input and the TRSTN input.
  • An additional TAP is usually required to control all circuit test operations and a Boundary Scan test data register. However, in other situations, test data registers might need to be shared.
  • TAPs are preferably controlled from the same test bus such as the IEEE 1149.1 standard.
  • the circuit as a whole should be compliant with the standard. It is also necessary to ensure that all of these TAPs are connected in a way that is compatible with existing software development systems. Another constraint is that existing TAPs usually cannot be modified to accommodate a specific circuit context.
  • Whetsel L proposes three techniques.
  • the first technique consists of connecting the TAPs in a single daisy-chain. This technique results in a circuit which is not compliant with the standard.
  • the second technique consists of selecting the TAPs using compliance enable inputs of the circuit. One combination of inputs selects the TAP that is responsible for all boundary scan operations related to the standard.
  • the second variation of the technique addresses the last two limitations by providing shadow registers for all instruction registers of the embedded TAPs. However, it is not possible to access the information captured by the instruction registers of the embedded TAPs during the Capture-IR state. There is also an additional cost in silicon area due to the shadow registers.
  • the present invention seeks to provide a novel, multiple TAP circuit architecture and a method of designing a circuit containing a plurality of TAPs which is compliant with the standard, which does not require modification of any of the embedded TAPs and which can be structurally tested, any which can effectively control any or all of the TAPs without the need for non-standard signals.
  • the present invention provides a Master TAP which functions as the circuit test bus for controlling data transfer operations with the remaining, secondary TAPs in the circuit.
  • the secondary TAPs are connected between the circuit TDI and circuit TDO in one or more TAP groups.
  • a selection code stored in the Master TAP instruction register and loaded with each instruction, specifies the next TAP group which will be involved in a data transfer operation.
  • a TDO selector responds to the selection code by connecting the group TDO of the specified group to the circuit TDO.
  • a group TDI selector is provided for each secondary TAP group.
  • the group TDI selectors are responsive to a shift state signal and operate to connect either the circuit TDI or the output of a padding register to the group TDI of their associated TAP group.
  • the Master TAP produces a TMS signal for each TAP group under the control of the selection code.
  • the TAP group specified by the selection code receives the TMS pulses applied to the circuit TMS pin.
  • the remaining TAP groups receive an inactive TMS signal and are, thus, kept inactive. Except for connecting their test interface connections to the output of the Master TAP, none of the existing TAPs require any modification to accommodate the present invention.
  • the length of the TDI-TDO path through each TAP group is the same for all groups, including the Master TAP group.
  • the padding register may form part of the Master TAP instruction register or may be a separate register for each TAP group.
  • One aspect of the present invention is defined as a circuit having a plurality of Test Access Port interfaces, each interface having test connections including a Test Data Input a Test Data Output a Test Mode Select input, a Test Clock Input and a Test Reset input an instruction register and at least one test data register, comprising: one of the TAPs having test connections serving as a circuit test interface, the one TAP having: an instruction register having a length equal to the length of the longest instruction register plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs; a TDO circuit responsive to the TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and the one TAP further including, for each other TAP in the circuit: a padding register having a length equal to the length of the instruction register of the one TAP less the length of the instruction register of the each other TAP and having an input connected to the circuit TDI, and an output; a TMS circuit responsive to a pre
  • Another aspect of the present invention is defined as a method of designing a circuit containing a plurality of Test Access Port interfaces, each the TAP having a Test Data Input a Test Data Output a Test Mode Select input, a Test Clock Input and a Test Reset input, an instruction register and at least one test data register, the method comprising the steps of providing a master TAP for at least controlling data transfer operations with other TAPs in the circuit; connecting master TAP test inputs and output to corresponding circuit test inputs and outputs; adding to the master TAP, an instruction register having a length equal to the length of the longest instruction register of each other TAP plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs; a TDO circuit responsive to the TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and for each other TAP: adding a padding register having a length equal to the length of the instruction register of the master TAP less the length of the instruction register
  • a further aspect of the present invention is defined as a method of controlling or using a circuit having a plurality of Test Access Port interfaces in which one of the TAPs is connected to circuit test inputs and outputs and each the TAP interface includes a TAP Test Data Input a TAP Test Data Output a TAP Test Mode Select input, a TAP clock input and a TAP reset input an instruction register and at least one test data register, comprising: (a) loading each test instruction into the instruction register of the one of the TAPs, each instruction including a TAP selection code specifying the TAP to be accessed in the next instruction; (b) connecting the TDO of the TAP having a predetermined TAP selection code corresponding to the TAP selection code stored in the instruction register to the TDO of the circuit; (c) connecting the TAP TDI of all TAPs to the circuit TDI when accessing a test data register of a TAP; (d) connecting the TAP TDI of all TAPs to a serial output of respective padding register
  • FIG. 1 is illustrates a simple circuit having three TAPs arranged according to one embodiment of the method of present invention
  • FIG. 2 is a block diagram of a Master TAP according to one embodiment of a circuit constructed according to the present invention
  • FIG. 3 is a schematic illustrating a three TAP group embodiment and showing instruction register shift register bit elements of each TAP and the manner in which the group instruction length is made equal in all groups according to an embodiment of the present invention
  • FIG. 4 is a timing diagram illustrating the synchronization of the TAPs during a reset
  • FIG. 5 illustrates the state diagram of an IEEE 1149.1 compliant TAP
  • FIG. 6 is a block diagrammatic illustration of a circuit in which two TAPs share the same data register according to one embodiment of a circuit constructed according to the present invention.
  • FIG. 1 shows a typical arrangement of TAPs contained in a circuit 10 according to the proposed invention.
  • a first TAP 12 called Master TAP, generates control signals for two embedded (secondary) TAPs, called eTAP1 14 and eTAP2 16 .
  • Each of the TAPs has a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Reset input (TRSTN) and a Test Clock input (TCK). All TAPs also have an instruction register and at least one test data register (TDR). All these features of the TAPs are well known in the art and documented in the IEEE 1149.1 test bus standard.
  • FIG. 5 is a state diagram illustrating the sixteen states of the state machine as defined by the standard and the mechanism for moving from one state to the next. State sequencing is determined by the logic values applied to the TMS pin as TCK is pulsed.
  • the TAP instruction register is selected such that data can be shifted through it. Data is propagated to the TDO pin on the falling edge of TCK. Data at the TDI pin is captured on the rising edge of TCK.
  • TAP controller When the TAP controller is in the Update-IR state, the instruction that has been loaded into the instruction register is propagated to parallel outputs of the instruction register, selecting either a Bypass Register or another Test Data Register (TDR) for shift or capture operations.
  • TDR Test Data Register
  • TAP controller When the TAP controller is in the Capture-DR state, test data is captured into the selected TDR on the next rising edge of TCK.
  • TAP controller When the TAP controller is in the Shift-DR state, data is shifted through the selected TDR via TDI and TDO. As with the instruction register, data is propagated to TDO on the falling edge of TCK and capture at TDI on the rising edge of TCK.
  • the instruction register and each TDR consist of one or more cells.
  • the number of cells in a register is the number of bits in its shift register.
  • a Bypass Register is defined by the standard to have only one cell.
  • Other registers, such as the boundary scan register (BSR), may have any number of cells.
  • Each cell in a register is permitted to have a parallel input for use in capturing data into the cell.
  • Data is captured into the parallel inputs of a TDR on the rising edge of TCK when the TAP controller is in the Capture-DR state.
  • data may be captured into the parallel inputs of the instruction register on the rising edge of TCK when the TAP controller is in the Capture-IR state.
  • TDRs such as the Bypass Register, BSR, and Device Instruction Register (DIR)
  • the standard requires that each cell within the TDR have a parallel input.
  • the Bypass Register the standard dictates that a logic 0 will be captured.
  • the instruction register is required to have latched parallel outputs. These outputs do not change except in response to the falling edge of TCK when the TAP controller is in the Update-IR state.
  • Each cell in the BSR that is associated with output signals is also required to have a latched parallel output. In the test mode of operation, these outputs do not change except in response to the falling edge of TCK when the TAP controller is in the Update-DR state.
  • the two embedded TAPs are shown to be part of processor cores 18 and 20 , but may be part of any other core used to design complex circuits.
  • the test data registers (not shown) of the TAPs can be used to control test and debug functions of the cores.
  • the embedded TAPs are connected in a daisy-chain fashion, a configuration that is expected by many software development systems.
  • the TDI of embedded TAP 16 is connected to the TDO of the preceding TAP, embedded TAP 14 , in the chain.
  • the TDI of TAP 14 is connected to an eTDI output of Master TAP 12 and the TDO output of TAP 16 is connected to an eTDO input of the Master TAP 12 .
  • All TAPs have a test clock input connected to the chip Test Clock Input, TCK.
  • the Master TAP has its TDI, TDO, TMS input and Test Reset input connected to the circuit TDI, circuit TDO, circuit TMS input and circuit test reset input, respectively, and produces a TMS, TRSTN, for each of the remaining TAPs or TAP groups.
  • the Master TAP also controls the TDI and TDO of each of the remaining TAPs as will now be explained.
  • the TAPs are arranged in two or more groups of TAPs. Each group, save that of the Master TAP, may have one or more TAPs.
  • the Master TAP is the sole member of its group.
  • embedded TAPs 14 and 16 are arranged in a first group 22 of TAPs and the Master TAP 12 forms a second group 24 .
  • More groups can be formed without departing from the spirit of the present invention. Typically, two groups should be sufficient. However, the designer might elect to have more groups for a number of design considerations. For example, the designer might need to keep the length of the chain formed by the instruction registers under a certain value within a group.
  • the only constraint associated with the proposed method is that the default TAP must be the only TAP in its group in order for the circuit to be compliant with the 1149.1 standard.
  • the default TAP is the TAP selected after a reset operation. Typically, it would be the Master TAP as shown in FIG. 1.
  • a group can consist of a single TAP.
  • the default TAP i.e. the TAP selected after a reset
  • the default TAP must to be arranged to be the only one in its group. Operations such as instruction register access or test data register access can be performed on only one group of TAPs at any given time. All TAPs within a group are connected in a daisy-chain fashion.
  • the TDI input of the first TAP in the chain is connected to a dedicated group TDI output of the Master TAP, similar to the eTDI output discussed earlier.
  • the TDO output of the last TAP in the chain is connected to a dedicated TDO input to the Master TAP, similar to the eTDO input discussed earlier.
  • the TMS input of all TAPs of a group is connected to a dedicated group TMS output of the Master TAP, similar to the eTMS output discussed earlier. Only the eTRSTN output of the Master TAP can be shared by all groups to control the test reset input of all TAPs.
  • a test operation When a test operation is initiated, only the Master TAP (or a default TAP) is active, which allows an instruction to be loaded into the Master (default) TAP.
  • a group selection code in the instruction selects one of the groups for data transfer. If the Master TAP is selected, data may be serially loaded into the Master TAP instruction register or one of its data registers. Similarly, if one of the other groups is selected, data is serially loaded into the serially connected instruction registers of all of the TAPS in the group. The data will contain an instruction for each of the TAPs in the group.
  • Each TAP operates under the control of its own Finite State Machine (FSM) which, in turn, operates under the control of the TMS and TCK signals applied to the standard test inputs of the circuit.
  • FSM Finite State Machine
  • the Master TAP intercepts the standard signals and modifies them in a predetermined manner and to control all of the TAPs in the circuit. No modifications need be made to embedded TAPs.
  • one of the existing TAPs may be selected and modified in the manner described below to serve as the Master TAP.
  • an additional or new TAP would be required if none of the existing TAPs can be modified.
  • FIG. 2 illustrates circuitry, according to one embodiment of the present invention, required in the Master TAP to implement the invention for the circuit of FIG. 1. Very little additional circuitry is required and most of the circuitry can be located around an existing TAP design, facilitating the implementation.
  • Master TAP 12 includes an instruction register comprised of a shift register 30 and an update register 32 and a multiplexer 34 for selecting between the serial output, SO, of the instruction register and the serial output of a test data register currently selected by the Master TAP. These components are existing components prescribed by the IEEE 1149.1 standard. Instructions are shifted in to the instruction register via the circuit TDI input. The Master TAP Finite State Machine, not shown, generates an active signal, Shift_IR, to indicate when instructions are shifted in. Once all bits of the instruction have been loaded into register 30 , they are transferred in parallel to update register 32 under control of an active UPD_IR signal also generated by the FSM. All of this circuitry and associated operation are described in detail in the IEEE 1149.1 standard.
  • the size of the instruction register connected between the circuit TDI input and circuit TDO output is arranged to be exactly the same for all TAP groups. This allows for much simpler control of the selection of the groups. This may require modification of the instruction register chain length in secondary TAP groups. As explained below, this is automatically accommodated in the Master TAP. No modifications are required in secondary TAPs.
  • the most significant bits of the instruction register of the Master TAP define a selection code for use in selecting the TAP group whose instruction register and test data registers will be accessed next. All modifications required to add the selection code and adjust the length of the instruction register being connected between the circuit TDI input and circuit TDO output are centralized in the Master TAP and do not require modification of any of the other TAPs.
  • a shift register 36 and an associated update register 38 form extensions of the instruction register 30 and update register 32 , respectively, of the Master TAP.
  • the bits of this portion of the instruction register form the selection code which is available at the output Q of update register 38 .
  • the number of bits of shift register 36 must be sufficient to select any of the TAP groups. In the simple example of FIG. 1, only two groups are present and, therefore, only one selection code bit is required.
  • An active value selects the Master TAP group.
  • An inactive value selects group 22 .
  • the number of bits of shift register 30 is not less than the combined length of the instruction registers of any of the TAP groups.
  • instruction bits are added on the TDI side of the serial input of the Master TAP until the length of the instruction of the Master TAP is the same as the maximum combined length of the instruction registers of the TAP groups.
  • the length of the instruction register of embedded TAP 14 is three bits and the length of the instruction register of embedded TAP 16 is four bits, then the length of register 30 of the Master TAP must be seven bits plus one bit for the selection code for a total of eight bits.
  • Instruction bits can be added between the circuit TDI and the instruction register or between the instruction register and the circuit TDO. It is preferred to add the instruction bits on the “TDI side” of the instruction register because TAPs allow such extension of the instruction register in many cases. However, it is conceivable to add the additional instruction bits on the “TDO side”. The important point is to keep the length of the instruction the same for all groups and the selection code bits in the same position.
  • the bits of register 30 are transferred in parallel to update register 32 or decoded and the result of the decoding stored in the update register. It should be noted that the length of the update register need not match the length of register 30 because there might be decoding logic between the shift register and the update register. In fact, this is a common situation.
  • the Q outputs of register 32 are connected to various components that have not been described because they are not directly related to the invention. Some of the bits are decoded to select the test data register that may connected between TDI and TDO. The result of this selection is connected to input 0 of multiplexer 34 . Other bits are connected to embedded test controllers. Still other bits may be used to control debug features defined by the user.
  • the Status bit inputs to registers 30 and 36 are used to observe the state of any signal (or node) in the circuit.
  • the signals could originate from the FSM or from logic test controllers (not shown).
  • the two status bits closest to TDO must be tied to 0 and 1 as specified in the IEEE 1149.1 standard.
  • there is only one status bit input to register 36 because the selection register only needs one bit to select between the two TAP groups.
  • the rest of the instruction register must have at least two bits.
  • the eTDI output of the Master TAP is the output of multiplexer 40 .
  • This multiplexer selects between the circuit TDI input and one of the Q outputs of register 30 under control of a Shift_IR signal.
  • the output of register 30 is chosen such that a number of bits between the circuit TDI input and eTDI are added to the sum of the instruction register lengths of the embedded TAP group to make the resulting length identical to the length of the Master TAP instruction register. This will be better understood by reference to FIG. 3, described later.
  • the select input of multiplexer 40 is connected to control signal, Shift_IR, generated by the FSM.
  • An active value (logic 1) of the control signal indicates that an instruction is being shifted in.
  • a portion of the instruction register shift register is connected between the circuit TDI and the group TDI, eTDI, so as to make the instruction register chain length of the selected TAP group the same as the length of the Master TAP instruction register.
  • An inactive (logic 0) value of the control signal indicates that an instruction is not being loaded and that a data register may being accessed and, accordingly, circuit TDI Input is connected directly to the group TDI, eTDI.
  • a TDO multiplexer 42 selects between the output of multiplexer 34 , the TDO of the Master TAP, and input eTDO. It will be recalled that eTDO receives the TDO output of the last TAP of a TAP group. In the simple example circuit illustrated herein, an active value (logic 1) of the selection code selects the TDO output of Master TAP 12 whereas an inactive value (logic 0) selects the TDO output of TAP group 22 . It will be understood that multiplexer 42 would require a selection code with more bits if there were more than two TAP groups from which to select.
  • a TMS gating circuit 50 is provided for each group.
  • TMS circuit 50 generates output signal eTMS.
  • eTMS is connected to the TMS input of each TAP in the group of embedded TAPs, as shown in FIG. 1.
  • the inputs to gating circuit 50 are the chip TMS input, the signal, M_State, indicative of the current state of the Master TAP FSM, and the selection code.
  • the logic of the gating circuit is very simple. If the group is selected (selection code is 0), OR the current state, M_State, is the Test-Logic-Reset state, then eTMS is identical to TMS. Otherwise, eTMS is forced to 0.
  • an instruction will change the selection code from 1 to 0 during the Update-IR state of the FSM.
  • eTMS will be identical to TMS and the state machine of the embedded TAPs will be free to move from one state to the other.
  • a dedicated first gating circuit is needed for each TAP group because the selection code associated with each group is different.
  • An UPDATE-IR gating circuit forms part of update register 32 and operates to prevent an update of the Master TAP instruction register when the Master TAP is not currently selected.
  • Input SELECT representing the selection code, is gated with input UPD_IR, generated by the FSM during the Update-IR state, such that the update is suppressed if SELECT is 0 and the update is performed if SELECT is 1.
  • a RESET gating circuit 52 controls the test reset (TRSTN) input of all of the embedded TAPs.
  • TRSTN test reset
  • the RESET gating circuit simply transfers an active value of TRSTN to the eTRSTN output to reset the embedded TAPs.
  • a synchronous reset is performed by applying, at most, five test clock pulses during which the chip TMS input has a value of 1.
  • the embedded TAPs will not be able to perform a synchronous reset if they are deselected because the TMS gating circuit keeps eTMS inactive (logic 0).
  • eTMS inactive logic 0
  • the RESET gating circuit will generate an active eTRSTN output and perform an asynchronous reset when the finite state machine of the Master TAP goes through the Select-IR-Scan and the chip TMS is 1, indicating that the finite state machine will move to the Test-Logic-Reset state on the next rising edge of TCK.
  • the low-going pulse on eTRSTN must be short enough to allow the state machine of embedded TAPs to move to the Run-Test-Idle state if TMS has a value of 0 on the next rising edge of TCK.
  • a low-going pulse of the inverted circuit test clock input, TCK is used.
  • Gating logic (not shown) is provided for loading a default selection code after a reset. In the illustrated circuit, the default selection code is set to logic 1 so that the Master TAP becomes the active TAP after a reset. In order to preserve compliance with the standard, it is necessary to load the selection code that selects the default TAP which implements the mandatory instructions of the standard.
  • FIG. 3 illustrates salient portions of a Master TAP 100 and three embedded TAPS 102 , 104 and 106 , shown by dotted rectangles.
  • the four TAPs have been arranged into three TAP groups 110 , 112 and 114 .
  • Master TAP 100 is the sole member of its TAP group, group 110 , as required according to the present invention.
  • the three embedded TAPS are arranged into two TAP groups 112 and 114 .
  • TAP 102 is the sole member of TAP group 112 and has an instruction register 116 comprised of three shift register elements.
  • TAPs 104 and 106 are located in group 114 and have instruction registers 118 and 120 , respectively, each also having three shift register elements. Instruction registers 104 and 106 are serially connected in a serial or daisy chain between a group TDI node 122 and a group TDO node 124 . Group 114 has the longest instruction register chain length of the embedded groups, having a total of six shift register elements or bits.
  • the length of the instruction register 125 of the Master TAP is equal to the length of the longest embedded TAP group instruction register chain, six bits in this case, plus a number of bits for storing the selection code. Since the TAPs have been arranged into three groups in this example, two selection code bits are required to uniquely identify each of the three groups. Thus, the total length of the Master TAP instruction register is eight.
  • the embedded TAPs could also have been arranged into two groups, with the Master TAP being in one group and embedded TAPs 102 , 104 and 106 being in a second group. In that case, the total length of the embedded or secondary TAP instruction register chain would be nine bits. One selection code bit would be required to uniquely identify the two groups and the length of the Master TAP instruction register would be ten shift register elements or bits.
  • the groups are designed so that the number of clock cycles required to scan or shift into any group is the same for all groups. This can be achieved in a number of ways.
  • One way, shown in FIG. 3, is to incorporate a required number of shift register elements of the Master TAP instruction register into the instruction scan path of a group. For example, the total number of shift register elements of the Master TAP group is eight, whereas that of group 112 is three and that of group 114 is six.
  • the instruction scan path of group 112 can be increased to the required eight bits by connecting the output of the fifth shift register element of the Master TAP instruction register to the TDI input 126 of group 112 (via multiplexer 132 described below) so that the scan path for group 112 includes five elements from Master TAP group 110 and the three elements of TAP 102 .
  • the five elements may be referred to as a “padding register”.
  • the length of the instruction scan path of group 114 can be increased to eight bits by connecting the output of the second shift register element of the Master TAP instruction register to the TDI input 122 of group 114 (via multiplexer 134 described below) so that the scan path for group 114 includes two padding shift elements from group 110 and the six elements of TAPs 104 and 106 .
  • Another way of achieving the same result is to add the appropriate number of shift register elements to the instruction scan path of a group between the circuit TDI and the group TDI.
  • FIG. 3 also shows a three input TDO multiplexer 130 which receives the TDO output of each of the three TAP groups and whose output is connected to the circuit TDO.
  • This multiplexer corresponds to multiplexer 42 in FIG. 2.
  • the select input of multiplexer 130 is the selection code which originates from the two most significant bits of the Master TAP instruction register. As previously explained, the selection code becomes available when it is parallel loaded into an update register (not shown in FIG. 3) corresponding to register 38 .
  • FIG. 3 shows TDI multiplexers 132 and 134 associated with embedded TAP groups 112 and 114 , respectively, and correspond to previously mentioned multiplexer 40 .
  • TDI Multiplexers 132 and 134 are controlled by the Shift-IR control signal to determine the source of the data loaded into a TAP group.
  • Shift-IR is active (Logic 1), which connect input 1 of each of multiplexers 132 and 134 to their respective group TDI input.
  • Shift-IR is inactive (logic 0), which connects input 0 of each of multiplexers 132 and 134 to the group TDI input.
  • Input 0 of multiplexers 132 and 134 is connected to the circuit TDI pin, as shown. Only the group specified by the previously loaded selection code will transfer data between the circuit TDI and TDO pins. Except for the Master TAP group, the other groups are precluded from shifting data because their respective TMS gating circuit produces an inactive (logic 0) TMS signal when the active TAP selection code does not correspond to the predetermined group selection code.
  • a reset will usually be applied first to start the TAPs from a known state.
  • the Master TAP is the first TAP selected.
  • An instruction is first loaded into the instruction register of the Master TAP.
  • the instruction will contain a selection code which specifies the TAP group which is to be selected next. If it is desired to access a TAP in embedded TAP group 22 of the illustrated circuit, a value of 0 will be loaded into selection code register 36 . This value will be loaded into update register 38 when the Master TAP FSM is sequenced to the Update-IR state.
  • the selection code will then become available at the Q output of register 38 and cause multiplexer 42 to connect input eTDO from the TDO output of group 22 to the circuit TDO.
  • TMS values are applied to the circuit TMS pin to simultaneously sequence to two embedded TAPs to their Shift-IR state. These values are processed in TMS gating circuit 50 and applied to the TMS input of each of TAPs 14 and 16 of selected TAP group 22 via the eTMS output of circuit 50 .
  • control signal Shift-IR is active and causes multiplexer 40 to connect the appropriate Q output of Master TAP instruction register 30 to the eTDI output of the Master TAP.
  • test data registers of the embedded TAPs are accessed in the conventional fashion, i.e. by loading an appropriate instruction into the embedded TAP of interest, using the procedure described in the previous paragraph.
  • the TAP of interest will respond to that instruction by connecting the data register of interest between its TDI input and TDO output.
  • the embedded TAP is sequenced to the Shift-DR state. In that state, Shift-IR is inactive and, therefore, multiplexer 40 in Master TAP selects the circuit TDI input for output to eTDI.
  • the Master TAP is accessed simply by loading a logic 1 into shift register 38 . This connects the output of multiplexer 34 , which is the TDO output of the Master TAP, to input 1 of multiplexer 42 .
  • the output of multiplexer 42 is connected to the circuit TDO.
  • An instruction is loaded into register 30 by sequencing the Master TAP to the Shift-IR state, in which signal Shift-IR is active, causing multiplexer 34 to select the SO output of register 30 .
  • the test data registers of the Master TAP are accessed by sequencing the Master TAP to the Shift-DR state, in which state the Shift-IR signal is inactive which causes multiplexer 34 to select input 0 which is connected to Master TAP test data registers.
  • the particular test data register which is connected to multiplexer 34 depends on the instruction loaded into instruction register 30 and parallel loaded in register 32 .
  • each of the Master TAP and the embedded TAPs can be accessed in a manner which is fully compliant with the standard. No additional signals are required to effect this operation.
  • the addition of bits to the Master TAP instruction register allows the TAPS to be viewed in different ways. From the outside of the circuit, it may appear as if the circuit contains another TAP, referred to herein as a “dummy TAP”, at the beginning of each daisy-chain of a TAP group.
  • the length of the instruction register of this dummy TAP may vary for each group because the combined length of the instruction registers of the various groups might be different.
  • a data register such as shown by reference numeral 136 in FIG. 3, is added between the circuit TDI and the group TDI node during the shift-DR state to emulate a dummy TAP bypass register.
  • the description of the board view will include a BSDL file describing the dummy TAP along with the existing BSDL files of the embedded TAPs.
  • at least two bits of the Master TAP instruction register must be part of the daisy chain of secondary TAPs so that the of the dummy TAP “instruction register” can capture a 01 value as required by the standard.
  • Another way of viewing the circuit in the case in which all groups contain exactly one TAP is to view the additional bits, including the selection code, as an extension of the existing instruction bits.
  • the selection code ensures that the codes (also called opcodes) associated with the various instructions of the TAPs do not interfere with each other even, if two instructions of two different TAPs had originally the same opcode. This is especially important in the case in which TAPs or different groups share common test data registers, a situation discussed with reference to FIG. 6.
  • the additional bits are simply added to the bits of the instruction register of the first TAP in the group. In each of these cases, the views are reflected in the circuit description file and BSDL files.
  • FIG. 6 illustrates a simple circuit 60 in which a Master TAP 62 shares a test data register 64 with an embedded TAP 66 .
  • Test data register 64 could be a boundary scan register, for example.
  • the test data register has a serial input, SI, a serial output SO and a control signal bus, CTL, which consists of at least one input control signal.
  • Serial input SI is connected to the output of multiplexer 70 which selects the appropriate source for serial input SI based on the selection code generated by the Master TAP and applied to the SELECT input of TAP 66 .
  • the two potential sources are output TOSI of embedded TAP 66 and output TOSI of Master TAP 62 .
  • a multiplexer 72 selects between output bus TOCTL of embedded TAP 66 and output bus TOCTL of Master TAP 62 .
  • a selection code value of 0 selects the outputs of embedded TAP 66 whereas a selection code value of 1 selects the outputs of the Master TAP.
  • the test data register can equally well be shared by two groups of embedded TAPs.
  • the serial output of test data register 64 is connected to the appropriate input of all TAPs sharing this register. In this case, serial output SO is connected to input FRSO of each of embedded TAP 64 and Master TAP 62 . It is not necessary for the Master TAP to be one of the possible sources for the inputs of test data register 64 . However, the Master TAP will control multiplexers 70 and 72 when two other TAPs share a data register.
  • integrated circuit devices are typically designed and fabricated using one or more computer data files, referred to herein as hardware definition programs, that define the layout of the circuit arrangements of the devices.
  • the programs are typically generated by design tools and are subsequently used during manufacturing to create layout masks that define the circuit arrangements applied to a semiconductor wafer.
  • the programs are provided in a predefined format using a hardware description language (HDL) such as VHDL, verilog, EDIF, etc.
  • HDL hardware description language
  • signal bearing media include but are not limited to recordable type media such as volatile and non-volatile memory devices, floppy disks, hard disk drives, CD-ROM's, and DVD's, among others and transmission type media such as digital and analog communications links.
  • Another important aspect of the present invention relates to a program product in the form of a circuit design tool recorded on a storage medium and a corresponding method for designing a circuit having multiple access ports and, more specifically, for modifying an existing description of a circuit having multiple TAPs so as to configure the circuit in the manner described herein.
  • the circuit design tool of the present invention reads a circuit description of a circuit to be processed.
  • the circuit description may include a description of TAPs which are independent of one another or which have already been arranged into one or more daisy chain of TAPs. In either case, the TCK, TRSTN and TMS pins of all embedded TAPs will already be connected to the output of the TCK, TRSTN and TMS input buffers of the circuit.
  • the scan path of the embedded TAPs will already be connected between the circuit TDI and circuit TDO pins in which the TDI pin of the first embedded TAP connects to the output of the TDI input buffer and the TDO pin of the last embedded TAP connects to the input of the TDO output buffer.
  • the enable port of the TDO output buffer may or may not be driven by a TDOEnable output of one of the embedded TAPs. If it is not driven by an embedded TAP, then the output buffer will be tied on by the design tool of the present invention.
  • a designer or user will indicate to the tool the presence of secondary TAPs (embedded TAPs) within a sub-wrapper of a “TAP” wrapper called “SecondaryTAPs”.
  • “Wrapper” is syntax that describes software format which may be in the form: “WrapperName ⁇ property1:value; property2:value; propertyN:value ⁇ ”.
  • “WrapperName” is the name of a wrapper and propertyX represents an attribute associated with the wrapper.
  • the tool reads the circuit description file, searches for the all existing TAP descriptions and modifies the descriptions so as to provide the connections described earlier.
  • the tool inserts a Master TAP description with the four extra ports eTDI, eTDO, eTMS, and eTRSTN.
  • the user also specifies the identity of the default TAP, by setting a variable, such as SelectMasterTAP.
  • the tool moves the net driven from the TDI, TMS and TRSTN input buffers to the Master TAP output ports eTDI, eTMS and eTRSTN, respectively, and the net driving the input of the TDO output buffer to the Master TAP input port eTDO.
  • the clock connection to the test clock input, TCK need not be changed.
  • the tool configures the enable of the TDO buffer to be driven by a Master TAP TDOEnable port (not shown).
  • the definition of the Master TAP created by the tool will include a description of the Reset gating logic circuit, the TMS gating logic circuit, the update suppression logic circuit, the TDI multiplexer (or multiplexers if there is more than one secondary TAP group) the definition of the padding register(s) and the TDO multiplexer.
  • first TAP 12 called Master TAP [5] eTAP1 14 [5] eTAP2 16 [5] processor cores 18 and 20 [7] first group 22 of TAPs [7] second group 24 [7] shift register 30 [8] update register 32 [9] multiplexer 34 [9] shift register 36 [9] an associated update register 38 [9] multiplexer 40 [10] TDO multiplexer 42 [11] TMS gating circuit 50 [11] RESET gating circuit 52 [12] Master TAP 100 [12] embedded TAPS 102, 104 and 106 [12] three TAP groups 110, 112 and 114 [12] instruction register 116 [13] instruction registers 118 and 120 [13] group TDI node 122 [13] group TDO node 124 [13] instruction register 125 of the Master TAP [13] TDI input 126 [13] TDI multiplexers 132 and 134 associated with embedded [14] TAP groups 112 and 114, respectively a data register, such as

Abstract

In a circuit with multiple Test Access Port (TAP) interfaces, the TAPs are arranged into groups, with secondary TAPs in one or more groups and a master TAP in another group, the master TAP having an instruction register with bits for storing a group selection code; a Test Data Output (TDO) circuit responsive to the group selection code connects the group TDO of one of the groups to the circuit TDO; and, for each secondary TAP group, a group Test Data Input (TDI) circuit responsive to a shift state signal for selectively connecting the group TDI to the circuit TDI or to the output of a padding register having its input connected to the circuit TDI, and its output connected to an input of the group TDI circuit; and a group TMS circuit responsive to a predetermined TAP selection code associated with the group for producing a group TMS signal for each TAP in the group.

Description

  • The present invention relates, in general, to integrated circuits and, more specifically, to the design of integrated circuits having multiple Test Access Port (TAP) interfaces, a novel circuit, method of and program product for designing such circuits. [0001]
  • BACKGROUND OF THE INVENTION
  • Test Access Port (TAP) interfaces are used to perform test and debug operations on a circuit. A TAP includes an instruction register, at least one data register, and a test bus which includes a Test Clock input (TCK), a Test Mode Select (TMS) input, a Test Reset input (TRSTN), a Test Data Input (TDI) and a Test Data Output (TDO). A simple serial protocol, such as the IEEE 1149.1 protocol illustrated in FIG. 5, is used to access the various test and instruction registers in a TAP. [0002]
  • Most integrated circuits require only one TAP. However, there are a number of situations in which more than one TAP are present on a chip. Embedded processor cores often include debug registers that can be accessed through a TAP under the control of a software development system. More than one such embedded core can be used on the same chip. Most current software development systems assume that all TAPs are connected in a daisy-chain fashion in which the TDI of each TAP is connected to the TDO of the preceding TAP in the chain. The TDI of the first TAP in a chain is connected to the TDI of the circuit and the TDO of the last TAP in a chain is connected to the TDO of the circuit. The TAPs share the test clock input, the TMS input and the TRSTN input. An additional TAP is usually required to control all circuit test operations and a Boundary Scan test data register. However, in other situations, test data registers might need to be shared. [0003]
  • These TAPs are preferably controlled from the same test bus such as the IEEE 1149.1 standard. The circuit as a whole should be compliant with the standard. It is also necessary to ensure that all of these TAPs are connected in a way that is compatible with existing software development systems. Another constraint is that existing TAPs usually cannot be modified to accommodate a specific circuit context. [0004]
  • Several techniques have been proposed to handle the presence of several TAPs in a circuit. In a paper entitled “An IEEE 1149.1 Based Test Access Architecture for ICs With Embedded Cores”, IEEE International Test Conference, 1997, pp. 69-78, incorporated herein by reference, Whetsel L. proposes three techniques. The first technique consists of connecting the TAPs in a single daisy-chain. This technique results in a circuit which is not compliant with the standard. The second technique consists of selecting the TAPs using compliance enable inputs of the circuit. One combination of inputs selects the TAP that is responsible for all boundary scan operations related to the standard. This method requires additional inputs beyond of the five inputs required by the standard and the number of inputs increases with the number of TAPs. These inputs are not compatible with most software development systems. The third technique, which is also described in Whetsel U.S. Pat. No. 6,073,254 granted on Jun. 6, 2000 for “Selectively Accessing Test Access Ports in a Multiple Test Access Port Environment”, incorporated herein by reference, provides a register for performing data transfer operations between the test bus and the TAPs. The method requires modification of the existing TAPs to generate a select output connected to the register and to accept an enable output generated by the register. Clearly, none of these methods meet the constraints set out earlier. [0005]
  • Oakland (Oakland S., “Considerations for Implementing IEEE 1149.1 on System-on-a-Chip Integrated Circuits”, IEEE International Test Conference, 2000, pp. 628-637), incorporated herein by reference, proposes two variations of the same technique. While the technique meets the constraints mentioned earlier, it possesses a number of limitations that are not desirable. According to the first variation of the technique, whenever an instruction needs to be shifted into any of the TAPs, the instruction register of all TAPs are concatenated to form a single instruction. The length of the instructions to be shifted in can become excessively long. Also, it is not possible to perform a structural test of the embedded TAPs. Finally, it is very difficult to diagnose problems because the instruction register is distributed throughout the chip. The second variation of the technique addresses the last two limitations by providing shadow registers for all instruction registers of the embedded TAPs. However, it is not possible to access the information captured by the instruction registers of the embedded TAPs during the Capture-IR state. There is also an additional cost in silicon area due to the shadow registers. [0006]
  • SUMMARY OF THE INVENTION
  • The present invention seeks to provide a novel, multiple TAP circuit architecture and a method of designing a circuit containing a plurality of TAPs which is compliant with the standard, which does not require modification of any of the embedded TAPs and which can be structurally tested, any which can effectively control any or all of the TAPs without the need for non-standard signals. [0007]
  • The present invention provides a Master TAP which functions as the circuit test bus for controlling data transfer operations with the remaining, secondary TAPs in the circuit. The secondary TAPs are connected between the circuit TDI and circuit TDO in one or more TAP groups. A selection code, stored in the Master TAP instruction register and loaded with each instruction, specifies the next TAP group which will be involved in a data transfer operation. A TDO selector responds to the selection code by connecting the group TDO of the specified group to the circuit TDO. A group TDI selector is provided for each secondary TAP group. The group TDI selectors are responsive to a shift state signal and operate to connect either the circuit TDI or the output of a padding register to the group TDI of their associated TAP group. The Master TAP produces a TMS signal for each TAP group under the control of the selection code. The TAP group specified by the selection code receives the TMS pulses applied to the circuit TMS pin. The remaining TAP groups receive an inactive TMS signal and are, thus, kept inactive. Except for connecting their test interface connections to the output of the Master TAP, none of the existing TAPs require any modification to accommodate the present invention. To simplify instruction loading operations, the length of the TDI-TDO path through each TAP group is the same for all groups, including the Master TAP group. The padding register may form part of the Master TAP instruction register or may be a separate register for each TAP group. [0008]
  • One aspect of the present invention is defined as a circuit having a plurality of Test Access Port interfaces, each interface having test connections including a Test Data Input a Test Data Output a Test Mode Select input, a Test Clock Input and a Test Reset input an instruction register and at least one test data register, comprising: one of the TAPs having test connections serving as a circuit test interface, the one TAP having: an instruction register having a length equal to the length of the longest instruction register plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs; a TDO circuit responsive to the TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and the one TAP further including, for each other TAP in the circuit: a padding register having a length equal to the length of the instruction register of the one TAP less the length of the instruction register of the each other TAP and having an input connected to the circuit TDI, and an output; a TMS circuit responsive to a predetermined TAP selection code associated with the each other TAP and a TMS signal applied to a circuit TMS input for producing a TAP TMS signal for the each other TAP; and a TDI circuit responsive to a shift state signal for selectively connecting the TDI of the other TAP to the circuit TDI or to the output of the padding register. [0009]
  • Another aspect of the present invention is defined as a method of designing a circuit containing a plurality of Test Access Port interfaces, each the TAP having a Test Data Input a Test Data Output a Test Mode Select input, a Test Clock Input and a Test Reset input, an instruction register and at least one test data register, the method comprising the steps of providing a master TAP for at least controlling data transfer operations with other TAPs in the circuit; connecting master TAP test inputs and output to corresponding circuit test inputs and outputs; adding to the master TAP, an instruction register having a length equal to the length of the longest instruction register of each other TAP plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs; a TDO circuit responsive to the TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and for each other TAP: adding a padding register having a length equal to the length of the instruction register of the master TAP less the length of the instruction register of the each other TAP and having an input connected to the circuit TDI, and an output; adding a TMS circuit responsive to a predetermined TAP selection code of the each other TAP for gating TMS pulses applied to the circuit TMS input to the each other TAP; adding a TDI circuit responsive to a shift state signal for connecting the TAP TDI to either the circuit TDI and or the output of the padding register. [0010]
  • A further aspect of the present invention is defined as a method of controlling or using a circuit having a plurality of Test Access Port interfaces in which one of the TAPs is connected to circuit test inputs and outputs and each the TAP interface includes a TAP Test Data Input a TAP Test Data Output a TAP Test Mode Select input, a TAP clock input and a TAP reset input an instruction register and at least one test data register, comprising: (a) loading each test instruction into the instruction register of the one of the TAPs, each instruction including a TAP selection code specifying the TAP to be accessed in the next instruction; (b) connecting the TDO of the TAP having a predetermined TAP selection code corresponding to the TAP selection code stored in the instruction register to the TDO of the circuit; (c) connecting the TAP TDI of all TAPs to the circuit TDI when accessing a test data register of a TAP; (d) connecting the TAP TDI of all TAPs to a serial output of respective padding register when the instruction register of a TAP is to be accessed; and (e) applying a sufficient number of clock cycles to shift data into the test data register or an instruction into the instruction register of the specified TAP; and (f) repeating steps (a)-(f) for each additional data transfer operation.[0011]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • These and other features of the invention will become more apparent from the following description in which reference is made to the appended drawings in which: [0012]
  • FIG. 1 is illustrates a simple circuit having three TAPs arranged according to one embodiment of the method of present invention; [0013]
  • FIG. 2 is a block diagram of a Master TAP according to one embodiment of a circuit constructed according to the present invention; [0014]
  • FIG. 3 is a schematic illustrating a three TAP group embodiment and showing instruction register shift register bit elements of each TAP and the manner in which the group instruction length is made equal in all groups according to an embodiment of the present invention; [0015]
  • FIG. 4 is a timing diagram illustrating the synchronization of the TAPs during a reset; [0016]
  • FIG. 5 illustrates the state diagram of an IEEE 1149.1 compliant TAP; [0017]
  • FIG. 6 is a block diagrammatic illustration of a circuit in which two TAPs share the same data register according to one embodiment of a circuit constructed according to the present invention.[0018]
  • DETAILED DESCRIPTION
  • In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well known methods, procedures, components and circuits have not been described in detail so as not to obscure aspects of the present invention. [0019]
  • FIG. 1 shows a typical arrangement of TAPs contained in a [0020] circuit 10 according to the proposed invention. A first TAP 12, called Master TAP, generates control signals for two embedded (secondary) TAPs, called eTAP1 14 and eTAP2 16. Each of the TAPs has a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Reset input (TRSTN) and a Test Clock input (TCK). All TAPs also have an instruction register and at least one test data register (TDR). All these features of the TAPs are well known in the art and documented in the IEEE 1149.1 test bus standard.
  • By way of background, the standard Test Access Port interface operates under control of a TAP controller state machine according to TMS and TCK. FIG. 5 is a state diagram illustrating the sixteen states of the state machine as defined by the standard and the mechanism for moving from one state to the next. State sequencing is determined by the logic values applied to the TMS pin as TCK is pulsed. When the TAP controller is in the Shift-IR state, the TAP instruction register is selected such that data can be shifted through it. Data is propagated to the TDO pin on the falling edge of TCK. Data at the TDI pin is captured on the rising edge of TCK. When the TAP controller is in the Update-IR state, the instruction that has been loaded into the instruction register is propagated to parallel outputs of the instruction register, selecting either a Bypass Register or another Test Data Register (TDR) for shift or capture operations. When the TAP controller is in the Capture-DR state, test data is captured into the selected TDR on the next rising edge of TCK. When the TAP controller is in the Shift-DR state, data is shifted through the selected TDR via TDI and TDO. As with the instruction register, data is propagated to TDO on the falling edge of TCK and capture at TDI on the rising edge of TCK. [0021]
  • The instruction register and each TDR consist of one or more cells. The number of cells in a register is the number of bits in its shift register. A Bypass Register is defined by the standard to have only one cell. Other registers, such as the boundary scan register (BSR), may have any number of cells. [0022]
  • Each cell in a register is permitted to have a parallel input for use in capturing data into the cell. Data is captured into the parallel inputs of a TDR on the rising edge of TCK when the TAP controller is in the Capture-DR state. Similarly, data may be captured into the parallel inputs of the instruction register on the rising edge of TCK when the TAP controller is in the Capture-IR state. For certain TDRs, such as the Bypass Register, BSR, and Device Instruction Register (DIR), the standard requires that each cell within the TDR have a parallel input. For the Bypass Register, the standard dictates that a [0023] logic 0 will be captured.
  • The instruction register is required to have latched parallel outputs. These outputs do not change except in response to the falling edge of TCK when the TAP controller is in the Update-IR state. Each cell in the BSR that is associated with output signals is also required to have a latched parallel output. In the test mode of operation, these outputs do not change except in response to the falling edge of TCK when the TAP controller is in the Update-DR state. [0024]
  • Returning to FIG. 1, the two embedded TAPs are shown to be part of [0025] processor cores 18 and 20, but may be part of any other core used to design complex circuits. The test data registers (not shown) of the TAPs can be used to control test and debug functions of the cores. The embedded TAPs are connected in a daisy-chain fashion, a configuration that is expected by many software development systems. The TDI of embedded TAP 16 is connected to the TDO of the preceding TAP, embedded TAP 14, in the chain. The TDI of TAP 14 is connected to an eTDI output of Master TAP 12 and the TDO output of TAP 16 is connected to an eTDO input of the Master TAP 12.
  • It will be understood that more than two such cores can be connected that way in the same circuit and the proposed invention has no limitation in that respect. All TAPs have a test clock input connected to the chip Test Clock Input, TCK. [0026]
  • The Master TAP has its TDI, TDO, TMS input and Test Reset input connected to the circuit TDI, circuit TDO, circuit TMS input and circuit test reset input, respectively, and produces a TMS, TRSTN, for each of the remaining TAPs or TAP groups. The Master TAP also controls the TDI and TDO of each of the remaining TAPs as will now be explained. [0027]
  • The TAPs, including the Master TAP, are arranged in two or more groups of TAPs. Each group, save that of the Master TAP, may have one or more TAPs. The Master TAP is the sole member of its group. In the illustrated example circuit, embedded [0028] TAPs 14 and 16 are arranged in a first group 22 of TAPs and the Master TAP 12 forms a second group 24. More groups can be formed without departing from the spirit of the present invention. Typically, two groups should be sufficient. However, the designer might elect to have more groups for a number of design considerations. For example, the designer might need to keep the length of the chain formed by the instruction registers under a certain value within a group. There could be a limitation of the software development system that limits the number of TAPs in a daisy-chain. The only constraint associated with the proposed method is that the default TAP must be the only TAP in its group in order for the circuit to be compliant with the 1149.1 standard. The default TAP is the TAP selected after a reset operation. Typically, it would be the Master TAP as shown in FIG. 1. A group can consist of a single TAP. In fact, in the case where the default TAP, i.e. the TAP selected after a reset, is not the Master TAP, the default TAP must to be arranged to be the only one in its group. Operations such as instruction register access or test data register access can be performed on only one group of TAPs at any given time. All TAPs within a group are connected in a daisy-chain fashion.
  • The TDI input of the first TAP in the chain is connected to a dedicated group TDI output of the Master TAP, similar to the eTDI output discussed earlier. The TDO output of the last TAP in the chain is connected to a dedicated TDO input to the Master TAP, similar to the eTDO input discussed earlier. The TMS input of all TAPs of a group is connected to a dedicated group TMS output of the Master TAP, similar to the eTMS output discussed earlier. Only the eTRSTN output of the Master TAP can be shared by all groups to control the test reset input of all TAPs. [0029]
  • Before describing details of the circuit, it will be useful to briefly describe the mode of operation of the circuit. This will facilitate understanding of the circuitry. [0030]
  • When a test operation is initiated, only the Master TAP (or a default TAP) is active, which allows an instruction to be loaded into the Master (default) TAP. A group selection code in the instruction selects one of the groups for data transfer. If the Master TAP is selected, data may be serially loaded into the Master TAP instruction register or one of its data registers. Similarly, if one of the other groups is selected, data is serially loaded into the serially connected instruction registers of all of the TAPS in the group. The data will contain an instruction for each of the TAPs in the group. [0031]
  • Each TAP operates under the control of its own Finite State Machine (FSM) which, in turn, operates under the control of the TMS and TCK signals applied to the standard test inputs of the circuit. As will be seen below, the Master TAP intercepts the standard signals and modifies them in a predetermined manner and to control all of the TAPs in the circuit. No modifications need be made to embedded TAPs. [0032]
  • In the design of the circuit, one of the existing TAPs may be selected and modified in the manner described below to serve as the Master TAP. Thus, it is not necessary to add an additional TAP to the circuit, although that is a possibility. However, an additional or new TAP would be required if none of the existing TAPs can be modified. [0033]
  • FIG. 2 illustrates circuitry, according to one embodiment of the present invention, required in the Master TAP to implement the invention for the circuit of FIG. 1. Very little additional circuitry is required and most of the circuitry can be located around an existing TAP design, facilitating the implementation. [0034] Master TAP 12 includes an instruction register comprised of a shift register 30 and an update register 32 and a multiplexer 34 for selecting between the serial output, SO, of the instruction register and the serial output of a test data register currently selected by the Master TAP. These components are existing components prescribed by the IEEE 1149.1 standard. Instructions are shifted in to the instruction register via the circuit TDI input. The Master TAP Finite State Machine, not shown, generates an active signal, Shift_IR, to indicate when instructions are shifted in. Once all bits of the instruction have been loaded into register 30, they are transferred in parallel to update register 32 under control of an active UPD_IR signal also generated by the FSM. All of this circuitry and associated operation are described in detail in the IEEE 1149.1 standard.
  • In accordance with the present invention, the size of the instruction register connected between the circuit TDI input and circuit TDO output is arranged to be exactly the same for all TAP groups. This allows for much simpler control of the selection of the groups. This may require modification of the instruction register chain length in secondary TAP groups. As explained below, this is automatically accommodated in the Master TAP. No modifications are required in secondary TAPs. [0035]
  • The most significant bits of the instruction register of the Master TAP define a selection code for use in selecting the TAP group whose instruction register and test data registers will be accessed next. All modifications required to add the selection code and adjust the length of the instruction register being connected between the circuit TDI input and circuit TDO output are centralized in the Master TAP and do not require modification of any of the other TAPs. [0036]
  • Referring to FIG. 2, a [0037] shift register 36 and an associated update register 38 form extensions of the instruction register 30 and update register 32, respectively, of the Master TAP. The bits of this portion of the instruction register form the selection code which is available at the output Q of update register 38. The number of bits of shift register 36 must be sufficient to select any of the TAP groups. In the simple example of FIG. 1, only two groups are present and, therefore, only one selection code bit is required. An active value selects the Master TAP group. An inactive value selects group 22. The number of bits of shift register 30 is not less than the combined length of the instruction registers of any of the TAP groups. If this not the case, instruction bits are added on the TDI side of the serial input of the Master TAP until the length of the instruction of the Master TAP is the same as the maximum combined length of the instruction registers of the TAP groups. By way of example, if the length of the instruction register of embedded TAP 14 is three bits and the length of the instruction register of embedded TAP 16 is four bits, then the length of register 30 of the Master TAP must be seven bits plus one bit for the selection code for a total of eight bits. Instruction bits can be added between the circuit TDI and the instruction register or between the instruction register and the circuit TDO. It is preferred to add the instruction bits on the “TDI side” of the instruction register because TAPs allow such extension of the instruction register in many cases. However, it is conceivable to add the additional instruction bits on the “TDO side”. The important point is to keep the length of the instruction the same for all groups and the selection code bits in the same position.
  • As mentioned, the bits of [0038] register 30 are transferred in parallel to update register 32 or decoded and the result of the decoding stored in the update register. It should be noted that the length of the update register need not match the length of register 30 because there might be decoding logic between the shift register and the update register. In fact, this is a common situation. The Q outputs of register 32 are connected to various components that have not been described because they are not directly related to the invention. Some of the bits are decoded to select the test data register that may connected between TDI and TDO. The result of this selection is connected to input 0 of multiplexer 34. Other bits are connected to embedded test controllers. Still other bits may be used to control debug features defined by the user.
  • The Status bit inputs to [0039] registers 30 and 36 are used to observe the state of any signal (or node) in the circuit. The signals could originate from the FSM or from logic test controllers (not shown). In a normal TAP, the two status bits closest to TDO must be tied to 0 and 1 as specified in the IEEE 1149.1 standard. In the example shown in FIG. 2, there is only one status bit input to register 36 because the selection register only needs one bit to select between the two TAP groups. The rest of the instruction register must have at least two bits.
  • The eTDI output of the Master TAP is the output of [0040] multiplexer 40. This multiplexer selects between the circuit TDI input and one of the Q outputs of register 30 under control of a Shift_IR signal. The output of register 30 is chosen such that a number of bits between the circuit TDI input and eTDI are added to the sum of the instruction register lengths of the embedded TAP group to make the resulting length identical to the length of the Master TAP instruction register. This will be better understood by reference to FIG. 3, described later.
  • The select input of [0041] multiplexer 40 is connected to control signal, Shift_IR, generated by the FSM. An active value (logic 1) of the control signal indicates that an instruction is being shifted in. In this case, a portion of the instruction register shift register is connected between the circuit TDI and the group TDI, eTDI, so as to make the instruction register chain length of the selected TAP group the same as the length of the Master TAP instruction register. An inactive (logic 0) value of the control signal indicates that an instruction is not being loaded and that a data register may being accessed and, accordingly, circuit TDI Input is connected directly to the group TDI, eTDI.
  • A [0042] TDO multiplexer 42 selects between the output of multiplexer 34, the TDO of the Master TAP, and input eTDO. It will be recalled that eTDO receives the TDO output of the last TAP of a TAP group. In the simple example circuit illustrated herein, an active value (logic 1) of the selection code selects the TDO output of Master TAP 12 whereas an inactive value (logic 0) selects the TDO output of TAP group 22. It will be understood that multiplexer 42 would require a selection code with more bits if there were more than two TAP groups from which to select.
  • A [0043] TMS gating circuit 50 is provided for each group. TMS circuit 50 generates output signal eTMS. eTMS is connected to the TMS input of each TAP in the group of embedded TAPs, as shown in FIG. 1. The inputs to gating circuit 50 are the chip TMS input, the signal, M_State, indicative of the current state of the Master TAP FSM, and the selection code. The logic of the gating circuit is very simple. If the group is selected (selection code is 0), OR the current state, M_State, is the Test-Logic-Reset state, then eTMS is identical to TMS. Otherwise, eTMS is forced to 0.
  • After a reset, all TAPs start from the Test-Logic-Reset state and move to the Run-Test-Idle state consequent to TMS becoming 0, as shown in FIG. 5. Once in the Run-Test-Idle state, eTMS is allowed to take a value of 1 only if TMS is 1 AND the selection code is 0. Otherwise, eTMS will be 0 and the deselected TAPs are kept in the Run-Test-Idle state whereas the selected TAP, the Master TAP in this case, will move from one state to another according to the value of TMS as specified in the standard. [0044]
  • Eventually, an instruction will change the selection code from 1 to 0 during the Update-IR state of the FSM. At that time, eTMS will be identical to TMS and the state machine of the embedded TAPs will be free to move from one state to the other. A dedicated first gating circuit is needed for each TAP group because the selection code associated with each group is different. [0045]
  • An UPDATE-IR gating circuit forms part of [0046] update register 32 and operates to prevent an update of the Master TAP instruction register when the Master TAP is not currently selected. Input SELECT, representing the selection code, is gated with input UPD_IR, generated by the FSM during the Update-IR state, such that the update is suppressed if SELECT is 0 and the update is performed if SELECT is 1.
  • A [0047] RESET gating circuit 52 controls the test reset (TRSTN) input of all of the embedded TAPs. In the IEEE 1149.1 standard, there are two ways of performing a reset of the test logic. These include an asynchronous reset and a synchronous reset. An asynchronous reset is performed by applying an active value (logic 0 in the standard) to the chip test reset input. The result of doing so moves the FSM to the Test-Logic-Reset state immediately without a need for applying clock pulses and irrespective of the current state of the FSM. The RESET gating circuit simply transfers an active value of TRSTN to the eTRSTN output to reset the embedded TAPs.
  • A synchronous reset is performed by applying, at most, five test clock pulses during which the chip TMS input has a value of 1. The embedded TAPs will not be able to perform a synchronous reset if they are deselected because the TMS gating circuit keeps eTMS inactive (logic 0). Thus, a circuit is needed to move the state of the embedded TAPs from Run-Test-Idle to Test-Logic-Reset. The RESET gating circuit will generate an active eTRSTN output and perform an asynchronous reset when the finite state machine of the Master TAP goes through the Select-IR-Scan and the chip TMS is 1, indicating that the finite state machine will move to the Test-Logic-Reset state on the next rising edge of TCK. FIG. 4 shows the synchronization of the TAPs around the time of a synchronous reset sequence. The low-going pulse on eTRSTN must be short enough to allow the state machine of embedded TAPs to move to the Run-Test-Idle state if TMS has a value of 0 on the next rising edge of TCK. In the present embodiment, a low-going pulse of the inverted circuit test clock input, TCK, is used. However, other methods can be used. Gating logic (not shown) is provided for loading a default selection code after a reset. In the illustrated circuit, the default selection code is set to [0048] logic 1 so that the Master TAP becomes the active TAP after a reset. In order to preserve compliance with the standard, it is necessary to load the selection code that selects the default TAP which implements the mandatory instructions of the standard.
  • FIG. 3 illustrates salient portions of a [0049] Master TAP 100 and three embedded TAPS 102, 104 and 106, shown by dotted rectangles. To simplify the figure and the description, a number of components, such as the update registers, data registers and gating circuits, have not be included in the figure. In this figure, the four TAPs have been arranged into three TAP groups 110, 112 and 114. Master TAP 100 is the sole member of its TAP group, group 110, as required according to the present invention. The three embedded TAPS are arranged into two TAP groups 112 and 114. TAP 102 is the sole member of TAP group 112 and has an instruction register 116 comprised of three shift register elements. TAPs 104 and 106 are located in group 114 and have instruction registers 118 and 120, respectively, each also having three shift register elements. Instruction registers 104 and 106 are serially connected in a serial or daisy chain between a group TDI node 122 and a group TDO node 124. Group 114 has the longest instruction register chain length of the embedded groups, having a total of six shift register elements or bits.
  • In accordance with the present invention, the length of the [0050] instruction register 125 of the Master TAP is equal to the length of the longest embedded TAP group instruction register chain, six bits in this case, plus a number of bits for storing the selection code. Since the TAPs have been arranged into three groups in this example, two selection code bits are required to uniquely identify each of the three groups. Thus, the total length of the Master TAP instruction register is eight.
  • The embedded TAPs could also have been arranged into two groups, with the Master TAP being in one group and embedded [0051] TAPs 102,104 and 106 being in a second group. In that case, the total length of the embedded or secondary TAP instruction register chain would be nine bits. One selection code bit would be required to uniquely identify the two groups and the length of the Master TAP instruction register would be ten shift register elements or bits.
  • To facilitate loading of instructions into the various groups, the groups are designed so that the number of clock cycles required to scan or shift into any group is the same for all groups. This can be achieved in a number of ways. One way, shown in FIG. 3, is to incorporate a required number of shift register elements of the Master TAP instruction register into the instruction scan path of a group. For example, the total number of shift register elements of the Master TAP group is eight, whereas that of [0052] group 112 is three and that of group 114 is six. The instruction scan path of group 112 can be increased to the required eight bits by connecting the output of the fifth shift register element of the Master TAP instruction register to the TDI input 126 of group 112 (via multiplexer 132 described below) so that the scan path for group 112 includes five elements from Master TAP group 110 and the three elements of TAP 102. The five elements may be referred to as a “padding register”. Similarly, the length of the instruction scan path of group 114 can be increased to eight bits by connecting the output of the second shift register element of the Master TAP instruction register to the TDI input 122 of group 114 (via multiplexer 134 described below) so that the scan path for group 114 includes two padding shift elements from group 110 and the six elements of TAPs 104 and 106.
  • Another way of achieving the same result is to add the appropriate number of shift register elements to the instruction scan path of a group between the circuit TDI and the group TDI. [0053]
  • FIG. 3 also shows a three [0054] input TDO multiplexer 130 which receives the TDO output of each of the three TAP groups and whose output is connected to the circuit TDO. This multiplexer corresponds to multiplexer 42 in FIG. 2. The select input of multiplexer 130 is the selection code which originates from the two most significant bits of the Master TAP instruction register. As previously explained, the selection code becomes available when it is parallel loaded into an update register (not shown in FIG. 3) corresponding to register 38.
  • Still further, FIG. 3 shows [0055] TDI multiplexers 132 and 134 associated with embedded TAP groups 112 and 114, respectively, and correspond to previously mentioned multiplexer 40. TDI Multiplexers 132 and 134 are controlled by the Shift-IR control signal to determine the source of the data loaded into a TAP group. When an instruction is loaded into an instruction register, Shift-IR is active (Logic 1), which connect input 1 of each of multiplexers 132 and 134 to their respective group TDI input. Conversely, when data is being loaded into a test data register, Shift-IR is inactive (logic 0), which connects input 0 of each of multiplexers 132 and 134 to the group TDI input. Input 0 of multiplexers 132 and 134 is connected to the circuit TDI pin, as shown. Only the group specified by the previously loaded selection code will transfer data between the circuit TDI and TDO pins. Except for the Master TAP group, the other groups are precluded from shifting data because their respective TMS gating circuit produces an inactive (logic 0) TMS signal when the active TAP selection code does not correspond to the predetermined group selection code.
  • Method of Use [0056]
  • The method of use of the circuit will now be described with reference to FIG. 2. A reset will usually be applied first to start the TAPs from a known state. As indicated in the previous paragraph, the Master TAP is the first TAP selected. An instruction is first loaded into the instruction register of the Master TAP. The instruction will contain a selection code which specifies the TAP group which is to be selected next. If it is desired to access a TAP in embedded [0057] TAP group 22 of the illustrated circuit, a value of 0 will be loaded into selection code register 36. This value will be loaded into update register 38 when the Master TAP FSM is sequenced to the Update-IR state. The selection code will then become available at the Q output of register 38 and cause multiplexer 42 to connect input eTDO from the TDO output of group 22 to the circuit TDO.
  • To load an instruction into [0058] TAPs 14 and 16, TMS values are applied to the circuit TMS pin to simultaneously sequence to two embedded TAPs to their Shift-IR state. These values are processed in TMS gating circuit 50 and applied to the TMS input of each of TAPs 14 and 16 of selected TAP group 22 via the eTMS output of circuit 50. In the Shift-IR state, control signal Shift-IR is active and causes multiplexer 40 to connect the appropriate Q output of Master TAP instruction register 30 to the eTDI output of the Master TAP. This establishes a serial path from the circuit TDI, through register 36, a portion of register 30, from the Q output of register 30 to input 1 of multiplexer 40 to the eTDI output. The test clock, TCK, is then toggled a predetermined number of times to load an instruction from the circuit TD! into each TAP of the selected group. The last bit which is loaded is the selection code which specified the group to which the next operation will apply. The target TAP in embedded TAP group 22 will contain a desired instruction. The other TAPs of the group may be loaded with an instruction code corresponding to the BYPASS instruction. TAPs which reside in a non-selected group are kept in the Run_Test_Idle (RTI) state. The Master TAP is never put into the RTI state.
  • The test data registers of the embedded TAPs are accessed in the conventional fashion, i.e. by loading an appropriate instruction into the embedded TAP of interest, using the procedure described in the previous paragraph. The TAP of interest will respond to that instruction by connecting the data register of interest between its TDI input and TDO output. To shift into or out of the test data register, the embedded TAP is sequenced to the Shift-DR state. In that state, Shift-IR is inactive and, therefore, [0059] multiplexer 40 in Master TAP selects the circuit TDI input for output to eTDI.
  • The Master TAP is accessed simply by loading a [0060] logic 1 into shift register 38. This connects the output of multiplexer 34, which is the TDO output of the Master TAP, to input 1 of multiplexer 42. The output of multiplexer 42 is connected to the circuit TDO. An instruction is loaded into register 30 by sequencing the Master TAP to the Shift-IR state, in which signal Shift-IR is active, causing multiplexer 34 to select the SO output of register 30. The test data registers of the Master TAP are accessed by sequencing the Master TAP to the Shift-DR state, in which state the Shift-IR signal is inactive which causes multiplexer 34 to select input 0 which is connected to Master TAP test data registers. The particular test data register which is connected to multiplexer 34 depends on the instruction loaded into instruction register 30 and parallel loaded in register 32.
  • It will be seen from the foregoing that each of the Master TAP and the embedded TAPs can be accessed in a manner which is fully compliant with the standard. No additional signals are required to effect this operation. This is achieved by providing two simple logic circuits for each group of embedded TAPs including a TDI multiplexer for routing data between the circuit TDI and TAP group TDI and a TMS gating circuit, a multiplexer for selecting the TDO of one of the groups, and a shift register and corresponding update register for holding a TAP group selection code and a simple reset logic circuit. [0061]
  • Different View of Circuit [0062]
  • As mentioned previously, the addition of bits to the Master TAP instruction register, allows the TAPS to be viewed in different ways. From the outside of the circuit, it may appear as if the circuit contains another TAP, referred to herein as a “dummy TAP”, at the beginning of each daisy-chain of a TAP group. The length of the instruction register of this dummy TAP may vary for each group because the combined length of the instruction registers of the various groups might be different. [0063]
  • It is possible to provide a “board” view mode of the chip in which the daisy chain of the embedded or secondary TAPs can be made to appear to software development programs like multiple chips connected in series on a board. This “board” view requires that the circuitry added in front of the embedded TAPs (i.e. the padding registers which are shared within the Master TAP) appear as a “dummy TAP” that can be fully described by a BSDL (Boundary Scan Description Language) file. To do so, three requirements must be satisfied: 1) a bypass register for the dummy TAP must be provided; 2) the dummy TAP must have at least two instruction bits; and 3) the first two status bits must capture 01. Thus, if the designer chooses to build the “board” view in his chip, a data register, such as shown by [0064] reference numeral 136 in FIG. 3, is added between the circuit TDI and the group TDI node during the shift-DR state to emulate a dummy TAP bypass register. The description of the board view will include a BSDL file describing the dummy TAP along with the existing BSDL files of the embedded TAPs. As indicated, for the dummy TAP to have a compliant BSDL file, at least two bits of the Master TAP instruction register must be part of the daisy chain of secondary TAPs so that the of the dummy TAP “instruction register” can capture a 01 value as required by the standard.
  • Another way of viewing the circuit in the case in which all groups contain exactly one TAP is to view the additional bits, including the selection code, as an extension of the existing instruction bits. The selection code ensures that the codes (also called opcodes) associated with the various instructions of the TAPs do not interfere with each other even, if two instructions of two different TAPs had originally the same opcode. This is especially important in the case in which TAPs or different groups share common test data registers, a situation discussed with reference to FIG. 6. For a circuit having one or more one or more groups with more than one TAP, the additional bits are simply added to the bits of the instruction register of the first TAP in the group. In each of these cases, the views are reflected in the circuit description file and BSDL files. [0065]
  • Shared Data Registers [0066]
  • FIG. 6 illustrates a [0067] simple circuit 60 in which a Master TAP 62 shares a test data register 64 with an embedded TAP 66. Test data register 64 could be a boundary scan register, for example. The test data register has a serial input, SI, a serial output SO and a control signal bus, CTL, which consists of at least one input control signal. Serial input SI is connected to the output of multiplexer 70 which selects the appropriate source for serial input SI based on the selection code generated by the Master TAP and applied to the SELECT input of TAP 66. The two potential sources are output TOSI of embedded TAP 66 and output TOSI of Master TAP 62. Similarly, a multiplexer 72 selects between output bus TOCTL of embedded TAP 66 and output bus TOCTL of Master TAP 62. A selection code value of 0 selects the outputs of embedded TAP 66 whereas a selection code value of 1 selects the outputs of the Master TAP. The test data register can equally well be shared by two groups of embedded TAPs. The serial output of test data register 64 is connected to the appropriate input of all TAPs sharing this register. In this case, serial output SO is connected to input FRSO of each of embedded TAP 64 and Master TAP 62. It is not necessary for the Master TAP to be one of the possible sources for the inputs of test data register 64. However, the Master TAP will control multiplexers 70 and 72 when two other TAPs share a data register.
  • Method and Program Product for Designing Circuit [0068]
  • As is known in the art, integrated circuit devices are typically designed and fabricated using one or more computer data files, referred to herein as hardware definition programs, that define the layout of the circuit arrangements of the devices. The programs are typically generated by design tools and are subsequently used during manufacturing to create layout masks that define the circuit arrangements applied to a semiconductor wafer. Typically, the programs are provided in a predefined format using a hardware description language (HDL) such as VHDL, verilog, EDIF, etc. While the invention has been described in the context of fully functioning integrated circuit devices and data processing systems utilizing such devices, those skilled in the art will appreciate that the various embodiments of the invention are capable of being distributed as a program product in a variety of forms, and that the invention applies equally thereto regardless of the particular type of signal bearing media used to actually carry out the distribution. Examples of signal bearing media include but are not limited to recordable type media such as volatile and non-volatile memory devices, floppy disks, hard disk drives, CD-ROM's, and DVD's, among others and transmission type media such as digital and analog communications links. [0069]
  • Another important aspect of the present invention relates to a program product in the form of a circuit design tool recorded on a storage medium and a corresponding method for designing a circuit having multiple access ports and, more specifically, for modifying an existing description of a circuit having multiple TAPs so as to configure the circuit in the manner described herein. [0070]
  • The circuit design tool of the present invention reads a circuit description of a circuit to be processed. The circuit description may include a description of TAPs which are independent of one another or which have already been arranged into one or more daisy chain of TAPs. In either case, the TCK, TRSTN and TMS pins of all embedded TAPs will already be connected to the output of the TCK, TRSTN and TMS input buffers of the circuit. In the daisy chained arrangement, the scan path of the embedded TAPs will already be connected between the circuit TDI and circuit TDO pins in which the TDI pin of the first embedded TAP connects to the output of the TDI input buffer and the TDO pin of the last embedded TAP connects to the input of the TDO output buffer. In addition, the enable port of the TDO output buffer may or may not be driven by a TDOEnable output of one of the embedded TAPs. If it is not driven by an embedded TAP, then the output buffer will be tied on by the design tool of the present invention. [0071]
  • In one embodiment of the invention, using the design tool of the present invention, a designer or user will indicate to the tool the presence of secondary TAPs (embedded TAPs) within a sub-wrapper of a “TAP” wrapper called “SecondaryTAPs”. “Wrapper” is syntax that describes software format which may be in the form: “WrapperName {property1:value; property2:value; propertyN:value}”. “WrapperName” is the name of a wrapper and propertyX represents an attribute associated with the wrapper. [0072]
  • Using the tool, the user to describes each embedded TAP in the sequence in which it is connected between TDI and TDO by describing the bypass opcode it uses. Many software development systems will load the bypass instruction into all TAPs of a selected group except for the TAP of interest. [0073]
  • In the preferred form of the design tool of the present invention, the tool reads the circuit description file, searches for the all existing TAP descriptions and modifies the descriptions so as to provide the connections described earlier. [0074]
  • In both embodiments, the tool inserts a Master TAP description with the four extra ports eTDI, eTDO, eTMS, and eTRSTN. The user also specifies the identity of the default TAP, by setting a variable, such as SelectMasterTAP. The tool moves the net driven from the TDI, TMS and TRSTN input buffers to the Master TAP output ports eTDI, eTMS and eTRSTN, respectively, and the net driving the input of the TDO output buffer to the Master TAP input port eTDO. The clock connection to the test clock input, TCK, need not be changed. The tool configures the enable of the TDO buffer to be driven by a Master TAP TDOEnable port (not shown). The definition of the Master TAP created by the tool will include a description of the Reset gating logic circuit, the TMS gating logic circuit, the update suppression logic circuit, the TDI multiplexer (or multiplexers if there is more than one secondary TAP group) the definition of the padding register(s) and the TDO multiplexer. [0075]
  • Although the present invention has been described in detail with regard to preferred embodiments and drawings of the invention, it will be apparent to those skilled in the art that various adaptions, modifications and alterations may be accomplished with departing from the spirit and scope of the present invention. Accordingly, it is to be understood that the accompanying drawings as set forth hereinabove are not intended to limit the breadth of the present invention, which should be inferred only from the following claims and their appropriately construed legal equivalents. [0076]
  • Reference numerals
  • [0077]
    first TAP 12, called Master TAP  [5]
    eTAP1 14  [5]
    eTAP2 16  [5]
    processor cores 18 and 20  [7]
    first group 22 of TAPs  [7]
    second group 24  [7]
    shift register 30  [8]
    update register 32  [9]
    multiplexer 34  [9]
    shift register 36  [9]
    an associated update register 38  [9]
    multiplexer 40 [10]
    TDO multiplexer 42 [11]
    TMS gating circuit 50 [11]
    RESET gating circuit 52 [12]
    Master TAP 100 [12]
    embedded TAPS 102, 104 and 106 [12]
    three TAP groups 110, 112 and 114 [12]
    instruction register 116 [13]
    instruction registers 118 and 120 [13]
    group TDI node 122 [13]
    group TDO node 124 [13]
    instruction register 125 of the Master TAP [13]
    TDI input 126 [13]
    TDI multiplexers 132 and 134 associated with embedded [14]
    TAP groups 112 and 114, respectively
    a data register, such as shown by reference [16]
    numeral 136 in FIG. 3
    circuit 60 [17]
    Master TAP 62 [17]
    test data register 64 [17]
    embedded TAP 66 [17]
    multiplexer 70 [17]
    a multiplexer 72 [17]

Claims (51)

We claim:
1. In a method of designing a circuit containing a plurality of Test Access Port (TAP) interfaces, each said TAP having a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Clock Input and a Test Reset input (TRSTN), an instruction register and at least one test data register, the method comprising the steps of:
providing a master TAP for at least controlling data transfer operations with other TAPs in said circuit;
connecting master TAP test inputs and output to corresponding circuit test inputs and outputs;
adding to said master TAP:
an instruction register having a length equal to the length of the longest instruction register of each other TAP plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs;
a TDO circuit responsive to the TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and
for each other TAP:
adding a padding register having a length equal to the length of said master TAP instruction register less the length of the instruction register of said each other TAP and having an input connected to the circuit TDI, and an output;
adding a TMS circuit responsive to a predetermined TAP selection code of said each other TAP for gating TMS pulses applied to the circuit TMS input to said each other TAP;
adding a TDI circuit responsive to a shift state signal for connecting the TAP TDI to either the circuit TDI and or the output of said padding register.
2. A method as defined in claim 1, further including providing, for said master TAP, an update gating circuit responsive to a predetermined TAP selection code in said selection code register and corresponding to said master TAP for allowing the update of a master TAP update register, and, otherwise, for suppressing the update register except for selection code register bits.
3. A method as defined in claim 1, further including providing said master TAP with a reset gating circuit for controlling the test reset input of remaining TAPs in said circuit for performing asynchronous and synchronous resets of TAPs, said reset gating circuit effecting an asynchronous reset of said TAPS by transferring an active value of a circuit reset signal applied to said circuit reset input to the reset input of each remaining embedded TAP in said circuit; and effecting a synchronous reset by responding to said master TAP entering a Select-IR-Scan state and application of an active TMS signal to said circuit, by applying an active reset signal to the reset input of each remaining TAP in said circuit.
4. A method as defined in claim 1, further including, for each test data register shared between two or more TAPs, said test data register having shift register elements responsive to one or more control signals, serial input and a serial output,
adding a first selector having an input for receiving serial input data for each of said two or more TAPS sharing said test data register;
adding a second selector having an input for receiving register control signal bus for each of said two or more TAPS;
each said selector being responsive to said selection code indicative of the source of the serial data and control signal bus to be applied to said shared test dat register, and
connecting said serial output of said shared register to all of said two or more TAPs.
5. A method as defined in claim 1, further including arranging said TAPS into two or more groups of one or more TAPs, including:
arranging said master TAP in a group in which it is the sole member;
connecting the TDI of said master TAP to the circuit TDI pin;
connecting the output of the TDO circuit to the circuit TDO pin;
providing, in the master TAP, a TDI output for each of the other TAP groups;
connecting the TDO output of each TAP to an input to the TDO circuit; and
providing a padding register for each TAP group whose instruction register chain length is less than the length of the instruction register of the master TAP where the length of the padding register is equal to the length of the master TAP instruction register less the sum of the length of the instruction registers in the group; and
locating each said padding register in an instruction scan path between the circuit TDI and the TAP group TDI.
6. A method as defined in claim 5, said providing a master TAP including inserting a description of said master TAP into an HDL description file of said circuit.
7. A method as defined in claim 5, said providing a master TAP including modifying a description of one of said TAPs in an HDL description file of said circuit.
8. A method as defined in claim 5, said providing a master TAP including selecting an existing TAP in said circuit and modifying said TAP for use as said master TAP.
9. A method of designing a circuit containing a plurality of Test Access Ports (TAPs), each said TAP having a Test Data Input (TDO), a Test Data Output (TDO), a Test Mode Select (TMS) input, a clock input and a Test Reset (TRSTN) input, each said TAP having an instruction register and at least one test data register, the method comprising the steps of:
selecting one TAP as a master TAP;
arranging the remaining secondary TAPs into at least one group having a group TDI and a group TDO, with the TAPs in each group being serially connected in a daisy chain between said group TDI and group TDO;
determining the instruction register length of each said group;
providing said master TAP instruction register with a number of register elements equal to that of the longest group instruction register length plus a number of bits, defining a selection code register, for storing a selection code for use in selecting one of said groups for data transfer;
providing, for each said group, a group padding register having an input connected to the circuit TDI, an output and having a length equal to the length of said master TAP instruction register less the instruction register length of said group;
providing, for each said group, a TMS gating circuit responsive to a circuit TMS input and to a predetermined selection code representative of said group for producing and applying a group TMS signal to each TAP of said group, said group TMS signal being the same as the circuit TMS input when an applied selection code corresponds to the predetermined group selection code corresponding to said group and, otherwise, said TMS signal being inactive, said TMS gating circuit having a TMS input connected to said circuit TMS input; a selection code input connected to said master TAP selection code register and an output connected to the TMS input of all TAPs of the group;
providing, for each said group, a TDI multiplexer circuit for selectively connecting the group TDI to either the circuit TDI when a test data register in the group are being accessed, or to the output of said group padding register when the instruction registers of the group are being accessed and connecting the output of said TDI multiplexer circuit to the group TDI of the first TAP in the daisy-chain;
providing a TDO multiplexer circuit for selectively connecting the group TDO of the group specified by a selection code loaded in said selection code register;
providing, for said master TAP, an update gating circuit responsive to a predetermined group selection code in said selection code register and corresponding to said master TAP for allowing the update of a master TAP update register, and, otherwise, for suppressing the update register except for selection code register bits; and
adding a reset gating circuit to said master TAP for controlling the test reset input of remaining TAPs such that said remaining TAPs are reset when the master TAP is reset.
10. A method as defined in claim 9, further including adding gating logic for loading a default selection code into said selection code register after a reset.
11. A method as defined in claim 10, wherein the default selection code is the selection code corresponding to that of the master TAP or any of the groups.
12. A method as defined in claim 9, said providing a group padding register, including forming said padding register as a portion of the master TAP instruction register.
13. A method as defined in claim 9, said providing a group padding register including providing a serially connected memory elements between the circuit TDI and the group TDI.
14. A method as defined in claim 9, wherein the number of groups is two and the number of TAPs in each group is one.
15. A method as defined in claim 9, further including providing a predetermined number of groups, with each group having one TAP.
16. A method as defined in claim 9, wherein said TAPs are designed according to the IEEE 1149.1 standard.
17. A method as defined in claim 9, wherein the resulting circuit is compliant to the IEEE 1149.1 standard.
18. A method as defined in claim 9, wherein said TDI multiplexer circuit being operable to select between a bypass register and said padding register, said bypass register having of a single memory element connected between the circuit TDI and the TDI multiplexer.
19. A method as defined in claim 9, wherein the length of said padding register is at least two and its first two shift register elements closest to the circuit TDO capture 0 and 1, respectively, during the execution of a Capture-IR instruction.
20. A method as defined in claim 9, said TDI multiplexer circuit being operable to select between a bypass register and the output of said padding register, said bypass register having of a single memory element connected between the circuit TDI and the TDI multiplexer; and
the length of said padding register is at least two shift register elements with the first and second shift register elements closest to the circuit TDO capture 0 and 1, respectively, during execution of a Capture-IR instruction.
21. A method as defined in claim 9, further including, for each test data register shared between two or more TAPs, said test data register having shift register elements responsive to one or more control signals, serial input and a serial output,
adding a first selector having an input for receiving serial input data for each of said two or more TAPS sharing said test data register;
adding a second selector having an input for receiving register control signal bus for each of said two or more TAPS;
each said selector being responsive to said selection code indicative of the source of the serial data and control signal bus to be applied to said shared test dat register, and
connecting said serial output of said shared register to all of said two or more TAPs.
22. In a method of designing a circuit containing a plurality of Test Access Port (TAP) interfaces, each said TAP having a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Clock Input and a Test Reset input (TRSTN), an instruction register and at least one test data register, the method comprising the steps of:
providing a master TAP for at least controlling data transfer operations with other TAPs in said circuit;
connecting the master TAP test inputs and output to corresponding circuit test inputs and output;
arranging said TAPs into at least two groups of one or more TAPs serially connected between a group TDI and a group TDO, said master TAP being the sole member of one of said groups;
providing said master TAP with:
an instruction register having a length equal to the sum of the length of the instruction registers of the longest group instruction register plus a predetermined number of bits forming a TAP selection code register for storing a group selection code for selecting one of the groups for data transfer;
a TDO circuit responsive to the group selection code for selectively connecting the group TDO of one of the groups to the circuit TDO; and
for each said group:
a padding register having an output connected to the group TDI input of said each group and an input connected to the circuit TDI;
a TMS circuit responsive to predetermined group selection code for said each group for producing a group TMS; and
a TDI circuit responsive to a shift state signal for either connecting a circuit TDI to the group TDI or for connecting the output of said padding register to the group TDI.
23. A method as defined in claim 22, further including providing, for said master TAP, an update gating circuit responsive to a predetermined TAP selection code in said selection code register and corresponding to the group containing said master TAP for allowing the update of a master TAP update register, and, otherwise, for suppressing the update register except for selection code register bits.
24. A method as defined in claim 22, further including providing said master TAP with a reset gating circuit for controlling the test reset input of remaining TAPs in said circuit for performing asynchronous and synchronous resets of TAPs, said reset gating circuit effecting an asynchronous reset of said TAPS by transferring an active value of a circuit reset signal applied to said circuit reset input to the reset input of each remaining embedded TAP in said circuit; and effecting a synchronous reset by responding to said master TAP entering a Select-IR-Scan state and application of an active TMS signal to said circuit, by applying an active reset signal to the reset input of each remaining TAP in said circuit.
25. A method as defined in claim 22, further including, for each test data register shared between two or more TAPs, said test data register having shift register elements responsive to one or more control signals, serial input and a serial output,
adding a first selector having an input for receiving serial input data for each of said two or more TAPS sharing said test data register;
adding a second selector having an input for receiving register control signal bus for each of said two or more TAPS;
each said selector being responsive to said selection code indicative of the source of the serial data and control signal bus to be applied to said shared test dat register, and
connecting said serial output of said shared register to all of said two or more TAPs.
26. A method as defined in claim 22, said providing a master TAP including inserting a description of said master TAP into an HDL description file of said circuit.
27. A method as defined in claim 22, said providing a master TAP including modifying a description of one of said TAPs into an HDL description file of said circuit.
28. A method as defined in claim 22, said providing a master TAP including selecting an existing TAP in said circuit and modifying said TAP for use as said master TAP.
29. In a circuit having a plurality of Test Access Port (TAP) interfaces, each interface having test connections including a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Clock Input and a Test Reset input (TRSTN), an instruction register and at least one test data register, comprising:
one of said TAPs having test connections serving as a circuit test interface, said one TAP having:
an instruction register having a length equal to the length of the longest instruction register plus a predetermined number of bits for storing a TAP selection code for selecting one of the TAPs;
a TDO circuit responsive to said TAP selection code for selectively connecting the TDO of one of the TAPs to the circuit TDO; and
said one TAP further including, for each other TAP in said circuit:
a padding register having a length equal to the length of said instruction register of said one TAP less the length of the instruction register of said each other TAP and having an input connected to the circuit TDI, and an output;
a TMS circuit responsive to a predetermined TAP selection code associated with said each other TAP and a TMS signal applied to a circuit TMS input for producing a TAP TMS signal for said each other TAP; and
a TDI circuit responsive to a shift state signal for selectively connecting the TDI of said other TAP to the circuit TDI or to the output of said padding register.
30. A circuit as defined in claim 29, further including a circuit responsive to an active test reset signal applied to said Test Reset input of said one TAP for resetting all of said TAPs and for performing an asynchronous reset of each said TAP when the finite state machine of said one TAP enters a Select-IR-Scan state and an active TMS signal Is applied to the circuit TMS input.
31. A circuit as defined in claim 29, further said master TAP further including an update gating circuit responsive to a predetermined group selection code in said selection code register and corresponding to said master TAP for allowing the update of a master TAP update register, and, otherwise, suppressing the update of said update register except for selection code register bits.
32. A circuit as defined in claim 29, each said TDI circuit for being responsive to an inactive shift state signal of said master TAP for connecting a circuit TDI to the TDI of said each other TAP for accessing a test data register of said each other TAP and responsive to an active shift state signal for connecting said padding register to the TDI of said each TAP for accessing the instruction register of said each TAP.
33. A circuit as defined in claim 32, said padding register being equal in length to the difference between the length of the instruction register of said one TAP and the length of the instruction register of said each other TAP.
34. A circuit as defined in claim 29, said TAPs being arranged in at least two groups of serially connected TAPs in which the TDI of each TAP is connected to the TDO of a preceding TAP;
the TDI of the first TAP in a group defining a group TDI and being connected to a respective TAP TDI output of said one TAP; and
the TDO of the last TAP in a group defining a group TDO and being connected to a respective TDO input of said one TAP;
said one TAP being the sole member of one of said groups; said TMS circuit being operable to produce a TAP TMS signal for each TAP of a group.
35. In a circuit having a plurality of Test Access Port (TAP) interfaces, each said TAP having a TAP Test Data Input (TDI), a TAP Test Data Output (TDO), a TAP Test Mode Select (TMS) input, a TAP clock input and a TAP Test Reset (TRSTN) input, a TAP instruction register and at least one TAP test data register, said circuit having a circuit Test Data Input, a circuit Test Data Input, a circuit Test Data Output, a circuit Test Mode Select input, a circuit Test Clock input and a circuit reset input, the improvement comprising:
one of said TAPs being a master TAP;
said TAPs being arranged into at least two groups of one or more TAPs having a group TDI and a group TDO, the TAPs in each said group being daisy-chained between said group TDI and group TDO such that the TDI of each TAP is connected to the TDO of the preceding TAP in the chain, said master TAP being the sole member of one of said groups;
said master TAP having an instruction register bit length equal to the bit length of the longest group instruction register chain length of said groups plus a predetermined number of bits, defining a selection code register, for storing a group selection code for selecting any one of said groups;
a TDO multiplexer circuit responsive to said selection code for selecting the group TDO of the group corresponding to a selection code loaded into said master TAP selection code register for connection to said circuit TDO; said master TAP having, for each said group:
a padding register having a length equal to the length of said master TAP instruction register less the length of the instruction register chain length of said group, an input connected to the circuit TDI, and an output;
a TDI multiplexer circuit responsive to a shift state signal for selectively connecting said group TDI to either said circuit TDI when a test data register of said group is to be accessed or to said output of said padding register when an instruction register in said group is to be accessed;
a TMS gating circuit responsive to a predetermined group selection code, a predetermined master TAP state signal and said circuit TMS signal for producing and applying a group TMS signal to the TMS input of each TAP in said group, said group TMS signal being the same as the circuit Test Mode Select signal when said current selection code corresponds to said predetermined group selection code or said master TAP is in a reset state, and, otherwise, said group TMS signal being inactive;
an update signal gating circuit responsive to said selection code for suppressing the update of all bits, except for the bits defining said group selection code, of said master TAP instruction register when the current selection code is other than the predetermined selection code associated with said master TAP and for updating said master TAP instruction register when said the current selection code corresponds to the predetermined group selection code associated with said master TAP;
a reset signal gating circuit responsive to a reset signal applied to the circuit test reset input for controlling the test reset input of said remaining TAPs for resetting said remaining TAPs when said master TAP is reset.
36. A circuit as defined in claim 35, further including gating logic means for loading a default selection code after a reset.
37. A circuit as defined in claim 36, wherein the default selection code is the predetermined selection code corresponding to that of the master TAP or any of the groups.
38. A circuit as defined in claim 35, said padding instruction register for each group including a portion of the instruction register of said master TAP.
39. A circuit as defined in claim 35, said padding instruction register for each group including memory elements associated with said master TAP and connected in series with the group TDI when an instruction is being loaded into the TAPs of said group.
40. A circuit as defined in claim 35, wherein the number of groups is two and the number of TAPs in each group is one.
41. A circuit as defined in claim 35, wherein each said TAPs being compliant with the IEEE 1149.1 Test Access Bus Architecture standard.
42. A circuit as defined in claim 35, where the resulting circuit is compliant to the IEEE 1149.1 Test Access Bus Architecture standard.
43. A circuit as defined in claim 35, wherein said TDI multiplexer further selecting between a bypass register and a padding instruction register, the bypass register being comprised of a single memory element connected between the circuit Test Data Input and said TDI multiplexer.
44. A circuit as defined in claim 35, wherein the length of each said padding register is at least two bits with the first two shift register elements thereof closest to said circuit TDO capture 0 and 1, respectively, during execution of a Capture-IR instruction.
45. A circuit as defined in claim 35, further including, for each test data register shared between two or more TAPs, said test data register having shift register elements responsive to one or more control signals, and having a serial input and a serial output,
a first selector having an input for receiving serial input data from each of said two or more TAPS sharing said test data register;
a second selector having an input for receiving a register control signal bus from each of said two or more TAPS;
each said selector being responsive to a selection code indicative of the source of the serial data and control signal bus to be applied to said shared test data register,
said serial output of said shared register being connected to all of said two or more TAPs of said circuit.
46. A method of controlling a circuit having a plurality of Test Access Port (TAP) interfaces in which one of said TAPs is connected to circuit test inputs and outputs and each said TAP interface includes a TAP Test Data Input (TDI), a TAP Test Data Output (TDO), a TAP Test Mode Select (TMS) input, a TAP clock input and a TAP reset input (TRSTN), an instruction register and at least one test data register, said TAPs being arranged into two or more groups of TAPs, each group having a group TDI and a group TDO and one or more TAPs serially connected there between, the method comprising:
(a) loading each test instruction into the instruction register of said one of said TAPs, each instruction including a group selection code specifying the TAP to be accessed in the next instruction;
(b) connecting the group TDO of the group having a predetermined TAP selection code corresponding to the TAP selection code stored in said instruction register to the TDO of said circuit;
(c) connecting the group TDI of all groups to the circuit TDI when accessing a test data register of a group;
(d) connecting the group TDI of all groups to a serial output of a respective padding register when an instruction register is to be accessed; and
(e) applying a sufficient number of clock cycles to shift data into said test data register or an instruction into the instruction register of the specified TAP; and
(f) repeating steps (a)-(f) for each additional data transfer operation.
47. A method as defined in claim 46, wherein step (c) includes connecting the TAP TDI of all TAPs to the circuit TDI in response to an inactive Shift-IR signal during a shift operation.
48. A method as defined in claim 46, wherein step (c) includes connecting the TAP TDI of all TAPs to the output of a bypass register having an input connected to the circuit TDI in response to an inactive Shift-IR signal during a shift operation.
49. A method as defined in claim 47, wherein step (d) includes connecting the TAP TDI of all TAPs to a serial output of respective padding registers in response to an active Shift-IR signal during a shift operation.
50. A method as defined in claim 46, wherein step (e) comprises applying a predetermined number of clock cycles for all instruction loading operations.
51. A program product for use in designing a circuit having a plurality of Test Access Port (TAP) interfaces, each TAP having a Test Data Input (TDI), a Test Data Output (TDO), a Test Mode Select (TMS) input, a Test Clock Input, a Test Reset input (TRSTN), an instruction register and at least one test data register, the program product comprising:
a computer readable storage medium;
means recorded on the medium for reading a circuit description of said circuit having a description of each said TAP;
means recorded on the medium for determining the instruction register bit length of the instruction register of each said TAP;
means recorded on the medium for inserting a description of a master TAP into a description of said circuit including:
connecting master TAP test ports to corresponding circuit test ports;
arranging said TAPs into at least two groups and serially connecting the TAPs in each group between a group TDI and a group TDO with the master TAP being the sole member of one of said groups;
for each group containing secondary TAPs:
connecting the group TDI of each group to a master TAP group TDI output for the group;
connecting the group TDO of each group to a master TAP group TDO input for the group;
determining the instruction register chain length of the group by summing the length of the instruction register bit length of each TAP in the group;
adding to the description of the master TAP:
a master TAP instruction register having a length equal to instruction register chain length of the group having the longest instruction register chain plus a predetermined number of bits forming a TAP selection code register for storing a group selection code for selecting one of the groups for data transfer;
a description of a TDO circuit receiving for input the TDO output of each group and an output connected to the circuit TDO and a select input receiving the group selection code for selectively connecting the group TDO of one of the groups to the circuit TDO; and
for each group:
a description of a padding register having an input connected to a circuit TDI and an output connected to the group TDI of the group;
a description of a TMS circuit responsive to a predetermined group selection code for producing a group TMS; and
a description of said TDI circuit responsive to a shift state signal for either connecting the circuit TDI to the group TDI or for connecting the output of said padding register to the group TDI.
US09/843,307 2001-04-27 2001-04-27 Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same Expired - Lifetime US6829730B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US09/843,307 US6829730B2 (en) 2001-04-27 2001-04-27 Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same
PCT/US2002/012267 WO2002088945A1 (en) 2001-04-27 2002-04-19 Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US09/843,307 US6829730B2 (en) 2001-04-27 2001-04-27 Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same

Publications (2)

Publication Number Publication Date
US20020184562A1 true US20020184562A1 (en) 2002-12-05
US6829730B2 US6829730B2 (en) 2004-12-07

Family

ID=25289591

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/843,307 Expired - Lifetime US6829730B2 (en) 2001-04-27 2001-04-27 Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same

Country Status (2)

Country Link
US (1) US6829730B2 (en)
WO (1) WO2002088945A1 (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087918A1 (en) * 2000-12-28 2002-07-04 Kabushiki Kaisha Toshiba Semiconductor integrated circuit, system board and debugging system
US20030159124A1 (en) * 2002-02-20 2003-08-21 Fisher Rory L. System and method for generating integrated circuit boundary register description data
US20060069974A1 (en) * 2004-09-30 2006-03-30 Advanced Micro Devices, Inc. One-hot encoded instruction register for boundary scan test compliant devices
US20060090110A1 (en) * 2002-12-20 2006-04-27 Koninklijke Phillips Electronics N.C. Connecting multiple test access port controllers on a single test access port
US20060107160A1 (en) * 2001-07-05 2006-05-18 Intellitech Corporation Method and apparatus for optimized parallel testing and access of electronic circuits
US7065675B1 (en) * 2001-05-08 2006-06-20 Mips Technologies, Inc. System and method for speeding up EJTAG block data transfers
US20060156099A1 (en) * 2004-12-16 2006-07-13 Sweet James D Method and system of using a single EJTAG interface for multiple tap controllers
US7096385B1 (en) * 2002-09-16 2006-08-22 Advanced Micro Devices, Inc. Method and system for testing a microprocessor
US20080215282A1 (en) * 2000-05-26 2008-09-04 Texas Instruments Incorporated 1149.1 tap linking modules
EP1992955A3 (en) * 2003-12-17 2011-01-26 STMicroelectronics (Research & Development) Limited TAP multiplexer
US20130073907A1 (en) * 2011-09-20 2013-03-21 Dong Kwan Han Method of testing a device under test, device under test, and semiconductor test system including the device under test
WO2013048578A1 (en) * 2011-09-30 2013-04-04 Qualcomm Incorporated Dynamically self-reconfigurable daisy-chain of tap controllers
US20130346817A1 (en) * 2012-06-20 2013-12-26 Robert Bosch Gmbh Method for controlling a state machine
US20150058524A1 (en) * 2012-01-04 2015-02-26 Kenneth C. Creta Bimodal functionality between coherent link and memory expansion
US20160370428A1 (en) * 2015-06-17 2016-12-22 SK Hynix Inc. Portable test apparatus for a semiconductor apparatus, and test method using the same
US20180335468A1 (en) * 2012-02-21 2018-11-22 Texas Instruments Incorporated Die stack test architecture and method
US11143702B2 (en) * 2019-09-02 2021-10-12 Realtek Semiconductor Corp. Test access port circuit capable of increasing transmission throughput
CN114253184A (en) * 2021-11-29 2022-03-29 山东云海国创云计算装备产业创新中心有限公司 JTAG control device
DE102022206744B3 (en) 2022-07-01 2023-11-02 Infineon Technologies Ag RESOURCE PROTECTION

Families Citing this family (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7328387B2 (en) 2004-12-10 2008-02-05 Texas Instruments Incorporated Addressable tap domain selection circuit with selectable ⅗ pin interface
US7308629B2 (en) 2004-12-07 2007-12-11 Texas Instruments Incorporated Addressable tap domain selection circuit with TDI/TDO external terminal
US7200783B2 (en) * 2003-11-04 2007-04-03 Texas Instruments Incorporated Removable and replaceable TAP domain selection circuitry
US6877122B2 (en) 2001-12-21 2005-04-05 Texas Instruments Incorporated Link instruction register providing test control signals to core wrappers
US7231551B1 (en) * 2001-06-29 2007-06-12 Mips Technologies, Inc. Distributed tap controller
US7111217B1 (en) * 2002-02-28 2006-09-19 Xilinx, Inc. Method and system for flexibly nesting JTAG TAP controllers for FPGA-based system-on-chip (SoC)
US7073111B2 (en) 2002-06-10 2006-07-04 Texas Instruments Incorporated High speed interconnect circuit test method and apparatus
US7010722B2 (en) * 2002-09-27 2006-03-07 Texas Instruments Incorporated Embedded symmetric multiprocessor system debug
JP2007500356A (en) * 2003-05-28 2007-01-11 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Signal integrity self-test architecture
US7406641B2 (en) * 2003-06-30 2008-07-29 Intel Corporation Selective control of test-access ports in integrated circuits
US7346821B2 (en) * 2003-08-28 2008-03-18 Texas Instrument Incorporated IC with JTAG port, linking module, and off-chip TAP interface
EP1544631B1 (en) 2003-12-17 2007-06-20 STMicroelectronics Limited Reset mode for scan test modes
US7284170B2 (en) * 2004-01-05 2007-10-16 Texas Instruments Incorporated JTAG circuit transferring data between devices on TMS terminals
FR2865827A1 (en) * 2004-01-29 2005-08-05 St Microelectronics Sa SECURING THE TEST MODE OF AN INTEGRATED CIRCUIT
US7404128B2 (en) * 2004-02-17 2008-07-22 Texas Instruments Incorporated Serial data I/O on JTAG TCK with TMS clocking
US20050204221A1 (en) * 2004-03-15 2005-09-15 Swoboda Gary L. Apparatus and method for exchanging non-JTAG signals with a core processor during selected JTAG modes
US7284172B2 (en) * 2004-04-30 2007-10-16 International Business Machines Corporation Access method for embedded JTAG TAP controller instruction registers
US7395471B2 (en) * 2004-06-17 2008-07-01 Texas Instruments Incorporated Connection of auxiliary circuitry to tap and instruction register controls
US9759771B2 (en) 2004-06-17 2017-09-12 Texas Instruments Incorporated TAP and auxiliary circuitry with auxiliary output multiplexer and buffers
US7283385B2 (en) * 2004-11-30 2007-10-16 Lsi Corporation RRAM communication system
WO2006060805A2 (en) * 2004-12-02 2006-06-08 Texas Instruments Incorporated Multiple test access port protocols sharing common signals
JP4450787B2 (en) * 2005-11-28 2010-04-14 株式会社ルネサステクノロジ Semiconductor integrated circuit device
US7519884B2 (en) * 2006-06-16 2009-04-14 Texas Instruments Incorporated TAM controller for plural test access mechanisms
US7966529B2 (en) * 2006-10-16 2011-06-21 Freescale Semiconductor, Inc. System and method for testing memory blocks in an SOC design
US7610534B1 (en) * 2007-03-20 2009-10-27 Xilinx, Inc. Determining a length of the instruction register of an unidentified device on a scan chain
US8261143B2 (en) * 2007-05-07 2012-09-04 Texas Instruments Incorporated Select signal and component override signal controlling multiplexing TDI/TDO
US7877653B2 (en) * 2007-05-09 2011-01-25 Texas Instruments Incorporated Address and TMS gating circuitry for TAP control circuit
JP5022110B2 (en) * 2007-06-05 2012-09-12 ルネサスエレクトロニクス株式会社 Semiconductor integrated circuit
US7657805B2 (en) 2007-07-02 2010-02-02 Sun Microsystems, Inc. Integrated circuit with blocking pin to coordinate entry into test mode
US8046650B2 (en) * 2008-03-14 2011-10-25 Texas Instruments Incorporated TAP with control circuitry connected to device address port
US8006151B2 (en) 2008-03-28 2011-08-23 Texas Instruments Incorporated TAP and shadow port operating on rising and falling TCK
EP2141597B1 (en) * 2008-07-03 2010-12-29 Renesas Electronics Corporation Semiconductor integrated circuit
TW201005311A (en) * 2008-07-23 2010-02-01 Ind Tech Res Inst Test device and method for an SoC test architecture
US8555123B2 (en) 2008-07-23 2013-10-08 Industrial Technology Research Institute Test device and method for the SoC test architecture
US9417700B2 (en) 2009-05-21 2016-08-16 Edge3 Technologies Gesture recognition systems and related methods
US8108742B2 (en) * 2009-06-11 2012-01-31 Texas Instruments Incorporated Tap control of TCA scan clock and scan enable
US8065578B2 (en) 2009-09-14 2011-11-22 Texas Instruments Incorporated Inverted TCK access port selector selecting one of plural TAPs
US8396252B2 (en) 2010-05-20 2013-03-12 Edge 3 Technologies Systems and related methods for three dimensional gesture recognition in vehicles
US8655093B2 (en) 2010-09-02 2014-02-18 Edge 3 Technologies, Inc. Method and apparatus for performing segmentation of an image
US8666144B2 (en) 2010-09-02 2014-03-04 Edge 3 Technologies, Inc. Method and apparatus for determining disparity of texture
WO2012030872A1 (en) 2010-09-02 2012-03-08 Edge3 Technologies Inc. Method and apparatus for confusion learning
US8582866B2 (en) 2011-02-10 2013-11-12 Edge 3 Technologies, Inc. Method and apparatus for disparity computation in stereo images
US8970589B2 (en) 2011-02-10 2015-03-03 Edge 3 Technologies, Inc. Near-touch interaction with a stereo camera grid structured tessellations
US9672609B1 (en) 2011-11-11 2017-06-06 Edge 3 Technologies, Inc. Method and apparatus for improved depth-map estimation
US10721448B2 (en) 2013-03-15 2020-07-21 Edge 3 Technologies, Inc. Method and apparatus for adaptive exposure bracketing, segmentation and scene organization
US20150046763A1 (en) * 2013-08-12 2015-02-12 Apple Inc. Apparatus and Method for Controlling Internal Test Controllers
US9810739B2 (en) 2015-10-27 2017-11-07 Andes Technology Corporation Electronic system, system diagnostic circuit and operation method thereof
US9640280B1 (en) * 2015-11-02 2017-05-02 Cadence Design Systems, Inc. Power domain aware insertion methods and designs for testing and repairing memory
CN113919275A (en) * 2020-09-21 2022-01-11 台积电(南京)有限公司 Method for optimizing the layout of an integrated circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115763A (en) * 1998-03-05 2000-09-05 International Business Machines Corporation Multi-core chip providing external core access with regular operation function interface and predetermined service operation services interface comprising core interface units and masters interface unit
US6324662B1 (en) * 1996-08-30 2001-11-27 Texas Instruments Incorporated TAP and linking module for scan access of multiple cores with IEEE 1149.1 test access ports
US6385749B1 (en) * 1999-04-01 2002-05-07 Koninklijke Philips Electronics N.V. (Kpenv) Method and arrangement for controlling multiple test access port control modules
US6408413B1 (en) * 1998-02-18 2002-06-18 Texas Instruments Incorporated Hierarchical access of test access ports in embedded core integrated circuits
US6425100B1 (en) * 1998-04-24 2002-07-23 Texas Instruments Incorporated Snoopy test access port architecture for electronic circuits including embedded core with built-in test access port

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5884023A (en) 1995-12-14 1999-03-16 Texas Instruments Incorporated Method for testing an integrated circuit with user definable trace function
DE69734379T2 (en) 1996-08-30 2006-07-06 Texas Instruments Inc., Dallas Device for testing integrated circuits

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324662B1 (en) * 1996-08-30 2001-11-27 Texas Instruments Incorporated TAP and linking module for scan access of multiple cores with IEEE 1149.1 test access ports
US6408413B1 (en) * 1998-02-18 2002-06-18 Texas Instruments Incorporated Hierarchical access of test access ports in embedded core integrated circuits
US6115763A (en) * 1998-03-05 2000-09-05 International Business Machines Corporation Multi-core chip providing external core access with regular operation function interface and predetermined service operation services interface comprising core interface units and masters interface unit
US6425100B1 (en) * 1998-04-24 2002-07-23 Texas Instruments Incorporated Snoopy test access port architecture for electronic circuits including embedded core with built-in test access port
US6385749B1 (en) * 1999-04-01 2002-05-07 Koninklijke Philips Electronics N.V. (Kpenv) Method and arrangement for controlling multiple test access port control modules

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9817070B2 (en) 1999-03-26 2017-11-14 Texas Instruments Incorporated Third tap circuitry controlling linking first and second tap circuitry
US7546502B2 (en) * 2000-05-26 2009-06-09 Texas Instruments Incorporated 1114.9 tap linking modules
US10712387B2 (en) 2000-05-26 2020-07-14 Texas Instruments Incorporated First, second test domains and test mode select control circuitry
US10267855B2 (en) 2000-05-26 2019-04-23 Texas Instruments Incorporated Tap linking module, first and second taps, input/output linking circuitry
US20080215282A1 (en) * 2000-05-26 2008-09-04 Texas Instruments Incorporated 1149.1 tap linking modules
US6918058B2 (en) * 2000-12-28 2005-07-12 Kabushiki Kaisha Toshiba Semiconductor integrated circuit, system board and debugging system
US20020087918A1 (en) * 2000-12-28 2002-07-04 Kabushiki Kaisha Toshiba Semiconductor integrated circuit, system board and debugging system
US7065675B1 (en) * 2001-05-08 2006-06-20 Mips Technologies, Inc. System and method for speeding up EJTAG block data transfers
US20060107160A1 (en) * 2001-07-05 2006-05-18 Intellitech Corporation Method and apparatus for optimized parallel testing and access of electronic circuits
US7574637B2 (en) * 2001-07-05 2009-08-11 Intellitech Corporation Method and apparatus for optimized parallel testing and access of electronic circuits
US20030159124A1 (en) * 2002-02-20 2003-08-21 Fisher Rory L. System and method for generating integrated circuit boundary register description data
US6721923B2 (en) * 2002-02-20 2004-04-13 Agilent Technologies, Inc. System and method for generating integrated circuit boundary register description data
US7096385B1 (en) * 2002-09-16 2006-08-22 Advanced Micro Devices, Inc. Method and system for testing a microprocessor
US7426670B2 (en) * 2002-12-20 2008-09-16 Nxp B.V. Connecting multiple test access port controllers on a single test access port
US20060090110A1 (en) * 2002-12-20 2006-04-27 Koninklijke Phillips Electronics N.C. Connecting multiple test access port controllers on a single test access port
EP1992955A3 (en) * 2003-12-17 2011-01-26 STMicroelectronics (Research & Development) Limited TAP multiplexer
US20060069974A1 (en) * 2004-09-30 2006-03-30 Advanced Micro Devices, Inc. One-hot encoded instruction register for boundary scan test compliant devices
US7650542B2 (en) * 2004-12-16 2010-01-19 Broadcom Corporation Method and system of using a single EJTAG interface for multiple tap controllers
US20060156099A1 (en) * 2004-12-16 2006-07-13 Sweet James D Method and system of using a single EJTAG interface for multiple tap controllers
US9135132B2 (en) * 2011-09-20 2015-09-15 Samsung Electronics Co., Ltd. Method of testing a device under test, device under test, and semiconductor test system including the device under test
US20130073907A1 (en) * 2011-09-20 2013-03-21 Dong Kwan Han Method of testing a device under test, device under test, and semiconductor test system including the device under test
WO2013048578A1 (en) * 2011-09-30 2013-04-04 Qualcomm Incorporated Dynamically self-reconfigurable daisy-chain of tap controllers
JP2014528078A (en) * 2011-09-30 2014-10-23 クアルコム,インコーポレイテッド Dynamic self-reconfigurable daisy chain of TAP controller
CN103842970A (en) * 2011-09-30 2014-06-04 高通股份有限公司 Dynamically self-reconfigurable daisy-chain of tap controllers
US20150058524A1 (en) * 2012-01-04 2015-02-26 Kenneth C. Creta Bimodal functionality between coherent link and memory expansion
US11726135B2 (en) 2012-02-21 2023-08-15 Texas Instruments Incorporated Integrated circuit die test architecture
US11391769B2 (en) 2012-02-21 2022-07-19 Texas Instruments Incorporated Integrated circuit die test architecture
US20180335468A1 (en) * 2012-02-21 2018-11-22 Texas Instruments Incorporated Die stack test architecture and method
US10539606B2 (en) * 2012-02-21 2020-01-21 Texas Instruments Incorporated Stack die gating having test control input, output, and enable
US10935591B2 (en) 2012-02-21 2021-03-02 Texas Instruments Incorporated Two die sides with PTI. PTO. TDI, TCK, TMS, TDO, PTIO contact points method
US20130346817A1 (en) * 2012-06-20 2013-12-26 Robert Bosch Gmbh Method for controlling a state machine
US9304165B2 (en) * 2012-06-20 2016-04-05 Robert Bosch Gmbh Method for controlling a state machine
US20160370428A1 (en) * 2015-06-17 2016-12-22 SK Hynix Inc. Portable test apparatus for a semiconductor apparatus, and test method using the same
US11143702B2 (en) * 2019-09-02 2021-10-12 Realtek Semiconductor Corp. Test access port circuit capable of increasing transmission throughput
CN114253184A (en) * 2021-11-29 2022-03-29 山东云海国创云计算装备产业创新中心有限公司 JTAG control device
DE102022206744B3 (en) 2022-07-01 2023-11-02 Infineon Technologies Ag RESOURCE PROTECTION

Also Published As

Publication number Publication date
US6829730B2 (en) 2004-12-07
WO2002088945A1 (en) 2002-11-07

Similar Documents

Publication Publication Date Title
US6829730B2 (en) Method of designing circuit having multiple test access ports, circuit produced thereby and method of using same
US10928445B2 (en) Boundary scan and wrapper circuitry with state machine and multiplexers
US6587981B1 (en) Integrated circuit with scan test structure
US8751882B2 (en) TAP/WRAPPER circuit blocks having two data register control gating circuits
US7203913B2 (en) Semiconductor integrated circuit device, method of testing the same, database for design of the same and method of designing the same
US6021513A (en) Testable programmable gate array and associated LSSD/deterministic test methodology
US6631504B2 (en) Hierarchical test circuit structure for chips with multiple circuit blocks
US8122413B2 (en) Transparent test method and scan flip-flop
US20020040458A1 (en) Hierarchical test circuit structure for chips with multiple circuit blocks
US7426670B2 (en) Connecting multiple test access port controllers on a single test access port
US7181705B2 (en) Hierarchical test circuit structure for chips with multiple circuit blocks
US20030126533A1 (en) Testing of circuit modules embedded in an integrated circuit
US20030046625A1 (en) Method and apparatus for efficient control of multiple tap controllers
US6079039A (en) Test circuit and test method for testing semiconductor chip
US11675006B2 (en) Implementing a JTAG device chain in multi-die integrated circuit
US20050289421A1 (en) Semiconductor chip

Legal Events

Date Code Title Description
AS Assignment

Owner name: LOGICVISION, INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NADEAU-DOSTIE, BENOIT;COTE, JEAN-FRANCOIS;REEL/FRAME:011772/0099

Effective date: 20010426

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

FEPP Fee payment procedure

Free format text: PAT HOLDER NO LONGER CLAIMS SMALL ENTITY STATUS, ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: STOL); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: COMERICA BANK, MICHIGAN

Free format text: SECURITY AGREEMENT;ASSIGNOR:LOGICVISION, INC.;REEL/FRAME:022629/0938

Effective date: 20090424

AS Assignment

Owner name: LOGICVISION, INC., CALIFORNIA

Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:COMERICA BANK;REEL/FRAME:023234/0037

Effective date: 20090911

FEPP Fee payment procedure

Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: MENTOR GRAPHICS CORPORATION,OREGON

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LOGICVISION, INC.;REEL/FRAME:024233/0056

Effective date: 20090910

Owner name: MENTOR GRAPHICS CORPORATION, OREGON

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LOGICVISION, INC.;REEL/FRAME:024233/0056

Effective date: 20090910

FPAY Fee payment

Year of fee payment: 8

FPAY Fee payment

Year of fee payment: 12

AS Assignment

Owner name: SIEMENS INDUSTRY SOFTWARE INC., TEXAS

Free format text: MERGER AND CHANGE OF NAME;ASSIGNORS:MENTOR GRAPHICS CORPORATION;SIEMENS INDUSTRY SOFTWARE INC.;REEL/FRAME:057279/0707

Effective date: 20201230