lib/origen_verilog/verilog/node.rb
# Returns true if the node instantiates the given module node or module name
Returns true if the node instantiates the given module node or module name
Returns true if the node instantiates the given module node or module name
def instantiates?(module_or_name)
        name = module_or_name.respond_to?(:to_a) ? module_or_name.to_a[0] : module_or_name
        instantiations = find_all(:module_instantiation)
        if instantiations.empty?
          false
        else
          instantiations.any? { |i| i.to_a[0].to_s == name.to_s }
        end
      end
def instantiates? ( module_or_name ) name = module_or_name . respond_to? ( :to_a ) ? module_or_name . to_a [ 0 ] : module_or_name instantiations = find_all ( :module_instantiation ) if instantiations . empty? false else instantiations . any? { | i | i . to_a [ 0 ] . to_s == name . to_s } end end
Returns true if the node instantiates the given module node or module name
Returns true if the node instantiates the given module node or module name
module_or_name
<not_specific>