Patent Number:
Advanced Search
Site Contents
Search Patents
Use our search engine to find what you need

Data and Analytical Services

Complete custom solutions

Syntax Reference

Learn our powerful search syntax

F.A.Q.

About this site and our patent search engine

Crazy Patents

People patented these???

RSS Feeds

Subscribe to our RSS Feeds

  Login or Create Account (Free!) 

Title: System and method for speeding up EJTAG block data transfers
Document Type and Number: United States Patent 7065675
Link to this Page: http://www.freepatentsonline.com/7065675.html
Abstract: A system and method for providing efficient block transfer operations through a test access port uses a Fastdata register. The Fastdata register, in part, emulates a pending process access bit ("PrAcc") typically found in a Control register associated with the test access port. When a Fastdata access (either a Fastdata upload or a Fastdata download) is requested by a probe coupled to the test access port, the Fastdata register is serially coupled to a data register also associated with the test access port. With these registers so coupled and through the operation of the Fastdata register, downloading and uploading data can be accomplished using a single register operation.
 



























 
Inventors: Thekkath, Radhika; McCoy, Scott Michael; Treue, Franz; Zilmer, Morten; Uhler, G. Michael;
Application Number: 850195
Filing Date: 2001-05-08
Publication Date: 2006-06-20
View Patent Images: View PDF Images
Related Patents: View patents that cite this patent

