Hades logo    Hades applet banner

TAMS / Java / Hades / applets (print version): contents | previous | next

subset, merge, expand

subset, merge, expand screenshot

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.

Run the applet | Run the editor (via Webstart)


Impressum | 24.11.06
http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/50-rtlib/10-components/subset-merge_print.html