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+.



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

#directionObject

Returns the value of attribute direction.



36
37
38
# File 'lib/HDLRuby/hruby_viz.rb', line 36

def direction
  @direction
end

#icObject (readonly)

Returns the value of attribute ic.



34
35
36
# File 'lib/HDLRuby/hruby_viz.rb', line 34

def ic
  @ic
end

#nameObject (readonly)

Returns the value of attribute name.



33
34
35
# File 'lib/HDLRuby/hruby_viz.rb', line 33

def name
  @name
end

#sideObject

Returns the value of attribute side.



38
39
40
# File 'lib/HDLRuby/hruby_viz.rb', line 38

def side
  @side
end

#targetsObject (readonly)

Returns the value of attribute targets.



37
38
39
# File 'lib/HDLRuby/hruby_viz.rb', line 37

def targets
  @targets
end

#typeObject (readonly)

Returns the value of attribute type.



35
36
37
# File 'lib/HDLRuby/hruby_viz.rb', line 35

def type
  @type
end

#xposObject

Returns the value of attribute xpos.



39
40
41
# File 'lib/HDLRuby/hruby_viz.rb', line 39

def xpos
  @xpos
end

#yposObject

Returns the value of attribute ypos.



39
40
41
# File 'lib/HDLRuby/hruby_viz.rb', line 39

def ypos
  @ypos
end