1-bit Adder with Overflow
module fullAdd1( CarryOut, Result,Overflow, a, b, c);
input a, b, c;
output CarryOut, Result, Overflow;
reg CarryOut, Result,Overflow;
always @(a or b or c)
begin
{CarryOut, Result} = a + b + c;
Overflow = c ^ CarryOut;
end
endmodule
Previous slide
Next slide
Back to first slide
View graphic version