Export Citation: Click for automatic bibliography generation
Assignee: MIPS Technologies, Inc. (Mountain View, CA)
Current Classes: 714 / 30 , 714 / 727
International Classes: G06F 11/00 (20060101)
Field of Search: 714/30,726,727
US Patent References:
3474154 October 1969Couleur et al.
3585599 June 1971Hitt
3681534 August 1972Burian et al.
3702989 November 1972Provenzano, Jr. et al.
3704363 November 1972Salmassy et al.
3707725 December 1972Dellheim
3771131 November 1973Ling
3794831 February 1974Frankeny et al.
3805038 April 1974Buedel et al.
3906454 September 1975Martin
4205370 May 1980Hirtle
4293925 October 1981Hang et al.
4423508 December 1983Shiozaki et al.
4462077 July 1984York
4503495 March 1985Boudreau
4511960 April 1985Boudreau
4539682 September 1985Herman et al.
4553223 November 1985Bouhelier et al.
4554661 November 1985Bannister
4590550 May 1986Eilert et al.
4742466 May 1988Ochiai et al.
4783762 November 1988Inoue et al.
4835675 May 1989Kawai
5058114 October 1991Kuboki et al.
5084814 January 1992Vaglica et al.
5150470 September 1992Hicks et al.
5274811 December 1993Borg et al.
5289587 February 1994Razban
5355369 October 1994Greenberger et al.
5404470 April 1995Miyake
5434622 July 1995Lim
5471594 November 1995Stone
5473754 December 1995Folwell et al.
5491793 February 1996Somasundaram et al.
5533193 July 1996Roscoe
5581691 December 1996Hsu et al.
5598421 January 1997Tran et al.
5621886 April 1997Alpert et al.
5625785 April 1997Miura et al.
5642478 June 1997Chen et al.
5642479 June 1997Flynn
5687179 November 1997Whetsel, Jr. et al.
5689636 November 1997Kleber et al.
5689694 November 1997Funyu
5715435 February 1998Ikei
5724505 March 1998Argade et al.
5748904 May 1998Huang et al.
5751942 May 1998Christensen et al.
5752013 May 1998Christensen et al.
5764885 June 1998Sites et al.
5790561 August 1998Borden et al.
5802272 September 1998Sites et al.
5812868 September 1998Moyer et al.
5832515 November 1998Ledain et al.
5835503 November 1998Jones et al.
5848264 December 1998Baird et al.
5878208 March 1999Levine et al.
5944841 August 1999Christie
5946486 August 1999Pekowski
5970246 October 1999Moughani et al.
5978937 November 1999Miyamori et al.
5996092 November 1999Augsburg et al.
6009270 December 1999Mann
6012085 January 2000Yohe et al.
6032268 February 2000Swoboda et al.
6032279 February 2000Ramamurthy et al.
6061473 May 2000Chen et al.
6094729 July 2000Mann
6106573 August 2000Mahalingaiah et al.
6145123 November 2000Torrey et al.
6256777 July 2001Ackerman
6282701 August 2001Wygodny et al.
6314530 November 2001Mann
6338159 January 2002Alexander
6353924 March 2002Ayers et al.
6381721 April 2002Warren
6430727 August 2002Warren
6457144 September 2002Eberhard
6467083 October 2002Yamashita
6484273 November 2002Chang
6484275 November 2002Josephson et al.
6487715 November 2002Chamdani et al.
6530076 March 2003Ryan et al.
6594741 July 2003Chang
6615370 September 2003Edwards et al.
6615371 September 2003McCullough et al.
6658649 December 2003Bates et al.
6684348 January 2004Edwards et al.
6687865 February 2004Dervisoglu et al.
6754804 June 2004Hudepohl et al.
6966021 November 2005Rajski et al.
2001 / 0054175 December 2001Watanabe
2002 / 0046393 April 2002Leino et al.
2002 / 0147965 October 2002Swaine et al.
2002 / 0184562 December 2002Nadeau-Dostie et al.
Foreign Patent References:
2 329 048 Oct., 1999 GB
2 329 049 Oct., 1999 GB
Other References:
"In-Target System Analyzer for MIPS", 2004, FS2 [http://www.fs2.com/mips.sub.--download/readme-linux.txt]. cited by exami- ner .
MIPS64 5Kc.TM. Processor Core Datasheet, Revision 1.7.4, pp. 1-40, Dec. 14, 1999. cited by other .
MIPS64 5Kc.TM. Processor Core Datasheet, Revision 1.7.5, pp. 1-40, Aug. 11, 2000. cited by other .
MIPS64 5Kc.TM. Processor Core Datasheet, Revision 2.0, pp. 1-44, Aug. 28, 2000. cited by other .
MIPS64.TM. 5Kf.TM. Processor Core Datasheet, Revision 00.11, pp. 1-44, Mar. 30, 2001. cited by other .
MIPS64 5Kc.TM. Processor Core Software User's Manual, Revision 2.2, pp. 1-580, Aug. 11, 2000. cited by other .
MIPS Technologies, EITAG Specification, Revision 2.60, Feb. 15, 2001. cite- d by other .
Embedded Trace Macrocell Specification, Rev. 0/0a, ARM IHI 0014C, ARM Ltd. (1999). cited by other .
F. Chow et al., "Engineering a RISC Compiler System," IEEE COMP-CON, Mar. 1986, pp. 132-137. cited by other .
Faloutsos, Christos et al., "Description and Performance Analysis of Signature File Methods for Office Filing", ACM Transactions on Office Information Systems, (Jul. 1987), 5:3:237-257. cited by other .
Susan J. Eggers, et al., "Techniques for Efficient Inline Tracing on a Shared-Memory Multiprocessor," University of Washington, 1990 ACM, pp. 37-47. cited by other .
M.D. Smith, "Tracing with Pixie," Technical Report CSL-TR-91-497, Stanford University, Computer Systems Laboratory, Nov. 1991, pp. 1-29. cited by other .
ATOM Reference Manual, Digital Equipment Corporation, Massachusetts, Dec. 1993, pp. 1-32. cited by other .
A. Srivastaba et al., "ATOM: A System for Building Customized Program Analysis Tools," WRL, Research Report 94/2, Digital Equipment Corporation, Massachusetts, Mar. 1994, pp. 1-23. cited by other .
ATOM User Manual, Digital Equipment Corporation, Mar. 1994, pp. 1-28. cite- d by other .
B. Cmelik et al., "Shade: A Fast Instruction-Set Simulator for Execution Profiling," Proceedings of the 1994 ACM SIGMETRICS Conference, SIGMETRICS, California, May 1994, pp. 128-137. cited by other .
Richard A. Uhlig, et al., "Trace-Driven Memory Simulation: A Survey," Intel Microcomputer Research Lab; University of Michigan, ACM Computing Surveys, vol. 29, No. 2, Jun. 1997, pp. 128-170. cited by other .
Eric Rotenberg, et al., "Trace Processors," University of Wisconsin, 1997 IEEE Service Center, 12 pp. cited by other .
E.N. Elnozahy, "Address Trace Compression Through Loop Detection and Reduction," 201 1999 ACM 1-58113-083, pp. 214, 215. cited by other .
MIPS Technologies: "MIPS64.TM. 5K.TM. Processor Core Family Integrator's Guide," [Document No. MD00106]; .COPYRGT.1999-2001 MIPS Technologies, Inc.; Rev. 02.00; Jan. 15, 2001; pp. I-VIII, 1-75. cited by other .
Darren Jones, "Opal Coprocessor Interface," MIP Propletary/Confidential, Jun. 4, 1999, pp. 1-18. cited by other .
Darren Jones, MIPSS64.TM. 5KC.TM. Processor Cores User's Manual, Rev. 1.0, Jul. 4, 1999, pp. 6-1 to 6-26. cited by other .
MIPSS64.TM. 5KC.TM. Processor Cores User's Manual, Rev. 1.0.1., 1999, pp. 247-276. cited by other .
Embedded Trace Macrocell, (Rev. 1) Specification, (2000). cited by other .
MIPS Technologies; "MIPS64.TM. 5K.TM. Processor Core Integrator's Guide; " [Document No. MD00056]; MIPS Technologies, Inc.; Rev. 1.2; Aug. 11, 2000; pp. 1-11, 1-82. cited by other .
MIPS Technologies; "Core Processor Interface Specification; " [Document No. MD00068]; MIPS Technologies, Inc.; Rev. 1.11; Mar. 30, 2001; pp. 1-26. cited by other .
U.S. Appl. No. 09/751,747, filed Dec. 29, 2000, Hudepohl et al. cited by other .
U.S. Appl. No. 09/751,748, filed Dec. 29, 2000, Hudepohl et al. cited by other .
U.S. Appl. No. 09/844,671, filed Apr. 30, 2001, Thekkath et al. cited by other .
U.S. Appl. No. 09/844,669, filed Apr. 30, 2001, Thekkath. cited by other .
U.S. Appl. No. 09/894,832, filed Jun. 29, 2001, Thekkath et al. cited by other .
U.S. Appl. No. 09/844,668, filed Apr. 30, 2001, Thekkath et al. cited by other .
U.S. Appl. No. 09/844,672, filed Apr. 30, 2001, Thekkath. cited by other .
U.S. Appl. No. 09/844,673, filed Apr. 30, 2001, Thekkath. cited by other .
U.S. Appl. No. 09/844,271, filed Apr. 30, 2001, Thekkath. cited by other .
U.S. Appl. No. 09/894,831, filed Jun. 29, 2001, Treue et al. cited by othe- r .
U.S. Appl. No. 09/894,830, filed Jun. 29, 2001, Treue et al. cited by othe- r .
U.S. Appl. No. 09/844,670, filed Apr. 30, 2001, Thekkath. cited by other.
Primary Examiner: Baderman; Scott
Assistant Examiner: Chu; Gabriel L.
Attorney, Agent or Firm: Cooley Godward LLP
 
Claims:

What is claimed is:

1. A test access port comprising: a fastdata register that is selectably connectable to a data register to form at least a portion of a TDI-to-TDO path, said fastdata register configured to operate such that a fastdata access completes when a processor access is pending and said processor access is to a predetermined area of dmseg memory.

2. The test access port of claim 1, further comprising a data register serially coupled to said fastdata register.

3. The test access port of claim 1, wherein said fastdata register is configured to operate such that an attempt to complete said fastdata access occurs by clearing said fastdata register.

4. The test access port of claim 1, wherein said fastdata register is configured to operate such that said fastdata register is set to indicate that said fastdata access will complete.

5. The test access port of claim 1, wherein said fastdata register is configured to operate such that, if said processor access is not pending, said fastdata register is cleared to indicate that said fastdata access will not complete.

6. The test access port of claim 5, wherein said fastdata register is configured to operate such that, if a PrAcc bit is asserted while said processor access is not pending, said fastdata register is cleared to indicate that said fastdata access will not complete.

7. The test access port of claim 1, wherein said fastdata register is configured to operate such that, if said processor access is outside said predetermined area of dmseg memory, said fastdata register is cleared to indicate that said fastdata access will not complete.

8. A method for transferring a plurality of data words between a test probe and a target processor over a serial link, the method comprising: directing the target processor to configure a test data in port to test data out port ("TDI-to-TDO") path to include a data register and a fastdata register; without reconfiguring said TDI-to-TDO path, shifting each of the plurality of data words accompanied by a SPrAcc bit into said data register and said fastdata register of said TDI-to-TDO path, respectively, said SPrAcc bit indicative of a request for completion of a pending processor access.

9. The method of claim 8, further comprising receiving an indication from said TDI-to-TDO path whether said pending processor access completed.

10. The method of claim 9, wherein said receiving an indication comprises receiving an indication that said pending processor access successfully completed when a processor access was pending at a time of said request and said processor access was to a predetermined area of a dmseg memory.

11. The method of claim 9, wherein said receiving an indication comprises receiving an indication that said pending processor access failed to complete when a processor access was not pending at a time of said request.

12. The method of claim 9, wherein said receiving an indication comprises receiving an indication that said pending processor access failed to complete when a processor access was outside a predetermined area of dmseg memory.

13. A method for transferring a plurality of data words between a test probe and a target processor over a serial link, the method comprising: configuring a test data in port to test data out port ("TDI-to-TDO") path to include a data register and a fastdata register; receiving from the test probe one of the plurality of data words accompanied by an SPrAcc bit in said data register and said fastdata register of said TDI-to-TDO path, respectively, said SPrAcc bit indicating a request for completion of a pending processor access; and indicating to the test probe whether said pending processor access completed.

14. The method of claim 13, wherein said indicating comprises indicating to the test probe that said pending processor access successfully completed when a processor access was pending at a time of said request and said processor access was to a fastdata area of a dmseg memory.

15. The method of claim 13, wherein said indicating comprises indicating to the test probe that said pending processor access failed to complete when a processor access was not pending at a time of said request.

16. The method of claim 13, wherein said indicating comprises indicating to the test probe that said pending processor access failed to complete when a processor access was outside a fastdata area of a dmseg memory.

17. The method of claim 13, further comprising stalling on an attempt to access a fastdata area of dmseg memory.

18. A method for transferring a plurality of data words between a test probe and a target processor over a link, the method comprising: requesting a serial data transfer; receiving control information in said serial data transfer, said control information indicative of a request for completion of a processor access; and confirming said processor access is pending and a target address associated with said processor access falls within a predetermined acceptable range of memory addresses.

19. The method of claim 18 further comprising enabling said serial data transfer upon successfully confirming said processor access is pending and said target address associated with said processor access falls within a predetermined acceptable range of memory addresses for one of said plurality of data words.

20. The method of claim 19 wherein said confirming said processor access is pending comprises detecting a value of a control bit.

21. The method of claim 20 further comprising resetting said value of said control bit after successfully confirming said processor access is pending.

22. The method of claim 19 wherein said confirming said processor access is pending and a target address associated with said processor access falls within a predetermined acceptable range of memory addresses is achieved without use of the probe.

23. The method of claim 22 wherein said control information is modified to indicate success or failure of confirming said processor access is pending and a target address associated with said processor access falls within a predetermined acceptable range of memory addresses for said one of said plurality of data words.

24. The method of claim 21 wherein said resetting said value of said control bit is achieved without use of the probe.

25. The method of claim 18 further comprising: in response to direction from the probe, configuring a test-data-in-port to test-data-out-port ("TDI-to-TDO") path to include a data register and a Fastdata register; and without reconfiguring said TDI-to-TDO path, shifting each of said plurality of data words accompanied by said control information in modified or unmodified form over said TDI-to-TDO path and the link.

26. The method of claim 25 wherein said control information is an SPrAcc bit associated with each of said plurality of data words.

27. The method of claim 26 wherein said configuring TDI-to-TDO path to include a data register and a Fastdata register is achieved in response to receiving a FASTDATA instruction from the probe.

28. A computer-readable medium comprising a programmable device described in software, the programmable device including a test access port comprising: a Fastdata register that is selectably connectable to a data register to form at least a portion of a test-data-in-port to test-data-out-port path, said Fastdata register configured to operate such that a fastdata access completes when a processor access is pending and said processor access is to a predetermined area of memory.

29. The computer readable medium of claim 28 wherein the programmable device is a microprocessor core.

30. A method for transferring a plurality of data words between a test probe and a target processor over a link, the method comprising: in response to a request from the target processor for a serial data transfer, including control information in said serial data transfer, said control information indicative of a request for completion of a processor access; and receiving second control information that confirms said processor access was pending and a target address associated with said processor access falls within a predetermined acceptable range of memory addresses.

31. The method of claim 30 further comprising: directing that target processor to configure a test-data-in-port to test-data-out-port ("TDI-to-TDO") path to include a data register and a Fastdata register; and shifting each of said plurality of data words accompanied by said control information in modified or unmodified form over said TDI-to-TDO path and the link.

32. The method of claim 31 wherein said control information is an SPrAcc bit associated with each of said plurality of data words shifted into said TDI-to-TDO path.

33. The method of claim 31 wherein said second control information is an SPrAcc bit associated with each of said plurality of data words shifted out of said TDI-to-TDO path.

34. The method of claim 31 wherein said directing the target processor to configure a TDI-to-TDO path to include a data register and a Fastdata register is achieved by sending a FASTDATA instruction.

Description:

BACKGROUND

1. Field of the Invention

The present invention relates generally to integrated circuits and more particularly to efficient block data transfers over a serial test port.

2. Discussion of the Related Art

Complex integrated circuits have become increasingly difficult to test. One mechanism for testing these complex integrated circuits uses a Joint Test Action Group ("JTAG") test access port ("TAP") as defined in IEEE Standard 1149.1, IEEE Standard Test Access Port and Boundary-Scan Architecture (the "IEEE Standard"), which is incorporated herein by reference in its entirety for all purposes. The JTAG TAP provides an external interface to the integrated circuit whereby the integrated circuit can be debugged. According to the standard, a TAP is added to each integrated circuit. The TAP includes at least three inputs: a test clock ("TCLK"), a test mode select ("TMS"), and a test data in ("TDI") port. The TAP includes at least one output: a test data out ("TDO") port. Data is serially shifted from the TDI port and into the integrated circuit and serially shifted out of the integrated circuit and onto the TDO port. In this manner, "test vectors" may be written to or read from the integrated circuit via a test probe to determine whether the integrated circuit is operating properly.

Software debug on complex integrated circuits has likewise become increasingly difficult to conduct. In this regard, an extension of the JTAG standard, referred to as EJTAG, has been developed. EJTAG is a hardware/software subsystem that provides comprehensive debugging and performance tuning capabilities to processors and to system-on-chip components having processor cores. EJTAG exploits the infrastructure provided by the JTAG Test Access Port (TAP) standard to provide an external interface, and extends an instruction set of the processor and privileged resource architectures to provide a standard software architecture for integrated system debugging.

Using EJTAG, instructions to be executed by the processor, in addition to data, may be downloaded to the processor via the test probe. Serially downloading instructions, which are executed as they are received by the processor, causes the processor to operate particularly slowly. One conventional mechanism to speed up this process is to download all the instructions to be executed by the processor to some portion of the processor's memory upon entering debug mode.

As serially shifting instructions and data to and from a processor through EJTAG is extremely time consuming relative to the operational speeds of the processor, existing EJTAG protocols (specifically, versions 2.5 and earlier) may require as many as 149 overhead test clock ("TCK") cycles for every 32 bits of instruction or data transferred. Accordingly, even at reasonable rates for TCK, transferring large blocks of instructions or data to and from the integrated circuit is often measured in terms of minutes.

What is needed therefore is a system and method for improving efficiency of block data transfer operations to and from a processor implementing EJTAG.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a system for device testing and software debug on integrated circuits according to the present invention.

FIG. 2 illustrates various registers associated with a test access port according to the present invention.

FIG. 3 illustrates a transfer of data through a test access port in accordance with an operation of a conventional test system.

FIG. 4 illustrates a more efficient TDI-to-TDO path according to the present invention.

FIG. 5 illustrates a transfer of data through a test access port in accordance with an operation of the present invention.

DETAILED DESCRIPTION

An embodiment of the invention is discussed in detail below. While specific implementations are discussed, it should be understood that this is done for illustration purposes only. More particularly, the present invention is described in terms of a particular Extended Joint Test Access Group ("EJTAG") implementation developed by MIPS Technologies, Inc., 1225 Charleston Road, Mountain View, Calif. 94043-1353 ("MIPS Technologies"), which is an extension to the JTAG standard mentioned above. A complete discussion of the EJTAG implementation is described in EJTAG Specification, Document Number MD00047, Revision 2.60, dated Feb. 15, 2001, by MIPS Technologies (the "EJTAG Specification"), which is incorporated herein by reference in its entirety for all purposes. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the spirit and scope of the invention.

FIG. 1 illustrates a testing system 100 for testing an integrated circuit, which in this example is a target processor 110. Target processor 110 includes a test access port ("TAP") 115 that services a number of signals including Test Clock ("TCK"), Test Mode ("TMS"), Test Data In ("TDI") and Test Data Out ("TDO"). TCK and TMS control the state of a TAP controller (not shown), which is a state machine that controls access to certain registers within TAP 115. Access to these registers occurs serially through TDI and TDO. The structure and functionality of TAP 115 are described in greater detail below, and in the EJTAG Specification and IEEE Standard. Interfaced to target processor 110 is a target memory 120 resident either within target processor 110, external to target processor 110, or some combination of the two. Target processor 110 is any programmable semiconductor device including a microprocessor, microcontroller, System-On-a-Chip ("SOC") component (e.g., ASIC, ASSP), etc.

Testing system 100 also includes a test probe 130 operating in conjunction with a host processor 150. Probe 130 functions as an interface between target processor 110 (specifically, TAP 115 of target processor 110) and host processor 150. Probe 130 communicates with target processor 110 via a serial link 160. The operations of probe 130 and host processor 150 for purposes of debugging target processor 110 are generally well known.

Probe 130 and host processor 150 together emulate an overlay region of memory referred to as a dmseg (i.e., debug memory segment) memory 140 that can be accessed by target processor 110 during debug mode operations. For example, when host processor 150 enters debug mode, a debug exception handler might lie in dmseg memory 140. Hence, the first instruction fetched by host processor 150 would be an address in dmseg memory 140. This dmseg memory 140 is emulated using memory associated with probe 130, memory associated with host processor 150, or some combination of the two. The operation of dmseg memory 140 for purposes of debugging target processor 110 is also generally well known.

FIG. 2 illustrates various registers included in TAP 115 that are accessed via serial link 160 that operates as a communication channel between target processor 110 and probe 130 when target processor 110 operates in debug mode. These registers include, among others, a Control register 210, an Address register 220, a Data register 230, and an Instruction register 240. Control register 210 includes various status flags that control features and operations associated with the EJTAG Specification. Address register 220 allows target processor 110 to indicate a specific address in dmseg memory 140 that it wishes to access. Data register 230 allows target processor 110 to transfer data to and from dmseg memory 140. Instruction register 240 provides a mechanism for probe 130 and host processor 150 to select one of (or a combination of) the other registers to which to write or from which to read. The operations of these four registers are also generally well known.

Before describing the present invention in further detail, a description of how conventional EJTAG debug systems transfer large blocks of data or instructions is provided with reference to FIG. 3. For purposes of illustration, the following discussion describes how a block of data is transferred from probe 130 to target processor 110, or more specifically, from dmseg memory 140 to target memory 120. A similar operation is required to transfer a block of data from target memory 120 to dmseg memory 140 as will be apparent from the following description.

In an operation 310, Control register 210 is selected in order for probe 130 to read the contents of Control register 210, namely to determine whether a processor access pending ("PrAcc") bit is set. When target processor 110 attempts to access dmseg memory 140 while in debug mode, the PrAcc bit in Control register 210 is set. The PrAcc bit functions as a handshake between target processor 110 and probe 130 indicating that target processor 110 is ready to access dmseg memory 140 with a load, a store, or a fetch operation. In one embodiment of the present invention, Control register 210 is selected by clocking an appropriate 5-bit command from probe 130 into Instruction register 240 of TAP 115. This command prepares TAP 115 to provide probe 130 with the contents of Control register 210.

In an operation 320, Control register 210 is read to determine whether there is a pending access by target processor 110 of dmseg memory 140. More specifically, the PrAcc bit in Control register 210 is read to determine this pending access. Probe 130 periodically polls Control register 210 to determine whether a processor access is pending by clocking the entire Control register 210 from TAP 115 to probe 130. Once the contents of Control register 210 are received, probe 130 is able to access PrAcc bit to determine whether target processor 110 is waiting to read from or write to dmseg memory 140.

When a processor access is pending, in an operation 330, Address register 220 is selected so that the address in dmseg memory 140 where the data is to be read can be transferred from target processor 110 to probe 130. In one embodiment of the present invention, this is accomplished by clocking an appropriate 5-bit command from probe 130 into Instruction register 240 of TAP 115. This command prepares TAP 115 to provide the contents of Address register 220 to probe 130.

In an operation 340, m-bits (dependant upon an address space of dmseg memory 110) of address from Address register 220 are clocked from TAP 115 to probe 130. This is the address in dmseg memory 140 from which data is to be retrieved and placed in Data register 230.

In an operation 350, Data register 230 is selected so that data can be transferred from probe 130 to target processor 110, or again, more specifically, from dmseg memory 140 to target memory 120. In one embodiment of the present invention, this is accomplished by clocking an appropriate 5-bit command from probe 130 into Instruction register 240 of TAP 115 to select Data register 230. Once Data register 230 is selected, when operation 360 is a write operation, n-bits of data (dependant upon a word size of target processor 110) are clocked from probe 130 to target processor 110. More specifically, n-bits of data from the address in dmseg memory 140 indicated by Address register 220 are clocked into Data register 230. Target processor 110 can then store the contents of Data register 230 to target memory 120. Store operations are similar as would be apparent from the above description. Specifically, when operation 360 is a read operation (i.e., an upload or transfer of a block of data from target memory 120 to dmseg memory 140), Address register 220 contains the address of dmseg memory 140 where data is to be stored, Data register 230 contains the data to be stored in dmseg memory, and operation 360 clocks the contents of the Data register to probe 130, which then stores the data in dmseg memory 140.

In an operation 370, after clocking in the data to Data register 230, Control register 210 is again selected, this time to write to its contents. In an operation 380, probe 130 clears PrAcc bit (in one embodiment of the present invention) to indicate that the pending access to dmseg memory 140 by target processor 110 has been satisfied by probe 130. These same operations would also occur after a store operation, as would be apparent from the above description.

Operations 320 380 transfer a single data word from probe 130 to target processor 110. These operations must be repeated in a conventional EJTAG debug system for each data word transferred to and from dmseg memory 140 as indicated by the loop of FIG. 3. In order to accomplish this transfer, a total of 79+m bits of overhead are required to transfer n bits of data. This is highly inefficient and time consuming, particularly over a relatively slow serial communication channel.

Moreover, as noted above, operations 320 380 must be repeated for each word in a block of data that is transferred to and from dmseg memory 140. Such block transfer is achieved, for example, by host processor 150 creating a simple loop routine that causes target processor 110 to carry out multiple load or store operations. As is well known, such a routine may be created by host processor 150 and downloaded to target memory 120 via probe 130 (using the process described in FIG. 3, for example). Target processor 110 is then made to jump to the routine (directed by probe 130) to carry out the block transfer. When the transfer is completed, target processor 110 jumps out of the routine. Because host processor 150 creates the routine, it specifies the addresses that make up the block of data loaded from or stored to target memory 120. Similarly, host processor 150 defines which address or addresses are accessed in dmseg memory 120 to carry out the block transfer. If a single memory location in dmseg memory 140 is repeatedly specified, host processor 150 will ensure that the memory location is timely serviced to provide or retrieve the necessary data when writing to and reading from respectively, Data register 230 (for example).

Operations 320 380 represent a conservative and safe approach to transferring data or instructions from probe 130 to target processor 110. Some assumptions might be made to eliminate one or more of these operations. For example, when the operational speed of target processor 110 is far greater than the operational speed of probe 130, a developer may assume during block transfers that each time through the loop of operation 300, target processor 110 has completed its other tasks and is again waiting for probe 130 to transfer another data word. More specifically, the determination, in operation 320, of whether a processor access is pending will be assumed. This assumption eliminates a need to read Control register 210 as performed by operation 320. Another assumption that may be made by the developer is that an address in Address register 220 is known each time through the loop. For example, the developer may pre-establish a particular type of block transfer between probe 130 and target processor 110 such that these types of block transfers will occur at a predetermined address. This assumption eliminates the need to select and read Address register 220 for each data word transferred. Using the two assumptions thus described, the loop of operation 300 may be reduced to operations 350 380. Although this reduced loop runs faster than the previously described loop, it still requires a fair amount of overhead to transfer blocks of data or instructions. Moreover, the two assumptions made above render the loop "unsafe" and make error recovery somewhat difficult.

To further increase the speed of block transfers between probe 130 and target processor 110 while eliminating the need to make the aforementioned assumptions, TAP 115 of the present invention includes a Fastdata register 250. Fastdata register 250 provides a mechanism whereby operation 300 of the conventional test system is replaced with a single register data transfer operation as will be described below in further detail. In conjunction with Fastdata register 250, various embodiments of the present invention may also include a FASTDATA instruction. The FASTDATA instruction will also be described in further detail below.

In one embodiment of the present invention, Fastdata register 250 is a one-bit read/write register where the single bit is referred to as a SPrAcc bit. TABLE I summarizes the operation of Fastdata register 250. As reflected in TABLE I, TAP 115 of the present invention implements Fastdata register 250 as follows. A request for a Fastdata access succeeds if 1) a processor access is pending (i.e., PrAcc has been set), and 2) the Fastdata access is to a particular area of dmseg memory 140. The first requirement ensures that target processor 110 is waiting for probe 130 to satisfy the Fastdata access as opposed to merely assuming that one is pending as described.

