Class: OrigenTesters::IGXLBasedTester::Base::Levels

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

Direct Known Subclasses

UltraFLEX::Levels

Instance Attribute Summary collapse

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 = {}) ⇒ Levels

:nodoc:



12
13
14
15
# File 'lib/origen_testers/igxl_based_tester/base/levels.rb', line 12

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

Instance Attribute Details

#pin_groupObject

If levels are defined for a pin group then this will return the level object



10
11
12
# File 'lib/origen_testers/igxl_based_tester/base/levels.rb', line 10

def pin_group
  @pin_group
end

#pwr_groupObject

If levels are defined for a power group then this will return the level object



8
9
10
# File 'lib/origen_testers/igxl_based_tester/base/levels.rb', line 8

def pwr_group
  @pwr_group
end

Instance Method Details

#add_power_level(cat, options = {}) ⇒ Object

Defines a new Power Level category for the given pin/group



18
19
20
21
# File 'lib/origen_testers/igxl_based_tester/base/levels.rb', line 18

def add_power_level(cat, options = {})
  cat = cat.to_sym unless cat.is_a? Symbol
  pwr_group[cat] = platform::SupplyLevel.new(options)
end

#add_se_pin_level(cat, options = {}) ⇒ Object

Defines a new Single-Ended Pin Level category for the given pin/group



24
25
26
27
# File 'lib/origen_testers/igxl_based_tester/base/levels.rb', line 24

def add_se_pin_level(cat, options = {})
  cat = cat.to_sym unless cat.is_a? Symbol
  pin_group[cat] = platform::PinLevelSingle.new(options)
end