ruby-vpi 13.0.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/Rakefile +6 -1
  2. data/bin/generate_test_tpl/bench.rb +84 -1
  3. data/bin/generate_test_tpl/bench.v +8 -17
  4. data/bin/generate_test_tpl/proto.rb +1 -1
  5. data/doc/common.css +14 -41
  6. data/doc/common.tpl +1 -1
  7. data/doc/figures/figures.dia +274 -753
  8. data/doc/figures/organization_detailed.png +0 -0
  9. data/doc/figures/ruby_relay.png +0 -0
  10. data/doc/history.html +363 -276
  11. data/doc/history.yml +40 -0
  12. data/doc/intro.inc +37 -15
  13. data/doc/lib/doc_proxy.rb +24 -4
  14. data/doc/manual.doc +345 -196
  15. data/doc/manual.html +741 -497
  16. data/doc/memo.doc +15 -15
  17. data/doc/memo.html +28 -27
  18. data/doc/readme.doc +2 -2
  19. data/doc/readme.html +51 -15
  20. data/doc/rss.erb +1 -1
  21. data/doc/rss.xml +1624 -31
  22. data/ext/Rakefile +1 -6
  23. data/ext/main.c +8 -3
  24. data/ext/main.h +5 -0
  25. data/ext/relay.c +12 -12
  26. data/ext/relay.h +1 -6
  27. data/ext/swig_vpi.i +2 -2
  28. data/ext/swig_wrap.cin +37 -20
  29. data/ext/verilog.h +2 -2
  30. data/ext/vlog.c +10 -3
  31. data/ext/vlog.h +4 -4
  32. data/lib/ruby-vpi/vpi.rb +114 -0
  33. data/lib/ruby-vpi.rb +21 -59
  34. data/ref/c/annotated.html +1 -1
  35. data/ref/c/common_8h.html +1 -1
  36. data/ref/c/files.html +1 -1
  37. data/ref/c/functions.html +1 -1
  38. data/ref/c/functions_vars.html +1 -1
  39. data/ref/c/globals.html +1 -1
  40. data/ref/c/globals_0x63.html +1 -1
  41. data/ref/c/globals_0x65.html +1 -1
  42. data/ref/c/globals_0x66.html +1 -1
  43. data/ref/c/globals_0x6d.html +3 -2
  44. data/ref/c/globals_0x70.html +1 -1
  45. data/ref/c/globals_0x72.html +4 -5
  46. data/ref/c/globals_0x73.html +1 -1
  47. data/ref/c/globals_0x74.html +1 -1
  48. data/ref/c/globals_0x76.html +4 -2
  49. data/ref/c/globals_0x78.html +1 -1
  50. data/ref/c/globals_defs.html +1 -1
  51. data/ref/c/globals_defs_0x65.html +1 -1
  52. data/ref/c/globals_defs_0x70.html +1 -1
  53. data/ref/c/globals_defs_0x76.html +1 -1
  54. data/ref/c/globals_defs_0x78.html +1 -1
  55. data/ref/c/globals_enum.html +1 -1
  56. data/ref/c/globals_eval.html +1 -1
  57. data/ref/c/globals_func.html +8 -7
  58. data/ref/c/globals_type.html +1 -1
  59. data/ref/c/globals_vars.html +3 -2
  60. data/ref/c/index.html +1 -1
  61. data/ref/c/main_8c.html +26 -1
  62. data/ref/c/main_8h.html +26 -1
  63. data/ref/c/relay_8c.html +11 -35
  64. data/ref/c/relay_8h.html +3 -27
  65. data/ref/c/structt__cb__data.html +1 -1
  66. data/ref/c/structt__vpi__delay.html +1 -1
  67. data/ref/c/structt__vpi__error__info.html +1 -1
  68. data/ref/c/structt__vpi__strengthval.html +1 -1
  69. data/ref/c/structt__vpi__systf__data.html +1 -1
  70. data/ref/c/structt__vpi__time.html +1 -1
  71. data/ref/c/structt__vpi__value.html +1 -1
  72. data/ref/c/structt__vpi__vecval.html +1 -1
  73. data/ref/c/structt__vpi__vlog__info.html +1 -1
  74. data/ref/c/verilog_8h.html +5 -5
  75. data/ref/c/vlog_8c.html +44 -6
  76. data/ref/c/vlog_8h.html +7 -8
  77. data/ref/c/vpi__user_8h.html +1 -1
  78. data/ref/ruby/classes/RDoc.html +5 -5
  79. data/ref/ruby/classes/RDoc.src/{M000041.html → M000045.html} +0 -0
  80. data/ref/ruby/classes/RubyVpi.html +10 -28
  81. data/ref/ruby/classes/RubyVpi.src/M000029.html +101 -124
  82. data/ref/ruby/classes/Vpi/Handle.html +56 -56
  83. data/ref/ruby/classes/Vpi/Handle.src/M000034.html +5 -9
  84. data/ref/ruby/classes/Vpi/Handle.src/M000035.html +5 -31
  85. data/ref/ruby/classes/Vpi/Handle.src/M000036.html +5 -74
  86. data/ref/ruby/classes/Vpi/Handle.src/M000037.html +5 -17
  87. data/ref/ruby/classes/Vpi/Handle.src/M000038.html +9 -11
  88. data/ref/ruby/classes/Vpi/Handle.src/M000039.html +44 -0
  89. data/ref/ruby/classes/Vpi/Handle.src/M000040.html +74 -55
  90. data/ref/ruby/classes/Vpi/Handle.src/M000041.html +30 -0
  91. data/ref/ruby/classes/Vpi/Handle.src/M000042.html +24 -0
  92. data/ref/ruby/classes/Vpi/Handle.src/M000044.html +68 -0
  93. data/ref/ruby/classes/Vpi.html +149 -0
  94. data/ref/ruby/classes/Vpi.src/M000030.html +28 -0
  95. data/ref/ruby/classes/Vpi.src/M000031.html +18 -0
  96. data/ref/ruby/classes/Vpi.src/M000032.html +39 -0
  97. data/ref/ruby/classes/Vpi.src/M000033.html +22 -0
  98. data/ref/ruby/created.rid +1 -1
  99. data/ref/ruby/files/lib/ruby-vpi/vpi_rb.html +1 -1
  100. data/ref/ruby/files/lib/ruby-vpi_rb.html +2 -2
  101. data/ref/ruby/fr_method_index.html +18 -14
  102. data/samp/counter/counter_rspec_bench.rb +81 -1
  103. data/samp/counter/counter_rspec_bench.v +5 -12
  104. data/samp/counter/counter_rspec_design.rb +1 -2
  105. data/samp/counter/counter_rspec_proto.rb +1 -1
  106. data/samp/counter/counter_rspec_spec.rb +3 -3
  107. data/samp/counter/counter_xunit_bench.rb +81 -1
  108. data/samp/counter/counter_xunit_bench.v +5 -12
  109. data/samp/counter/counter_xunit_design.rb +1 -2
  110. data/samp/counter/counter_xunit_proto.rb +1 -1
  111. data/samp/counter/counter_xunit_spec.rb +3 -3
  112. data/samp/pipelined_alu/hw5_unit_test_bench.rb +81 -1
  113. data/samp/pipelined_alu/hw5_unit_test_bench.v +11 -18
  114. data/samp/pipelined_alu/hw5_unit_test_design.rb +1 -1
  115. data/samp/pipelined_alu/hw5_unit_test_proto.rb +1 -1
  116. data/samp/pipelined_alu/hw5_unit_test_spec.rb +1 -1
  117. metadata +12 -9
  118. data/doc/figures/ruby_init.png +0 -0
  119. data/ext/swig_vpi.h +0 -924
  120. data/ref/ruby/classes/Vpi/Handle.src/M000030.html +0 -18
  121. data/ref/ruby/classes/Vpi/Handle.src/M000031.html +0 -18
  122. data/ref/ruby/classes/Vpi/Handle.src/M000032.html +0 -18
  123. data/ref/ruby/classes/Vpi/Handle.src/M000033.html +0 -18
