module TdlSpace::ExCreateTP
def method_missing(method,*args,&block) if method.to_s !~ /[a-z]\w+/ raise TdlError.new "Test point name<#{method}> is illegal" end self - method end
end
Public Instance Methods
root_ref(&block)
click to toggle source
定义获取 信号的绝对路径
# File lib/tdl/exlib/test_point.rb, line 115 def root_ref(&block) ClassHDL::AssignDefOpertor.with_rollback_opertors(:old) do rels = path_refs(&block) if block_given? sst = "block given" else sst = "no block" end if rels.size == 1 rels[0] elsif rels.size == 0 raise TdlError.new "#{self} Cant find root ref {#{sst}}" else raise TdlError.new "#{self} Find multi root refs {#{sst}} \n#{rels.join("\n")}\n" end end end