home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FPGAWKII.ZIP / FEEDBACK.PDS < prev    next >
Text File  |  1995-02-18  |  2KB  |  65 lines

  1. ; This example demonstrates the different
  2. ; types of feedback you can use in the
  3. ; EPX780.
  4. ;
  5. ; SET COMPILER OPTIONS TO:
  6. ;  Use Design Pin Assignments, but not
  7. ;               Previous, Abort on no fit
  8.  
  9. CHIP product NFX780_84
  10.  
  11. PIN 3  CLK1 ; synchronous clock pin 1
  12.  
  13. PIN    a    ; an input pin
  14.  
  15. ; pin driven by combinatorial logic
  16. ; feedback from combinatorial part
  17. PIN    o1  COMB CMBFBK
  18.  
  19. ; pin driven by flip-flop
  20. ; feedback from combinatorial logic
  21. PIN    o2  REG CMBFBK
  22.  
  23. ; pin driven by combinatorial logic
  24. ; feedback from flip-flop
  25. PIN    o3  COMB REGFBK
  26.  
  27. ; pin driven by flip-flop
  28. ; feedback from flip-flop
  29. PIN    o4  REG REGFBK
  30.  
  31. EQUATIONS
  32. ; the o1 combinatorial output is
  33. ; the logical AND of the combinatorial
  34. ; output of o2 and the combinatorial
  35. ; output of o3
  36. o1 = o2.FB * o3.IO
  37.  
  38. ; the o2 combinatorial output and
  39. ; the input to the o2 flip-flop is
  40. ; the logical AND of the flip-flop
  41. ; output of o3 and the flip-flop
  42. ; output of o4
  43. o2 := o3.FB * o4.IO
  44.  
  45. ; the o3 combinatorial output and
  46. ; the input to the o3 flip-flop is
  47. ; the logical AND of the flip-flop
  48. ; output of o4 and the combinatorial
  49. ; output of o1
  50. o3 = o4.FB * o1.IO
  51.  
  52. ; the o4 combinatorial output and
  53. ; the input to the o4 flip-flop is
  54. ; the logical AND of the combinatorial
  55. ; output of o1 and the flip-flop
  56. ; output of o2
  57. o4 := o1.FB * o2.IO
  58.  
  59. ; all the flip-flops are clocked with
  60. ; the synchronous clock.  Note that we
  61. ; don't need a clock for o1 since both
  62. ; its output and feedback functions are
  63. ; both combinatorial.
  64. o[2:4].CLKF = CLK1
  65.