Hades logoHades applet banner
user-defined ALU demonstration

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit Description

A demonstration of the RTLIB user-defined ALU. This simulation component models a multi-function arithmetic-logic unit with user-selectable bit-width and a variety of functions. The mapping from the function-select input to actual ALU operation can be selected via the property-sheet.

Open the ALU dialog (popup-menu, edit-component) to select the bit-width and the operation mapping of the ALU. Just select a new operation from the pulldown-menu of each function opcode to change the behaviour of the ALU. The following image shows the default mapping used in this applet:

alu function mapping

For example, the value function=9 selects the basic addition A+B, while function=11 selects the A+B+Cin addition with separate carry-input, and function=15 selects the bitwise logical A OR B operation.

Besides the main n-bit result value, the ALU also provides five single-bit outputs: carry-out, zero, negative (two's-complement), A=B (A equals B), and OVERFLOW.

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/50-rtlib/50-alu/alu.html