S Nagaraj,M.Tech,MBA,(Ph.D)
Thursday, June 8, 2017
VERILOG PROGRAM FOR FULL SUBTRACTOR
FULL SUBTRACTOR
module full_subtractor(a,b,c,diff,borrow);
output diff;
output borrow;
input a;
input b;
input c;
assign diff=a^b^c;
assign borrow=((~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