Why are the results returned by REGREAD and REGWRITE incorrect when accessing accumulator registers?

3 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
These functions check for endianness when reading from and writing to accumulator registers. Depending on the endianness, they flip the data bytes. Endianness applies to memory but not to registers, even if the register is memory-mapped. Therefore, the result will always be wrong if a big-endian processor is being used.
In C5500, the accumulators affected are: AC0 or A, AC1 or B, AC2, AC3
In C5400, the accumulators affected are: A, B
Please contact MathWorks Technical Support at support@mathworks.com for a patch for this problem. When you contact the MathWorks, please reference Solution 33479.

More Answers (0)

Categories

Find more on System Composer in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!