binary - Bitwise rotation with AND, OR, XOR gates -
how 1 rotate 4 bit binary number 4 places using and, or, xor gates?
the inputs called x_0
, x_1
, x_2
, x_3
x_3
msb , x_0
lsb.
for example 1010
rotated right 4 places 0101
.
i can't seem find sources this.
a 4-bit number rotated 4 bits in either direction same number started with. think playing joke on you.
actually showed bit-reversing number, not rotating it.
to implement bit-reverser combinatorial function, need 4 pieces of wire. connect input[i] output[3-i].
to implement state machine, use gates implement 4 clocked d-type flip flops (see the wikipedia page diagram. connect input[i] output[3-i].
Comments
Post a Comment