The present invention relates to the field of data registers. More particularly, the present invention relates to the field boundary scan registers configured to eliminate data racing conditions.
Historically, most printed circuit board (PCB) testing was done using in-circuit test equipment. Recent advances with VLSI technology now enable microprocessors and Application Specific Integrated Circuits (ASICs) to be packaged into fine pitch, high count packages. These high density devices pose unique manufacturing challenges, such as the accessibility of test points and the high cost of test equipment.
Boundary scan testing was developed as the JTAG (Joint Test Access Group) interface, and formalized as the IEEE 1149.1 standard, to solve the physical access problems on PCBs caused by increasingly crowded assemblies due to the dense packaging technologies. Boundary scan embeds test circuitry at the chip level to form a complete board-level test protocol. With boundary scan, even the most complex assemblies can be accessed for testing, debugging, in-system device programming, and for diagnosing hardware problems.
Boundary scan is a methodology allowing complete control and observation of the boundary pins of an IEEE 1149.1 compatible device via software control. The IEEE 1149.1 standard defines a four-wire serial interface used to access complex integrated circuits (ICs) such as microprocessors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), and Complex Programmable Logic Devices (CPLDs). An on-chip test bus circuitry that complies with the IEEE 1149.1 standard includes boundary scan registers and a test access port (TAP) controller to execute the boundary scan functions. The TAP controller is a finite-state machine that decodes the state of the bus.
The boundary scan bus circuitry consists of the boundary scan registers, a 1-bit bypass register, an instruction register, several miscellaneous registers, and the TAP controller. The boundary scan bus consists of a test clock signal (TCK) pin, a test mode signal (TMS) pin, a test data in (TDI) line, a test data out (TDO) line, and a test reset (TRST) pin.
The TCK pin and the TMS pin direct signals between the TAP controller states. The TDI pin and the TDO pin receive the data input and output signals, respectively, for the boundary scan register chain. Optionally, a fifth pin, TRST, can be implemented as an asynchronous reset signal to the TAP controller.
During standard operations, the boundary scan registers are inactive and allow data to be propagated through the boundary scan device normally. During test modes, all input signals are captured for analysis and all output signals are preset to test down-string devices. The operation of these boundary scan registers are controlled through the TAP Controller and an instruction register.
Test instructions and test data are sent to a chip over the TDI line. Test results and status information are sent from a chip over the TDO line. This information is transmitted serially. Control of the boundary scan bus circuitry is carried out by the TAP controller, which responds to the state transitions on the TMS line. The boundary scan logic is clocked by the TCK signal.
The boundary scan registers are configured as a chain. A first boundary scan register in the chain is driven by the TDI line, and the last boundary scan register drives the TDO line. The instruction register provides the specific instructions related to the type of test that is to be performed. The IEEE 1149.1 Standard requires that all compliant devices must perform the EXTEST instruction, the SAMPLE/PRELOAD instruction, and the BYPASS instruction. The EXTEST instruction performs a PCB interconnect test. The EXTEST instruction places an IEEE 1149.1 compliant device into an external boundary test mode and selects the boundary scan register to be connected between the TDI pin and the TDO pin. During this instruction, the boundary scan registers associated with the outputs are preloaded with test patterns to test downstream devices. The input boundary scan registers are set up to capture the input data for later analysis. The SAMPLE/PRELOAD instruction allows an IEEE 1149.1 compliant device to remain in its functional mode and selects the boundary scan register to be connected between the TDI pin and the TDO pin. During this instruction, the boundary scan register can be accessed via a data scan operation to take a sample of the functional data entering and leaving the device. This instruction is also used to preload test data into the boundary scan registers prior to loading an EXTEST instruction. A boundary scan register chain can be skipped using the BYPASS instruction, allowing the data to pass through the bypass register. The BYPASS instruction allows an IEEE 1149.1 compliant device to remain in a functional mode and selects the bypass register to be connected between the TDI pin and the TDO pin. The BYPASS instruction allows serial data to be transferred through a device from the TDI pin to the TDO pin without affecting the operation of the device.
Multiple scan-compatible ICs may be serially interconnected on the PCB, forming one or more boundary scan chains, each chain having its own TAP. Each scan chain provides electrical access from the serial TAP interface to every pin on every IC that is part of the chain. In normal operation, the IC performs its intended function as though the boundary scan circuits were not present. However, when the device's scan logic is activated for the purpose of testing or in-system programming, data can be sent to the IC and read from it using the serial interface. This data may be used to stimulate the device core, drive signals outward from the device pins to the PCB, sense the input pins from the PCB, and sense the device outputs.
The boundary scan registers are located close to the pad area of the chip under test. Due to physical constraints of the printed circuit board, a boundary scan device, and its boundary scan registers, can not always be located as close to the pin under test as is optimal. Further, the circuit path length from the pin under test to each boundary scan register varies in length, which results in delay. Other factors also contribute to incongruent delay, such as temperature. Further, the clock signal that triggers a particular boundary scan register is generated from the TAP controller, and distributed to the boundary scan registers. For ideal boundary scan register path design, any data delay from one boundary scan register to another should match the clock skew between registers, so that the boundary scan register does not receive the wrong data. However, in practice the order of data transmission does not track with the clock distribution path. To overcome this disparity, a delay can be inserted on the data path between two boundary scan registers. Accounting for such delays though, across all temperature and process variations, is difficult and burdensome. Moreover, for a high-capacity chip, which has many I/O and control pins, there are many different boundary scan register paths to consider.
A chain of boundary scan registers is configured to use a two-phase clock signal to avoid data timing race conditions. The two-phase clock signal is generated according to a two-phase clock generator, which includes two self-timed clock pulse generators for each boundary scan register. The two-phase clock generator locally generates a self-timed clock pulse at the rising edge of a clock signal, which triggers a first stage of the boundary scan register. The two-phase clock generator also generates a self-timed clock pulse at the falling edge of the input clock signal, which triggers a second stage of the boundary scan register. The two-phase clock controlled boundary scan register includes two latches, each latch is triggered by one of the self-timed clock pulse generated locally from the rising and falling edge of the input clock signal.
The two-phase clock generator includes a first self-timed clock pulse generator and a second self-timed clock pulse generator. The first self-timed clock pulse generator generates a first clock pulse at the rising edge of the input clock signal. The first clock pulse is provided to a first latch of the boundary scan register. The second self-timed clock pulse generator generates a second clock pulse at the falling edge of the input clock signal. The second clock pulse is provided to a second latch of the boundary scan register. Data received by the boundary scan register is latched in the first latch during the first half cycle of the input clock signal. During the first half cycle, the data is blocked by the second latch. The second latch does not latch the data until the second half of the cycle. Two or more boundary scan registers are coupled in series such that data output from the second latch of the first boundary scan register is input to the first latch of a second boundary scan register.
In one aspect, a chain of boundary scan registers includes a first boundary scan register and a second boundary scan register. The first boundary scan register is configured to receive a first clock signal, to latch a first input data value at a rising edge of the first clock signal, to prevent the first data value from being output prior to a falling edge of the first clock signal, and to output the first data value at the falling edge of the first clock signal. The second boundary scan register is coupled to the first boundary scan register and is configured to receive a second clock signal delayed relative to the first clock signal, to latch the first data value at a rising edge of the second clock signal, to prevent the first data value from being output prior to a falling edge of the second clock signal, and to output the first data value at the falling edge of the second clock signal. The chain of boundary scan registers includes N boundary scan registers coupled in series. A system clock signal can be configured such that a relative delay between the first clock signal and the second clock signal is less than one-half the cycle time of the system clock signal. The chain of boundary scan registers can also include a first pulse signal generator configured to receive the first clock signal and to generate a first pulse signal in response to the rising edge of the first clock signal. The chain of boundary scan registers can also include a second pulse signal generator configured to receive the first clock signal and to generate a second pulse signal in response to the falling edge of the first clock signal. The first boundary scan register can comprise a first latch coupled to the first pulse signal generator and a second latch coupled to the second pulse signal generator. The first latch can be configured to receive the first pulse signal, to latch the first data value in response to the first pulse signal, and to output the first data value. The second latch can be coupled to the first latch and is configured to receive the second pulse signal, to latch the first data value output from the first latch in response to the second pulse signal, and to output the first data value. The chain of boundary scan registers can also include a third pulse signal generator configured to receive the second clock signal and to generate a third pulse signal in response to the rising edge of the second clock signal. The chain of boundary scan registers can also include a fourth pulse signal generator configured to receive the second clock signal and to generate a third pulse signal in response to the falling edge of the second clock signal. The second boundary scan register can comprise a third latch coupled to the third pulse signal generator and a fourth latch coupled to the fourth pulse signal generator. The third latch can be configured to receive the third pulse signal, to latch the first data value in response to the third pulse signal, and to output the first data value. The fourth latch can be coupled to the third latch and is configured to receive the fourth pulse signal, to latch the first data value output from the third latch in response to the fourth pulse signal, and to output the first data value.
In another aspect, a boundary scan register is configured to input and output data according to a system clock signal. The boundary scan register includes a first pulse signal generator configured to receive the system clock signal and to generate a first pulse signal in response to a rising edge of the system clock signal, a second pulse signal generator configured to receive the system clock signal and to generate a second pulse signal in response to a falling edge of the system clock signal, a first latch coupled to the first pulse signal generator and configured to receive the first pulse signal, to latch an input data value in response to the first pulse signal forming a first latched data value, and to output the first latched data value, and a second latch coupled to the second pulse signal generator and configured to receive the second pulse signal, to latch the first latched data value output from the first latch in response to the second pulse signal forming a second latched data value, and to output the second latched data value.
In yet another aspect, a method of passing data through a chain of boundary scan registers is described. The method includes receiving a first clock signal at a first boundary scan register, receiving a second clock signal at a second boundary scan register, wherein the second clock signal is delayed relative to the first clock signal, latching a first input data value by the first boundary scan register at a rising edge of the first clock signal, preventing the first data value from being output from the first boundary scan register prior to a falling edge of the first clock signal, outputting the first data value from the first boundary scan register at the falling edge of the first clock signal, latching the first data value output from the first boundary scan register by the second boundary scan register, wherein latching by the second boundary scan register is performed at a rising edge of the second clock signal, preventing the first data value from being output from the second boundary scan register prior to a falling edge of the second clock signal, and outputting the first data value from the second boundary scan register at the falling edge of the second clock signal. The method can also include coupling N boundary scan registers together in series. The method can also include configuring a system clock signal such that a relative delay between the first clock signal and the second clock signal is less than one-half the cycle time of the system clock signal. The method can also include generating a first pulse signal in response to the rising edge of the first clock signal. The method can also include generating a second pulse signal in response to the falling edge of the first clock signal. The method can also include latching the first data value by a first latch in the first boundary scan register in response to the first pulse signal while preventing the first data value from being output from the first boundary scan register. The method can also include latching the first data value by a second latch in the first boundary scan register in response to the second pulse signal. Outputting the first data value from the first boundary scan register can comprise outputting the first data value from the second latch. The method can also include generating a third pulse signal in response to the rising edge of the second clock signal. The method can also include generating a fourth pulse signal in response to the falling edge of the second clock signal. The method can also include latching the first data value by a third latch in the second boundary scan register in response to the third pulse signal while preventing the first data from being output from the second boundary scan register. The method can also include latching the first data value by a fourth latch in the second boundary scan register in response to the fourth pulse signal. Outputting the first data value from the second boundary scan register comprises outputting the first data value from the fourth latch.
In another aspect, a method of passing an input data value through a boundary scan register is described. The method includes receiving a system clock signal, generating a first pulse signal in response to a rising edge of the system clock signal, latching the input data value in response to the first pulse signal at a first latch within the boundary scan register, while preventing the input data value from being output from the first latch, generating a second pulse signal in response to a falling edge of the system clock signal, latching the input data value in response to the second pulse signal at a second latch within the boundary scan register, and providing as an output the input data value from the boundary scan register
Embodiments of the boundary scan registers are described relative to the several views of the drawings. Where appropriate and only where identical elements are disclosed and shown in more than one drawing, the same reference numeral will be used to represent such identical elements.
At the falling edge of the clock signal cktstn, the pulse generator ST2 generates a pulse. The clock signal cktstfn represents the pulses generated by the pulse generator ST2. The clock signal cktstfn is received as the clock input CK to the latch 2 of the boundary scan register FFn. In response to receiving the pulse in the clock signal cktstfn, the latch 2 latches the data received at the input D from the output Q of latch 1, and outputs the data to the first latch (latch 3) of the next boundary scan register FFn+1. The data 1a is output from the latch 2 of the boundary scan register FFn at the output Q, as is shown in
At the next rising edge of the clock signal cktstn, a next pulse is generated by the pulse generator ST1. The next pulse signals the latch 1 to latch the next data 1b, thereby overwriting the data 1a in the latch 1.
The clock signal cktstn+1 is received by the pulse generator ST3 and the pulse generator ST4. The pulse generator ST3 generates a pulse at the rising edge of the clock signal cktstn+1. The clock signal cktstrn+1 represents the pulses generated by the pulse generator ST3. The clock signal cktstrn+1 is received as the clock input CK to the latch 3 of the boundary scan register FFn+1. In response to receiving the pulse in the clock signal cktstrn+1, the latch 3 receives the data 1a from the boundary scan register FFn at the input D and latches the data as data 2a. The data 2a remains latched in the latch 3 and is not overwritten until the next pulse in the clock signal cktstrn+1.
At the falling edge of the clock signal cktstn+1, the pulse generator ST4 generates a pulse. The clock signal cktstfn+1 represents the pulses generated by the pulse generator ST4. The clock signal cktstfn+1 is received as the clock input CK to the latch 4 of the boundary scan register FFn+1. In response to receiving the pulse in the clock signal cktstfn+1, the latch 4 latches the data 2a received at the input D from the output Q of the latch 3, and outputs the data 2a to a next boundary scan register in the chain, if there is one. The data 2a is output from the latch 4 of the boundary scan register FFn+1 at the output Q, as is shown in
At the next rising edge of the clock signal cktstn+1, a next pulse is generated by the pulse generator ST3. The next pulse signals the latch 3 to latch the next data 2b, thereby overwriting the data 2a in the latch 3.
In operation, data is output from the boundary scan register FFn at the falling edge of the clock cycle cktstn, as signaled by the pulse generated by the pulse generator ST2. The boundary scan register FFn+1 captures the data output from the boundary scan register FFn at the next rising edge of the clock signal cktstn+1, as signaled by the pulse generated by the pulse generator ST3. However, the boundary scan register FFn+1 does not output the captured data until the falling edge of the next cycle of the clock signal cktstn+1, as signaled by the pulse generated by the pulse generator ST4. Such a configuration prevents the boundary scan register FFn+1 from outputting the data early, where the delay is less than one-half the system clock cycle.
The following equations describe the condition under which data racing is avoided. Two cases are considered for both the conventional boundary scan register chain, which is configured to operate according to the one-phase clock signal, and the dual-latch boundary scan register chain, which is configured to operate according to the two-phase clock signal. Case 1 refers to the condition where the clock signal cktstn+1 is delayed relative to the clock signal cktstn.
For the boundary scan register chain configured according to the one-cycle clock signal, as shown in
For the boundary scan register chain configured according to the two-cycle clock signal, as shown in
As applied to the chain of boundary scan registers described above in relation to
At the step 140, the first data value is output from the boundary scan register FFn at the falling edge of the first clock signal. At the step 150, the first data value output from the boundary scan register FFn is latched as an input by the boundary scan register FFn+1. The latching is performed at a rising edge of the second clock signal. At the step 160, the first data value is prevented from being output from the boundary scan register FFn+1 prior to a falling edge of the second clock signal. In one embodiment, the first data value is prevented from being output from the boundary scan register FFn+1 by configuring the boundary scan register FFn+1 with two separate latches. The first latch receives the first data value output from the second latch of the boundary scan register FFn as input to the boundary scan register FFn+1. The second latch of the boundary scan register FFn+1 is coupled to receive the output from the first latch of the boundary scan register FFn+1. The first latch is configured to latch the first data value at the rising edge of the second clock signal, while the second latch is not, thereby preventing the first data value latched by the first latch from being output to the second latch while the second clock signal is high. At the step 170, the first data value from the boundary scan register FFn+1 is output at the falling edge of the second clock signal.
Using the boundary scan register chain as described above, it is not necessary to simulate the detailed setup and hold time of the boundary scan registers across all process corners, power supply levels, and temperature conditions. A dual-latch boundary scan register utilizing a two-phase clock signal is more tolerant of arbitrary layout drawings, and saves design and post layout simulation time.
The present invention has been described in terms of specific embodiments incorporating details to facilitate the understanding of the principles of construction and operation of the invention. Such references, herein, to specific embodiments and details thereof are not intended to limit the scope of the claims appended hereto. It will be apparent to those skilled in the art that modifications can be made in the embodiments chosen for illustration without departing from the spirit and scope of the invention.
This application claims priority of U.S. provisional application Ser. No. 60/731,394, filed Oct. 28, 2005, and entitled “SHIFT REGISTERS FREE OF TIMING RACE BOUNDARY SCAN REGISTERS WITH TWO-PHASE CLOCK CONTROL”, by the same inventors. This application incorporates U.S. provisional application, Ser. No. 60/731,394, filed Oct. 28, 2005, and entitled “SHIFT REGISTERS FREE OF TIMING RACE BOUNDARY SCAN REGISTERS WITH TWO-PHASE CLOCK CONTROL”, in its entirety by reference.
Number | Name | Date | Kind |
---|---|---|---|
5915107 | Maley et al. | Jun 1999 | A |
6163864 | Bhavsar et al. | Dec 2000 | A |
6642763 | Dike | Nov 2003 | B2 |
6836144 | Bui et al. | Dec 2004 | B1 |
7202724 | Kim | Apr 2007 | B2 |
7219283 | Whetsel | May 2007 | B2 |
7242737 | Lake et al. | Jul 2007 | B2 |
7253656 | Costa et al. | Aug 2007 | B2 |
7254793 | Chen et al. | Aug 2007 | B2 |
7317773 | Young et al. | Jan 2008 | B2 |
20050190640 | Braceras et al. | Sep 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20070101222 A1 | May 2007 | US |
Number | Date | Country | |
---|---|---|---|
60731394 | Oct 2005 | US |