Class: LibFST::Reader::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/libfst/reader.rb,
ext/libfst_rb.c

Overview

A Variable corresponds to a signal in the hierarchy of the design. It points to a Trace. Different variables can point to the same Trace : for example the clock signal from different modules is actualy the same physical signal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesArray<Attribute>

Returns:



112
113
114
# File 'lib/libfst/reader.rb', line 112

def attributes
  @attributes
end

#directionSymbol (readonly)

Returns Either :implicit, :input, :output, :inout, :buffer or :linkage.

Returns:

  • (Symbol)

    Either :implicit, :input, :output, :inout, :buffer or :linkage



105
106
107
# File 'lib/libfst/reader.rb', line 105

def direction
  @direction
end

#handleInteger (readonly)

Returns:

  • (Integer)


108
109
110
# File 'lib/libfst/reader.rb', line 108

def handle
  @handle
end

#is_aliasBoolean (readonly)

Returns:

  • (Boolean)


109
110
111
# File 'lib/libfst/reader.rb', line 109

def is_alias
  @is_alias
end

#lengthInteger (readonly)

Returns:

  • (Integer)


107
108
109
# File 'lib/libfst/reader.rb', line 107

def length
  @length
end

#nameString (readonly)

Returns:

  • (String)


106
107
108
# File 'lib/libfst/reader.rb', line 106

def name
  @name
end

#scopeScope

Returns:



111
112
113
# File 'lib/libfst/reader.rb', line 111

def scope
  @scope
end

#traceTrace

Returns:



110
111
112
# File 'lib/libfst/reader.rb', line 110

def trace
  @trace
end

#typeSymbol (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.

Returns:

  • (Symbol)

    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

#pathString

Returns:

  • (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_sString

Returns:

  • (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