Logical left shift is an 8-bit function that moves every input bit one position left. The rightmost bit is assigned 0 and the leftmost bit is lost:
The circuit can be stacked to shift by an arbitrary number of bit positions. Shifting a signed or unsigned value left by n bits is equivalent to multiplying by 2n:
f(x) = 2nx
© 2023 meatfighter.com |