[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[oc] Is this correct?
Did I write this correctly for the rol and ror instructions? How should
it be if not.
ROR:
o = (a >> b[4:0]
) || (a << (5'b1-b[4:0]);
ROL:
o = (a << b[4:0]) || (a >> (5'b1-b[4:0]);
(I normally make a funnel shifter/rotator but I decidede to use this
instead so the synthesizer takes care of everything.)
Ali
--
To unsubscribe from cores mailing list please visit http://www.opencores.org/mailinglists.shtml