ruby-vpi 8.1.0 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +17 -0
- data/bin/generate_test_tpl/bench.v +1 -1
- data/bin/generate_test_tpl/runner.rake +3 -1
- data/doc/background.organization.html +1 -1
- data/doc/index.html +2 -2
- data/doc/manual.txt +2 -2
- data/doc/src/manual.xml +2 -2
- data/doc/usage.tutorial.html +1 -1
- data/history.html +27 -0
- data/history.part.html +27 -0
- data/lib/ruby-vpi/runner.rb +29 -12
- data/ref/c/annotated.html +1 -6
- data/ref/c/common_8h.html +1 -1
- data/ref/c/files.html +1 -3
- data/ref/c/functions.html +24 -44
- data/ref/c/functions_vars.html +24 -44
- data/ref/c/globals.html +5 -211
- data/ref/c/globals_0x63.html +32 -49
- data/ref/c/globals_0x65.html +3 -10
- data/ref/c/globals_0x66.html +3 -20
- data/ref/c/globals_0x70.html +19 -26
- data/ref/c/globals_0x72.html +4 -15
- data/ref/c/globals_0x73.html +13 -199
- data/ref/c/globals_0x74.html +2 -9
- data/ref/c/globals_0x76.html +415 -426
- data/ref/c/globals_0x78.html +3 -10
- data/ref/c/globals_defs.html +30 -35
- data/ref/c/globals_defs_0x65.html +2 -7
- data/ref/c/globals_defs_0x70.html +3 -8
- data/ref/c/globals_defs_0x76.html +413 -420
- data/ref/c/globals_defs_0x78.html +2 -7
- data/ref/c/globals_enum.html +1 -1
- data/ref/c/globals_eval.html +1 -1
- data/ref/c/globals_func.html +14 -173
- data/ref/c/globals_type.html +26 -29
- data/ref/c/globals_vars.html +4 -88
- 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 +6 -23
- data/ref/c/structt__vpi__delay.html +3 -20
- data/ref/c/structt__vpi__error__info.html +3 -71
- data/ref/c/structt__vpi__strengthval.html +3 -3
- data/ref/c/structt__vpi__systf__data.html +12 -46
- data/ref/c/structt__vpi__time.html +3 -3
- data/ref/c/structt__vpi__value.html +3 -113
- data/ref/c/structt__vpi__vecval.html +3 -3
- data/ref/c/structt__vpi__vlog__info.html +3 -54
- data/ref/c/swig_8cin.html +2 -2
- 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 +16 -16
- data/ref/ruby/classes/ERB.html +5 -5
- data/ref/ruby/classes/ERB.src/{M000032.html → M000033.html} +0 -0
- data/ref/ruby/classes/FileUtils.html +10 -10
- data/ref/ruby/classes/FileUtils.src/M000088.html +5 -5
- data/ref/ruby/classes/FileUtils.src/M000089.html +18 -0
- data/ref/ruby/classes/Integer.html +68 -68
- data/ref/ruby/classes/Integer.src/M000011.html +12 -5
- data/ref/ruby/classes/Integer.src/M000012.html +5 -5
- data/ref/ruby/classes/Integer.src/M000013.html +5 -5
- data/ref/ruby/classes/Integer.src/M000014.html +5 -5
- data/ref/ruby/classes/Integer.src/M000015.html +5 -5
- data/ref/ruby/classes/Integer.src/M000016.html +18 -0
- data/ref/ruby/classes/Integer.src/M000019.html +9 -9
- data/ref/ruby/classes/Integer.src/M000020.html +9 -12
- data/ref/ruby/classes/Integer.src/M000021.html +12 -18
- data/ref/ruby/classes/Integer.src/M000022.html +18 -12
- data/ref/ruby/classes/Integer.src/M000023.html +12 -17
- data/ref/ruby/classes/Integer.src/M000024.html +30 -0
- data/ref/ruby/classes/OutputInfo.html +5 -5
- data/ref/ruby/classes/OutputInfo.src/{M000028.html → M000029.html} +0 -0
- data/ref/ruby/classes/RDoc.html +5 -5
- data/ref/ruby/classes/RDoc.src/{M000091.html → M000092.html} +0 -0
- data/ref/ruby/classes/RubyVpi.html +10 -10
- data/ref/ruby/classes/RubyVpi.src/M000090.html +37 -7
- data/ref/ruby/classes/RubyVpi.src/M000091.html +20 -0
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.html +45 -45
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000080.html +5 -5
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000081.html +5 -9
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000082.html +9 -31
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000083.html +31 -69
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000084.html +69 -114
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000085.html +114 -13
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000086.html +13 -5
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000087.html +18 -0
- data/ref/ruby/classes/String.html +10 -10
- data/ref/ruby/classes/String.src/M000031.html +28 -5
- data/ref/ruby/classes/String.src/M000032.html +18 -0
- data/ref/ruby/classes/Table.html +20 -20
- data/ref/ruby/classes/Table.src/M000025.html +25 -5
- data/ref/ruby/classes/Table.src/M000026.html +5 -5
- data/ref/ruby/classes/Table.src/M000027.html +5 -5
- data/ref/ruby/classes/Table.src/M000028.html +18 -0
- data/ref/ruby/classes/Template.html +5 -5
- data/ref/ruby/classes/Template.src/{M000029.html → M000030.html} +0 -0
- data/ref/ruby/classes/VerilogParser/Module/Parameter.html +5 -5
- data/ref/ruby/classes/VerilogParser/Module/Parameter.src/{M000009.html → M000010.html} +0 -0
- data/ref/ruby/classes/VerilogParser/Module/Port.html +20 -20
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html +8 -5
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000007.html +5 -5
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000008.html +5 -5
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000009.html +18 -0
- data/ref/ruby/classes/VerilogParser/Module.html +5 -5
- data/ref/ruby/classes/VerilogParser/Module.src/{M000004.html → M000005.html} +0 -0
- data/ref/ruby/classes/VerilogParser.html +5 -5
- data/ref/ruby/classes/VerilogParser.src/{M000003.html → M000004.html} +0 -0
- data/ref/ruby/classes/XX/Document.html +45 -45
- data/ref/ruby/classes/XX/Document.src/M000071.html +9 -7
- data/ref/ruby/classes/XX/Document.src/M000072.html +7 -7
- data/ref/ruby/classes/XX/Document.src/M000073.html +7 -7
- data/ref/ruby/classes/XX/Document.src/M000074.html +7 -9
- data/ref/ruby/classes/XX/Document.src/M000075.html +9 -8
- data/ref/ruby/classes/XX/Document.src/M000076.html +8 -8
- data/ref/ruby/classes/XX/Document.src/M000077.html +8 -21
- data/ref/ruby/classes/XX/Document.src/M000078.html +21 -85
- data/ref/ruby/classes/XX/Document.src/M000079.html +98 -0
- data/ref/ruby/classes/XX/HTML4/Strict.html +5 -5
- data/ref/ruby/classes/XX/HTML4/Strict.src/{M000036.html → M000037.html} +0 -0
- data/ref/ruby/classes/XX/HTML4/Transitional.html +5 -5
- data/ref/ruby/classes/XX/HTML4/Transitional.src/{M000035.html → M000036.html} +0 -0
- data/ref/ruby/classes/XX/HTML4.html +5 -5
- data/ref/ruby/classes/XX/HTML4.src/{M000034.html → M000035.html} +0 -0
- data/ref/ruby/classes/XX/Markup/ClassMethods.html +40 -40
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000043.html +9 -7
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000044.html +7 -12
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000045.html +12 -7
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000046.html +7 -14
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000047.html +14 -7
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000048.html +7 -14
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000049.html +14 -9
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000050.html +22 -0
- data/ref/ruby/classes/XX/Markup/InstanceMethods.html +100 -100
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000051.html +43 -20
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000052.html +20 -18
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000053.html +18 -35
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000054.html +35 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000055.html +7 -18
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000056.html +18 -19
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000057.html +19 -19
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000058.html +19 -15
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000059.html +15 -10
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000060.html +10 -13
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000061.html +13 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000062.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000063.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000064.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000065.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000066.html +7 -8
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000067.html +8 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000068.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000069.html +7 -7
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000070.html +20 -0
- data/ref/ruby/classes/XX/Markup.html +5 -5
- data/ref/ruby/classes/XX/Markup.src/{M000041.html → M000042.html} +0 -0
- data/ref/ruby/classes/XX/XHTML/Strict.html +5 -5
- data/ref/ruby/classes/XX/XHTML/Strict.src/{M000039.html → M000040.html} +0 -0
- data/ref/ruby/classes/XX/XHTML/Transitional.html +5 -5
- data/ref/ruby/classes/XX/XHTML/Transitional.src/{M000038.html → M000039.html} +0 -0
- data/ref/ruby/classes/XX/XHTML.html +5 -5
- data/ref/ruby/classes/XX/XHTML.src/{M000037.html → M000038.html} +0 -0
- data/ref/ruby/classes/XX/XML.html +5 -5
- data/ref/ruby/classes/XX/XML.src/{M000033.html → M000034.html} +0 -0
- data/ref/ruby/classes/XX/XMLish.html +5 -5
- data/ref/ruby/classes/XX/XMLish.src/{M000040.html → M000041.html} +0 -0
- data/ref/ruby/created.rid +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.html +29 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.src/M000002.html +6 -6
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.src/M000003.html +26 -0
- data/ref/ruby/fr_method_index.html +90 -89
- data/samp/counter/counter_rspecTest_bench.v +3 -1
- data/samp/counter/counter_rspecTest_runner.rake +3 -1
- data/samp/counter/counter_unitTest_bench.v +2 -2
- data/samp/counter/counter_unitTest_runner.rake +3 -1
- data/samp/pipelined_alu/InputGenerator.rb +15 -40
- data/samp/pipelined_alu/hw5_unit_test_bench.v +2 -7
- data/samp/pipelined_alu/hw5_unit_test_proto.rb +8 -3
- data/samp/pipelined_alu/hw5_unit_test_runner.rake +3 -1
- data/samp/pipelined_alu/hw5_unit_test_spec.rb +4 -4
- metadata +30 -55
- data/ref/c/globals_0x62.html +0 -62
- data/ref/c/globals_0x67.html +0 -64
- data/ref/c/globals_0x69.html +0 -62
- data/ref/c/globals_0x6c.html +0 -64
- data/ref/c/globals_0x6d.html +0 -62
- data/ref/c/globals_0x6e.html +0 -63
- data/ref/c/globals_0x75.html +0 -63
- data/ref/c/globals_defs_0x6c.html +0 -57
- data/ref/c/globals_defs_0x6e.html +0 -56
- data/ref/c/globals_defs_0x72.html +0 -57
- data/ref/c/globals_defs_0x73.html +0 -164
- data/ref/c/globals_defs_0x75.html +0 -56
- data/ref/c/globals_func_0x66.html +0 -62
- data/ref/c/globals_func_0x67.html +0 -55
- data/ref/c/globals_func_0x69.html +0 -53
- data/ref/c/globals_func_0x70.html +0 -53
- data/ref/c/globals_func_0x72.html +0 -57
- data/ref/c/globals_func_0x73.html +0 -114
- data/ref/c/globals_func_0x76.html +0 -57
- data/ref/c/structswig__cast__info.html +0 -98
- data/ref/c/structswig__class.html +0 -115
- data/ref/c/structswig__module__info.html +0 -132
- data/ref/c/structswig__type__info.html +0 -132
- data/ref/c/swig__vpi_8h.html +0 -8739
- data/ref/c/swig__wrap_8cin.html +0 -11556
- data/ref/c/unions__vpi__value__value.html +0 -166
- data/ref/ruby/classes/FileUtils.src/M000087.html +0 -18
- data/ref/ruby/classes/Integer.src/M000010.html +0 -25
- data/ref/ruby/classes/Integer.src/M000018.html +0 -22
- data/ref/ruby/classes/RubyVpi.src/M000089.html +0 -50
- data/ref/ruby/classes/SWIG/TYPE_p_unsigned_int.src/M000079.html +0 -18
- data/ref/ruby/classes/String.src/M000030.html +0 -41
- data/ref/ruby/classes/Table.src/M000024.html +0 -38
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000005.html +0 -21
- data/ref/ruby/classes/XX/Document.src/M000070.html +0 -22
- data/ref/ruby/classes/XX/Markup/ClassMethods.src/M000042.html +0 -22
- data/ref/ruby/classes/XX/Markup/InstanceMethods.src/M000050.html +0 -56
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>to_limit (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 46</span>
|
14
|
+
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_limit</span>
|
15
|
+
47: <span class="ruby-value">2</span> <span class="ruby-operator">**</span> <span class="ruby-keyword kw">self</span>
|
16
|
+
48: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>mask (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 52</span>
|
14
|
+
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mask</span>
|
15
|
+
53: <span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_mask</span>
|
16
|
+
54: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -0,0 +1,18 @@
|
|
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>to_mask (Integer)</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/integer.rb, line 57</span>
|
14
|
+
57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_mask</span>
|
15
|
+
58: <span class="ruby-identifier">to_limit</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
16
|
+
59: <span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -5,18 +5,18 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>ensure_min (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 70</span>
|
14
|
+
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ensure_min</span> <span class="ruby-identifier">aLimit</span>
|
15
|
+
71: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">aLimit</span>
|
16
|
+
72: <span class="ruby-identifier">aLimit</span>
|
17
|
+
73: <span class="ruby-keyword kw">else</span>
|
18
|
+
74: <span class="ruby-keyword kw">self</span>
|
19
|
+
75: <span class="ruby-keyword kw">end</span>
|
20
|
+
76: <span class="ruby-keyword kw">end</span></pre>
|
21
21
|
</body>
|
22
22
|
</html>
|
@@ -5,21 +5,18 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>ensure_max (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
96:
|
22
|
-
97: <span class="ruby-identifier">extend_sign</span>(<span class="ruby-identifier">bits</span>, <span class="ruby-identifier">aPackedWidth</span>)
|
23
|
-
98: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 79</span>
|
14
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ensure_max</span> <span class="ruby-identifier">aLimit</span>
|
15
|
+
80: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">></span> <span class="ruby-identifier">aLimit</span>
|
16
|
+
81: <span class="ruby-identifier">aLimit</span>
|
17
|
+
82: <span class="ruby-keyword kw">else</span>
|
18
|
+
83: <span class="ruby-keyword kw">self</span>
|
19
|
+
84: <span class="ruby-keyword kw">end</span>
|
20
|
+
85: <span class="ruby-keyword kw">end</span></pre>
|
24
21
|
</body>
|
25
22
|
</html>
|
@@ -5,27 +5,21 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>pack (Integer)</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>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
111: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>[<span class="ruby-identifier">aPackedWidth</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
25
|
-
112: <span class="ruby-operator">-</span>((<span class="ruby-operator">-</span><span class="ruby-identifier">result</span>) <span class="ruby-operator">&</span> <span class="ruby-identifier">mask</span>)
|
26
|
-
113: <span class="ruby-keyword kw">else</span>
|
27
|
-
114: <span class="ruby-identifier">result</span>
|
28
|
-
115: <span class="ruby-keyword kw">end</span>
|
29
|
-
116: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 89</span>
|
14
|
+
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pack</span> <span class="ruby-identifier">aPackedWidth</span>
|
15
|
+
90: <span class="ruby-identifier">bits</span> = <span class="ruby-identifier">length</span>
|
16
|
+
91: <span class="ruby-identifier">bits</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-comment cmt"># positive integers also have a sign bit (zero)</span>
|
17
|
+
92:
|
18
|
+
93: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">aPackedWidth</span> <span class="ruby-operator">>=</span> <span class="ruby-identifier">bits</span>
|
19
|
+
94: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"packed width #{aPackedWidth} must be at least #{bits} for integer #{self}"</span>
|
20
|
+
95: <span class="ruby-keyword kw">end</span>
|
21
|
+
96:
|
22
|
+
97: <span class="ruby-identifier">extend_sign</span>(<span class="ruby-identifier">bits</span>, <span class="ruby-identifier">aPackedWidth</span>)
|
23
|
+
98: <span class="ruby-keyword kw">end</span></pre>
|
30
24
|
</body>
|
31
25
|
</html>
|
@@ -5,21 +5,27 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>unpack (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 101</span>
|
14
|
+
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpack</span> <span class="ruby-identifier">aPackedWidth</span>
|
15
|
+
102: <span class="ruby-identifier">bits</span> = <span class="ruby-identifier">length</span>
|
16
|
+
103:
|
17
|
+
104: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">aPackedWidth</span> <span class="ruby-operator">>=</span> <span class="ruby-identifier">bits</span>
|
18
|
+
105: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"packed width #{aPackedWidth} must be at least #{bits} for integer #{self}"</span>
|
19
|
+
106: <span class="ruby-keyword kw">end</span>
|
20
|
+
107:
|
21
|
+
108: <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">aPackedWidth</span>.<span class="ruby-identifier">to_mask</span>
|
22
|
+
109: <span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">mask</span>
|
23
|
+
110:
|
24
|
+
111: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>[<span class="ruby-identifier">aPackedWidth</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
25
|
+
112: <span class="ruby-operator">-</span>((<span class="ruby-operator">-</span><span class="ruby-identifier">result</span>) <span class="ruby-operator">&</span> <span class="ruby-identifier">mask</span>)
|
26
|
+
113: <span class="ruby-keyword kw">else</span>
|
27
|
+
114: <span class="ruby-identifier">result</span>
|
28
|
+
115: <span class="ruby-keyword kw">end</span>
|
29
|
+
116: <span class="ruby-keyword kw">end</span></pre>
|
24
30
|
</body>
|
25
31
|
</html>
|
@@ -5,26 +5,21 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>extend_sign (Integer)</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/integer.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
151: <span class="ruby-identifier">bits</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">aWidth</span>
|
25
|
-
152: <span class="ruby-keyword kw">end</span>
|
26
|
-
153:
|
27
|
-
154: <span class="ruby-identifier">words</span>
|
28
|
-
155: <span class="ruby-keyword kw">end</span></pre>
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 120</span>
|
14
|
+
120: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extend_sign</span> <span class="ruby-identifier">aOrigWidth</span>, <span class="ruby-identifier">aExtWidth</span>
|
15
|
+
121: <span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">self</span>
|
16
|
+
122: <span class="ruby-identifier">maskWidth</span> = <span class="ruby-identifier">aExtWidth</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">aOrigWidth</span>
|
17
|
+
123:
|
18
|
+
124: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">maskWidth</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">result</span>[<span class="ruby-identifier">aOrigWidth</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
19
|
+
125: <span class="ruby-identifier">result</span> <span class="ruby-operator">|=</span> (<span class="ruby-identifier">maskWidth</span>.<span class="ruby-identifier">to_mask</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">aOrigWidth</span>)
|
20
|
+
126: <span class="ruby-keyword kw">end</span>
|
21
|
+
127:
|
22
|
+
128: <span class="ruby-identifier">result</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">aExtWidth</span>.<span class="ruby-identifier">to_mask</span>
|
23
|
+
129: <span class="ruby-keyword kw">end</span></pre>
|
29
24
|
</body>
|
30
25
|
</html>
|
@@ -0,0 +1,30 @@
|
|
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>split (Integer)</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/integer.rb, line 141</span>
|
14
|
+
141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">split</span> <span class="ruby-identifier">aWidth</span> = <span class="ruby-value">8</span>
|
15
|
+
142: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"width must be positive and non-zero"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">aWidth</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
16
|
+
143:
|
17
|
+
144: <span class="ruby-identifier">int</span>, <span class="ruby-identifier">bits</span> = <span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">length</span>
|
18
|
+
145: <span class="ruby-identifier">mask</span> = <span class="ruby-identifier">aWidth</span>.<span class="ruby-identifier">to_mask</span>
|
19
|
+
146: <span class="ruby-identifier">words</span> = []
|
20
|
+
147:
|
21
|
+
148: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">bits</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
22
|
+
149: <span class="ruby-identifier">words</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">int</span> <span class="ruby-operator">&</span> <span class="ruby-identifier">mask</span>
|
23
|
+
150: <span class="ruby-identifier">int</span> <span class="ruby-operator">>>=</span> <span class="ruby-identifier">aWidth</span>
|
24
|
+
151: <span class="ruby-identifier">bits</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">aWidth</span>
|
25
|
+
152: <span class="ruby-keyword kw">end</span>
|
26
|
+
153:
|
27
|
+
154: <span class="ruby-identifier">words</span>
|
28
|
+
155: <span class="ruby-keyword kw">end</span></pre>
|
29
|
+
</body>
|
30
|
+
</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="#M000029">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -270,12 +270,12 @@ Holds information about the output destinations of a parsed Verilog module.
|
|
270
270
|
<div id="methods">
|
271
271
|
<h3 class="section-bar">Public Class methods</h3>
|
272
272
|
|
273
|
-
<div id="method-
|
274
|
-
<a name="
|
273
|
+
<div id="method-M000029" class="method-detail">
|
274
|
+
<a name="M000029"></a>
|
275
275
|
|
276
276
|
<div class="method-heading">
|
277
|
-
<a href="OutputInfo.src/
|
278
|
-
onclick="popupCode('OutputInfo.src/
|
277
|
+
<a href="OutputInfo.src/M000029.html" target="Code" class="method-signature"
|
278
|
+
onclick="popupCode('OutputInfo.src/M000029.html');return false;">
|
279
279
|
<span class="method-name">new</span><span class="method-args">(aModuleName, aSpecFormat, aTestName, aRubyVpiPath)</span>
|
280
280
|
</a>
|
281
281
|
</div>
|
File without changes
|
data/ref/ruby/classes/RDoc.html
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
83
|
+
<a href="#M000092">usage_from_file</a>
|
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-
|
106
|
-
<a name="
|
105
|
+
<div id="method-M000092" class="method-detail">
|
106
|
+
<a name="M000092"></a>
|
107
107
|
|
108
108
|
<div class="method-heading">
|
109
|
-
<a href="RDoc.src/
|
110
|
-
onclick="popupCode('RDoc.src/
|
109
|
+
<a href="RDoc.src/M000092.html" target="Code" class="method-signature"
|
110
|
+
onclick="popupCode('RDoc.src/M000092.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>
|
File without changes
|
@@ -90,8 +90,8 @@ Provides configuration information of the Ruby-VPI project.
|
|
90
90
|
<h3 class="section-bar">Methods</h3>
|
91
91
|
|
92
92
|
<div class="name-list">
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
93
|
+
<a href="#M000090">init_bench</a>
|
94
|
+
<a href="#M000091">with_coverage_analysis</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -131,12 +131,12 @@ Provides configuration information of the Ruby-VPI project.
|
|
131
131
|
<div id="methods">
|
132
132
|
<h3 class="section-bar">Public Class methods</h3>
|
133
133
|
|
134
|
-
<div id="method-
|
135
|
-
<a name="
|
134
|
+
<div id="method-M000090" class="method-detail">
|
135
|
+
<a name="M000090"></a>
|
136
136
|
|
137
137
|
<div class="method-heading">
|
138
|
-
<a href="RubyVpi.src/
|
139
|
-
onclick="popupCode('RubyVpi.src/
|
138
|
+
<a href="RubyVpi.src/M000090.html" target="Code" class="method-signature"
|
139
|
+
onclick="popupCode('RubyVpi.src/M000090.html');return false;">
|
140
140
|
<span class="method-name">init_bench</span><span class="method-args">(aTestPrefix, aProtoClassId)</span>
|
141
141
|
</a>
|
142
142
|
</div>
|
@@ -148,12 +148,12 @@ Initializes the current bench using the given parameters.
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000091" class="method-detail">
|
152
|
+
<a name="M000091"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="RubyVpi.src/
|
156
|
-
onclick="popupCode('RubyVpi.src/
|
155
|
+
<a href="RubyVpi.src/M000091.html" target="Code" class="method-signature"
|
156
|
+
onclick="popupCode('RubyVpi.src/M000091.html');return false;">
|
157
157
|
<span class="method-name">with_coverage_analysis</span><span class="method-args">( {|Rcov::CodeCoverageAnalyzer| ...}</span>
|
158
158
|
</a>
|
159
159
|
</div>
|
@@ -5,16 +5,46 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>init_bench (RubyVpi)</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
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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-constant">RubyVpi</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-identifier">require</span> <span class="ruby-value str">'ruby-vpi/vpi'</span>
|
16
|
+
26: <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>
|
17
|
+
27:
|
18
|
+
28: <span class="ruby-comment cmt"># set up code coverage analysis</span>
|
19
|
+
29: <span class="ruby-keyword kw">unless</span> (<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'COVERAGE'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>).<span class="ruby-identifier">empty?</span>
|
20
|
+
30: <span class="ruby-identifier">require</span> <span class="ruby-value str">'ruby-vpi/rcov'</span>
|
21
|
+
31:
|
22
|
+
32: <span class="ruby-constant">RubyVpi</span>.<span class="ruby-identifier">with_coverage_analysis</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
23
|
+
33: <span class="ruby-identifier">a</span>.<span class="ruby-identifier">dump_coverage_info</span> [
|
24
|
+
34: <span class="ruby-constant">Rcov</span><span class="ruby-operator">::</span><span class="ruby-constant">TextReport</span>.<span class="ruby-identifier">new</span>,
|
25
|
+
35: <span class="ruby-constant">Rcov</span><span class="ruby-operator">::</span><span class="ruby-constant">HTMLCoverage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:destdir</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{aTestPrefix}_coverage"</span>)
|
26
|
+
36: ]
|
27
|
+
37: <span class="ruby-keyword kw">end</span>
|
28
|
+
38: <span class="ruby-keyword kw">end</span>
|
29
|
+
39:
|
30
|
+
40: <span class="ruby-comment cmt"># load the design under test</span>
|
31
|
+
41: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_design.rb"</span>
|
32
|
+
42:
|
33
|
+
43: <span class="ruby-keyword kw">unless</span> (<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PROTOTYPE'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>).<span class="ruby-identifier">empty?</span>
|
34
|
+
44: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_proto.rb"</span>
|
35
|
+
45:
|
36
|
+
46: <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>
|
37
|
+
47:
|
38
|
+
48: <span class="ruby-constant">Vpi</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
39
|
+
49: <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">:relay_verilog</span> <span class="ruby-keyword kw">do</span>
|
40
|
+
50: <span class="ruby-identifier">proto</span>.<span class="ruby-identifier">simulate!</span>
|
41
|
+
51: <span class="ruby-keyword kw">end</span>
|
42
|
+
52: <span class="ruby-keyword kw">end</span>
|
43
|
+
53:
|
44
|
+
54: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{aTestPrefix}: verifying prototype instead of design"</span>
|
45
|
+
55: <span class="ruby-keyword kw">end</span>
|
46
|
+
56:
|
47
|
+
57: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{aTestPrefix}_spec.rb"</span>
|
48
|
+
58: <span class="ruby-keyword kw">end</span></pre>
|
19
49
|
</body>
|
20
50
|
</html>
|
@@ -0,0 +1,20 @@
|
|
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>with_coverage_analysis (RubyVpi)</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/rcov.rb, line 57</span>
|
14
|
+
57: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">RubyVpi</span>.<span class="ruby-identifier">with_coverage_analysis</span> <span class="ruby-operator">&</span><span class="ruby-identifier">aBlock</span> <span class="ruby-comment cmt"># :yields: Rcov::CodeCoverageAnalyzer</span>
|
15
|
+
58: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">aBlock</span>
|
16
|
+
59: <span class="ruby-constant">COVERAGE_ANALYSIS_HANDLERS</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">aBlock</span>
|
17
|
+
60: <span class="ruby-keyword kw">end</span>
|
18
|
+
61: <span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|