UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer schlauby
Observer
1,647 Views
Registered: ‎08-15-2011

Setting the MicroBlaze to be configured for Big Endian

Hey all,

I'm currently building a communication stack and geting a string of uint32 values from some other devices.
(I cannot change this because its a fixed protocol)

These uint32 values will be sent as MSB first.
But the Zynq will interprete a uint32 with LSB first. Therefore I have a byteswap at the moment which makes calculations quite hard.

I don't want to use a software byteswap because the incomming bytes a sometimes uint8, uint16 or uint32, depending on the previous values, Therefore only using a typecst will be easier.

Is there a possibility to change the endines from LITTLE-ENDIAN to BIG-ENDIAN, so all variables will be interpretet with MSB first?

Thanks
Andy

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
1,637 Views
Registered: ‎06-14-2012

Re: Setting the MicroBlaze to be configured for Big Endian

0 Kudos