Class: RubyHDL::High::RefName

Inherits:
Ref show all
Defined in:
lib/HDLRuby/std/sequencer_sw.rb

Overview

Describes a SW implementation of a reference by name.

Instance Attribute Summary

Attributes inherited from Expression

#type

Instance Method Summary collapse

Methods inherited from Ref

#final_base, #to_ref

Methods inherited from Expression

#<=, #[], #mux, #sdownto, #seach, #stimes, #supto, #to_expr, #to_value

Constructor Details

#initialize(type, name) ⇒ RefName

Create a new named reference with +type+ data type and +name+ name.



1796
1797
1798
1799
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1796

def initialize(type,name)
  super(type)
  @name = name.to_sym
end

Instance Method Details

#to_rubyObject

Convert to ruby code.



1802
1803
1804
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1802

def to_ruby
  return @name.to_s
end