Hello Unregistered ,
If your variable is always going to be 4 bits, the complement would be got by variable(comp) = 15-variable. Regards, Anand
Forum Rules
Bookmarks