TABLE-US-00001 TABLE I Fastdata Register Operations Fields Name Bits Action Result SPrAcc 0 Clearing SPrAcc. In one Requests completion of the embodiment, this in accomplished Fastdata access. The PrAcc bit in by shifting in a value of `0`. the control register is overwritten with zero when the access succeeds. (The access succeeds if PrAcc is one and the operation address is in the legal dmseg Fastdata area.) A value of `1` for SPrAcc is shifted out when the access succeeds; a value of `0` for SPrAcc is shifted out when the access fails. Setting SPrAcc. In one The PrAcc bit in the control embodiment, this is accomplished register is unchanged. A value of by shifting in a value of `1`. `1` for SPrAcc is shifted out to indicate that the access would have been successful if allowed to complete; a value of `0` for SPrAcc is shifted out to indicate the access would not have been successful if allowed to complete.

With regard to the second requirement, according to the present invention, only a predetermined portion of dmseg memory 140, referred to as the Fastdata area (e.g., 0xF.F20.0000 0xF.F20.000F), is used for Fastdata transfers. Hence, the second requirement ensures (rather than assumes) that the processor access is in fact a Fastdata access of the Fastdata area as opposed to some other address within dmseg memory 140. For example, if target processor 110 gets an exception during a block transfer while in debug mode, target processor 110 will attempt to reenter the debug exception handler. This will change the address of Address register 220 to an area in dmseg memory 140 outside of the Fastdata area. In this situation, the Fastdata access should fail; and according to the present invention, such accesses do in fact fail.

