Sha256: 669e0582a808169a6191918f7407491be9f4653a3218b25514b769cc55e75607
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
module OrigenTesters module IGXLBasedTester class Base class TimesetsBasic include ::OrigenTesters::Generator attr_accessor :ts attr_accessor :ts_sheet_pins attr_accessor :ts_basic OUTPUT_PREFIX = 'TSB' # OUTPUT_POSTFIX = 'TS' def initialize(options = {}) # :nodoc: @ts = {} @ts_basic = options[:timeset_basic] end def add(tsname, pin, esname, options = {}) tsname = tsname.to_sym unless tsname.is_a? Symbol pin = pin.to_sym unless pin.is_a? Symbol esname = pin.to_sym unless esname.is_a? Symbol @ts.key?(tsname) ? @ts[tsname].add_edge(pin, esname) : @ts[tsname] = platform::Timeset.new(tsname, pin, esname, options) @ts_sheet_pins = options[:ts_sheet_pins] unless @ts_sheet_pins @ts[tsname] end def finalize(options = {}) end # Populate an array of pins based on the pin or pingroup def get_pin_objects(grp) pins = [] if Origen.top_level.pin(grp).is_a?(Origen::Pins::Pin) || Origen.top_level.pin(grp).is_a?(Origen::Pins::FunctionProxy) pins << Origen.top_level.pin(grp) elsif Origen.top_level.pin(grp).is_a?(Origen::Pins::PinCollection) Origen.top_level.pin(grp).each do |pin| pins << pin end else Origen.log.error "Could not find pin class: #{grp} #{Origen.top_level.pin(grp).class}" end pins end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
origen_testers-0.13.2 | lib/origen_testers/igxl_based_tester/base/timesets_basic.rb |
origen_testers-0.10.0 | lib/origen_testers/igxl_based_tester/base/timesets_basic.rb |