Class: TdlTestUnit
- Defined in:
- lib/tdl/sdlmodule/test_unit_module.rb
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
return ClassHDL::AnonyModule.new.
Methods inherited from TdlBuild
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
return ClassHDL::AnonyModule.new
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
# File 'lib/tdl/sdlmodule/test_unit_module.rb', line 297 def self.method_missing(method,*args,&block) sdlm = TestUnitModule.new(name: method,out_sv_path: args[0]) si = sdlm.input - "from_up_pass" so = sdlm.output.logic - "to_down_pass" @@package_names ||= [] sdlm.head_import_packages = [] sdlm.head_import_packages += @@package_names @@package_names.each do |e| sdlm.require_package(e,false) if e end @@package_names = [] sdlm.instance_exec(&block) if args[0] && File.exist?(args[0]) sdlm.gen_sv_module else sdlm.origin_sv = true end sdlm end |