Class: RubyHDL::High::RefName
- Inherits:
-
Ref
- Object
- Expression
- Ref
- RubyHDL::High::RefName
- 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
Instance Method Summary collapse
-
#initialize(type, name) ⇒ RefName
constructor
Create a new named reference with +type+ data type and +name+ name.
-
#to_ruby ⇒ Object
Convert to ruby code.
Methods inherited from 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_ruby ⇒ Object
Convert to ruby code.
1802 1803 1804 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1802 def to_ruby return @name.to_s end |