lib/ruby-vpi.rb in ruby-vpi-12.0.0 vs lib/ruby-vpi.rb in ruby-vpi-12.0.1

- old
+ new

@@ -38,24 +38,10 @@ Object.class_eval do include Vpi end - # set up the specification library - case aSpecFormat - when :xUnit - require 'test/unit' - - when :rSpec - ARGV.concat %w[-f s] - require 'ruby-vpi/rspec' - - when :tSpec - ARGV << '-rs' - require 'test/spec' - end - # service the $ruby_init() task relay_verilog # set up code coverage analysis unless (ENV['COVERAGE'] || '').empty? @@ -67,10 +53,24 @@ Rcov::HTMLCoverage.new(:destdir => "#{testName}_coverage") ] end end + # set up the specification library + case aSpecFormat + when :xUnit + require 'test/unit' + + when :rSpec + ARGV.concat %w[-f s] + require 'ruby-vpi/rspec' + + when :tSpec + ARGV << '-rs' + require 'test/spec' + end + # load the design under test unless design = vpi_handle_by_name("#{testName}_bench", nil) raise "Verilog bench for test #{testName.inspect} is inaccessible." end @@ -97,10 +97,11 @@ # Provides information about this project's configuration. module Config PROJECT_ID = 'ruby-vpi' PROJECT_NAME = 'Ruby-VPI' PROJECT_URL = "http://#{PROJECT_ID}.rubyforge.org" - PROJECT_SUMMARY = "Ruby interface to Verilog VPI." + WEBSITE_URL = PROJECT_URL + "/doc" + PROJECT_SUMMARY = "Ruby interface to IEEE 1364-2005 Verilog VPI" PROJECT_DETAIL = "#{PROJECT_NAME} is a #{PROJECT_SUMMARY}. It lets you create complex Verilog test benches easily and wholly in Ruby." Simulator = Struct.new(:id, :name, :compiler_args, :linker_args) # List of supported Verilog simulators.