ruby-vpi 17.0.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +8 -6
- data/Rakefile +4 -4
- data/doc/common.css +6 -9
- data/doc/common.inc +3 -3
- data/doc/common.tpl +14 -6
- data/doc/history.html +152 -44
- data/doc/history.inc +55 -3
- data/doc/history.yaml +62 -2
- data/doc/intro.inc +20 -16
- data/doc/manual.doc +23 -9
- data/doc/manual.html +232 -200
- data/doc/memo.doc +7 -6
- data/doc/memo.html +28 -17
- data/doc/readme.doc +1 -1
- data/doc/readme.html +51 -35
- data/doc/rss.xml +96 -70
- data/ext/Rakefile +24 -11
- data/ext/swig_vpi.h +1 -1
- data/ext/swig_wrap.cin +17 -42
- data/lib/ruby-vpi/pli.tab +1 -0
- data/lib/ruby-vpi/runner.rb +34 -10
- data/lib/ruby-vpi/vpi.rb +483 -438
- 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_0x6d.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/index.html +1 -1
- data/ref/c/main_8c.html +1 -1
- data/ref/c/main_8h.html +1 -1
- data/ref/c/relay_8c.html +1 -1
- data/ref/c/relay_8h.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/verilog_8h.html +1 -1
- data/ref/c/vlog_8c.html +1 -1
- data/ref/c/vlog_8h.html +1 -1
- data/ref/c/vpi__user_8h.html +1 -1
- data/ref/ruby/classes/RDoc.html +5 -5
- data/ref/ruby/classes/RDoc.src/{M000058.html → M000061.html} +0 -0
- data/ref/ruby/classes/String.html +24 -24
- data/ref/ruby/classes/String.src/M000022.html +23 -5
- data/ref/ruby/classes/String.src/M000023.html +28 -5
- data/ref/ruby/classes/String.src/M000024.html +5 -23
- data/ref/ruby/classes/String.src/M000025.html +5 -28
- data/ref/ruby/classes/Vpi/Handle.html +94 -49
- data/ref/ruby/classes/Vpi/Handle.src/M000035.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000036.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000037.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000038.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000039.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000040.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000041.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000042.html +4 -4
- data/ref/ruby/classes/Vpi/Handle.src/M000043.html +7 -7
- data/ref/ruby/classes/Vpi/Handle.src/M000044.html +7 -7
- data/ref/ruby/classes/Vpi/Handle.src/M000045.html +8 -8
- data/ref/ruby/classes/Vpi/Handle.src/M000046.html +36 -30
- data/ref/ruby/classes/Vpi/Handle.src/M000047.html +72 -67
- data/ref/ruby/classes/Vpi/Handle.src/M000048.html +6 -17
- data/ref/ruby/classes/Vpi/Handle.src/M000049.html +19 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000050.html +5 -5
- data/ref/ruby/classes/Vpi/Handle.src/M000051.html +16 -10
- data/ref/ruby/classes/Vpi/Handle.src/M000053.html +5 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000054.html +11 -76
- data/ref/ruby/classes/Vpi/Handle.src/M000056.html +31 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000057.html +40 -0
- data/ref/ruby/classes/Vpi/S_vpi_time.html +16 -16
- data/ref/ruby/classes/Vpi/S_vpi_time.src/{M000055.html → M000058.html} +4 -4
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000059.html +19 -0
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000032.html +4 -4
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000033.html +4 -4
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000034.html +4 -4
- data/ref/ruby/classes/Vpi.html +0 -7
- data/ref/ruby/classes/Vpi.src/M000029.html +14 -14
- data/ref/ruby/classes/Vpi.src/M000030.html +25 -24
- data/ref/ruby/classes/Vpi.src/M000031.html +6 -6
- data/ref/ruby/created.rid +1 -1
- data/ref/ruby/files/bin/convert_rb.html +1 -1
- data/ref/ruby/files/bin/generate_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/erb_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/float_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/integer_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rake_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rcov_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/rdoc_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_boot_loader_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_proxy_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/util_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/verilog_parser_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/vpi_rb.html +8 -1
- data/ref/ruby/files/lib/ruby-vpi_rb.html +1 -1
- data/ref/ruby/fr_method_index.html +19 -16
- data/samp/register_file/register_file.v +1 -1
- data/samp/register_file/register_file_spec.rb +9 -5
- metadata +42 -38
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000056.html +0 -19
@@ -10,9 +10,9 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 69</span>
|
14
|
+
69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">high?</span>
|
15
|
+
70: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">intVal</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
16
|
+
71: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 74</span>
|
14
|
+
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">high!</span>
|
15
|
+
75: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">intVal</span> = <span class="ruby-value">1</span>
|
16
|
+
76: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 79</span>
|
14
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">low?</span>
|
15
|
+
80: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">hexStrVal</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^0+$/</span>
|
16
|
+
81: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 84</span>
|
14
|
+
84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">low!</span>
|
15
|
+
85: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">intVal</span> = <span class="ruby-value">0</span>
|
16
|
+
86: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,12 +10,12 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 89</span>
|
14
|
+
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">posedge?</span>
|
15
|
+
90: <span class="ruby-identifier">old</span> = <span class="ruby-ivar">@lastVal</span>
|
16
|
+
91: <span class="ruby-identifier">new</span> = <span class="ruby-ivar">@lastVal</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">intVal</span>
|
17
|
+
92:
|
18
|
+
93: <span class="ruby-identifier">old</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">new</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
19
|
+
94: <span class="ruby-keyword kw">end</span></pre>
|
20
20
|
</body>
|
21
21
|
</html>
|
@@ -10,12 +10,12 @@
|
|
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>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 97</span>
|
14
|
+
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">negedge?</span>
|
15
|
+
98: <span class="ruby-identifier">old</span> = <span class="ruby-ivar">@lastVal</span>
|
16
|
+
99: <span class="ruby-identifier">new</span> = <span class="ruby-ivar">@lastVal</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">intVal</span>
|
17
|
+
100:
|
18
|
+
101: <span class="ruby-identifier">old</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">new</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
19
|
+
102: <span class="ruby-keyword kw">end</span></pre>
|
20
20
|
</body>
|
21
21
|
</html>
|
@@ -10,13 +10,13 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 107</span>
|
14
|
+
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_value_wrapper</span> <span class="ruby-identifier">aFormat</span>
|
15
|
+
108: <span class="ruby-identifier">val</span> = <span class="ruby-constant">S_vpi_value</span>.<span class="ruby-identifier">new</span>
|
16
|
+
109: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">format</span> = <span class="ruby-identifier">aFormat</span>
|
17
|
+
110:
|
18
|
+
111: <span class="ruby-identifier">vpi_get_value</span> <span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">val</span>
|
19
|
+
112: <span class="ruby-identifier">val</span>
|
20
|
+
113: <span class="ruby-keyword kw">end</span></pre>
|
21
21
|
</body>
|
22
22
|
</html>
|
@@ -10,35 +10,41 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 118</span>
|
14
|
+
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_value</span> <span class="ruby-identifier">aFormat</span> = <span class="ruby-constant">VpiIntVal</span>
|
15
|
+
119: <span class="ruby-identifier">val</span> = <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">aFormat</span>))
|
16
|
+
120:
|
17
|
+
121: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">format</span>
|
18
|
+
122: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiBinStrVal</span>, <span class="ruby-constant">VpiOctStrVal</span>, <span class="ruby-constant">VpiDecStrVal</span>, <span class="ruby-constant">VpiHexStrVal</span>, <span class="ruby-constant">VpiStringVal</span>
|
19
|
+
123: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">str</span>.<span class="ruby-identifier">to_s</span>
|
20
|
+
124:
|
21
|
+
125: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiScalarVal</span>
|
22
|
+
126: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">scalar</span>.<span class="ruby-identifier">to_i</span>
|
23
|
+
127:
|
24
|
+
128: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiIntVal</span>
|
25
|
+
129: <span class="ruby-ivar">@size</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">vpi_get</span>(<span class="ruby-constant">VpiSize</span>, <span class="ruby-keyword kw">self</span>)
|
26
|
+
130:
|
27
|
+
131: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@size</span> <span class="ruby-operator"><</span> <span class="ruby-constant">INTEGER_BITS</span>
|
28
|
+
132: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">integer</span>.<span class="ruby-identifier">to_i</span>
|
29
|
+
133: <span class="ruby-keyword kw">else</span>
|
30
|
+
134: <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-constant">VpiHexStrVal</span>).<span class="ruby-identifier">value</span>.<span class="ruby-identifier">str</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_i</span>(<span class="ruby-value">16</span>)
|
31
|
+
135: <span class="ruby-keyword kw">end</span>
|
32
|
+
136:
|
33
|
+
137: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiRealVal</span>
|
34
|
+
138: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">real</span>.<span class="ruby-identifier">to_f</span>
|
35
|
+
139:
|
36
|
+
140: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiTimeVal</span>
|
37
|
+
141: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">time</span>
|
38
|
+
142:
|
39
|
+
143: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiVectorVal</span>
|
40
|
+
144: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">vector</span>
|
41
|
+
145:
|
42
|
+
146: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiStrengthVal</span>
|
43
|
+
147: <span class="ruby-identifier">val</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">strength</span>
|
44
|
+
148:
|
45
|
+
149: <span class="ruby-keyword kw">else</span>
|
46
|
+
150: <span class="ruby-identifier">raise</span> <span class="ruby-node">"unknown S_vpi_value.format: #{val.format.inspect}"</span>
|
47
|
+
151: <span class="ruby-keyword kw">end</span>
|
48
|
+
152: <span class="ruby-keyword kw">end</span></pre>
|
43
49
|
</body>
|
44
50
|
</html>
|
@@ -10,77 +10,82 @@
|
|
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/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
150: <span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">aFormat</span>)
|
18
|
-
151: <span class="ruby-keyword kw">else</span>
|
19
|
-
152: <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-constant">VpiObjTypeVal</span>).<span class="ruby-identifier">format</span>
|
20
|
-
153: <span class="ruby-keyword kw">end</span>
|
21
|
-
154:
|
22
|
-
155: <span class="ruby-identifier">newVal</span> = <span class="ruby-constant">S_vpi_value</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:format</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">aFormat</span>)
|
23
|
-
156:
|
24
|
-
157: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">aFormat</span>
|
25
|
-
158: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiBinStrVal</span>, <span class="ruby-constant">VpiOctStrVal</span>, <span class="ruby-constant">VpiDecStrVal</span>, <span class="ruby-constant">VpiHexStrVal</span>, <span class="ruby-constant">VpiStringVal</span>
|
26
|
-
159: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">str</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_s</span>
|
27
|
-
160:
|
28
|
-
161: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiScalarVal</span>
|
29
|
-
162: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">scalar</span> = <span class="ruby-identifier">aValue</span>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 160</span>
|
14
|
+
160: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_value</span> <span class="ruby-identifier">aValue</span>, <span class="ruby-identifier">aFormat</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">aTime</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">aDelay</span> = <span class="ruby-constant">VpiNoDelay</span>
|
15
|
+
161: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">vpi_get</span>(<span class="ruby-constant">VpiType</span>, <span class="ruby-keyword kw">self</span>) <span class="ruby-operator">==</span> <span class="ruby-constant">VpiNet</span>
|
16
|
+
162: <span class="ruby-identifier">aDelay</span> = <span class="ruby-constant">VpiForceFlag</span>
|
30
17
|
163:
|
31
|
-
164:
|
32
|
-
165:
|
33
|
-
166:
|
34
|
-
167:
|
35
|
-
168:
|
36
|
-
169:
|
37
|
-
170:
|
38
|
-
171: <span class="ruby-
|
39
|
-
172:
|
40
|
-
173:
|
41
|
-
174: <span class="ruby-
|
42
|
-
175:
|
43
|
-
176:
|
44
|
-
177: <span class="ruby-
|
45
|
-
178:
|
46
|
-
179:
|
47
|
-
180: <span class="ruby-
|
48
|
-
181:
|
49
|
-
182: <span class="ruby-keyword kw">
|
50
|
-
183:
|
51
|
-
184:
|
52
|
-
185:
|
53
|
-
186:
|
54
|
-
187:
|
55
|
-
188:
|
56
|
-
189: <span class="ruby-
|
57
|
-
190:
|
58
|
-
191:
|
59
|
-
192:
|
60
|
-
193:
|
61
|
-
194:
|
62
|
-
195:
|
63
|
-
196:
|
64
|
-
197:
|
65
|
-
198:
|
66
|
-
199:
|
67
|
-
200:
|
68
|
-
201:
|
69
|
-
202:
|
70
|
-
203:
|
18
|
+
164: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">driver</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">VpiDriver</span>].<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">vpiType</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">VpiForce</span>}
|
19
|
+
165: <span class="ruby-identifier">warn</span> <span class="ruby-node">"forcing value #{aValue.inspect} onto wire #{self} that is already driven by #{driver.inspect}"</span>
|
20
|
+
166: <span class="ruby-keyword kw">end</span>
|
21
|
+
167: <span class="ruby-keyword kw">end</span>
|
22
|
+
168:
|
23
|
+
169: <span class="ruby-identifier">aFormat</span> =
|
24
|
+
170: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">aFormat</span>
|
25
|
+
171: <span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">aFormat</span>)
|
26
|
+
172:
|
27
|
+
173: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_int</span>
|
28
|
+
174: <span class="ruby-constant">VpiIntVal</span>
|
29
|
+
175:
|
30
|
+
176: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_float</span>
|
31
|
+
177: <span class="ruby-constant">VpiRealVal</span>
|
32
|
+
178:
|
33
|
+
179: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_str</span>
|
34
|
+
180: <span class="ruby-constant">VpiStringVal</span>
|
35
|
+
181:
|
36
|
+
182: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">S_vpi_time</span>
|
37
|
+
183: <span class="ruby-constant">VpiTimeVal</span>
|
38
|
+
184:
|
39
|
+
185: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">S_vpi_vecval</span>
|
40
|
+
186: <span class="ruby-constant">VpiVectorVal</span>
|
41
|
+
187:
|
42
|
+
188: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">S_vpi_strengthval</span>
|
43
|
+
189: <span class="ruby-constant">VpiStrengthVal</span>
|
44
|
+
190:
|
45
|
+
191: <span class="ruby-keyword kw">else</span>
|
46
|
+
192: <span class="ruby-identifier">get_value_wrapper</span>(<span class="ruby-constant">VpiObjTypeVal</span>).<span class="ruby-identifier">format</span>
|
47
|
+
193: <span class="ruby-keyword kw">end</span>
|
48
|
+
194:
|
49
|
+
195: <span class="ruby-identifier">newVal</span> = <span class="ruby-constant">S_vpi_value</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:format</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">aFormat</span>)
|
50
|
+
196:
|
51
|
+
197: <span class="ruby-identifier">writtenVal</span> =
|
52
|
+
198: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">aFormat</span>
|
53
|
+
199: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiBinStrVal</span>, <span class="ruby-constant">VpiOctStrVal</span>, <span class="ruby-constant">VpiDecStrVal</span>, <span class="ruby-constant">VpiHexStrVal</span>, <span class="ruby-constant">VpiStringVal</span>
|
54
|
+
200: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">str</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_s</span>
|
55
|
+
201:
|
56
|
+
202: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiScalarVal</span>
|
57
|
+
203: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">scalar</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_i</span>
|
71
58
|
204:
|
72
|
-
205:
|
73
|
-
206:
|
59
|
+
205: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiIntVal</span>
|
60
|
+
206: <span class="ruby-ivar">@size</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">vpi_get</span>(<span class="ruby-constant">VpiSize</span>, <span class="ruby-keyword kw">self</span>)
|
74
61
|
207:
|
75
|
-
208:
|
76
|
-
209:
|
77
|
-
210: <span class="ruby-
|
78
|
-
211:
|
79
|
-
212:
|
80
|
-
213: <span class="ruby-identifier">
|
62
|
+
208: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@size</span> <span class="ruby-operator"><</span> <span class="ruby-constant">INTEGER_BITS</span>
|
63
|
+
209: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">format</span> = <span class="ruby-constant">VpiIntVal</span>
|
64
|
+
210: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">integer</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_i</span>
|
65
|
+
211: <span class="ruby-keyword kw">else</span>
|
66
|
+
212: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">format</span> = <span class="ruby-constant">VpiHexStrVal</span>
|
67
|
+
213: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">str</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-value">16</span>)
|
81
68
|
214: <span class="ruby-keyword kw">end</span>
|
82
69
|
215:
|
83
|
-
216: <span class="ruby-
|
84
|
-
217:
|
70
|
+
216: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiRealVal</span>
|
71
|
+
217: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">real</span> = <span class="ruby-identifier">aValue</span>.<span class="ruby-identifier">to_f</span>
|
72
|
+
218:
|
73
|
+
219: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiTimeVal</span>
|
74
|
+
220: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">time</span> = <span class="ruby-identifier">aValue</span>
|
75
|
+
221:
|
76
|
+
222: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiVectorVal</span>
|
77
|
+
223: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">vector</span> = <span class="ruby-identifier">aValue</span>
|
78
|
+
224:
|
79
|
+
225: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">VpiStrengthVal</span>
|
80
|
+
226: <span class="ruby-identifier">newVal</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">strength</span> = <span class="ruby-identifier">aValue</span>
|
81
|
+
227:
|
82
|
+
228: <span class="ruby-keyword kw">else</span>
|
83
|
+
229: <span class="ruby-identifier">raise</span> <span class="ruby-node">"unknown S_vpi_value.format: #{newVal.format.inspect}"</span>
|
84
|
+
230: <span class="ruby-keyword kw">end</span>
|
85
|
+
231:
|
86
|
+
232: <span class="ruby-identifier">vpi_put_value</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">newVal</span>, <span class="ruby-identifier">aTime</span>, <span class="ruby-identifier">aDelay</span>)
|
87
|
+
233:
|
88
|
+
234: <span class="ruby-identifier">writtenVal</span>
|
89
|
+
235: <span class="ruby-keyword kw">end</span></pre>
|
85
90
|
</body>
|
86
91
|
</html>
|
@@ -5,26 +5,15 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>force_value (Vpi::Handle)</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 lib/ruby-vpi/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
225: <span class="ruby-identifier">t</span> = <span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">arg</span>)
|
19
|
-
226:
|
20
|
-
227: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">itr</span> = <span class="ruby-identifier">vpi_iterate</span>(<span class="ruby-identifier">t</span>, <span class="ruby-keyword kw">self</span>)
|
21
|
-
228: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">h</span> = <span class="ruby-identifier">vpi_scan</span>(<span class="ruby-identifier">itr</span>)
|
22
|
-
229: <span class="ruby-identifier">handles</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">h</span>
|
23
|
-
230: <span class="ruby-keyword kw">end</span>
|
24
|
-
231: <span class="ruby-keyword kw">end</span>
|
25
|
-
232: <span class="ruby-keyword kw">end</span>
|
26
|
-
233:
|
27
|
-
234: <span class="ruby-identifier">handles</span>
|
28
|
-
235: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 238</span>
|
14
|
+
238: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force_value</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
15
|
+
239: <span class="ruby-identifier">args</span>[<span class="ruby-value">3</span>] = <span class="ruby-constant">VpiForceFlag</span>
|
16
|
+
240: <span class="ruby-identifier">put_value</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
17
|
+
241: <span class="ruby-keyword kw">end</span></pre>
|
29
18
|
</body>
|
30
19
|
</html>
|
@@ -0,0 +1,19 @@
|
|
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>release_value (Vpi::Handle)</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 lib/ruby-vpi/vpi.rb, line 244</span>
|
14
|
+
244: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release_value</span>
|
15
|
+
245: <span class="ruby-comment cmt"># this doesn't really change the value, it only removes the force flag</span>
|
16
|
+
246: <span class="ruby-identifier">put_value</span>(<span class="ruby-value">0</span>, <span class="ruby-constant">VpiIntVal</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-constant">VpiReleaseFlag</span>)
|
17
|
+
247: <span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title
|
8
|
+
<title>value_forced? (Vpi::Handle)</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 lib/ruby-vpi/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 250</span>
|
14
|
+
250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value_forced?</span>
|
15
|
+
251: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">VpiDriver</span>].<span class="ruby-identifier">any?</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">vpiType</span> <span class="ruby-operator">==</span> <span class="ruby-constant">VpiForce</span>}
|
16
|
+
252: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,20 +5,26 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>[] (Vpi::Handle)</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 lib/ruby-vpi/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 257</span>
|
14
|
+
257: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> <span class="ruby-operator">*</span><span class="ruby-identifier">aTypes</span>
|
15
|
+
258: <span class="ruby-identifier">handles</span> = []
|
16
|
+
259:
|
17
|
+
260: <span class="ruby-identifier">aTypes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
18
|
+
261: <span class="ruby-identifier">t</span> = <span class="ruby-identifier">resolve_prop_type</span>(<span class="ruby-identifier">arg</span>)
|
19
|
+
262:
|
20
|
+
263: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">itr</span> = <span class="ruby-identifier">vpi_iterate</span>(<span class="ruby-identifier">t</span>, <span class="ruby-keyword kw">self</span>)
|
21
|
+
264: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">h</span> = <span class="ruby-identifier">vpi_scan</span>(<span class="ruby-identifier">itr</span>)
|
22
|
+
265: <span class="ruby-identifier">handles</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">h</span>
|
23
|
+
266: <span class="ruby-keyword kw">end</span>
|
19
24
|
267: <span class="ruby-keyword kw">end</span>
|
20
|
-
268:
|
21
|
-
269:
|
22
|
-
270: <span class="ruby-
|
25
|
+
268: <span class="ruby-keyword kw">end</span>
|
26
|
+
269:
|
27
|
+
270: <span class="ruby-identifier">handles</span>
|
28
|
+
271: <span class="ruby-keyword kw">end</span></pre>
|
23
29
|
</body>
|
24
30
|
</html>
|
@@ -5,27 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title
|
8
|
+
<title><=> (Vpi::Handle)</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 lib/ruby-vpi/vpi.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
279: <span class="ruby-identifier">aOptions</span>[<span class="ruby-identifier">:time</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">S_vpi_time</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-constant">VpiSuppressTime</span>)
|
18
|
-
280: <span class="ruby-identifier">aOptions</span>[<span class="ruby-identifier">:value</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">S_vpi_value</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:format</span> =<span class="ruby-operator">></span> <span class="ruby-constant">VpiSuppressVal</span>)
|
19
|
-
281:
|
20
|
-
282: <span class="ruby-identifier">alarm</span> = <span class="ruby-constant">S_cb_data</span>.<span class="ruby-identifier">new</span>(
|
21
|
-
283: <span class="ruby-identifier">:reason</span> =<span class="ruby-operator">></span> <span class="ruby-constant">CbValueChange</span>,
|
22
|
-
284: <span class="ruby-identifier">:obj</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>,
|
23
|
-
285: <span class="ruby-identifier">:time</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">aOptions</span>[<span class="ruby-identifier">:time</span>],
|
24
|
-
286: <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">aOptions</span>[<span class="ruby-identifier">:value</span>],
|
25
|
-
287: <span class="ruby-identifier">:index</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
26
|
-
288: )
|
27
|
-
289:
|
28
|
-
290: <span class="ruby-identifier">vpi_register_cb</span> <span class="ruby-identifier">alarm</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">aHandler</span>
|
29
|
-
291: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/vpi.rb, line 290</span>
|
14
|
+
290: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>
|
15
|
+
291: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fullName</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">fullName</span>
|
16
|
+
292: <span class="ruby-keyword kw">end</span></pre>
|
30
17
|
</body>
|
31
18
|
</html>
|