home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p078 / 7.img / TUTOR.PLB / TTABLE.PLD < prev    next >
Encoding:
Text File  |  1990-12-11  |  1.0 KB  |  39 lines

  1.                                TRUTH TABLES
  2.  
  3. Three different forms of the same logic are shown here, first as a Boolean
  4. equation, then as a binary truth table, and finally as a decimal truth
  5. table.  See Chapter 6 of the reference guide for a discussion of truth
  6. tables.
  7.  
  8. |PAL14H4  in:(A, B, C, D), out:(U, V, W)
  9. |
  10. | U  =  ( A & (B#C) )  #  ( D & (B#C) )     |As a Boolean equation.
  11. |
  12. | Table: A, B, C, D -> V                    |As a binary truth table.
  13. | { 000Xb -> 0
  14. |   0010b -> 0
  15. |   0011b -> 1
  16. |   0100b -> 0
  17. |   0101b -> 1
  18. |   0110b -> 0
  19. |   0111b -> 1
  20. |   100Xb -> 0
  21. |   101Xb -> 1
  22. |   11XXb -> 1 }
  23. |
  24. | Table: A, B, C, D -> W                    |As a decimal truth table.
  25. | { 0..2   ->  0
  26. |   3     ->  1
  27. |   4     ->  0
  28. |   5     ->  1
  29. |   6     ->  0
  30. |   7     ->  1
  31. |   8..9   ->  0
  32. |   10..15 ->  1 }
  33.  
  34. | Vectors:
  35. | { Display (A, B, C, D), " -> ", U, V, W
  36. |   Test     A, B, C, D
  37. |   End  }
  38.  
  39.