Class: HDLRuby::High::Concat
- Inherits:
-
Low::Concat
- Object
- Base::Expression
- Low::Expression
- Low::Concat
- HDLRuby::High::Concat
- Includes:
- HExpression
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Describes z high-level concat expression.
Constant Summary
Constants included from Low::Low2Symbol
Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes included from HExpression
Attributes inherited from Low::Expression
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#to_expr ⇒ Object
Converts to a new expression.
-
#to_low ⇒ Object
Converts the concatenation expression to HDLRuby::Low.
Methods included from HExpression
#[], #as, #coerce, #constant?, #inout, #input, #ljust, #lr, #ls, #match_type, #mux, orig_operator, #orig_operator, #output, #rjust, #rr, #rs, #sext, #to_bit, #to_unsigned, #to_value, #to_value?, #zext
Methods inherited from Low::Concat
#add_expression, #boolean_in_assign2select, #casts_without_expression!, #clone, #delete_expression!, #each_deep, #each_expression, #each_node_deep, #eql?, #explicit_types, #hash, #immutable?, #initialize, #map_expressions!, #to_c, #to_hdr, #to_high, #to_verilog, #to_vhdl, #use_name?
Methods included from Low::MutableConcat
Methods inherited from Low::Expression
#boolean?, #break_types!, #clone, #each_node, #each_node_deep, #each_ref_deep, #eql?, #explicit_types, #extract_selects_to!, #hash, #immutable?, #initialize, #leftvalue?, #map_nodes!, #replace_expressions!, #replace_names!, #rightvalue?, #set_type!, #statement, #to_c, #to_c_expr, #to_hdr, #to_high, #to_vhdl, #use_name?
Methods included from Low::Low2Symbol
Methods included from Low::Hparent
Constructor Details
This class inherits a constructor from HDLRuby::Low::Concat
Instance Method Details
#to_expr ⇒ Object
Converts to a new expression.
2905 2906 2907 2908 2909 2910 2911 |
# File 'lib/HDLRuby/hruby_high.rb', line 2905 def to_expr return Concat.new(self.type, self.each_expression.map do |expr| expr.to_expr end ) end |
#to_low ⇒ Object
Converts the concatenation expression to HDLRuby::Low.
2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 |
# File 'lib/HDLRuby/hruby_high.rb', line 2914 def to_low # return HDLRuby::Low::Concat.new(self.type.to_low, # self.each_expression.map do |expr| # expr.to_low # end # ) concatL = HDLRuby::Low::Concat.new(self.type.to_low, self.each_expression.map do |expr| expr.to_low end ) # # For debugging: set the source high object # concatL.properties[:low2high] = self.hdr_id # self.properties[:high2low] = concatL return concatL end |