Success! Subscription added.
Success! Subscription removed.
Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your profile.
Over the years I have been consulted on big endian and mixed endian systems. Since this topic is fairly important and often confusing I decided to put this topic into a document so that others can benefit from this as well. At a high level this document will discusses the following topics:
Although Qsys is referenced throughout this document, all of this information applies to SOPC Builder systems as well. Please feel free to carry this topic on by adding to either the document or this webpage. I have also attached a byte swapper custom instruction which you can connect to Nios II and use it to accelerate 16, 32, and 64-bit byte reversals. Remember that you need to use the appropriate macro for the variable you are swapping around otherwise you'll corrupt the value stored in it.
www.altera.com/literature/hb/nios2/MM_byte_ordering.pdf
File:Nios ii endian converter.zip
© 2010 Altera Corporation. The material in this wiki page or document is provided AS-IS and is not
supported by Altera Corporation. Use the material in this document at your own risk; it might be, for example, objectionable,
misleading or inaccurate.
Community support is provided during standard business hours (Monday to Friday 7AM - 5PM PST). Other contact methods are available here.
Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.
For more complete information about compiler optimizations, see our Optimization Notice.