Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I don't understand why the 74181 operates the way it does. It does provide the full set of logic functionality (AND, NAND, OR, NOR, XOR, shift),but its arithmetic functionalities are not so clear. For example, it does not contain A - B and A + B in the same mode.

Could you provide some history background about how it was designed?

share|improve this question
1  
good question, but I don't think any of us chiphacker users would know any of the TI motives beyond what is in the datasheet or on wikipedia en.wikipedia.org/wiki/74181 – Jason S Jan 18 '10 at 12:45
@Jason:thanks for your comment.then where is the good place to this question? – Jichao Jan 18 '10 at 14:09
not sure... check with a TI sales rep? perhaps they could put you in touch w/ one of the old-timers who worked on the 74181 back in the 1970's. – Jason S Jan 18 '10 at 22:55

1 Answer

A minus B minus 1 is used for subtraction, and the complement of the carry flag can be viewed as a borrow flag.

share|improve this answer
1  
In fact even AVRs use this - they do not have an add immediate instruction (only substract immediate) since you can convert easily one into another. If both values are coming from registers then both sub and add are nice and fast but one is still not strictly necessary. – jpc Mar 21 '11 at 3:03
Yes, see stackoverflow.com/questions/1337831/… – starblue Mar 21 '11 at 13:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.