ruby-vpi 7.0.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +19 -0
- data/README +3 -3
- data/Rakefile +147 -112
- data/bin/generate_test.rb +0 -2
- data/doc/src/manual.xml +11 -9
- data/doc/txt/manual.txt +14 -9
- data/doc/xhtml/background.organization.html +1 -1
- data/doc/xhtml/index.html +2 -2
- data/doc/xhtml/introduction.manifest.html +1 -1
- data/doc/xhtml/usage.installation.html +7 -1
- data/doc/xhtml/usage.tutorial.html +1 -1
- data/gem_extconf.rb +1 -1
- data/history.html +37 -0
- data/lib/ruby-vpi/runner.rb +77 -2
- data/lib/ruby-vpi.rb +0 -10
- data/readme.html +5 -3
- data/ref/c/annotated.html +1 -1
- data/ref/c/common_8h.html +1 -1
- data/ref/c/files.html +1 -1
- data/ref/c/functions.html +1 -1
- data/ref/c/functions_vars.html +1 -1
- data/ref/c/globals.html +1 -1
- data/ref/c/globals_0x63.html +1 -1
- data/ref/c/globals_0x65.html +1 -1
- data/ref/c/globals_0x66.html +1 -1
- data/ref/c/globals_0x70.html +1 -1
- data/ref/c/globals_0x72.html +1 -1
- data/ref/c/globals_0x73.html +1 -1
- data/ref/c/globals_0x74.html +1 -1
- data/ref/c/globals_0x76.html +1 -1
- data/ref/c/globals_0x78.html +1 -1
- data/ref/c/globals_defs.html +1 -1
- data/ref/c/globals_defs_0x65.html +1 -1
- data/ref/c/globals_defs_0x70.html +1 -1
- data/ref/c/globals_defs_0x76.html +1 -1
- data/ref/c/globals_defs_0x78.html +1 -1
- data/ref/c/globals_enum.html +1 -1
- data/ref/c/globals_eval.html +1 -1
- data/ref/c/globals_func.html +1 -1
- data/ref/c/globals_type.html +1 -1
- data/ref/c/globals_vars.html +1 -1
- data/ref/c/hierarchy.html +1 -1
- data/ref/c/index.html +1 -1
- data/ref/c/relay_8cin.html +1 -1
- data/ref/c/relay_8hin.html +1 -1
- data/ref/c/ruby-vpi_8c.html +1 -1
- data/ref/c/structrelay____RubyOptions____def.html +1 -1
- data/ref/c/structt__cb__data.html +1 -1
- data/ref/c/structt__vpi__delay.html +1 -1
- data/ref/c/structt__vpi__error__info.html +1 -1
- data/ref/c/structt__vpi__strengthval.html +1 -1
- data/ref/c/structt__vpi__systf__data.html +1 -1
- data/ref/c/structt__vpi__time.html +1 -1
- data/ref/c/structt__vpi__value.html +1 -1
- data/ref/c/structt__vpi__vecval.html +1 -1
- data/ref/c/structt__vpi__vlog__info.html +1 -1
- data/ref/c/swig_8cin.html +1 -1
- data/ref/c/swig_8hin.html +1 -1
- data/ref/c/verilog_8h.html +1 -1
- data/ref/c/vlog_8cin.html +1 -1
- data/ref/c/vlog_8hin.html +1 -1
- data/ref/c/vpi__user_8h.html +1 -1
- data/ref/ruby/classes/Counter.html +20 -20
- data/ref/ruby/classes/Counter.src/M000038.html +7 -9
- data/ref/ruby/classes/Counter.src/M000039.html +9 -7
- data/ref/ruby/classes/Counter.src/M000040.html +7 -9
- data/ref/ruby/classes/Counter.src/M000041.html +22 -0
- data/ref/ruby/classes/CounterProto.html +9 -9
- data/ref/ruby/classes/CounterProto.src/M000005.html +1 -1
- data/ref/ruby/classes/CounterProto.src/{M000004.html → M000006.html} +1 -1
- data/ref/ruby/classes/ERB.html +5 -5
- data/ref/ruby/classes/FileUtils.html +10 -10
- data/ref/ruby/classes/FileUtils.src/M000048.html +5 -5
- data/ref/ruby/classes/{InputGenerator.src/M000027.html → FileUtils.src/M000049.html} +4 -4
- data/ref/ruby/classes/Hw5UnitModel/Operation.html +15 -15
- data/ref/ruby/classes/Hw5UnitModel/Operation.src/M000012.html +12 -20
- data/ref/ruby/classes/Hw5UnitModel/Operation.src/M000013.html +20 -5
- data/ref/ruby/classes/Hw5UnitModel/Operation.src/M000014.html +18 -0
- data/ref/ruby/classes/Hw5UnitModel.html +24 -24
- data/ref/ruby/classes/Hw5UnitModel.src/M000009.html +7 -25
- data/ref/ruby/classes/Hw5UnitModel.src/M000010.html +25 -9
- data/ref/ruby/classes/Hw5UnitModel.src/M000011.html +22 -0
- data/ref/ruby/classes/Hw5_unit.html +5 -5
- data/ref/ruby/classes/Hw5_unit_spec.html +15 -15
- data/ref/ruby/classes/Hw5_unit_spec.src/M000024.html +8 -8
- data/ref/ruby/classes/Hw5_unit_spec.src/M000025.html +8 -54
- data/ref/ruby/classes/Hw5_unit_spec.src/M000026.html +67 -0
- data/ref/ruby/classes/InputGenerator.html +30 -30
- data/ref/ruby/classes/InputGenerator.src/M000028.html +5 -5
- data/ref/ruby/classes/InputGenerator.src/M000029.html +5 -6
- data/ref/ruby/classes/InputGenerator.src/M000030.html +6 -25
- data/ref/ruby/classes/InputGenerator.src/M000031.html +25 -6
- data/ref/ruby/classes/InputGenerator.src/M000032.html +6 -6
- data/ref/ruby/classes/InputGenerator.src/M000033.html +19 -0
- data/ref/ruby/classes/MaximumCounterValue.html +10 -10
- data/ref/ruby/classes/MaximumCounterValue.src/M000036.html +10 -8
- data/ref/ruby/classes/MaximumCounterValue.src/M000037.html +21 -0
- data/ref/ruby/classes/ModuleInfo.html +10 -10
- data/ref/ruby/classes/ModuleInfo.src/M000019.html +31 -13
- data/ref/ruby/classes/ModuleInfo.src/M000020.html +26 -0
- data/ref/ruby/classes/OutputInfo.html +5 -10
- data/ref/ruby/classes/OutputInfo.src/{M000017.html → M000018.html} +36 -36
- data/ref/ruby/classes/ResettedCounterValue.html +15 -15
- data/ref/ruby/classes/ResettedCounterValue.src/M000015.html +6 -5
- data/ref/ruby/classes/ResettedCounterValue.src/M000016.html +5 -10
- data/ref/ruby/classes/ResettedCounterValue.src/M000017.html +23 -0
- data/ref/ruby/classes/RubyVPI.html +0 -46
- data/ref/ruby/classes/RubyVPI.src/M000050.html +24 -24
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.html +35 -35
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000042.html +9 -31
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000043.html +31 -69
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000044.html +69 -114
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000045.html +114 -13
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000046.html +13 -5
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000047.html +18 -0
- data/ref/ruby/classes/String.html +5 -5
- data/ref/ruby/classes/Template.html +5 -5
- data/ref/ruby/classes/TestHw5UnitModel.html +15 -15
- data/ref/ruby/classes/TestHw5UnitModel.src/M000021.html +6 -6
- data/ref/ruby/classes/TestHw5UnitModel.src/M000022.html +6 -51
- data/ref/ruby/classes/TestHw5UnitModel.src/M000023.html +64 -0
- data/ref/ruby/created.rid +1 -1
- data/ref/ruby/files/bin/generate_test_rb.html +6 -6
- data/ref/ruby/files/bin/generate_test_tpl/bench_rb.html +1 -1
- data/ref/ruby/files/bin/generate_test_tpl/design_rb.html +1 -1
- data/ref/ruby/files/bin/generate_test_tpl/proto_rb.html +1 -1
- data/ref/ruby/files/bin/generate_test_tpl/spec_rb.html +6 -6
- data/ref/ruby/files/bin/header_to_ruby_rb.html +1 -1
- data/ref/ruby/files/ext/extconf_rb.html +1 -1
- data/ref/ruby/files/gem_extconf_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/erb_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rake_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rdoc_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rspec_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_proxy_rb.html +108 -0
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.html +78 -2
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.src/M000001.html +20 -0
- data/ref/ruby/files/lib/ruby-vpi/vpi_util_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_rspecTest_bench_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_rspecTest_design_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_rspecTest_proto_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_rspecTest_spec_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_unitTest_bench_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_unitTest_design_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_unitTest_proto_rb.html +1 -1
- data/ref/ruby/files/samp/counter/counter_unitTest_spec_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/Hw5UnitModel_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/InputGenerator_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/TestHw5UnitModel_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/hw5_unit_bench_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/hw5_unit_design_rb.html +1 -1
- data/ref/ruby/files/samp/pipelined_alu/hw5_unit_spec_rb.html +1 -1
- data/ref/ruby/fr_file_index.html +1 -0
- data/ref/ruby/fr_method_index.html +48 -48
- data/samp/counter/Rakefile +1 -1
- data/samp/pipelined_alu/Rakefile +1 -1
- metadata +41 -41
- data/ref/ruby/classes/Counter.src/M000037.html +0 -20
- data/ref/ruby/classes/FileUtils.src/M000047.html +0 -18
- data/ref/ruby/classes/Hw5UnitModel/Operation.src/M000011.html +0 -25
- data/ref/ruby/classes/Hw5UnitModel.src/M000008.html +0 -20
- data/ref/ruby/classes/Hw5_unit_spec.src/M000023.html +0 -21
- data/ref/ruby/classes/MaximumCounterValue.src/M000035.html +0 -23
- data/ref/ruby/classes/ModuleInfo.src/M000018.html +0 -44
- data/ref/ruby/classes/ResettedCounterValue.src/M000014.html +0 -19
- data/ref/ruby/classes/RubyVPI.src/M000049.html +0 -18
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000041.html +0 -22
- data/ref/ruby/classes/TestHw5UnitModel.src/M000020.html +0 -19
- data/tpl/runner.rake +0 -96
- /data/{tpl/launcher.rake → lib/ruby-vpi/runner_proxy.rb} +0 -0
- /data/{tpl → lib/ruby-vpi}/synopsys_vcs.tab +0 -0
- /data/ref/ruby/classes/ERB.src/{M000034.html → M000035.html} +0 -0
- /data/ref/ruby/classes/Hw5UnitModel.src/{M000006.html → M000007.html} +0 -0
- /data/ref/ruby/classes/Hw5_unit.src/{M000003.html → M000004.html} +0 -0
- /data/ref/ruby/classes/String.src/{M000033.html → M000034.html} +0 -0
- /data/ref/ruby/classes/Template.src/{M000026.html → M000027.html} +0 -0
- /data/ref/ruby/files/bin/generate_test_rb.src/{M000001.html → M000002.html} +0 -0
- /data/ref/ruby/files/bin/generate_test_tpl/spec_rb.src/{M000002.html → M000003.html} +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>parse_declarations (ModuleInfo)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File bin/generate_test.rb, line 115</span>
|
14
|
+
115: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_declarations</span> <span class="ruby-identifier">aInput</span>
|
15
|
+
116: <span class="ruby-identifier">input</span> = <span class="ruby-identifier">aInput</span>.<span class="ruby-identifier">dup</span>
|
16
|
+
117:
|
17
|
+
118: <span class="ruby-comment cmt"># remove single-line comments</span>
|
18
|
+
119: <span class="ruby-identifier">input</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">%r{//.*$}</span>, <span class="ruby-value str">''</span>
|
19
|
+
120:
|
20
|
+
121: <span class="ruby-comment cmt"># remove multi-line comments</span>
|
21
|
+
122: <span class="ruby-identifier">input</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">%r{/\*.*?\*/}</span><span class="ruby-identifier">m</span>, <span class="ruby-value str">''</span>
|
22
|
+
123:
|
23
|
+
124: <span class="ruby-identifier">input</span>.<span class="ruby-identifier">scan</span> <span class="ruby-regexp re">%r{module.*?;}</span><span class="ruby-identifier">m</span>
|
24
|
+
125: <span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -92,7 +92,7 @@ Holds information about the output destinations of a parsed Verilog module.
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000018">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -124,11 +124,6 @@ Holds information about the output destinations of a parsed Verilog module.
|
|
124
124
|
<td>=</td>
|
125
125
|
<td class="context-item-value">'.rake'</td>
|
126
126
|
</tr>
|
127
|
-
<tr class="top-aligned-row context-row">
|
128
|
-
<td class="context-item-name">RUNNER_TMPL_REL_PATH</td>
|
129
|
-
<td>=</td>
|
130
|
-
<td class="context-item-value">'tpl/runner.rake'</td>
|
131
|
-
</tr>
|
132
127
|
<tr class="top-aligned-row context-row">
|
133
128
|
<td class="context-item-name">SPEC_FORMATS</td>
|
134
129
|
<td>=</td>
|
@@ -275,12 +270,12 @@ Holds information about the output destinations of a parsed Verilog module.
|
|
275
270
|
<div id="methods">
|
276
271
|
<h3 class="section-bar">Public Class methods</h3>
|
277
272
|
|
278
|
-
<div id="method-
|
279
|
-
<a name="
|
273
|
+
<div id="method-M000018" class="method-detail">
|
274
|
+
<a name="M000018"></a>
|
280
275
|
|
281
276
|
<div class="method-heading">
|
282
|
-
<a href="OutputInfo.src/
|
283
|
-
onclick="popupCode('OutputInfo.src/
|
277
|
+
<a href="OutputInfo.src/M000018.html" target="Code" class="method-signature"
|
278
|
+
onclick="popupCode('OutputInfo.src/M000018.html');return false;">
|
284
279
|
<span class="method-name">new</span><span class="method-args">(aModuleName, aSpecFormat, aTestName, aRubyVpiPath)</span>
|
285
280
|
</a>
|
286
281
|
</div>
|
@@ -10,42 +10,42 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File bin/generate_test.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File bin/generate_test.rb, line 142</span>
|
14
|
+
142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aModuleName</span>, <span class="ruby-identifier">aSpecFormat</span>, <span class="ruby-identifier">aTestName</span>, <span class="ruby-identifier">aRubyVpiPath</span>
|
15
|
+
143: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">SPEC_FORMATS</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">aSpecFormat</span>
|
16
|
+
144: <span class="ruby-ivar">@specFormat</span> = <span class="ruby-identifier">aSpecFormat</span>
|
17
|
+
145: <span class="ruby-ivar">@testName</span> = <span class="ruby-identifier">aTestName</span>
|
18
|
+
146:
|
19
|
+
147: <span class="ruby-ivar">@suffix</span> = <span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@testName</span>
|
20
|
+
148: <span class="ruby-ivar">@benchSuffix</span> = <span class="ruby-ivar">@suffix</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_bench'</span>
|
21
|
+
149: <span class="ruby-ivar">@designSuffix</span> = <span class="ruby-ivar">@suffix</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_design'</span>
|
22
|
+
150: <span class="ruby-ivar">@specSuffix</span> = <span class="ruby-ivar">@suffix</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_spec'</span>
|
23
|
+
151: <span class="ruby-ivar">@runnerSuffix</span> = <span class="ruby-ivar">@suffix</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_runner'</span>
|
24
|
+
152: <span class="ruby-ivar">@protoSuffix</span> = <span class="ruby-ivar">@suffix</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_proto'</span>
|
25
|
+
153:
|
26
|
+
154: <span class="ruby-ivar">@rubyVpiPath</span> = <span class="ruby-identifier">aRubyVpiPath</span>
|
25
27
|
155:
|
26
|
-
156: <span class="ruby-ivar">@
|
27
|
-
157:
|
28
|
-
158:
|
29
|
-
159: <span class="ruby-ivar">@
|
30
|
-
160:
|
31
|
-
161:
|
32
|
-
162: <span class="ruby-ivar">@
|
33
|
-
163:
|
34
|
-
164:
|
35
|
-
165: <span class="ruby-ivar">@
|
36
|
-
166:
|
37
|
-
167:
|
38
|
-
168: <span class="ruby-ivar">@
|
39
|
-
169:
|
40
|
-
170:
|
41
|
-
171: <span class="ruby-ivar">@
|
42
|
-
172:
|
43
|
-
173: <span class="ruby-ivar">@
|
44
|
-
174:
|
45
|
-
175: <span class="ruby-ivar">@
|
46
|
-
176:
|
47
|
-
177:
|
48
|
-
178: <span class="ruby-ivar">@runnerPath</span> = <span class="ruby-ivar">@runnerName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUNNER_EXT</span>
|
49
|
-
179: <span class="ruby-keyword kw">end</span></pre>
|
28
|
+
156: <span class="ruby-ivar">@verilogBenchName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@benchSuffix</span>
|
29
|
+
157: <span class="ruby-ivar">@verilogBenchPath</span> = <span class="ruby-ivar">@verilogBenchName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">VERILOG_EXT</span>
|
30
|
+
158:
|
31
|
+
159: <span class="ruby-ivar">@rubyBenchName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@benchSuffix</span>
|
32
|
+
160: <span class="ruby-ivar">@rubyBenchPath</span> = <span class="ruby-ivar">@rubyBenchName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_EXT</span>
|
33
|
+
161:
|
34
|
+
162: <span class="ruby-ivar">@designName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@designSuffix</span>
|
35
|
+
163: <span class="ruby-ivar">@designPath</span> = <span class="ruby-ivar">@designName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_EXT</span>
|
36
|
+
164:
|
37
|
+
165: <span class="ruby-ivar">@protoName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@protoSuffix</span>
|
38
|
+
166: <span class="ruby-ivar">@protoPath</span> = <span class="ruby-ivar">@protoName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_EXT</span>
|
39
|
+
167:
|
40
|
+
168: <span class="ruby-ivar">@specName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@specSuffix</span>
|
41
|
+
169: <span class="ruby-ivar">@specPath</span> = <span class="ruby-ivar">@specName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_EXT</span>
|
42
|
+
170:
|
43
|
+
171: <span class="ruby-ivar">@designClassName</span> = <span class="ruby-identifier">aModuleName</span>.<span class="ruby-identifier">capitalize</span>
|
44
|
+
172: <span class="ruby-ivar">@protoClassName</span> = <span class="ruby-ivar">@designClassName</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'Proto'</span>
|
45
|
+
173: <span class="ruby-ivar">@specClassName</span> = <span class="ruby-ivar">@specName</span>.<span class="ruby-identifier">capitalize</span>
|
46
|
+
174:
|
47
|
+
175: <span class="ruby-ivar">@runnerName</span> = <span class="ruby-identifier">aModuleName</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@runnerSuffix</span>
|
48
|
+
176: <span class="ruby-ivar">@runnerPath</span> = <span class="ruby-ivar">@runnerName</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUNNER_EXT</span>
|
49
|
+
177: <span class="ruby-keyword kw">end</span></pre>
|
50
50
|
</body>
|
51
51
|
</html>
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000015">setup</a>
|
90
|
+
<a href="#M000017">test_increment</a>
|
91
|
+
<a href="#M000016">test_zero</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -117,12 +117,12 @@
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Instance methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000015" class="method-detail">
|
121
|
+
<a name="M000015"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="ResettedCounterValue.src/
|
125
|
-
onclick="popupCode('ResettedCounterValue.src/
|
124
|
+
<a href="ResettedCounterValue.src/M000015.html" target="Code" class="method-signature"
|
125
|
+
onclick="popupCode('ResettedCounterValue.src/M000015.html');return false;">
|
126
126
|
<span class="method-name">setup</span><span class="method-args">()</span>
|
127
127
|
</a>
|
128
128
|
</div>
|
@@ -131,12 +131,12 @@
|
|
131
131
|
</div>
|
132
132
|
</div>
|
133
133
|
|
134
|
-
<div id="method-
|
135
|
-
<a name="
|
134
|
+
<div id="method-M000017" class="method-detail">
|
135
|
+
<a name="M000017"></a>
|
136
136
|
|
137
137
|
<div class="method-heading">
|
138
|
-
<a href="ResettedCounterValue.src/
|
139
|
-
onclick="popupCode('ResettedCounterValue.src/
|
138
|
+
<a href="ResettedCounterValue.src/M000017.html" target="Code" class="method-signature"
|
139
|
+
onclick="popupCode('ResettedCounterValue.src/M000017.html');return false;">
|
140
140
|
<span class="method-name">test_increment</span><span class="method-args">()</span>
|
141
141
|
</a>
|
142
142
|
</div>
|
@@ -145,12 +145,12 @@
|
|
145
145
|
</div>
|
146
146
|
</div>
|
147
147
|
|
148
|
-
<div id="method-
|
149
|
-
<a name="
|
148
|
+
<div id="method-M000016" class="method-detail">
|
149
|
+
<a name="M000016"></a>
|
150
150
|
|
151
151
|
<div class="method-heading">
|
152
|
-
<a href="ResettedCounterValue.src/
|
153
|
-
onclick="popupCode('ResettedCounterValue.src/
|
152
|
+
<a href="ResettedCounterValue.src/M000016.html" target="Code" class="method-signature"
|
153
|
+
onclick="popupCode('ResettedCounterValue.src/M000016.html');return false;">
|
154
154
|
<span class="method-name">test_zero</span><span class="method-args">()</span>
|
155
155
|
</a>
|
156
156
|
</div>
|
@@ -5,14 +5,15 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>setup (ResettedCounterValue)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File samp/counter/counter_unitTest_spec.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File samp/counter/counter_unitTest_spec.rb, line 12</span>
|
14
|
+
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
|
15
|
+
13: <span class="ruby-ivar">@design</span> = <span class="ruby-constant">Counter</span>.<span class="ruby-identifier">new</span>
|
16
|
+
14: <span class="ruby-ivar">@design</span>.<span class="ruby-identifier">reset!</span>
|
17
|
+
15: <span class="ruby-keyword kw">end</span></pre>
|
17
18
|
</body>
|
18
19
|
</html>
|
@@ -5,19 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>test_zero (ResettedCounterValue)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File samp/counter/counter_unitTest_spec.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
24:
|
18
|
-
25: <span class="ruby-comment cmt"># advance the clock</span>
|
19
|
-
26: <span class="ruby-identifier">relay_verilog</span>
|
20
|
-
27: <span class="ruby-keyword kw">end</span>
|
21
|
-
28: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File samp/counter/counter_unitTest_spec.rb, line 17</span>
|
14
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_zero</span>
|
15
|
+
18: <span class="ruby-identifier">assert_equal</span> <span class="ruby-value">0</span>, <span class="ruby-ivar">@design</span>.<span class="ruby-identifier">count</span>.<span class="ruby-identifier">intVal</span>
|
16
|
+
19: <span class="ruby-keyword kw">end</span></pre>
|
22
17
|
</body>
|
23
18
|
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>test_increment (ResettedCounterValue)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File samp/counter/counter_unitTest_spec.rb, line 21</span>
|
14
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_increment</span>
|
15
|
+
22: <span class="ruby-constant">LIMIT</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
16
|
+
23: <span class="ruby-identifier">assert_equal</span> <span class="ruby-identifier">i</span>, <span class="ruby-ivar">@design</span>.<span class="ruby-identifier">count</span>.<span class="ruby-identifier">intVal</span>
|
17
|
+
24:
|
18
|
+
25: <span class="ruby-comment cmt"># advance the clock</span>
|
19
|
+
26: <span class="ruby-identifier">relay_verilog</span>
|
20
|
+
27: <span class="ruby-keyword kw">end</span>
|
21
|
+
28: <span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -87,7 +87,6 @@ Provides configuration information of the Ruby-VPI project.
|
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
89
|
<a href="#M000050">init_bench</a>
|
90
|
-
<a href="#M000049">load_runner_template</a>
|
91
90
|
</div>
|
92
91
|
</div>
|
93
92
|
|
@@ -99,34 +98,6 @@ Provides configuration information of the Ruby-VPI project.
|
|
99
98
|
<div id="section">
|
100
99
|
|
101
100
|
|
102
|
-
<div id="constants-list">
|
103
|
-
<h3 class="section-bar">Constants</h3>
|
104
|
-
|
105
|
-
<div class="name-list">
|
106
|
-
<table summary="Constants">
|
107
|
-
<tr class="top-aligned-row context-row">
|
108
|
-
<td class="context-item-name">LIBRARY_PATH</td>
|
109
|
-
<td>=</td>
|
110
|
-
<td class="context-item-value">File.dirname(__FILE__)</td>
|
111
|
-
</tr>
|
112
|
-
<tr class="top-aligned-row context-row">
|
113
|
-
<td class="context-item-name">PATH</td>
|
114
|
-
<td>=</td>
|
115
|
-
<td class="context-item-value">File.dirname(LIBRARY_PATH)</td>
|
116
|
-
</tr>
|
117
|
-
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">TEMPLATE_PATH</td>
|
119
|
-
<td>=</td>
|
120
|
-
<td class="context-item-value">File.join(PATH, 'tpl')</td>
|
121
|
-
</tr>
|
122
|
-
<tr class="top-aligned-row context-row">
|
123
|
-
<td class="context-item-name">OBJECT_PATH</td>
|
124
|
-
<td>=</td>
|
125
|
-
<td class="context-item-value">File.join(PATH, 'obj')</td>
|
126
|
-
</tr>
|
127
|
-
</table>
|
128
|
-
</div>
|
129
|
-
</div>
|
130
101
|
|
131
102
|
|
132
103
|
|
@@ -154,23 +125,6 @@ Initializes the current bench using the given parameters.
|
|
154
125
|
</div>
|
155
126
|
</div>
|
156
127
|
|
157
|
-
<div id="method-M000049" class="method-detail">
|
158
|
-
<a name="M000049"></a>
|
159
|
-
|
160
|
-
<div class="method-heading">
|
161
|
-
<a href="RubyVPI.src/M000049.html" target="Code" class="method-signature"
|
162
|
-
onclick="popupCode('RubyVPI.src/M000049.html');return false;">
|
163
|
-
<span class="method-name">load_runner_template</span><span class="method-args">()</span>
|
164
|
-
</a>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div class="method-description">
|
168
|
-
<p>
|
169
|
-
Loads the test runner template.
|
170
|
-
</p>
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
128
|
|
175
129
|
</div>
|
176
130
|
|
@@ -10,30 +10,30 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi.rb, line
|
14
|
-
|
15
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi.rb, line 24</span>
|
14
|
+
24: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init_bench</span> <span class="ruby-identifier">aTestPrefix</span>, <span class="ruby-identifier">aProtoClassId</span>
|
15
|
+
25: <span class="ruby-constant">Vpi</span><span class="ruby-operator">::</span><span class="ruby-identifier">relay_verilog</span> <span class="ruby-comment cmt"># service the $ruby_init() callback</span>
|
16
|
+
26:
|
17
|
+
27: <span class="ruby-identifier">require</span> <span class="ruby-value str">'ruby-vpi/vpi_util'</span>
|
18
|
+
28:
|
19
|
+
29: <span class="ruby-comment cmt"># load the design under test</span>
|
20
|
+
30: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_design.rb"</span>
|
21
|
+
31:
|
22
|
+
32: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PROTO'</span>]
|
23
|
+
33: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_proto.rb"</span>
|
24
|
+
34:
|
25
|
+
35: <span class="ruby-identifier">proto</span> = <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">aProtoClassId</span>).<span class="ruby-identifier">new</span>
|
16
26
|
36:
|
17
|
-
37:
|
18
|
-
38:
|
19
|
-
39:
|
20
|
-
40:
|
21
|
-
41:
|
22
|
-
42:
|
23
|
-
43: <span class="ruby-identifier">
|
24
|
-
44:
|
25
|
-
45:
|
26
|
-
46:
|
27
|
-
47:
|
28
|
-
48: <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">:relay_verilog</span> <span class="ruby-keyword kw">do</span>
|
29
|
-
49: <span class="ruby-identifier">proto</span>.<span class="ruby-identifier">simulate!</span>
|
30
|
-
50: <span class="ruby-keyword kw">end</span>
|
31
|
-
51: <span class="ruby-keyword kw">end</span>
|
32
|
-
52:
|
33
|
-
53: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{aTestPrefix}: verifying prototype instead of design"</span>
|
34
|
-
54: <span class="ruby-keyword kw">end</span>
|
35
|
-
55:
|
36
|
-
56: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_spec.rb"</span>
|
37
|
-
57: <span class="ruby-keyword kw">end</span></pre>
|
27
|
+
37: <span class="ruby-constant">Vpi</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
28
|
+
38: <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">:relay_verilog</span> <span class="ruby-keyword kw">do</span>
|
29
|
+
39: <span class="ruby-identifier">proto</span>.<span class="ruby-identifier">simulate!</span>
|
30
|
+
40: <span class="ruby-keyword kw">end</span>
|
31
|
+
41: <span class="ruby-keyword kw">end</span>
|
32
|
+
42:
|
33
|
+
43: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{aTestPrefix}: verifying prototype instead of design"</span>
|
34
|
+
44: <span class="ruby-keyword kw">end</span>
|
35
|
+
45:
|
36
|
+
46: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_spec.rb"</span>
|
37
|
+
47: <span class="ruby-keyword kw">end</span></pre>
|
38
38
|
</body>
|
39
39
|
</html>
|
@@ -95,7 +95,7 @@ You can read and write values using <tt>S_vpi_value</tt> objects through
|
|
95
95
|
the following methods.
|
96
96
|
</p>
|
97
97
|
<ul>
|
98
|
-
<li><a href="TYPE_p_unsigned_int.html#
|
98
|
+
<li><a href="TYPE_p_unsigned_int.html#M000042">get_value_wrapper</a>
|
99
99
|
|
100
100
|
</li>
|
101
101
|
<li>Vpi::vpi_get_value
|
@@ -112,10 +112,10 @@ following methods.
|
|
112
112
|
</p>
|
113
113
|
<ul>
|
114
114
|
<li>value = handle.<a
|
115
|
-
href="TYPE_p_unsigned_int.html#
|
115
|
+
href="TYPE_p_unsigned_int.html#M000043">get_value</a>(format)
|
116
116
|
|
117
117
|
</li>
|
118
|
-
<li>handle.<a href="TYPE_p_unsigned_int.html#
|
118
|
+
<li>handle.<a href="TYPE_p_unsigned_int.html#M000044">put_value</a>(value,
|
119
119
|
format)
|
120
120
|
|
121
121
|
</li>
|
@@ -156,7 +156,7 @@ The methods shown above can be used like so:
|
|
156
156
|
To read a handle’s value as an integer:
|
157
157
|
</p>
|
158
158
|
<ul>
|
159
|
-
<li>handle.<a href="TYPE_p_unsigned_int.html#
|
159
|
+
<li>handle.<a href="TYPE_p_unsigned_int.html#M000043">get_value</a>(VpiIntVal)
|
160
160
|
|
161
161
|
</li>
|
162
162
|
<li>handle.intVal
|
@@ -167,7 +167,7 @@ To read a handle’s value as an integer:
|
|
167
167
|
To write a handle’s value as an integer:
|
168
168
|
</p>
|
169
169
|
<ul>
|
170
|
-
<li>handle.<a href="TYPE_p_unsigned_int.html#
|
170
|
+
<li>handle.<a href="TYPE_p_unsigned_int.html#M000044">put_value</a>(15,
|
171
171
|
VpiIntVal)
|
172
172
|
|
173
173
|
</li>
|
@@ -185,12 +185,12 @@ VpiIntVal)
|
|
185
185
|
<h3 class="section-bar">Methods</h3>
|
186
186
|
|
187
187
|
<div class="name-list">
|
188
|
-
<a href="#
|
189
|
-
<a href="#
|
190
|
-
<a href="#
|
191
|
-
<a href="#
|
192
|
-
<a href="#
|
193
|
-
<a href="#
|
188
|
+
<a href="#M000046">[]</a>
|
189
|
+
<a href="#M000047">each</a>
|
190
|
+
<a href="#M000043">get_value</a>
|
191
|
+
<a href="#M000042">get_value_wrapper</a>
|
192
|
+
<a href="#M000045">method_missing</a>
|
193
|
+
<a href="#M000044">put_value</a>
|
194
194
|
</div>
|
195
195
|
</div>
|
196
196
|
|
@@ -247,12 +247,12 @@ VpiIntVal)
|
|
247
247
|
<div id="methods">
|
248
248
|
<h3 class="section-bar">Public Instance methods</h3>
|
249
249
|
|
250
|
-
<div id="method-
|
251
|
-
<a name="
|
250
|
+
<div id="method-M000046" class="method-detail">
|
251
|
+
<a name="M000046"></a>
|
252
252
|
|
253
253
|
<div class="method-heading">
|
254
|
-
<a href="TYPE_p_unsigned_int.src/
|
255
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
254
|
+
<a href="TYPE_p_unsigned_int.src/M000046.html" target="Code" class="method-signature"
|
255
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000046.html');return false;">
|
256
256
|
<span class="method-name">[]</span><span class="method-args">(aType)</span>
|
257
257
|
</a>
|
258
258
|
</div>
|
@@ -264,12 +264,12 @@ Returns an array of handles of the given type.
|
|
264
264
|
</div>
|
265
265
|
</div>
|
266
266
|
|
267
|
-
<div id="method-
|
268
|
-
<a name="
|
267
|
+
<div id="method-M000047" class="method-detail">
|
268
|
+
<a name="M000047"></a>
|
269
269
|
|
270
270
|
<div class="method-heading">
|
271
|
-
<a href="TYPE_p_unsigned_int.src/
|
272
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
271
|
+
<a href="TYPE_p_unsigned_int.src/M000047.html" target="Code" class="method-signature"
|
272
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000047.html');return false;">
|
273
273
|
<span class="method-name">each</span><span class="method-args">(aType {|handle| ...}</span>
|
274
274
|
</a>
|
275
275
|
</div>
|
@@ -282,12 +282,12 @@ once for each handle.
|
|
282
282
|
</div>
|
283
283
|
</div>
|
284
284
|
|
285
|
-
<div id="method-
|
286
|
-
<a name="
|
285
|
+
<div id="method-M000043" class="method-detail">
|
286
|
+
<a name="M000043"></a>
|
287
287
|
|
288
288
|
<div class="method-heading">
|
289
|
-
<a href="TYPE_p_unsigned_int.src/
|
290
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
289
|
+
<a href="TYPE_p_unsigned_int.src/M000043.html" target="Code" class="method-signature"
|
290
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000043.html');return false;">
|
291
291
|
<span class="method-name">get_value</span><span class="method-args">(aFormat = VpiObjTypeVal)</span>
|
292
292
|
</a>
|
293
293
|
</div>
|
@@ -301,12 +301,12 @@ format.
|
|
301
301
|
</div>
|
302
302
|
</div>
|
303
303
|
|
304
|
-
<div id="method-
|
305
|
-
<a name="
|
304
|
+
<div id="method-M000042" class="method-detail">
|
305
|
+
<a name="M000042"></a>
|
306
306
|
|
307
307
|
<div class="method-heading">
|
308
|
-
<a href="TYPE_p_unsigned_int.src/
|
309
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
308
|
+
<a href="TYPE_p_unsigned_int.src/M000042.html" target="Code" class="method-signature"
|
309
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000042.html');return false;">
|
310
310
|
<span class="method-name">get_value_wrapper</span><span class="method-args">(aFormat)</span>
|
311
311
|
</a>
|
312
312
|
</div>
|
@@ -319,12 +319,12 @@ object.
|
|
319
319
|
</div>
|
320
320
|
</div>
|
321
321
|
|
322
|
-
<div id="method-
|
323
|
-
<a name="
|
322
|
+
<div id="method-M000045" class="method-detail">
|
323
|
+
<a name="M000045"></a>
|
324
324
|
|
325
325
|
<div class="method-heading">
|
326
|
-
<a href="TYPE_p_unsigned_int.src/
|
327
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
326
|
+
<a href="TYPE_p_unsigned_int.src/M000045.html" target="Code" class="method-signature"
|
327
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000045.html');return false;">
|
328
328
|
<span class="method-name">method_missing</span><span class="method-args">(aMsg, *aArgs, &aBlockArg)</span>
|
329
329
|
</a>
|
330
330
|
</div>
|
@@ -336,12 +336,12 @@ Enables read and write access to VPI properties of this handle.
|
|
336
336
|
</div>
|
337
337
|
</div>
|
338
338
|
|
339
|
-
<div id="method-
|
340
|
-
<a name="
|
339
|
+
<div id="method-M000044" class="method-detail">
|
340
|
+
<a name="M000044"></a>
|
341
341
|
|
342
342
|
<div class="method-heading">
|
343
|
-
<a href="TYPE_p_unsigned_int.src/
|
344
|
-
onclick="popupCode('TYPE_p_unsigned_int.src/
|
343
|
+
<a href="TYPE_p_unsigned_int.src/M000044.html" target="Code" class="method-signature"
|
344
|
+
onclick="popupCode('TYPE_p_unsigned_int.src/M000044.html');return false;">
|
345
345
|
<span class="method-name">put_value</span><span class="method-args">(aValue, aFormat = nil, aTime = nil, aDelay = VpiNoDelay)</span>
|
346
346
|
</a>
|
347
347
|
</div>
|