Jutge.org
The Virtual Learning Environment for Computer Programming
Full adder
X12983 en
Design a full adder. A full adder is a circuit that performs a 1-bit addition receiving an input
carry and generating an output carry.
The top module must be called full adder.
module
full adder(a , b, cin , sum, cout );
input
a , b, cin ;
output
sum, cout;
Input
• a and b are the two inputs.
• cin is the input carry.
Output
• sum is the sum of the two bits and the input carry.
• cout is the output carry.
Problem information
Author : Jordi Cortadella
Generation : 2013-07-17 16:31:24
© Jutge.org, 2006–2013.
http://www.jutge.org