home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / A2D.VSM < prev    next >
Text File  |  1993-02-17  |  3KB  |  104 lines

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1992 Visual Solutions
  3. PV=1.200
  4. PS=0
  5. PE=1.5
  6. PP=0.001
  7. PI=175
  8. PX=0.001
  9. PN=1e-006
  10. PF=10
  11. PD=800x600
  12. Pf=0x0
  13. Ps=860,0,0,526,0,0
  14. PM=1,1,1,1
  15. N.1="comment"@30x0@751x208<M>
  16. C="Analog to Digital Converter Model            
  17.  
  18. Can be used to model 8, 12, 16 or any bitlength converter running at any speed.  The input is any analog signal and the output is a sampled-held signal.  Three parameters are specified by the user, N (# of bits in the converter, usually 8, 12, or 16), Max Input Value (Expected maximum input signal valued measured from 0 to the POSITIVE maximum), and the digital update time of the converter in seconds.
  19.  
  20. Limitations:
  21. 1.  Check simulation update time to be less than the Digital Update Time parameter
  22. "
  23. N.2="Compound"@0x0#1,1<C>
  24. n="a2d.bmp"
  25. Ms=860,0,0,526,0,0
  26. Mb
  27. N.3="variable"@240x224<M>
  28. n=":input"
  29. N.4="sign"@642x294<M>
  30. N.5="variable"@564x294<M>
  31. n=":input"
  32. N.6="*"@720x259<M>
  33. N.7="abs"@294x245<M>
  34. N.8="variable"@270x287<M>
  35. n=":Quantization"
  36. N.9="variable"@54x371<M>
  37. n=":N, converter bitlength"
  38. N.10="const"(8)@6x371<M>
  39. N.11="const"(1)@6x392<M>
  40. N.12="variable"@54x392<M>
  41. n=":Max Input Value"
  42. N.13="variable"@222x448<M>
  43. n=":N, converter bitlength"
  44. N.14="summingJunction"(0)@456x434<M>
  45. N.15="const"(1)@378x469<M>
  46. N.16="variable"@456x406<M>
  47. n=":Max Input Value"
  48. N.17="/"@600x427<M>
  49. N.18="variable"@654x434<M>
  50. n=":Quantization"
  51. N.19="/"@408x245<M>
  52. N.20="int"@474x252<M>
  53. N.21="*"@570x252<M>
  54. N.22="sampleHold"(0)@174x252<M>
  55. N.23="variable"@54x413<M>
  56. n=":Digital Update Time, sec"
  57. N.24="const"(0.2)@6x413<M>
  58. N.25="wireLabel"@6x350<M>
  59. n="==== Parameters ===="
  60. N.26="wireLabel"@480x490<M>
  61. n="Compute Quantization Value"
  62. N.27="wireLabel"@522x455<M>
  63. n="2^(N-1)"
  64. N.28="pow"(2)@378x427#2,1<M>
  65. N.29="const"(2)@330x420<M>
  66. N.30="pulseTrain"(0,0.01)@498x336#2,1<M>
  67. N.31="variable"@264x350<M>
  68. n=":Digital Update Time, sec"
  69. N.32="variable"@654x343<M>
  70. n=":Trigger"
  71. N.33="variable"@84x238<M>
  72. n=":Trigger"
  73. N.34="wireLabel"@6x280<M>
  74. n="Input"
  75. N.35="wireLabel"@726x238<M>
  76. n="Output"
  77. G.2=1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,
  78. I.2.o1=6.o1
  79. I.3.i1=22.o1
  80. I.4.i1=5.o1
  81. I.6.i1=21.o1
  82. I.6.i2=4.o1
  83. I.7.i1=22.o1
  84. I.9.i1=10.o1
  85. I.12.i1=11.o1
  86. I.14.i1=28.o1
  87. f14.2.i=-
  88. I.14.i2=15.o1
  89. I.17.i1=16.o1
  90. I.17.i2=14.o1
  91. I.18.i1=17.o1
  92. I.19.i1=7.o1
  93. I.19.i2=8.o1
  94. I.20.i1=19.o1
  95. I.21.i1=20.o1
  96. I.21.i2=8.o1
  97. I.22.i1=33.o1
  98. I.22.i2=2.i1
  99. I.23.i1=24.o1
  100. I.28.i1=29.o1
  101. I.28.i2=13.o1
  102. I.30.i2=31.o1
  103. I.32.i1=30.o1
  104.