What is the >> operator for when used in IO statement

If you have a simple question and just want an answer.
hybridalienrob
Member
Posts: 11
Joined: Thu Nov 20, 2014 9:19 pm

What is the >> operator for when used in IO statement

Post by hybridalienrob »

The SPI slave driver has the following statement

 

   spi_if.mosi :> >> data;

 

What is the >> operator for ? I can't find any mention of it in any documentation (e.g xTIMEcomposer-User-Guide(X3766D) / XMOS-Programming-Guide-(documentation)(E) )

krishnabalan
Member++
Posts: 24
Joined: Thu Aug 14, 2014 10:55 am

Post by krishnabalan »

The operator :> >> corresponds to INSHR instruction of the xCORE microcontroller.

The INSHR instruction says that it inputs data from a port and shifts the data right by transfer width.

There is a discussion on this in a previous post https://www.xcore.com/forum/viewtopic.p ... w=previous

Architecture manual: https://www.xmos.com/en/download/public ... 7879A).pdf

Hope it helps!

Cheers,

Krishna