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