I need an adder that can be used more than once, which uses the last output as one input. For example:
00001010 + 00000111 = 00010001
Then take the answer, 110001, and use it to add to another number like this:
00010001 + 00000101 = 00010110
And again, the answer is 00010110, use it as the first number-
00010110 + 00010110 = 00101100
You might say just use more adders, but I want it to be continuous, so it can do it an infinite number of times, or at least as many times as necessary whether it's 1, 10, 4, or 15. That's pretty much all. It will need a reset and a final output, but I'm pretty sure I can do those. I worked on this a bit tonight but keep running into errors. Any help is greatly appreciated!
Rollback Post to RevisionRollBack
Want to see awesome Redstone creations? Poker v2
Follow me here as I build Poker!
Just make an adder output to a buffer that holds the result. Then hook the outputs of the buffer to one of the inputs of the adder. You'll need things to be synchronized, so make the buffers clocked. You'll probably want a D-flip-flop for this. Then every time you want to accumulate a new value, press a button that simultaneously activates all the DFFs in the buffer. Sorry if I wasn't clear but I'm short on time. Good luck.
Hmm, You'd have to synchronize it with the other number (So you don't get 2 ticks of 1001 + 101 before it turns into 1001+111)
What I'd do is loop back the output via D-latches. Then make another set of D-latches for the other number. Then connect all the clock inputs to a clock with a period that's long enough for the machine to complete it's operation.
^
|
|
I should really read before posting next time. Same thing as what he said.
Just a heads up: RS-NOR latches are horrible when building recursive devices like the OP. This is because adders and stuff tend to flicker before assuming their final value. Those flickers are picked up by the RS-NOR latches which results in a full row of 1's
So be ready for that happening.
Yes. That was my first attempt and I noticed that problem.
You have it hooked up to RS-nor latches at the end. You can hook up all the inputs to something called an edge detector that would pulse once the input is turned OFF. This can be used to save the data in the RS-nors. The problem with this is you would only be able to add up to 4 numbers but still, you can make something out of it
Just run the output of the side that you want to plug back in to the adder into a memory cell. Then give it a read function so that the cell only outputs back into the adder when you want it to.
Just run the output of the side that you want to plug back in to the adder into a memory cell. Then give it a read function so that the cell only outputs back into the adder when you want it to.
That won't work. Memory Cells/RS NOR latches simply change their state. You can't continuously add them with also adding in a reset-all circuit before each number input. The DFF's save a little bit of time. I also built those with a manual/automatic reset for using different numbers as well.
Rollback Post to RevisionRollBack
Want to see awesome Redstone creations? Poker v2
Follow me here as I build Poker!
00001010 + 00000111 = 00010001
Then take the answer, 110001, and use it to add to another number like this:
00010001 + 00000101 = 00010110
And again, the answer is 00010110, use it as the first number-
00010110 + 00010110 = 00101100
You might say just use more adders, but I want it to be continuous, so it can do it an infinite number of times, or at least as many times as necessary whether it's 1, 10, 4, or 15. That's pretty much all. It will need a reset and a final output, but I'm pretty sure I can do those. I worked on this a bit tonight but keep running into errors. Any help is greatly appreciated!
Poker v2
Follow me here as I build Poker!
^
|
|
I should really read before posting next time. Same thing as what he said.
Poker v2
Follow me here as I build Poker!
Thanks for the explanation. I've been dying to figure out what those dumb DFF's do. Haha.
Thanks for all the help you guys!
Poker v2
Follow me here as I build Poker!
Yes, DFF's are great!
Yes. That was my first attempt and I noticed that problem.
What was one project you were working on? O.o
Poker v2
Follow me here as I build Poker!
That won't work. Memory Cells/RS NOR latches simply change their state. You can't continuously add them with also adding in a reset-all circuit before each number input. The DFF's save a little bit of time. I also built those with a manual/automatic reset for using different numbers as well.
Poker v2
Follow me here as I build Poker!
Hi do you have code for this continuous adder