09-30-2013, 02:29 AM
Well I've built them 5 times and I don't really know exactly how they work.. :L
Sooo I'll show a different redstone item and that is the Shift Register.
I built a 4 bit shift register configured as Serial In, Parallel Out (SIPO)! Its got all the connections to allow Step Thru mode (each button press clocks it on time), a regular monostable clock, a button for inputting the first bit, a button to reset all bits, and last but not least an auto-loop enable lever.
Album: http://imgur.com/a/7BXkx
How it Works:
Each bit consists of a one block wide D Flip Flop with its output connected to the input of the next. Each clock line is connected to one clock (Serial In) and every time it pulses, the bit shifts to the left by one place (Parallel out). I used this on my 4-Bit Calc to execute each line of code that held the commands. (It was actually a 24 bit shift register that went from right to left!)
The Insert Bit command simply provides a pulse to the output torch so it effectively bypasses the clock and sets the bit to a 1.
The Reset command essentially powers the top lines of each shift register bit, turning off any torches that were on before.
The Clock enable command just allows the clock to run and activate the clock line... Not really anything to say here.
The Step-Thru command is like a debug mode so to speak, (in Visual Studio the step through mode executes one line of code at a time) but in this instance, it only shifts the bit to the left one time, instead of repeatedly doing it every clock pulse.
The Auto Loop command allows the last bit to shift all the way back into the first so it actually repeats itself, without losing the bit on the end.
I hope I was able to explain it enough so I can get a plot :3
If you want, I can re-make my 4-bit calc on the school server (whenever I get a plot there.. EvilDevil59NL was kind enough to let me build in his plot! thx)
Sooo I'll show a different redstone item and that is the Shift Register.
I built a 4 bit shift register configured as Serial In, Parallel Out (SIPO)! Its got all the connections to allow Step Thru mode (each button press clocks it on time), a regular monostable clock, a button for inputting the first bit, a button to reset all bits, and last but not least an auto-loop enable lever.
Album: http://imgur.com/a/7BXkx
How it Works:
Each bit consists of a one block wide D Flip Flop with its output connected to the input of the next. Each clock line is connected to one clock (Serial In) and every time it pulses, the bit shifts to the left by one place (Parallel out). I used this on my 4-Bit Calc to execute each line of code that held the commands. (It was actually a 24 bit shift register that went from right to left!)
The Insert Bit command simply provides a pulse to the output torch so it effectively bypasses the clock and sets the bit to a 1.
The Reset command essentially powers the top lines of each shift register bit, turning off any torches that were on before.
The Clock enable command just allows the clock to run and activate the clock line... Not really anything to say here.
The Step-Thru command is like a debug mode so to speak, (in Visual Studio the step through mode executes one line of code at a time) but in this instance, it only shifts the bit to the left one time, instead of repeatedly doing it every clock pulse.
The Auto Loop command allows the last bit to shift all the way back into the first so it actually repeats itself, without losing the bit on the end.
I hope I was able to explain it enough so I can get a plot :3
If you want, I can re-make my 4-bit calc on the school server (whenever I get a plot there.. EvilDevil59NL was kind enough to let me build in his plot! thx)