@@ -197,7 +197,7 @@
197
197
  </div><p>
198
198
  <hr>The documentation for this struct was generated from the following file:<ul>
199
199
  <li><a class="el" href="vpi__user_8h.html">vpi_user.h</a></ul>
200
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
200
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
201
201
  <a href="http://www.doxygen.org/index.html">
202
202
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
203
203
  </body>
@@ -59,7 +59,7 @@
59
59
  </div><p>
60
60
  <hr>The documentation for this struct was generated from the following file:<ul>
61
61
  <li><a class="el" href="vpi__user_8h.html">vpi_user.h</a></ul>
62
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
62
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
63
63
  <a href="http://www.doxygen.org/index.html">
64
64
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
65
65
  </body>
@@ -93,7 +93,7 @@
93
93
  </div><p>
94
94
  <hr>The documentation for this struct was generated from the following file:<ul>
95
95
  <li><a class="el" href="vpi__user_8h.html">vpi_user.h</a></ul>
96
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
96
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
97
97
  <a href="http://www.doxygen.org/index.html">
98
98
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
99
99
  </body>
@@ -26,13 +26,13 @@
26
26
 
27
27
  <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#6e8374d012a82e20b7e93415b95cf33d">verilog_tf_funcPtr</a>&nbsp;&nbsp;&nbsp;verilog_tf_funcPtr_strict</td></tr>
