home *** CD-ROM | disk | FTP | other *** search
- ROTARY SHIFTER AS AN INDEXED EQUATION
-
- This rotary shifter accepts input signals D3, D2, D1, and D0 and
- rotates them left 0, 1, 2, or 3 bits, according to the shift amount on
- signals S1 and S0. The logic is defined as a two-dimensional indexed
- equation, so the entire definition fits on one source line. See
- Chapter 4 of the reference guide a complete discussion.
-
- |PAL14H4 in:(D[3..0], S[1..0]), out:Q[3..0]
- |
- | i=3..0: n=0..3: Q[i] = D[(i-n)\4] & S[1,0]==n
-
- | Vectors:
- | { Display D[3..0]," rotated left ",(S1,S0)d," yields ",Q[3..0],"."
- | Test D[3..0], S[1..0]
- | End }
-
-