EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: blueskull on August 07, 2017, 10:13:16 am

Title: [Solved] Blackfin+ exports needed
Post by: blueskull on August 07, 2017, 10:13:16 am
I'm looking for a quick (efficient) solution for muxing bytes.
Basically, what I want is:

x[0]=x0[0] x1[0] x2[0] x3[0] x4[0] x5[0] x6[0] x7[0]
y[0]=y0[0] y1[0] y2[0] y3[0] y4[0] y5[0] y6[0] y7[0]
x[1]=x0[1] x1[1] x2[1] x3[1] x4[1] x5[1] x6[1] x7[1]
y[1]=y0[1] y1[1] y2[1] y3[1] y4[1] y5[1] y6[1] y7[1]

Output z=x0[0] y0[0] x1[0] y1[0] x2[0] y2[0] x3[0] y3[0] x4[0] y4[0] x5[0] y5[0] x6[0] y6[0] x7[0] y7[0] x0[1] y0[1] x1[1] y1[1] x2[1] y2[1] x3[1] y3[1] x4[1] y4[1] x5[1] y5[1] x6[1] y6[1] x7[1] y7[1]

Is there a single or very few instructions that can do that? I'm not looking for BitMux or other instructions that need a long loop.

Thanks.