S Nagaraj,M.Tech,MBA,(Ph.D)
Thursday, June 8, 2017
VERILOG PROGRAM FOR FULL ADDER
FULL ADDER
module full_adder(sum,carry,a,b,c);
input a,b,c;
output sum,carry;
assign sum=a^b^c;
assign carry=(a&b)|(b&c)|(c&a);
endmodule;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment