Class: OrigenTesters::IGXLBasedTester::Base::Edges

Inherits:
Object
  • Object
show all
Includes:
Generator
Defined in:
lib/origen_testers/igxl_based_tester/base/edges.rb

Direct Known Subclasses

UltraFLEX::Edges

Instance Attribute Summary collapse

Attributes included from Generator

#output_directory

Instance Method Summary collapse

Methods included from Generator

#close, #collection, #collection=, #compiler, #current_dir, #dont_diff=, execute_source, #file_extension, #file_pipeline, #filename, #filename=, #finalize, #identity_map, #import, #inhibit_output, #name, #on_close, original_reference_file, original_reference_file=, #output_file, #output_inhibited?, #platform, #reference_file, #render, #set_flow_description, #stats, #to_be_written?, #write_from_template, #write_to_file

Constructor Details

#initialize(options = {}) ⇒ Edges

:nodoc:



9
10
11
12
13
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 9

def initialize(options = {}) # :nodoc:
  @edges = Hash.new do |h, k|
    h[k] = {}
  end
end

Instance Attribute Details

#edgesObject

Returns the value of attribute edges.



7
8
9
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 7

def edges
  @edges
end

Instance Method Details

#add(grp, pin, options = {}) ⇒ Object

Defines a new Edge object for the category and pin name



16
17
18
19
20
# File 'lib/origen_testers/igxl_based_tester/base/edges.rb', line 16

def add(grp, pin, options = {})
  grp = grp.to_sym unless grp.is_a? Symbol
  pin = pin.to_sym unless pin.is_a? Symbol
  edges[grp][pin] = platform::Edge.new(options)
end