Class: LibFST::Reader::Variable
- Inherits:
-
Object
- Object
- LibFST::Reader::Variable
- Defined in:
- lib/libfst/reader.rb,
ext/libfst_rb.c
Overview
Instance Attribute Summary collapse
- #attributes ⇒ Array<Attribute>
-
#direction ⇒ Symbol
readonly
Either
:implicit,:input,:output,:inout,:bufferor:linkage. - #handle ⇒ Integer readonly
- #is_alias ⇒ Boolean readonly
- #length ⇒ Integer readonly
- #name ⇒ String readonly
- #scope ⇒ Scope
- #trace ⇒ Trace
-
#type ⇒ Symbol
readonly
Either
:vcd_event,:vcd_integer,:vcd_parameter,:vcd_real,:vcd_real_parameter,:vcd_reg,:vcd_supply0,:vcd_supply1,:vcd_time,:vcd_tri,:vcd_triand,:vcd_trior,:vcd_trireg,:vcd_tri0,:vcd_tri1,:vcd_wand,:vcd_wire,:vcd_wor,:vcd_port,:vcd_sparray,:vcd_realtime,:gen_string,:sv_bit,:sv_logic,:sv_int,:sv_shortint,:sv_longint,:sv_byte,:sv_enumor:sv_shortreal.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Array<Attribute>
112 113 114 |
# File 'lib/libfst/reader.rb', line 112 def attributes @attributes end |
#direction ⇒ Symbol (readonly)
Returns Either :implicit, :input, :output, :inout, :buffer or :linkage.
105 106 107 |
# File 'lib/libfst/reader.rb', line 105 def direction @direction end |
#handle ⇒ Integer (readonly)
108 109 110 |
# File 'lib/libfst/reader.rb', line 108 def handle @handle end |
#is_alias ⇒ Boolean (readonly)
109 110 111 |
# File 'lib/libfst/reader.rb', line 109 def is_alias @is_alias end |
#length ⇒ Integer (readonly)
107 108 109 |
# File 'lib/libfst/reader.rb', line 107 def length @length end |
#name ⇒ String (readonly)
106 107 108 |
# File 'lib/libfst/reader.rb', line 106 def name @name end |
#type ⇒ Symbol (readonly)
Returns Either :vcd_event, :vcd_integer, :vcd_parameter, :vcd_real, :vcd_real_parameter, :vcd_reg, :vcd_supply0, :vcd_supply1, :vcd_time, :vcd_tri, :vcd_triand, :vcd_trior, :vcd_trireg, :vcd_tri0, :vcd_tri1, :vcd_wand, :vcd_wire, :vcd_wor, :vcd_port, :vcd_sparray, :vcd_realtime, :gen_string, :sv_bit, :sv_logic, :sv_int, :sv_shortint, :sv_longint, :sv_byte, :sv_enum or :sv_shortreal.
104 105 106 |
# File 'lib/libfst/reader.rb', line 104 def type @type end |
Instance Method Details
#path ⇒ String
126 127 128 129 130 131 |
# File 'lib/libfst/reader.rb', line 126 def path return @path if @path p = "/#{name}" p = @scope.path + p if @scope @path = p end |
#to_s ⇒ String
134 135 136 |
# File 'lib/libfst/reader.rb', line 134 def to_s "<#{self.class.name} #{path} type: #{@type}, dir: #{@direction}, len: #{@length}, handle: #{@handle}, is_alias: #{!!@is_alias}>" end |