Fitxer:2-bit ALU.png
Fitxer original (2.042 × 2.166 píxels, mida del fitxer: 51 Ko, tipus MIME: image/png)
Aquest fitxer i la informació mostrada a continuació provenen del dipòsit multimèdia lliure Wikimedia Commons. Vegeu la pàgina original a Commons |
Contingut
Resum
Descripció2-bit ALU.png |
English: A simple example arithmetic logic unit (ALU) that does AND, OR, XOR, and addition.
Español: Un ejemplo sencillo de una Unidad Aritmética Lógica (ALU) que realiza operaciones AND, OR, XOR, y adición.
Eesti: Näidis aritmeerika-loogikaplokk mis teeb AND, OR, XOR ja liitmise opratsioone |
||||||||
Data | |||||||||
Font |
English: Own work created with Eagle by Cadsoft
Español: Trabajo hecho bajo Eagle por Cadsoft
Eesti: Üleslaadija oma töö, tehtud Cadsofti Eagle'iga |
||||||||
Autor | en:User:Cburnett | ||||||||
Permís (Com reutilitzar aquest fitxer) |
|
||||||||
Altres versions |
|
EN
This ALU is a 2-bit ALU with two inputs (operands) named A and B: A[0] & B[0] are the least-significant bits and A[1] & B[1] are the most-significant bits.
Each bit of this ALU is identical with the exception of the handling of the carry bit. The handling of one bit is explained below.
The A & B inputs lead into the four gates on the left (from top to bottom): XOR, AND, OR, and XOR. The top three gates perform XOR, AND, and OR operations on A & B. The last gate is the initial gate into a full adder.
The final step to each bit is the multiplexer at the end. The 3-bit OP input (from the control unit) determines which of the functions is outputted:
- OP = 000 → XOR
- OP = 001 → AND
- OP = 010 → OR
- OP = 011 → Addition
Clearly, the last four inputs of the multiplexer are free for other functions (subtraction, multiplication, division, NOT A, NOT B, etc.). Although OP[2] is not currently used (though it is included and connected), it will be needed in order to use more than the 4 operations listed above.
Ted flags, are typically connected to some form of a status register.
ES
Esta ALU es una ALU de 2-bits con dos entradas (operandos) llamadas A y B: A[0] y B[0] corresponden al bit menos significativo y A[1] y B[1] corresponden al bit más significativo.
Cada bit de esta ALU es idéntico con la excepción del direccionamiento del bit del acarreo. El manejo de este bit es explicado más adelante.
Las entradas A y B van hacia las cuatro puertas de la izquierda (de arriba a abajo): XOR, AND, OR, y XOR. Las tres primeras puertas realizan las operaciones XOR, AND, y OR sobre los datos A y B. La última puerta es la puerta inicial de un sumador completo.
El paso final de las operaciones sobre cada bit es la multiplexación de los datos. La entrada OP de 3-bits (desde la unidad de control) determina cual de las funciones se van a realizar:
- OP = 000 → XOR
- OP = 001 → AND
- OP = 010 → OR
- OP = 011 → Adición
Claramente se ve que las otras cuatro entradas del multiplexor están libres para otras operaciones (sustracción, multiplicación, división, NOT A, NOT B, etc.). Aunque OP[2] actualmente no es usada en este montaje (a pesar de estar incluída y conectada), ésta sería usada en el momento de realizar otras operaciones además de las 4 operaciones listadas arriba.
Los datos de acarreo de entrada y acarreo de salida, llamados flags (banderas), son típicamente conectados a algún tipo de registro de estado.
ET
See ALU on 2-bitine ALU, millel on 2 sisendit A ja B: A[0] & B[0] on vähima kaaluga bitt ja A[1] & B[1] suurima kaaluga bit. Iga ALU bitt peale ülekandebiti on identsed.
A & B sisendid ühendavad 4 elementi vasakul (ülevalt alla): XOR, AND, OR, ja XOR. 3 ülemist elementi teostavad XOR, AND ja OR operatsioone A & B peal. Viimane element on algne element summatorile.
Iga biti viimane samm on multiplekser lõpus. 3-bitine OP sisend (kontrollblokist)määrab, milline funktsioon läheb väljundisse :
- OP = 000 → XOR
- OP = 001 → AND
- OP = 010 → OR
- OP = 011 → Liitmine
Multiplekseri 4 viimast sisendit on vabad muude operatsioonide jaoks (lahutamine, korrutamine, jagamine, NOT A, NOT B, jne). Kuigi OP[2] ei kasutata (kuigi see on ühendatud ja skeemis olemas) läheb seda vaja täiendavate funktsioonide kasutamiseks kui eelpool ära toodud.
Ülekandebitid on tüüpiliselt ühendatud mingisuguse olekuregistriga.
Llicència
S'autoritza la còpia, la distribució i la modificació d'aquest document sota els termes de la llicència de documentació lliure GNU versió 1.2 o qualsevol altra versió posterior que publiqui la Free Software Foundation; sense seccions invariants, ni textos de portada, ni textos de contraportada. S'inclou una còpia d'aquesta llicència en la secció titulada GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
Aquest fitxer està subjecte a la llicència de Creative Commons Reconeixement i Compartir Igual 3.0 No adaptada. | ||
| ||
Aquest avís de llicència s'ha afegit a aquest fitxer d'acord amb l'actualització de la llicència GFDL.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
Elements representats en aquest fitxer
representa l'entitat
16 nov 2006
image/png
090c7cab17e66509cda0b0e362dc5dd5a3f36822
52.070 byte
2.166 píxel
2.042 píxel
Historial del fitxer
Cliqueu una data/hora per veure el fitxer tal com era aleshores.
Data/hora | Miniatura | Dimensions | Usuari/a | Comentari | |
---|---|---|---|---|---|
actual | 15:55, 5 gen 2007 | 2.042 × 2.166 (51 Ko) | Cburnett | The C input was not connected to OP[2] on the top multiplexer | |
07:42, 17 nov 2006 | 2.045 × 2.166 (46 Ko) | Cburnett | {{Information |Description='''en:''' An simple example arithmetic logic unit (ALU) that does AND, OR, XOR, and addition. |Source=Own work created with Eagle by Cadsoft |Date=November 16, 2006 |Author=en:User:Cburnett |Permission=GFDL |other_v |
Ús del fitxer
Les 4 pàgines següents utilitzen aquest fitxer:
Ús global del fitxer
Utilització d'aquest fitxer en altres wikis:
- Utilització a fr.wikipedia.org