Class: VCD::Variable
- Inherits:
-
Object
- Object
- VCD::Variable
- Defined in:
- lib/libfst/vcd.rb
Overview
Instance Attribute Summary collapse
- #id ⇒ String readonly
- #name ⇒ String readonly
- #parent ⇒ Scope readonly
- #trace ⇒ Trace readonly
-
#type ⇒ Symbol
readonly
Event, integer, parameter, real, realtime, reg, supply0, supply1, time, tri, triand, trior, trireg, tri0, tri1, wand, wire or wor.
- #width ⇒ Integer readonly
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ String (readonly)
80 81 82 |
# File 'lib/libfst/vcd.rb', line 80 def id @id end |
#name ⇒ String (readonly)
77 78 79 |
# File 'lib/libfst/vcd.rb', line 77 def name @name end |
#type ⇒ Symbol (readonly)
Returns event, integer, parameter, real, realtime, reg, supply0, supply1, time, tri, triand, trior, trireg, tri0, tri1, wand, wire or wor.
78 79 80 |
# File 'lib/libfst/vcd.rb', line 78 def type @type end |
#width ⇒ Integer (readonly)
79 80 81 |
# File 'lib/libfst/vcd.rb', line 79 def width @width end |
Instance Method Details
#path ⇒ String
99 100 101 |
# File 'lib/libfst/vcd.rb', line 99 def path "#{@parent.path}#{@name}" end |
#to_s ⇒ String
94 95 96 |
# File 'lib/libfst/vcd.rb', line 94 def to_s "<#{self.class} @name=#{@name.inspect}, @type=#{@type.inspect}, @width=#{@width.inspect}, @id=#{@id.inspect}>" end |