Reset wire on 4 bit adder

MrChips

Joined Oct 2, 2009
34,810
How to attach a reset connection on a 4 bit adder? Like reset input on R-S Flip Flop
What would be the function of a RESET connection?

If the purpose is to reset the output to zero, then connect RESET to the RESET pins of your flip-flops (assuming that you are using flip-flops to store the result of the adder).

If your adder is purely combinational logic then there is no RESET input.
 

Thread Starter

Avijit Palit

Joined Jul 19, 2017
81
What would be the function of a RESET connection?

If the purpose is to reset the output to zero, then connect RESET to the RESET pins of your flip-flops (assuming that you are using flip-flops to store the result of the adder).

If your adder is purely combinational logic then there is no RESET input.
My question is Can I attach a reset or clear wire to clear all inputed data of 4 bit adder
 

MrChips

Joined Oct 2, 2009
34,810
My question is Can I attach a reset or clear wire to clear all inputed data of 4 bit adder
If the input bits are held in a register or flip-flops then reset the register.
If this is purely combinational circuit, then instead of RESET, use an input ENABLE and gate all inputs (using AND gate) with ENABLE.
 

Thread Starter

Avijit Palit

Joined Jul 19, 2017
81
If the input bits are held in a register or flip-flops then reset the register.
If this is purely combinational circuit, then instead of RESET, use an input ENABLE and gate all inputs (using AND gate) with ENABLE.
Exactly, but plz explain how to attach enable connection
 

MrChips

Joined Oct 2, 2009
34,810
Take one 2-input AND-gate.
Connect ENABLE to one input.
Connect one bit of the adder input to the second AND-gate input.
Connect the output of the AND-gate to the added circuit.

Do this for all adder inputs.

(Sorry, I don't have the time to draw a schematic.)
 

Thread Starter

Avijit Palit

Joined Jul 19, 2017
81
Take one 2-input AND-gate.
Connect ENABLE to one input.
Connect one bit of the adder input to the second AND-gate input.
Connect the output of the AND-gate to the added circuit.

Do this for all adder inputs.

(Sorry, I don't have the time to draw a schematic.)
But this is not like 'reset'. I just can enable or disable circuit but if I enable adder from disable state, its output would be same as previous. I was talking about to add a reset gate to reset or clear all inputs to off state.
 

Attachments

Last edited:

MrChips

Joined Oct 2, 2009
34,810
You have shown the AND gates on the output side of the adder.
Put the AND gates (eight in total) on the input side of the adder, i.e. X and Y inputs.
 

128ITSH

Joined Jul 20, 2017
101
This is also not a reset connection. It is just for enable or disable circuit
A pure binary adder alone, does not store any value in it but just outputs the sum of x+y, and therefore can't be "reset". Like MrChips said, If you use a register on its outputs/inputs, you will be able to reset that register from its RESET line and that will "reset" the adder.
 
Last edited:
Top