examples/counter/RSpec/counter_proto.rb in ruby-vpi-19.0.0 vs examples/counter/RSpec/counter_proto.rb in ruby-vpi-20.0.0

- old
+ new

@@ -1,9 +1,11 @@ -always do - wait until clock.posedge? +if RubyVPI::USE_PROTOTYPE + always do + wait until DUT.clock.posedge? - if reset.high? - count.intVal = 0 - else - count.intVal += 1 + if DUT.reset.t? + DUT.count.intVal = 0 + else + DUT.count.intVal += 1 + end end end