If either of the requirements described above are not satisfied, in one embodiment of the present invention, a value of `0` is shifted out of Fastdata register 250 indicating that the Fastdata access failed. When both requirements are satisfied, a value of `1` is shifted out of Fastdata register 250 indicating that the Fastdata access succeeded. In one embodiment, the value to be shifted out of Fastdata register 250 is controlled by hardware (e.g., combinatorial logic) that uses the PrAcc value in Control register 210 and the address in Address register 220 as inputs. Of course, such functionality may be implemented in other ways, including software.

In order for host processor 150 and probe 130 to access the functionality of Fastdata register 250 as described in Table I, a FASTDATA command or instruction is provided. When the FASTDATA instruction is clocked to Instruction register 240 of TAP 115, TAP 115 configures a TDI-to-TDO data path 400 (i.e., a path of serial data from test data in port to test data out port) as illustrated in FIG. 4. As illustrated in FIG. 4, Data register 230 is serially coupled to Fastdata register 250 so that data clocked into a TDI port 410 from probe 130 over serial link 160 is clocked through Data register 230 and into Fastdata register 250, and subsequently clocked out to a TDO port 420. Thus, when using the FASTDATA instruction, an extra bit (i.e., the SPrAcc bit) is clocked to TAP 115 for each data word to be transferred between probe 130 and target processor 110. As illustrated in FIG. 4, the SPrAcc bit is clocked in front of the data word although in other embodiments of the present invention where the order of Data register 230 and Fastdata register 250 are reversed, the SPrAcc bit may be clocked after the data word as would be apparent.

