Class: HDLRuby::Viz::Port
- Inherits:
-
Object
- Object
- HDLRuby::Viz::Port
- Defined in:
- lib/HDLRuby/hruby_viz.rb
Overview
An IC Port
Instance Attribute Summary collapse
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#ic ⇒ Object
readonly
Returns the value of attribute ic.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#side ⇒ Object
Returns the value of attribute side.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#xpos ⇒ Object
Returns the value of attribute xpos.
-
#ypos ⇒ Object
Returns the value of attribute ypos.
Instance Method Summary collapse
-
#initialize(name, ic, direction, type = :signal) ⇒ Port
constructor
Create a new port for +ic+ with direction +direction+.
Constructor Details
#initialize(name, ic, direction, type = :signal) ⇒ Port
Create a new port for +ic+ with direction +direction+.
42 43 44 45 46 47 48 |
# File 'lib/HDLRuby/hruby_viz.rb', line 42 def initialize(name,ic,direction,type = :signal) @name = name.to_s @ic = ic @direction = direction @type = type @targets = [] end |
Instance Attribute Details
#direction ⇒ Object
Returns the value of attribute direction.
36 37 38 |
# File 'lib/HDLRuby/hruby_viz.rb', line 36 def direction @direction end |
#ic ⇒ Object (readonly)
Returns the value of attribute ic.
34 35 36 |
# File 'lib/HDLRuby/hruby_viz.rb', line 34 def ic @ic end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 34 35 |
# File 'lib/HDLRuby/hruby_viz.rb', line 33 def name @name end |
#side ⇒ Object
Returns the value of attribute side.
38 39 40 |
# File 'lib/HDLRuby/hruby_viz.rb', line 38 def side @side end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
37 38 39 |
# File 'lib/HDLRuby/hruby_viz.rb', line 37 def targets @targets end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
35 36 37 |
# File 'lib/HDLRuby/hruby_viz.rb', line 35 def type @type end |
#xpos ⇒ Object
Returns the value of attribute xpos.
39 40 41 |
# File 'lib/HDLRuby/hruby_viz.rb', line 39 def xpos @xpos end |
#ypos ⇒ Object
Returns the value of attribute ypos.
39 40 41 |
# File 'lib/HDLRuby/hruby_viz.rb', line 39 def ypos @ypos end |