Class: HDLRuby::High::StringE
- Inherits:
-
Low::StringE
- Object
- Low::Expression
- Low::StringE
- HDLRuby::High::StringE
- Includes:
- HExpression
- Defined in:
- lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Describes a string.
NOTE: This is not synthesizable!
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::StringE
Attributes inherited from Low::Expression
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#to_expr ⇒ Object
Converts to an expression.
-
#to_low ⇒ Object
Converts the connection to HDLRuby::Low.
-
#to_rcsim ⇒ Object
Generate the C description of the value.
Methods included from HExpression
#<=>, #[], #as, #coerce, #constant?, #inout, #input, #ljust, #lr, #ls, #match_type, #mux, orig_operator, #orig_operator, #output, #rjust, #rr, #rs, #sdownto, #seach, #sext, #stimes, #supto, #to_bit, #to_signed, #to_unsigned, #to_value, #to_value?, #zext
Methods inherited from Low::StringE
#boolean_in_assign2select, #casts_without_expression!, #clone, #each_arg, #each_block, #each_block_deep, #each_deep, #each_node, #each_node_deep, #each_statement_deep, #eql?, #explicit_types, #hash, #immutable?, #initialize, #map_args!, #map_nodes!, #to_high, #to_verilog, #to_vhdl, #to_viz_node
Methods inherited from Low::Expression
#boolean?, #break_types!, #clone, #each_node, #each_node_deep, #each_ref_deep, #eql?, #explicit_types, #extract_selects_to!, #fix_scope_refnames!, #hash, #immutable?, #initialize, #leftvalue?, #map_nodes!, #replace_expressions!, #replace_names!, #rightvalue?, #set_type!, #signal2subs!, #statement, #to_c, #to_c_expr, #to_hdr, #to_high, #to_vhdl, #to_viz_names, #use_name?
Methods included from Low::Low2Symbol
Methods included from Low::Hparent
#absolute_ref, #hierarchy, #no_parent!, #scope
Constructor Details
This class inherits a constructor from HDLRuby::Low::StringE
Instance Method Details
#to_expr ⇒ Object
Converts to an expression.
3794 3795 3796 |
# File 'lib/HDLRuby/hruby_high.rb', line 3794 def to_expr return StringE.new(self.content,*self.each_arg.map(&:to_expr)) end |
#to_low ⇒ Object
Converts the connection to HDLRuby::Low.
3799 3800 3801 3802 |
# File 'lib/HDLRuby/hruby_high.rb', line 3799 def to_low return HDLRuby::Low::StringE.new(self.content, *self.each_arg.map(&:to_low)) end |
#to_rcsim ⇒ Object
Generate the C description of the value.
933 934 935 936 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 933 def to_rcsim # Create the value C object. return RCSim.rcsim_make_stringE(self.content); end |