As indicated in TABLE I, clocking in a value of `O` for SPrAcc bit will attempt to complete the Fastdata access and when successful, will automatically change the PrAcc bit in Control register 210 to a value of `O`, thereby eliminating the need for operations 370 and 380 illustrated in FIG. 3. This further speeds the operation of the conventional block transfer loop. In one embodiment, the new value of PrAcc bit is controlled by hardware (e.g., combinatorial logic) that uses the SPrAcc value shifted into Fastdata register 250, the address in Address register 220 and the current value of PrAcc in Control register 210. Of course, such functionality may be implemented in other ways, including software.

Fastdata register 250 is used to efficiently transfer blocks of data between dmseg memory 140 and target memory 120. As described herein, an "upload" is defined as a sequence of loads from target memory 120 and stores to dmseg memory 140, while a "download" is defined as a sequence of loads from dmseg memory 140 and stores to target memory 120. These sequences are both performed by target processor 110.

During Fastdata uploads and downloads, target processor 110 is configured to "stall" on accesses to the Fastdata area of dmseg memory 140. When so stalled, the PrAcc bit in Control register 210 will indicate that target processor 110 is waiting for probe 130 to complete the access. Both upload and download accesses are attempted by clearing Fastdata register 250 (e.g., by shifting in a value of `0` for SPrAcc) and thereby requesting access completion. A value of SPrAcc subsequently shifted out of Fastdata register 250 indicates whether the attempt will be successful as described above (i.e., there was a processor access pending and a legal Fastdata area address was used). Downloads will shift in the data to Data register 230 to satisfy the load from dmseg memory 140 and uploads will shift out the data from Data register 230 to satisfy the store to dmseg memory 140.