28
28
 
29
- <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#d3ce96438bf5e9101337a49bac4507f7">verilog_tf_funcSig</a>(aFuncName)&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="vpi__user_8h.html#c32f73779a5a02871976ab2d1b2fbedb">PLI_BYTE8</a>* aArg)</td></tr>
29
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#d3ce96438bf5e9101337a49bac4507f7">verilog_tf_funcSig</a>(aFuncName)&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="vpi__user_8h.html#c32f73779a5a02871976ab2d1b2fbedb">PLI_BYTE8</a>* aCallbackData)</td></tr>
30
30
 
31
31
  <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#0895cc43ee6708ed1a7fa8b9829665ba">verilog_tf_funcReturn</a>(aReturnVal)&nbsp;&nbsp;&nbsp;return aReturnVal</td></tr>
32
32
 
33
33
  <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#2d7416b20fad644f9f4730ca02fad66c">verilog_cb_funcPtr</a>(aPtrName)&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> (*aPtrName)(<a class="el" href="structt__cb__data.html">p_cb_data</a>)</td></tr>
34
34
 
35
- <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#284b72fb83989cced485586b82bc6aa5">verilog_cb_funcSig</a>(aFuncName)&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="structt__cb__data.html">p_cb_data</a> aArg)</td></tr>
35
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#284b72fb83989cced485586b82bc6aa5">verilog_cb_funcSig</a>(aFuncName)&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="structt__cb__data.html">p_cb_data</a> aCallbackData)</td></tr>
36
36
 
37
37
  <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="verilog_8h.html#cfb4343c14a167b7428be1b4c1f35240">verilog_cb_funcReturn</a>(aReturnVal)&nbsp;&nbsp;&nbsp;return aReturnVal</td></tr>
38
38
 
@@ -91,7 +91,7 @@ A proxy for all Verilog headers of interest to us.
91
91
  <td class="paramtype">aFuncName&nbsp;</td>
92
92
  <td class="paramname"> </td>
93
93
  <td>&nbsp;)&nbsp;</td>
94
- <td width="100%">&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="structt__cb__data.html">p_cb_data</a> aArg)</td>
94
+ <td width="100%">&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="structt__cb__data.html">p_cb_data</a> aCallbackData)</td>
95
95
  </tr>
96
96
  </table>
97
97
  </div>
@@ -166,7 +166,7 @@ A proxy for all Verilog headers of interest to us.
166
166
  <td class="paramtype">aFuncName&nbsp;</td>
167
167
  <td class="paramname"> </td>
168
168
  <td>&nbsp;)&nbsp;</td>
169
- <td width="100%">&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="vpi__user_8h.html#c32f73779a5a02871976ab2d1b2fbedb">PLI_BYTE8</a>* aArg)</td>
169
+ <td width="100%">&nbsp;&nbsp;&nbsp;<a class="el" href="vpi__user_8h.html#4a478dfb1ea580b36c39dcec9fc8d53c">PLI_INT32</a> aFuncName(<a class="el" href="vpi__user_8h.html#c32f73779a5a02871976ab2d1b2fbedb">PLI_BYTE8</a>* aCallbackData)</td>
170
170
  </tr>
171
171
  </table>
172
172
  </div>
@@ -176,7 +176,7 @@ A proxy for all Verilog headers of interest to us.
176
176
 
177
177
  </div>
178
178
  </div><p>
179
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
179
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
180
180
  <a href="http://www.doxygen.org/index.html">
181
181
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
182
182
  </body>
data/ref/c/vlog_8c.html CHANGED
@@ -21,16 +21,20 @@
21
21
  <table border="0" cellpadding="0" cellspacing="0">
22
22
  <tr><td></td></tr>
23
23
  <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
24
- <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#be4b6bc16960d97061b4eea00cf1f1cf">verilog_cb_funcSig</a> (vlog_relay_main)</td></tr>
24
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#ca3f06abdb27a0fc0a81633d8960f50f">verilog_cb_funcSig</a> (vlog_relay_init)</td></tr>
25
25
 
