Sha256: 5f1227465ae9bad9bae5a312bd370f363446b939a60fe511d81d192bab62547a

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

<% clock = aModuleInfo.clock_port.name rescue "YOUR_CLOCK_SIGNAL_HERE" %>
# Simulates the design under test for one clock cycle.
def cycle!
  <%= clock %>.high!
  advance_time
  <%= clock %>.low!
  advance_time
end

<% reset = aModuleInfo.reset_port.name rescue "YOUR_RESET_SIGNAL_HERE" %>
# Brings the design under test into a blank state.
def reset!
  <%= reset %>.high!
  cycle!
  <%= reset %>.low!
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-vpi-17.0.0 bin/generate/design.rb
ruby-vpi-18.0.0 bin/generate/design.rb
ruby-vpi-18.0.1 bin/generate/design.rb
ruby-vpi-19.0.0 bin/generate/design.rb
ruby-vpi-18.0.2 bin/generate/design.rb