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+.
27 28 29 30 31 32 33 |
# File 'lib/HDLRuby/hruby_viz.rb', line 27 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.
21 22 23 |
# File 'lib/HDLRuby/hruby_viz.rb', line 21 def direction @direction end |
#ic ⇒ Object (readonly)
Returns the value of attribute ic.
19 20 21 |
# File 'lib/HDLRuby/hruby_viz.rb', line 19 def ic @ic end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/HDLRuby/hruby_viz.rb', line 18 def name @name end |
#side ⇒ Object
Returns the value of attribute side.
23 24 25 |
# File 'lib/HDLRuby/hruby_viz.rb', line 23 def side @side end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
22 23 24 |
# File 'lib/HDLRuby/hruby_viz.rb', line 22 def targets @targets end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
20 21 22 |
# File 'lib/HDLRuby/hruby_viz.rb', line 20 def type @type end |
#xpos ⇒ Object
Returns the value of attribute xpos.
24 25 26 |
# File 'lib/HDLRuby/hruby_viz.rb', line 24 def xpos @xpos end |
#ypos ⇒ Object
Returns the value of attribute ypos.
24 25 26 |
# File 'lib/HDLRuby/hruby_viz.rb', line 24 def ypos @ypos end |