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