TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic input and ou... configuration animation incrementer adder subtraction rotate shifters comparison logic (bitwise) logic (wordw... muxes bit-twiddling bus-tap expand bits tri-state bu... RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | shifters
Circuit Description
A demonstration of the RTLIB shift operators
(hades.models.rtlib.arith.ShiftLeft, ShiftRightLogic, and ShiftRightArith).
All components are set to 8-bit bus-width;
the input and output components are set to binary display mode
to make the bit-shifts explicit.
Unlike the bit-rotation operators, the shift-left operator fills the shifted word with zero-bits. The logic shift-right operator (SRL) also fills the shifted word with zero-bits, while the arithmetic shift-right operation copies the topmost (sign) bit of the original operand value. In two's complement encoding, this means that the output value of the arithmetic shift-right operation has the same sign as the input operand. The symbols used for the shift-operators use the Java notation, << for shift-left, >> for the standard arithmetic shift-right, and >>> for logic shift-right (unsigned). Click the input switch (again, shift-click to decrement, control-click for U and Z) or type the 'a' bindkey to control the circuit.
| |||
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/10-components/shift.html |