lib/ruby-vpi.rb in ruby-vpi-7.3.0 vs lib/ruby-vpi.rb in ruby-vpi-8.0.0
- old
+ new
@@ -17,31 +17,31 @@
along with Ruby-VPI; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
=end
# Provides configuration information of the Ruby-VPI project.
-module RubyVPI
+module RubyVpi
# Initializes the current bench using the given parameters.
- def RubyVPI.init_bench aTestPrefix, aProtoClassId
+ def RubyVpi.init_bench aTestPrefix, aProtoClassId
require 'ruby-vpi/vpi_util'
Vpi::relay_verilog # service the $ruby_init() callback
# set up code coverage analysis
- if ENV['COVERAGE']
+ unless (ENV['COVERAGE'] || '').empty?
require 'ruby-vpi/rcov'
- RubyVPI.with_coverage_analysis do |a|
+ RubyVpi.with_coverage_analysis do |a|
a.dump_coverage_info [
Rcov::TextReport.new,
Rcov::HTMLCoverage.new(:destdir => "#{aTestPrefix}_coverage")
]
end
end
# load the design under test
require "#{aTestPrefix}_design.rb"
- if ENV['PROTO']
+ unless (ENV['PROTOTYPE'] || '').empty?
require "#{aTestPrefix}_proto.rb"
proto = Kernel.const_get(aProtoClassId).new
Vpi.class_eval do