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

  1.                             ADDRESSABLE FLIP-FLOPS
  2.  
  3. This set of eight addressable SR flip-flops uses feedback on all outputs,
  4. so complex mode is not sufficient and registered mode must be selected,
  5. even though no registers are used in the device.
  6.  
  7. Whenever the SET line is active, the flip-flop addressed by ADDR[2..0] is
  8. activated.  Whenever the SET line is inactive and the RESET line is
  9. active, the flip-flop addresses by ADDR[2..0] is cleared.  When both SET
  10. and RESET are inactive, all flip-flops retain their values.
  11.  
  12. |GAL16V8  in:(ADDR[2..0], SET, RESET), io:Q[7..0]
  13. |
  14. | i=7..0:  Q[i] = (ADDR[2..0]==i & SET)
  15. |               # (Q[i] & (ADDR[2..0]==i & RESET)')
  16. |
  17. | Vectors:
  18. | { Display (ADDR[2..0])d, SET, RESET, " -> ", Q[7..0]
  19. |   Test     ADDR[2..0]; SET, RESET = 00b, 01b, 00b, 10b, 00b
  20. |   End }
  21.  
  22.