samp/counter/counter_rspec_proto.rb in ruby-vpi-10.0.0 vs samp/counter/counter_rspec_proto.rb in ruby-vpi-11.0.0

- old
+ new

@@ -1,12 +1,11 @@ # This is a prototype of the design under test. -class << Counter - # When prototyping is enabled, this method is invoked - # instead of Vpi::relay_verilog to simulate the design. - def simulate! - if reset.intVal == 1 - count.intVal = 0 - else - count.intVal += 1 - end + +# When prototyping is enabled, relay_verilog invokes this method +# instead of transferring control to the Verilog simulator. +def Counter.simulate! + if reset.intVal == 1 + count.intVal = 0 + else + count.intVal += 1 end end