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

  1.                         BIT STREAM CLOCK GENERATOR
  2.  
  3. Here is an example of a stream used to define a repetitive clock.  The
  4. stream starts with eight ones and ends with eight zeros.  In between are
  5. fifteen sets of the following sequence:  three zeros, three one-zero
  6. cycles, a zero, and six ones.  The logic is intended to be driven by a
  7. counter generating the eight-bit STEP signal.
  8.  
  9. |PAL16C1 in:STEP[7..0], out:Y
  10. |
  11. | Title:  "Bit stream clock generator"
  12. |
  13. | Stream: STEP[7..0] -> Y
  14. | { 8(1), 15(3(0), 3(1,0), 0, 6(1)), 8(0) }
  15. |
  16. |
  17. | Vectors:
  18. | { Display (STEP[7..0])d, Y
  19. |   Test     STEP[7..0]
  20. |   End
  21. |   }
  22.  
  23.