This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing articles
This article is within the scope of WikiProject Technology, a collaborative effort to improve the coverage of technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.TechnologyWikipedia:WikiProject TechnologyTemplate:WikiProject TechnologyTechnology articles
This article is part of WikiProject Electronics, an attempt to provide a standard approach to writing articles about electronics on Wikipedia. If you would like to participate, you can choose to edit the article attached to this page, or visit the project page, where you can join the project and see a list of open tasks. Leave messages at the project talk pageElectronicsWikipedia:WikiProject ElectronicsTemplate:WikiProject Electronicselectronic articles
Can link carry-out: ...es, which can be used to indicate cases such as carry-in or [[Take-out|carry-out]], overflow, or other statuses....
Additionally, there are some other articles which may be able to linked to this one (also known as "backlinks"):
InCombinatorial logic, can backlink arithmetic logic unit: ...natorial and sequential logic. For example, the part of an [[arithmetic and logical unit|arithmetic logic unit]], or [[ALU]], that does mathematical calculations is made fr...
InList of 7400 series integrated circuits, can backlink Arithmetic Logic Unit: ...: 9-bit Odd/Even Parity Generator and Checker *74181: 4-bit [[arithmetic and logical unit|Arithmetic Logic Unit]] and Function Generator...
Latest comment: 7 months ago3 comments2 people in discussion
Doesn't say why many operations are grouped in an ALU. AI says it's because up to 70% of circuits are shared between operations, but I find no proper source. Musaran (talk) 13:44, 10 November 2023 (UTC)Reply
I think I understand what you mean. Are you asking why an ALU has the ability to perform a variety of operations, and what purpose does that serve? Lambtrontalk01:02, 11 November 2023 (UTC)Reply
First paragraph needs rewording: change “integer binary numbers” to “integer represented as binary numbers”.
Two's complement: A (or B) is subtracted from zero and the difference appears at Y.
The text is essentially circular, in that it assumes that subtract means a twos' complement subtract.
Increment: A (or B) is increased by one and the resulting value appears at Y.
The text doesn't explain what increased means, i.e., is there an end-around carry?
Decrement: A (or B) is decreased by one and the resulting value appears at Y.
The text doesn't explain what decreased means, i.e., is there an end-around borrow?
Arithmetic shift: the operand is treated as a two's complement integer, meaning that the most significant bit is a "sign" bit and is preserved.
This doesn't address what happens to low order bits in a left shift, and an arithmetic right shift must propogate the sign bit for both ones' complement and two's complement machines.
The ALU article seems to assume two's complement arithmetic which does not do end-around carries. Maybe that assumption needs to be stated. On your individual questions:
Two's complement: This is trying to explain the urinary function, not the number system. So to get the two's compliment of a number, A is subtracted from zero with no end-around carries. I removed the (negation) in parenthesis as it did not match the Wikipedia negation article, though some processors have a NEG instruction.
Increment/Decrement: Should probably say "1 is added to/subtracted from A and the resulting value appears on Y"
Arithmetic shift: Both arithmetic shift and logical shift have problems. Maybe they should be defined like this:
Left arithmetic shift, zero is shifted in from right (LSB).
Right arithmetic Shift: Sign bit is duplicated from left (MSB). This is used to shift signed integers.
Left logical shift: same as left arithmetic shift
Right logical shift: a logic zero is shifted into the operand from the left. This is used to shift unsigned integers.
It's important that we don't over-describe these functions in the text. Article is about ALUs. If the reader is curious, she can click on the links. RastaKins (talk) 20:27, 3 July 2024 (UTC)Reply
The vocabulary in your response also assumes 2's complement; "subtracted" means three different things on 1s' complement, 2's complement and sign-magnitude machine. Similarly, an arithmetic left shift behaves differently. What is need is a table showing the operation on one axis and the representation on the other. For example, an arithmetic left shift on a 1s' complement machine is a circular left shif; the right side is filled with sign bits rater than zero bits. -- Shmuel (Seymour J.) Metz Username:Chatul (talk) 20:23, 4 July 2024 (UTC)Reply