home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s205 / 1.ddi / BACKUP.001 / EXAMPLES_COUNTER.PDS < prev    next >
Encoding:
PALASM Design Description  |  1991-02-27  |  3.2 KB  |  123 lines

  1. ;PALASM Design Description
  2.  
  3. ;---------------------------------- Declaration Segment ------------
  4. TITLE    Counter.PDS
  5. PATTERN  Counter
  6. REVISION 0
  7. AUTHOR   RUDOLPH J. STERNER
  8. COMPANY  AMD INC.
  9. DATE     03/17/90
  10.  
  11. CHIP  Counter MACH110
  12.  
  13. PIN 35 clock ; clock INPUT
  14. PIN 32, 33, 36, 30, 17, 39, 40, 41, 42, 37, 38, 43 in[0..11] ; INPUT
  15. PIN 26, 27, 28, 2, 3, 7, 19, 20, 21, 29, 24, 25 out[0..11] REGISTERED      ; OUTPUT
  16. PIN 11 LD ; INPUT
  17. PIN 10 cnt ; INPUT
  18. PIN 13 updn ; Input, High is up.
  19. NODE 14 carry REGISTERED      ; Internal Carry Signal
  20. NODE 1 global 
  21.  
  22. EQUATIONS
  23.  
  24. global.rstf = gnd
  25.  
  26. out[0..11].CLKF = clock
  27. carry.CLKF = clock
  28.  
  29. out[0].T = /out[0]*in[0]*/LD*cnt
  30.          + out[0]*/in[0]*/LD*cnt
  31.          + /cnt
  32.  
  33. out[1].T = /out[1]*in[1]*/LD*cnt
  34.          + out[1]*/in[1]*/LD*cnt
  35.          + updn*out[0]*/cnt
  36.          + /updn*/out[0]*/cnt
  37.  
  38.  
  39. out[2].T = /out[2]*in[2]*/LD*cnt
  40.          + out[2]*/in[2]*/LD*cnt
  41.          + updn*out[0]*out[1]*/cnt
  42.          + /updn*/out[0]*/out[1]*/cnt
  43.  
  44. out[3].T = /out[3]*in[3]*/LD*cnt
  45.          + out[3]*/in[3]*/LD*cnt
  46.          + updn*out[0]*out[1]*out[2]*/cnt
  47.          + /updn*/out[0]*/out[1]*/out[2]*/cnt
  48.  
  49. out[4].T = /out[4]*in[4]*/LD*cnt
  50.          + out[4]*/in[4]*/LD*cnt
  51.          + updn*out[0]*out[1]*out[2]*out[3]*/cnt
  52.          + /updn*/out[0]*/out[1]*/out[2]*/out[3]*/cnt
  53.  
  54. out[5].T = /out[5]*in[5]*/LD*cnt
  55.          + out[5]*/in[5]*/LD*cnt
  56.          + updn*out[0]*out[1]*out[2]*out[3]*out[4]*/cnt
  57.          + /updn*/out[0]*/out[1]*/out[2]*/out[3]*/out[4]*/cnt
  58.  
  59. out[6].T = /out[6]*in[6]*/LD*cnt
  60.          + out[6]*/in[6]*/LD*cnt
  61.          + updn*out[0]*out[1]*out[2]*out[3]*out[4]*out[5]*/cnt
  62.          + /updn*/out[0]*/out[1]*/out[2]*/out[3]*/out[4]*/out[5]*/cnt
  63.  
  64. out[7].T = /out[7]*in[7]*/LD*cnt
  65.          + out[7]*/in[7]*/LD*cnt
  66.          + updn*out[0]*out[1]*out[2]*out[3]*out[4]
  67.          * out[5]*out[6]*/cnt
  68.          + /updn*/out[0]*/out[1]*/out[2]*/out[3]*/out[4]
  69.          * /out[5]*/out[6]*/cnt
  70.  
  71. out[8].T = /out[8]*in[8]*/LD*cnt
  72.          + out[8]*/in[8]*/LD*cnt
  73.          + updn*out[0]*out[1]*out[2]*out[3]*out[4]
  74.          * out[5]*out[6]*out[7]*/cnt
  75.          + /updn*/out[0]*/out[1]*/out[2]*/out[3]*/out[4]
  76.          * /out[5]*/out[6]*out[8]*/cnt
  77.  
  78. carry = updn*/out[0]*out[1]*out[2]*out[3]*out[4]*out[5]
  79.       * out[6]*out[7]*out[8]
  80.       + /updn*out[0]*/out[1]*/out[2]*/out[3]*/out[4]*/out[5]
  81.       * /out[6]*/out[7]*/out[8]
  82.  
  83. out[9].T = /out[9]*in[9]*/LD*cnt
  84.          + out[9]*/in[9]*/LD*cnt
  85.          + updn*carry*/cnt
  86.          + /updn*carry*/cnt
  87.  
  88. out[10].T = /out[10]*in[10]*/LD*cnt
  89.          + out[10]*/in[10]*/LD*cnt
  90.          + updn*carry*out[9]*/cnt
  91.          + /updn*carry*/out[9]*/cnt
  92.  
  93. out[11].T = /out[11]*in[11]*/LD*cnt
  94.          + out[11]*/in[11]*/LD*cnt
  95.          + updn*carry*out[9]*out[10]*/cnt
  96.          + /updn*carry*/out[9]*/out[10]*/cnt
  97.  
  98. SIMULATION
  99. Trace_On out[0] out[1] out[2] out[3] out[4] out[5] out[6]
  100.          out[7] out[8] out[9] out[10] out[11] carry
  101.  
  102. SETF /clock ld updn cnt
  103. SETF /ld /in[0] /in[1] /in[2] /in[3] /in[4] /in[5]
  104.      /in[6] /in[7] /in[8] /in[9] /in[10] /in[11]
  105.  
  106. SETF clock
  107. setf /clock
  108. setf ld /cnt
  109. for i := 1 to 10 do
  110. begin
  111. setf clock
  112. setf /clock
  113. end
  114. setf /updn
  115. for i := 1 to 10 do
  116. begin
  117. setf clock
  118. setf /clock
  119. end
  120. TRACE_OFF
  121.  
  122.  
  123.