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