16 bit carry look ahead adder

Status
Not open for further replies.


we will use a module called sum to perform the XOR since the carry is computed seprately

module sum(a,b,carryin,result);
input a,b,carryin;/*add these bits*/
output result;/*sum*/

assign result=a^b^carrin;
/*compute the sum*/
end module

 

Attachments

  • Untitle.png
    16.2 KB · Views: 114

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…