According to the present invention, Fastdata register 250 operates in a manner similar to the PrAcc bit of Control register 210. By placing Fastdata register 250 in TDI-to-TDO path 400 with Data register 230, both data and control functions are achieved without having to switch between Data register 230 and Control register 210.

TABLE II summarizes the operation of one embodiment of the present invention when various values of SPrAcc are shifted into and out of Fastdata register 250 for Fastdata downloads and Fastdata uploads, respectively.

TABLE-US-00002 TABLE II Operation of FASTDATA Accesses Value of Value of Address PrAcc in SPrAcc PrAcc in SPrAcc in the Shifted into Control Shifted out Data Shifted Probe FastData Control FastData Action in the Register of FastData Out of Data Operation Area? Register Register Data Register Changes to Register Register FastData No x x none unchanged 0 invalid Download Yes 1 1 none unchanged 1 invalid 1 0 write data 0 (Same as 1 valid (previ- SPrAcc) ous) data 0 x none unchanged 0 invalid FastData No x x none unchanged 0 invalid Upload Yes 1 1 none unchanged 1 invalid 1 0 read data 0 (Same as 1 valid data SPrAcc) 0 x none unchanged 0 invalid

FIG. 5 illustrates an operation 500 of an EJTAG debug system utilizing the present invention while transferring a large block of data between dmseg memory 140 and target memory 120. Specifically, the following discussion describes how a block of data is transferred from dmseg memory 140 to target memory 120. As will become apparent, a similar operation would be required to transfer a block of data from target memory 120 to dmseg memory 140 (i.e., operation 510 would stay the same and operation 520 would be "read data and fastdata from target processor and forward to probe for storage in dmseg memory").

