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 | subset, merge, expand
Circuit Description
This applet demonstrates the RTLIB components to access subsets
of bits from multiple-bit signals.
The top row of components contains two subset (hades.models.rtlib.io.Subset) and one subset-and-flip (SubsetFlip) components. Use the property-sheet of those components to select the range of bits (upper and lower index) that should be extracted from the input signal. In the example, the first subset component extracts the lower four bits (3:0), while the second subset component extracts the upper four bits (7:4). While the subset-and-flip component is set to extract the lower four bits, it also reverses the bit pattern. The remaining two components on the left side of the schematics are merge and merge-3 components. These take two and three multiple-bit input signals and construct a new, wider multiple-bit signal. Unfortunately, the explicit bit-twiddling required in a schematics is (a lot) more cumbersome than the simple typing of subset-expressions in a text-based representation like VHDL source-code. It might be necessary to encapsulate complex bit-selection and -merging operations into their own subdesigns, in order to keep top-level schematics as clean as possible.
| |||
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/subset-merge.html |