Forums - Open Redstone Engineers
Shift Register Help - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Build Discussion (https://forum.openredstone.org/forum-50.html)
+--- Thread: Shift Register Help (/thread-1483.html)

Pages: 1 2


Shift Register Help - Kernul_Sanders - 12-04-2013

Where are shift registers hooked up to ALUs? If there are multiple possible spots, then what is the best one?


RE: Shift Register Help - EDevil - 12-04-2013

At the end of the ALU Wink


RE: Shift Register Help - Guy1234567890 - 12-04-2013

I personally recommend not using a shift register, and instead using a bit shifter (same thing minus the memory)


RE: Shift Register Help - EDevil - 12-04-2013

ow yeah, definitely that ^ (didnt pay that much attention with my first post). Also, one thing to note is you really only need a right shifter, since left shifting can be done easily adding 2 numbers together. Example; 4 + 4 =8 (0100 + 0100 = 1000) <- Bit just shifted 1 position to the left. This can be done extremely easy by using dual read registers.


RE: Shift Register Help - Guy1234567890 - 12-04-2013

^ Indeed


RE: Shift Register Help - Kernul_Sanders - 12-04-2013

Ah, okay thanks. I'll stick with the bi directional bit shifter I have, it's 2x3x8 per bit, I'm sure I can compact it though.

Unless someone can show me how to do what evil explained.


RE: Shift Register Help - Guy1234567890 - 12-05-2013

I can if i'm ever on the same time as you XD


RE: Shift Register Help - greatgamer34 - 12-11-2013

Barrel shifters are quite nice because they don't save data they can shift it as many time as you want! I have a bi-directional barrel shifter designed for my cle alu CPU. It was made by lorddecapo. /warp computerplot and go to the floating CPU that is color coded. The purple thing is the barrel shifter. Red is up. Black is down. Can shift up to 7 times.


RE: Shift Register Help - EDevil - 12-11-2013

The reason why barrel shifters are stupid is because their simply unnecessary. I presume you are going to hook that thing up to your IS, Clock etc. So with each clock cycle, you can shift all of your bits to the left / right. Okay, cool. Which program did you ever encounter that you needed to shift 5 bits to the left? At least i haven't seen something like that. And if i do need to somehow shift my bits 2 positions to the left, i'll just use my shift command twice. I find that more effectively than slowing down your ALU, and having that much extra space taken by a device that will probably never shift more than 1 time.


RE: Shift Register Help - greatgamer34 - 12-14-2013

Im going to use it in my multiplication program to cut the program size down.