26
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Relays control to the main layer. <a href="#be4b6bc16960d97061b4eea00cf1f1cf"></a><br></td></tr>
27
26
  <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#c74c587b2501362f8225b8ada1f8b0c0">verilog_cb_funcSig</a> (vlog_relay_ruby)</td></tr>
28
27
 
29
28
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Relays control from Verilog to Ruby. <a href="#c74c587b2501362f8225b8ada1f8b0c0"></a><br></td></tr>
29
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structt__cb__data.html">s_cb_data</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#d6adf9454678287bd05e9df18859f2a5">vlog_relay_ruby_reason</a> ()</td></tr>
30
+
31
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the data corresponding to the callback that caused the relay from Verilog to Ruby. <a href="#d6adf9454678287bd05e9df18859f2a5"></a><br></td></tr>
30
32
  <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#dc9eaadf567421f239b8b647a3ea0eb2">vlog_startup</a> ()</td></tr>
31
33
 
32
34
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Registers a callback at start of simulation to vlog_relay_main();. <a href="#dc9eaadf567421f239b8b647a3ea0eb2"></a><br></td></tr>
33
35
  <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
36
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structt__cb__data.html">s_cb_data</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#18eaa93bf30b318a70eb68473d7597b1">vlog__relayReason</a> = NULL</td></tr>
37
+
34
38
  <tr><td class="memItemLeft" nowrap align="right" valign="top">void(*[])&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8c.html#c1228ec9528d9c9be4de1c8e42cd3835">vlog_startup_routines</a> () = { vlog_startup, 0 }</td></tr>
35
39
 
36
40
  </table>
@@ -57,14 +61,33 @@ Relays control from Verilog to Ruby.
57
61
 
58
62
  </div>
59
63
  </div><p>
60
- <a class="anchor" name="be4b6bc16960d97061b4eea00cf1f1cf"></a><!-- doxytag: member="vlog.c::verilog_cb_funcSig" ref="be4b6bc16960d97061b4eea00cf1f1cf" args="(vlog_relay_main)" -->
64
+ <a class="anchor" name="ca3f06abdb27a0fc0a81633d8960f50f"></a><!-- doxytag: member="vlog.c::verilog_cb_funcSig" ref="ca3f06abdb27a0fc0a81633d8960f50f" args="(vlog_relay_init)" -->
61
65
  <div class="memitem">
62
66
  <div class="memproto">
63
67
  <table class="memname">
64
68
  <tr>
65
69
  <td class="memname">verilog_cb_funcSig </td>
66
70
  <td>(</td>
67
- <td class="paramtype">vlog_relay_main&nbsp;</td>
71
+ <td class="paramtype">vlog_relay_init&nbsp;</td>
72
+ <td class="paramname"> </td>
73
+ <td>&nbsp;)&nbsp;</td>
74
+ <td width="100%"></td>
75
+ </tr>
76
+ </table>
77
+ </div>
78
+ <div class="memdoc">
79
+
80
+ <p>
81
+
82
+ </div>
83
+ </div><p>
84
+ <a class="anchor" name="d6adf9454678287bd05e9df18859f2a5"></a><!-- doxytag: member="vlog.c::vlog_relay_ruby_reason" ref="d6adf9454678287bd05e9df18859f2a5" args="()" -->
85
+ <div class="memitem">
86
+ <div class="memproto">
87
+ <table class="memname">
88
+ <tr>
89
+ <td class="memname"><a class="el" href="structt__cb__data.html">s_cb_data</a>* vlog_relay_ruby_reason </td>
90
+ <td>(</td>
68
91
  <td class="paramname"> </td>
69
92
  <td>&nbsp;)&nbsp;</td>
70
93
  <td width="100%"></td>
@@ -74,7 +97,7 @@ Relays control from Verilog to Ruby.
74
97
  <div class="memdoc">
75
98
 
76
99
  <p>
77
- Relays control to the main layer.
100
+ Returns the data corresponding to the callback that caused the relay from Verilog to Ruby.
78
101
  <p>
79
102
 
80
103
  </div>
@@ -101,6 +124,21 @@ Registers a callback at start of simulation to vlog_relay_main();.
101
124
  </div>
102
125
  </div><p>
103
126
  <hr><h2>Variable Documentation</h2>
