Difference between Xilinx shift_extract and shreg_extract constraints?

Mar 22, 2006 1 Replies

Can someone explain the difference between the Xilinx shift_extract and shreg_extract constraints?



Shreg_extract appears to prevent inferring SRL16 based shifters, what does shift_extract do?



Thanks!



John Providenza



Hi John,

The SHIFT_EXTRACT attribute/constraint prevents (or not) XST from extracting logical shift operations during synthesis. That is, if your design contains a parallel shift left/right of a bus by some dynamic distance (a "barrel shifter"), XST can try to do something clever with it (rather than just leaving it as random logic). It doesn't have anything to do with SRL16s.

Cheers,

-Ben-

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required