In an operation 510, Data register 230 and Fastdata register 250 are selected as illustrated in FIG. 4. In one embodiment of the present invention, this is accomplished using the FASTDATA instruction. As described above, the FASTDATA instruction is clocked from probe 130 into Instruction register 240 of TAP 115. The FASTDATA instruction configures Data register 230 and Fastdata register 250 as TDI-to-TDO path 400. In an operation 520, one-bit corresponding to SPrAcc and n-bits of data are clocked from probe 130 to target processor 110. Operation 520 is repeated for each data word in the block of data to be transferred to target memory 120 (via a loop routine running on target processor 110, as described above). Using Fastdata register 250, only one bit of overhead is required (in addition to the initial 5 bits of set up for the FASTDATA instruction) in order to transfer n bits of data and no assumptions are made as to whether a processor access in pending or the address is correct (as described above). This is a significant improvement over the conventional test system described above.

In particular, this reduction in overhead is achieved with Fastdata register 250 for several reasons. First, probe 130 does not need to separately select and read Control register 210 in order to determine if a processor access is pending via the PrAcc bit. TAP 115 implements Fastdata register 250 so that the status of PrAcc is automatically determined (such as by using hardware) thereby preventing the Fastdata access from completing if a processor access is not pending. Second, probe 130 does not need to select and read Address register 220 to confirm it is accessing the proper address. While using the Fastdata instruction, Address register 220 need not be accessed because TAP 115 implements Fastdata register 250 so that only an access to the Fastdata area of dmseg memory 140 will be allowed to complete. This may be achieved, for example, by using hardware that automatically confirms that the current address falls within dmseg memory 140. Third, probe 130 does not need to separately select and write Control register 210 in order to indicate that the pending access has been satisfied. According to the present invention, after the Fastdata access successfully completes, the PrAcc bit is automatically reset.

