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

  1.                     PROTECTING HAZARD TERMS IN AN EQUATION
  2.  
  3. Hazard terms must sometimes be specifically included in the reduced logic.
  4. Most logic reduction methods remove hazard terms, assuring the greatest
  5. level of logic reduction, but the circuit may no longer behave correctly.
  6. The REDUCTION keyword is a good way to ensure that hazard terms are not
  7. reduced out of equations.  The reference guide shows equations that use
  8. hazard terms.  The reduction method chosen will determine if the hazard
  9. terms are protected in an equation.
  10.  
  11. |EP600  io:(COUNT[3..0], CLK, DOWN, UP, L, D, Q)
  12.  
  13. This portion of the design is a four-bit up/down counter.  The REDUCTION
  14. keyword is used to force McBoole reduction; if Algebraic Reduction were
  15. used, too many product terms would be needed for the final equations.
  16.  
  17. | Reduction 2: COUNT[3..0]
  18. |
  19. | Registers:   CLK // COUNT[3..0]
  20. |
  21. | Map: COUNT[3..0] -> COUNT[3..0]
  22. | { n -> n+1, UP & DOWN'              |Count up
  23. |   n -> n-1, DOWN & UP'              |Count down
  24. |   n -> n,   DOWN & UP               |Hold
  25. |   n -> 0,   DOWN'& UP' }            |Reset
  26.  
  27. This portion of the design is a transparent latch (see the reference
  28. guide).  It requires that hazard terms be left intact, so McBoole
  29. reduction cannot be used.  "REDUCTION 1" is used to force Algebraic
  30. Reduction and leave the hazard terms intact.
  31.  
  32. | Reduction 1: Q
  33. |
  34. | Q = (L&D) # (Q & (L&D')')
  35.  
  36. If a Reduction method is not specified for a signal in the text of the PLD
  37. description, then the default reduction method from the configuration
  38. table, the environment, or the command line will be used.
  39.  
  40.