• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C67x Single Core DSP Forum » [C6726] Changing Registers
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

[C6726] Changing Registers

[C6726] Changing Registers

This question is answered
jyoung
Posted by jyoung
on Jul 15 2008 17:04 PM
Prodigy30 points

We are using a C6726 on our custom board.  When we are debugging are seeing a problem with seeming random register changes.  For example when we step through an assignment that changes a variable that is place in an register (say A2) we see the value of another register (say A15) change at the same time. Turning off all optimization seems to fix the problem.  What could be causing this?

C672x
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • TimHarron
    Posted by TimHarron
    on Jul 16 2008 14:33 PM
    Verified Answer
    Verified by clam
    Genius16720 points

    The C6000 architecture can be difficult to follow if not familiar with it. The optimizer takes your code and packs it together as tightly as possible. This can cause confusing behavior as some instructions have inherent delay slots before execution finishes. For example, the LDW has 4 delay slots before execution completes; this means that the load will not complete until 4 CPU cycles after it is first invoked. This could explain why you see multiple registers changing when an instruction should change only one.

    Take a look at the C67xx DSP CPU and Instruction Set Reference Guide at section 3.4 and 3.10. Section 3.4 discusses delay slots and section 3.10 catalogs every instruction (including delay slots for that instruction).

    -Tim

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------- 

    C6000 Delay Slots
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jyoung
    Posted by jyoung
    on Jul 16 2008 14:50 PM
    Prodigy30 points

    Tim,

     Thanks for the reply.  We may have found our problem.  When we read a double out of SDRAM the value is corrupted.  When looking at memory the lower 32 bits are correct but the upper 32 are duplicates of bits 15-8.  We are investigating this.

     

    Jim 

    C6000 SDRAM
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • jyoung
    Posted by jyoung
    on Jul 22 2008 10:39 AM
    Prodigy30 points

     This issue has been resolved.  It was the same as the one posted by RAlwood (64-bit read issue on C6726 EMIF)

     

    Thanks,

    Jim 

    EMIF C6726
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use