home *** CD-ROM | disk | FTP | other *** search
- PIXEL CONVERTER
-
- This map generates logic to compute the number of one-bits in an input
- word. Such logic can be used, for example, in a real-time converter from
- a 2x2 grid of single-intensity, high-resolution pixels arriving from
- remote sensing apparatus to a multiple-intensity, lower-resolution pixel
- for a color display screen.
-
- No actual devices is assigned, so this corresponds to a trial run to see
- how many product terms are required before an actual device is assigned.
-
- | io:(HIGHRES[1..4], LOWRES[2..0])
- |
- | Map: HIGHRES[1..4] -> LOWRES[2..0] { n -> bitcount(n) }
- |
- | Vectors:
- | { Display HIGHRES[1..4], " has ", (LOWRES[2..0])d, " bit(s) set"
- | Test HIGHRES[1..4]
- | End }
-
-