Class: OrigenTesters::PatternCompilers::V93KPatternCompiler::MultiportAPI::Multiport
- Inherits:
-
Object
- Object
- OrigenTesters::PatternCompilers::V93KPatternCompiler::MultiportAPI::Multiport
- Defined in:
- lib/origen_testers/pattern_compilers/v93k/multiport.rb
Instance Attribute Summary collapse
-
#port_bursts ⇒ Object
Returns the value of attribute port_bursts.
-
#port_in_focus ⇒ Object
Returns the value of attribute port_in_focus.
-
#postfix ⇒ Object
Returns the value of attribute postfix.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize(options) ⇒ Multiport
constructor
A new instance of Multiport.
- #render_aiv_lines(pattern) ⇒ Object
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() @port_in_focus = nil if && [:port_in_focus] @port_in_focus = [:port_in_focus] @port_bursts = [:port_bursts] @prefix = [:prefix].nil? ? '' : "#{[:prefix]}_" @postfix = [:postfix].nil? ? '' : "_#{[:postfix]}" end end |
Instance Attribute Details
#port_bursts ⇒ Object
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_focus ⇒ Object
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 |
#postfix ⇒ Object
Returns the value of attribute postfix.
6 7 8 |
# File 'lib/origen_testers/pattern_compilers/v93k/multiport.rb', line 6 def postfix @postfix end |
#prefix ⇒ Object
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
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 |