Sha256: 199528dd5247181232bd21fa3b14414f406159c7de318bc52b86be5b523ba142

Contents?: true

Size: 319 Bytes

Versions: 10

Compression:

Stored size: 319 Bytes

Contents

# This is a prototype of the design under test.

# When prototyping is enabled, Vpi::advance_time invokes this
# method instead of transferring control to the Verilog simulator.
def Counter.simulate!
  if clock.posedge?
    if reset.intVal == 1
      count.intVal = 0
    else
      count.intVal += 1
    end
  end
end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
ruby-vpi-15.0.0 samp/counter/counter_rspec_proto.rb
ruby-vpi-15.0.1 samp/counter/counter_xunit_proto.rb
ruby-vpi-15.0.2 samp/counter/counter_xunit_proto.rb
ruby-vpi-15.0.0 samp/counter/counter_xunit_proto.rb
ruby-vpi-15.0.2 samp/counter/counter_rspec_proto.rb
ruby-vpi-15.0.1 samp/counter/counter_rspec_proto.rb
ruby-vpi-16.0.0 samp/counter/counter_rspec_proto.rb
ruby-vpi-16.0.1 samp/counter/counter_rspec_proto.rb
ruby-vpi-16.0.0 samp/counter/counter_xunit_proto.rb
ruby-vpi-16.0.1 samp/counter/counter_xunit_proto.rb