Class: OrigenTesters::IGXLBasedTester::Base::Levels
- Inherits:
-
Object
- Object
- OrigenTesters::IGXLBasedTester::Base::Levels
- Includes:
- Generator
- Defined in:
- lib/origen_testers/igxl_based_tester/base/levels.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pin_group ⇒ Object
If levels are defined for a pin group then this will return the level object.
-
#pwr_group ⇒ Object
If levels are defined for a power group then this will return the level object.
Instance Method Summary collapse
-
#add_power_level(cat, options = {}) ⇒ Object
Defines a new Power Level category for the given pin/group.
-
#add_se_pin_level(cat, options = {}) ⇒ Object
Defines a new Single-Ended Pin Level category for the given pin/group.
-
#initialize(options = {}) ⇒ Levels
constructor
:nodoc:.
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( = {}) # :nodoc: @pwr_group = Hash.new { |h, k| h[k] = {} } @pin_group = Hash.new { |h, k| h[k] = {} } end |
Instance Attribute Details
#pin_group ⇒ Object
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_group ⇒ Object
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, = {}) cat = cat.to_sym unless cat.is_a? Symbol pwr_group[cat] = platform::SupplyLevel.new() 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, = {}) cat = cat.to_sym unless cat.is_a? Symbol pin_group[cat] = platform::PinLevelSingle.new() end |