home *** CD-ROM | disk | FTP | other *** search
- 8-BIT PRIORITY ENCODER
-
- This is an 8-bit version of the priority encoder in file ENCODER2.PLD,
- showing how the general form of the encoder does not change when written
- as an indexed equation.
-
- | in:Q[7..0], io:A[2..0]
- |
- | Title: "8:3 priority encoder"
- |
- | i=2..0: n=7..0: A[i] = Q[7..n]==1 & n[i]
-
-
- Since there are only eight input bits, it is practical to test all input
- combinations here.
-
- | Vectors:
- | { Display Q[7..0], " -> ", (A[2..0])d
- | Test Q[7..0]
- | End }
-
-