4 bit ALU circuit

Thread Starter

joegreentea

Joined Nov 22, 2011
8
Hi,

Suppose I have this 1-bit ALU circuit, If I need to add an overflow, should I add it between C in and C out? Eventually, I need to put the 1-bit ALU together to become 4-bit ALU with overflow.
Please Help.
 

Attachments

Georacer

Joined Nov 25, 2009
5,182
If there is a carry out, then this is an indication that an overflow has occurred and thus the result is invalid. The carry in is a useful pin that does what it says. It provides a way to insert a carry in an operation. Is there something more to it?
 

Thread Starter

joegreentea

Joined Nov 22, 2011
8
If there is a carry out, then this is an indication that an overflow has occurred and thus the result is invalid. The carry in is a useful pin that does what it says. It provides a way to insert a carry in an operation. Is there something more to it?
I was just curious, if I should leave it be or put a constant 0 or 1.
 

Georacer

Joined Nov 25, 2009
5,182
You want a constant 0 there. There is no carry in in a fresh, new operation. It would be like wanting to find how much is 1+1 and adding an extra 1 (as carry in) for some reason.
 
Top