home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p070 / 8.ddi / TUTOR.PLB / TWOCOMPL.PLD < prev    next >
Encoding:
Text File  |  1990-12-11  |  512 b   |  17 lines

  1.                          TWOS-COMPLEMENT INVERTER
  2.  
  3. This circuit accepts an eight-bit binary number as input and produces the
  4. inverted twos-complement value as output.
  5.  
  6. |PAL18U8   in:D[7..0], io:Q[7..0]
  7. |
  8. | Title:  "Eight-bit twos-complement inverter"
  9. |
  10. | Map:  D[7..0] -> Q[7..0]  { n -> -n }
  11.  
  12. | Vectors:
  13. | { Display D[7..0], " -> ", Q[7..0]
  14. |   Test    D[7..0]
  15. |   End  }
  16.  
  17.