Class: OrigenTesters::PatternCompilers::V93KPatternCompiler::MultiportAPI::Multiport

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/pattern_compilers/v93k/multiport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Multiport

Returns a new instance of Multiport.



8
9
10
11
12
13
14
15
16
17
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 8

def initialize(options)
  @port_in_focus = nil

  if options && options[:port_in_focus]
    @port_in_focus = options[:port_in_focus]
    @port_bursts = options[:port_bursts]
    @prefix = options[:prefix].nil? ? '' : "#{options[:prefix]}_"
    @postfix = options[:postfix].nil? ? '' : "_#{options[:postfix]}"
  end
end

Instance Attribute Details

#port_burstsObject

Returns the value of attribute port_bursts.



6
7
8
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 6

def port_bursts
  @port_bursts
end

#port_in_focusObject

Returns the value of attribute port_in_focus.



6
7
8
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 6

def port_in_focus
  @port_in_focus
end

#postfixObject

Returns the value of attribute postfix.



6
7
8
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 6

def postfix
  @postfix
end

#prefixObject

Returns the value of attribute prefix.



6
7
8
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 6

def prefix
  @prefix
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 28

def enabled?
  port_in_focus.nil? ? false : true
end

#render_aiv_lines(pattern) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 19

def render_aiv_lines(pattern)
  mpb_entry = []
  mpb_entry << ''
  mpb_entry << render_mpb_header(pattern)
  mpb_entry << render_mpb_port_line(pattern)
  mpb_entry << render_mpb_burst_line(pattern)
  mpb_entry
end