Class: RTL::Wire

Inherits:
Object
  • Object
show all
Defined in:
lib/rtl/circuit.rb

Constant Summary collapse

@@id =
-1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, sink) ⇒ Wire

Returns a new instance of Wire.



129
130
131
132
133
134
# File 'lib/rtl/circuit.rb', line 129

def initialize source,sink
  @name="w_#{@@id+=1}"
  @source=source
  @sink=sink
  @properties={}
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



126
127
128
# File 'lib/rtl/circuit.rb', line 126

def name
  @name
end

#propertiesObject

Returns the value of attribute properties.



128
129
130
# File 'lib/rtl/circuit.rb', line 128

def properties
  @properties
end

#sinkObject

Returns the value of attribute sink.



127
128
129
# File 'lib/rtl/circuit.rb', line 127

def sink
  @sink
end

#sourceObject

Returns the value of attribute source.



127
128
129
# File 'lib/rtl/circuit.rb', line 127

def source
  @source
end