ruby-vpi 14.0.0 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/generate_test_tpl/proto.rb +8 -6
- data/doc/common.css +1 -0
- data/doc/history.html +357 -281
- data/doc/history.yml +35 -1
- data/doc/intro.inc +1 -1
- data/doc/manual.doc +38 -29
- data/doc/manual.html +109 -63
- data/doc/readme.html +6 -6
- data/doc/rss.xml +69 -1
- data/ext/Rakefile +1 -5
- data/ext/extconf.rb +0 -5
- data/ext/relay.c +1 -1
- data/ext/vlog.c +1 -1
- data/lib/ruby-vpi/vpi.rb +50 -4
- data/lib/ruby-vpi.rb +7 -7
- data/ref/c/annotated.html +6 -1
- data/ref/c/common_8h.html +1 -1
- data/ref/c/files.html +2 -1
- data/ref/c/functions.html +40 -20
- data/ref/c/functions_vars.html +40 -20
- data/ref/c/globals.html +212 -5
- data/ref/c/globals_0x62.html +62 -0
- data/ref/c/globals_0x63.html +19 -3
- data/ref/c/globals_0x65.html +8 -2
- data/ref/c/globals_0x66.html +19 -3
- data/ref/c/globals_0x67.html +64 -0
- data/ref/c/globals_0x69.html +62 -0
- data/ref/c/globals_0x6c.html +64 -0
- data/ref/c/globals_0x6d.html +10 -3
- data/ref/c/globals_0x6e.html +63 -0
- data/ref/c/globals_0x70.html +8 -2
- data/ref/c/globals_0x72.html +14 -4
- data/ref/c/globals_0x73.html +189 -3
- data/ref/c/globals_0x74.html +8 -2
- data/ref/c/globals_0x75.html +63 -0
- data/ref/c/globals_0x76.html +14 -4
- data/ref/c/globals_0x78.html +8 -2
- data/ref/c/globals_defs.html +6 -1
- data/ref/c/globals_defs_0x65.html +6 -1
- data/ref/c/globals_defs_0x6c.html +57 -0
- data/ref/c/globals_defs_0x6e.html +56 -0
- data/ref/c/globals_defs_0x70.html +6 -1
- data/ref/c/globals_defs_0x72.html +57 -0
- data/ref/c/globals_defs_0x73.html +165 -0
- data/ref/c/globals_defs_0x75.html +56 -0
- data/ref/c/globals_defs_0x76.html +10 -3
- data/ref/c/globals_defs_0x78.html +6 -1
- data/ref/c/globals_enum.html +1 -1
- data/ref/c/globals_eval.html +1 -1
- data/ref/c/globals_func.html +174 -14
- data/ref/c/globals_func_0x66.html +63 -0
- data/ref/c/globals_func_0x67.html +56 -0
- data/ref/c/globals_func_0x69.html +54 -0
- data/ref/c/globals_func_0x6d.html +56 -0
- data/ref/c/globals_func_0x70.html +54 -0
- data/ref/c/globals_func_0x72.html +57 -0
- data/ref/c/globals_func_0x73.html +113 -0
- data/ref/c/globals_func_0x76.html +58 -0
- data/ref/c/globals_type.html +6 -3
- data/ref/c/globals_vars.html +89 -3
- data/ref/c/index.html +1 -1
- data/ref/c/main_8c.html +2 -2
- 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/structswig__cast__info.html +98 -0
- data/ref/c/structswig__class.html +115 -0
- data/ref/c/structswig__module__info.html +132 -0
- data/ref/c/structswig__type__info.html +132 -0
- 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__wrap_8cin.html +11610 -0
- data/ref/c/unions__vpi__value__value.html +166 -0
- data/ref/c/verilog_8h.html +1 -1
- data/ref/c/vlog_8c.html +3 -3
- 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/{M000045.html → M000053.html} +0 -0
- data/ref/ruby/classes/RubyVpi.src/M000029.html +27 -27
- data/ref/ruby/classes/Vpi/Handle.html +93 -57
- data/ref/ruby/classes/Vpi/Handle.src/M000037.html +5 -5
- data/ref/ruby/classes/Vpi/Handle.src/M000038.html +5 -9
- data/ref/ruby/classes/Vpi/Handle.src/M000039.html +5 -31
- data/ref/ruby/classes/Vpi/Handle.src/M000040.html +5 -74
- data/ref/ruby/classes/Vpi/Handle.src/M000041.html +8 -17
- data/ref/ruby/classes/Vpi/Handle.src/M000042.html +8 -11
- data/ref/ruby/classes/Vpi/Handle.src/M000043.html +22 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000044.html +31 -55
- data/ref/ruby/classes/Vpi/Handle.src/M000045.html +87 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000046.html +30 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000047.html +24 -0
- data/ref/ruby/classes/Vpi/Handle.src/M000049.html +68 -0
- data/ref/ruby/classes/Vpi/S_vpi_time.html +186 -0
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000050.html +18 -0
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000051.html +19 -0
- data/ref/ruby/classes/Vpi/S_vpi_value.html +167 -0
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000034.html +18 -0
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000035.html +18 -0
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000036.html +18 -0
- data/ref/ruby/classes/Vpi.html +3 -1
- data/ref/ruby/classes/Vpi.src/M000030.html +14 -14
- data/ref/ruby/classes/Vpi.src/M000031.html +4 -4
- data/ref/ruby/classes/Vpi.src/M000032.html +24 -25
- data/ref/ruby/classes/Vpi.src/M000033.html +8 -8
- data/ref/ruby/created.rid +1 -1
- data/ref/ruby/files/lib/ruby-vpi/vpi_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi_rb.html +1 -1
- data/ref/ruby/fr_class_index.html +2 -0
- data/ref/ruby/fr_method_index.html +22 -14
- data/samp/counter/counter_rspec_proto.rb +8 -6
- data/samp/counter/counter_xunit_proto.rb +8 -6
- data/samp/pipelined_alu/hw5_unit_test_proto.rb +2 -2
- metadata +42 -6
- data/ref/ruby/classes/Vpi/Handle.src/M000034.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000035.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000036.html +0 -18
@@ -1,14 +1,16 @@
|
|
1
1
|
# This is a prototype of the design under test.
|
2
2
|
|
3
|
-
# When prototyping is enabled, Vpi::
|
4
|
-
# instead of transferring control to the Verilog simulator.
|
3
|
+
# When prototyping is enabled, Vpi::advance_time invokes this
|
4
|
+
# method instead of transferring control to the Verilog simulator.
|
5
5
|
def <%= aOutputInfo.designClassName %>.simulate!
|
6
|
-
|
6
|
+
if <%= aModuleInfo.ports.first.name %>.intVal == 1
|
7
|
+
# discard old outputs
|
7
8
|
<% aModuleInfo.ports.reject { |p| p.input? }.each do |port| %>
|
8
|
-
|
9
|
+
<%= port.name %>.hexStrVal = 'x'
|
9
10
|
<% end %>
|
10
11
|
|
11
|
-
|
12
|
+
# process new inputs
|
12
13
|
|
13
|
-
|
14
|
+
# produce new outputs
|
15
|
+
end
|
14
16
|
end
|