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.



2021
2022
2023
2024
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2021

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

Instance Method Details

#to_rubyObject Also known as: to_c

Convert to Ruby code.



2027
2028
2029
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2027

def to_ruby
  return @name.to_s
end