127
+ <a class="anchor" name="18eaa93bf30b318a70eb68473d7597b1"></a><!-- doxytag: member="vlog.c::vlog__relayReason" ref="18eaa93bf30b318a70eb68473d7597b1" args="" -->
128
+ <div class="memitem">
129
+ <div class="memproto">
130
+ <table class="memname">
131
+ <tr>
132
+ <td class="memname"><a class="el" href="structt__cb__data.html">s_cb_data</a>* <a class="el" href="vlog_8c.html#18eaa93bf30b318a70eb68473d7597b1">vlog__relayReason</a> = NULL </td>
133
+ </tr>
134
+ </table>
135
+ </div>
136
+ <div class="memdoc">
137
+
138
+ <p>
139
+
140
+ </div>
141
+ </div><p>
104
142
  <a class="anchor" name="c1228ec9528d9c9be4de1c8e42cd3835"></a><!-- doxytag: member="vlog.c::vlog_startup_routines" ref="c1228ec9528d9c9be4de1c8e42cd3835" args="()" -->
105
143
  <div class="memitem">
106
144
  <div class="memproto">
@@ -116,7 +154,7 @@ Registers a callback at start of simulation to vlog_relay_main();.
116
154
 
117
155
  </div>
118
156
  </div><p>
119
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
157
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
120
158
  <a href="http://www.doxygen.org/index.html">
121
159
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
122
160
  </body>
data/ref/c/vlog_8h.html CHANGED
@@ -23,12 +23,12 @@
23
23
  <table border="0" cellpadding="0" cellspacing="0">
24
24
  <tr><td></td></tr>
25
25
  <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
26
- <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8h.html#be4b6bc16960d97061b4eea00cf1f1cf">verilog_cb_funcSig</a> (vlog_relay_main)</td></tr>
27
-
28
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Relays control to the main layer. <a href="#be4b6bc16960d97061b4eea00cf1f1cf"></a><br></td></tr>
29
26
  <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8h.html#c74c587b2501362f8225b8ada1f8b0c0">verilog_cb_funcSig</a> (vlog_relay_ruby)</td></tr>
30
27
 
31
28
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Relays control from Verilog to Ruby. <a href="#c74c587b2501362f8225b8ada1f8b0c0"></a><br></td></tr>
29
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structt__cb__data.html">s_cb_data</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="vlog_8h.html#d6adf9454678287bd05e9df18859f2a5">vlog_relay_ruby_reason</a> ()</td></tr>
30
+
31
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the data corresponding to the callback that caused the relay from Verilog to Ruby. <a href="#d6adf9454678287bd05e9df18859f2a5"></a><br></td></tr>
32
32
  </table>
33
33
  <hr><a name="_details"></a><h2>Detailed Description</h2>
34
34
  Interface between C and Verilog code.
@@ -56,14 +56,13 @@ Relays control from Verilog to Ruby.
56
56
 
57
57
  </div>
58
58
  </div><p>
59
- <a class="anchor" name="be4b6bc16960d97061b4eea00cf1f1cf"></a><!-- doxytag: member="vlog.h::verilog_cb_funcSig" ref="be4b6bc16960d97061b4eea00cf1f1cf" args="(vlog_relay_main)" -->
59
+ <a class="anchor" name="d6adf9454678287bd05e9df18859f2a5"></a><!-- doxytag: member="vlog.h::vlog_relay_ruby_reason" ref="d6adf9454678287bd05e9df18859f2a5" args="()" -->
60
60
  <div class="memitem">
61
61
  <div class="memproto">
62
62
  <table class="memname">
63
63
  <tr>
64
- <td class="memname">verilog_cb_funcSig </td>
64
+ <td class="memname"><a class="el" href="structt__cb__data.html">s_cb_data</a>* vlog_relay_ruby_reason </td>
65
65
  <td>(</td>
66
- <td class="paramtype">vlog_relay_main&nbsp;</td>
67
66
  <td class="paramname"> </td>
68
67
  <td>&nbsp;)&nbsp;</td>
69
68
  <td width="100%"></td>
@@ -73,12 +72,12 @@ Relays control from Verilog to Ruby.
73
72
  <div class="memdoc">
74
73
 
75
74
  <p>
76
- Relays control to the main layer.
75
+ Returns the data corresponding to the callback that caused the relay from Verilog to Ruby.
77
76
  <p>
78
77
 
79
78
  </div>
80
79
  </div><p>
81
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
80
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
82
81
  <a href="http://www.doxygen.org/index.html">
83
82
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
84
83
  </body>
