Class: HDLRuby::Viz::Port

Inherits:
Object
  • Object
show all
Defined in:
lib/HDLRuby/hruby_viz.rb

Overview

An IC Port

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#directionObject

Returns the value of attribute direction.



21
22
23
# File 'lib/HDLRuby/hruby_viz.rb', line 21

def direction
  @direction
end

#icObject (readonly)

Returns the value of attribute ic.



19
20
21
# File 'lib/HDLRuby/hruby_viz.rb', line 19

def ic
  @ic
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/HDLRuby/hruby_viz.rb', line 18

def name
  @name
end

#sideObject

Returns the value of attribute side.



23
24
25
# File 'lib/HDLRuby/hruby_viz.rb', line 23

def side
  @side
end

#targetsObject (readonly)

Returns the value of attribute targets.



22
23
24
# File 'lib/HDLRuby/hruby_viz.rb', line 22

def targets
  @targets
end

#typeObject (readonly)

Returns the value of attribute type.



20
21
22
# File 'lib/HDLRuby/hruby_viz.rb', line 20

def type
  @type
end

#xposObject

Returns the value of attribute xpos.



24
25
26
# File 'lib/HDLRuby/hruby_viz.rb', line 24

def xpos
  @xpos
end

#yposObject

Returns the value of attribute ypos.



24
25
26
# File 'lib/HDLRuby/hruby_viz.rb', line 24

def ypos
  @ypos
end