Class: HDLRuby::High::RefConcat

Inherits:
Low::RefConcat show all
Includes:
HRef
Defined in:
lib/HDLRuby/hruby_high.rb

Overview

Describes a high-level concat reference.

Constant Summary

Constants included from Low::Low2Symbol

Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable

Instance Attribute Summary

Attributes inherited from Low::Expression

#type

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HRef

#each, included, #to_event

Methods inherited from Low::RefConcat

#add_ref, #boolean_in_assign2select, #clone, #delete_ref!, #each_node_deep, #each_ref, #eql?, #explicit_types, #hash, #initialize, #map_refs!, #to_c, #to_c_signal, #to_high, #to_vhdl

Methods included from Low::MutableConcat

#replace_expressions!

Methods inherited from Low::Ref

#each_node, #each_node_deep, #eql?, #explicit_types, #hash, #map_nodes!, #path_each, #to_c, #to_high, #to_vhdl

Methods inherited from Low::Expression

#boolean?, #break_types!, #clone, #each_node, #each_node_deep, #each_ref_deep, #eql?, #explicit_types, #extract_selects_to!, #hash, #initialize, #leftvalue?, #map_nodes!, #replace_expressions!, #replace_names!, #rightvalue?, #set_type!, #statement, #to_c, #to_high, #to_vhdl

Methods included from Low::Low2Symbol

#to_sym

Constructor Details

This class inherits a constructor from HDLRuby::Low::RefConcat

Instance Method Details

#to_lowObject

Converts the concat reference to HDLRuby::Low.



2611
2612
2613
2614
2615
2616
2617
# File 'lib/HDLRuby/hruby_high.rb', line 2611

def to_low
    return HDLRuby::Low::RefConcat.new(self.type.to_low,
        self.each_ref.map do |ref|
            ref.to_low
        end
    )
end

#to_refObject

Converts to a new reference.



2602
2603
2604
2605
2606
2607
2608
# File 'lib/HDLRuby/hruby_high.rb', line 2602

def to_ref
    return RefConcat.new(self.type,
        self.each_ref.map do |ref|
            ref.to_ref
        end
    )
end