While the invention has been described in detail and with reference to specific embodiments thereof, it will be apparent to one skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope thereof. For example, the operation of the present invention is described in terms of shifting a certain value into or out of Fastdata register 250. As would be apparent, various other values may be used to implement the same or similar functionality. Similarly, any other mechanism for retaining and shifting data may be used in place of Fastdata register 250.

Moreover, in addition to implementations of TAP 115 embodied in hardware (e.g., within a microprocessor, microcontroller, SOC component, etc.), implementations may also be embodied in software disposed, for example, in a computer usable (e.g., readable) medium configured to store the software (i.e., computer readable program code). The program code causes the enablement of the functions or fabrication or both of the TAP-related structure and functionality described herein. For example, this can be accomplished through the use of general programming languages (e.g., C, C++), hardware description languages (HDL) including Verilog HDL, VHDL, and so on, or other available programming and/or circuit (e.g., schematic) capture tools. The program can be disposed in any known computer usable medium including semiconductor, magnetic disk, optical disk (e.g., CD-ROM, DVD-ROM) and as a computer data signal embodied in a computer usable (e.g., readable) transmission medium (e.g., carrier waves or any other medium including digital, optical or analog-based medium). As such, the code can be transmitted over communication networks including the Internet and intranets.

It is understood that the TAP-related functions and/or structures provided above can be represented in a core (e.g., microprocessor core), SOC component, etc., that is embodied in program code and may be transformed to hardware as part of the production of integrated circuits. Also, these functions and/or structures may be embodied in a combination of hardware and software. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.



<- Previous Patent (Computer system fault recovery using dist..)    |     Next Patent (Multi-threaded memory management test sys..) ->

 
Copyright 2004-2006 FreePatentsOnline.com. All rights reserved. Contact Us. Privacy Policy & Terms of Use.