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