@@ -8732,7 +8732,7 @@ alias 1364-1995 system function subtypes to 1364-2001 function subtypes
8732
8732
 
8733
8733
  </div>
8734
8734
  </div><p>
8735
- <hr size="1"><address style="align: right;"><small>Generated on Wed Dec 27 22:29:46 2006 for Ruby-VPI by&nbsp;
8735
+ <hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 19:26:26 2006 for Ruby-VPI by&nbsp;
8736
8736
  <a href="http://www.doxygen.org/index.html">
8737
8737
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
8738
8738
  </body>
@@ -80,7 +80,7 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000041">usage_from_file</a>&nbsp;&nbsp;
83
+ <a href="#M000045">usage_from_file</a>&nbsp;&nbsp;
84
84
  </div>
85
85
  </div>
86
86
 
@@ -102,12 +102,12 @@
102
102
  <div id="methods">
103
103
  <h3 class="section-bar">Public Class methods</h3>
104
104
 
105
- <div id="method-M000041" class="method-detail">
106
- <a name="M000041"></a>
105
+ <div id="method-M000045" class="method-detail">
106
+ <a name="M000045"></a>
107
107
 
108
108
  <div class="method-heading">
109
- <a href="RDoc.src/M000041.html" target="Code" class="method-signature"
110
- onclick="popupCode('RDoc.src/M000041.html');return false;">
109
+ <a href="RDoc.src/M000045.html" target="Code" class="method-signature"
110
+ onclick="popupCode('RDoc.src/M000045.html');return false;">
111
111
  <span class="method-name">usage_from_file</span><span class="method-args">(input_file, *args)</span>
112
112
  </a>
113
113
  </div>
@@ -143,56 +143,38 @@
143
143
  <div class="method-heading">
144
144
  <a href="RubyVpi.src/M000029.html" target="Code" class="method-signature"
145
145
  onclick="popupCode('RubyVpi.src/M000029.html');return false;">
146
- <span class="method-name">init_bench</span><span class="method-args">(aDesignId, aSpecFormat {|clock_signal| ...}</span>
146
+ <span class="method-name">init_bench</span><span class="method-args">(aDesignId, aSpecFormat, &amp;aSimulationCycle)</span>
147
147
  </a>
148
148
  </div>
149
149
 
150
150
  <div class="method-description">
151
151
  <p>
152
- Initializes the bench by loading:
152
+ Initializes the bench by setting up code coverage, the interactive
153
+ debugger, and so on:
153
154
  </p>
154
155
  <ol>
155
- <li>the design.rb file
156
+ <li>loads the design.rb file
156
157
 
157
158
  </li>
158
- <li>the proto.rb file if prototyping is enabled
159
+ <li>loads the proto.rb file if prototyping is enabled
159
160
 
160
161
  </li>
161
- <li>the spec.rb file
162
+ <li>loads the spec.rb file
162
163
 
163
164
  </li>
164
165
  </ol>
165
166
  <table>
166
- <tr><td valign="top">aDesignId:</td><td>The name of the Ruby design object.
167
+ <tr><td valign="top">aDesignId:</td><td>The name of the Ruby object which gives access to the design under test.
167
168
 
168
169
  </td></tr>
169
- <tr><td valign="top">aSpecFormat:</td><td>The format being used by the specification.
170
+ <tr><td valign="top">aSpecFormat:</td><td>The name of the format being used by the specification.
170
171
 
171
172
  </td></tr>
172
- <tr><td valign="top">aClockTrigger:</td><td>When the return value of this block is <tt>true</tt>, then the
173
- relay_verilog method returns. This block is given one argument: a handle to
174
- the clock signal that drives the design under test. If this block is not
175
- specified, relay_verilog will always return upon the next positive edge of
176
- the clock signal.
173
+ <tr><td valign="top">aSimulationCycle:</td><td>A block that simulates the design under test by, for example, toggling the
174
+ clock signal.
177
175
 
178
176
  </td></tr>
179
177
  </table>
180
- <pre>
181
- # return upon positive edge
182
- RubyVpi.init_bench ... |clk|
183
- clk.intVal == 1
184
- end
185
-
186
- # return upon negative edge
187
- RubyVpi.init_bench ... do |clk|
188
- clk.intVal == 0
189
- end
190
-
191
- # return whenever clock changes
192
- RubyVpi.init_bench ... do |clk|
193
- true
194
- end
195
- </pre>
196
178
  </div>
197
179
  </div>
198
180