Class: HDLRuby::High::RefThis
- Inherits:
-
Low::RefThis
- Object
- Base::Expression
- Low::Expression
- Low::Ref
- Low::RefThis
- HDLRuby::High::RefThis
- Includes:
- HRef
- Defined in:
- lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Extends the RefThis class for hybrid Ruby-C simulation.
Constant Summary collapse
Constants included from Low::Low2Symbol
Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes inherited from Low::Expression
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#behavior ⇒ Object
Gets the enclosing behavior if any.
-
#clone ⇒ Object
Clones.
-
#system ⇒ Object
Gets the enclosing system type.
-
#to_low ⇒ Object
Converts the this reference to HDLRuby::Low.
-
#to_rcsim ⇒ Object
Generate the C description of the reference range.
-
#to_ref ⇒ Object
Converts to a new reference.
Methods included from HRef
Methods inherited from Low::RefThis
#boolean_in_assign2select, #casts_without_expression!, #each_deep, #eql?, #explicit_types, #hash, #map_nodes!, #to_another_verilog, #to_c, #to_c_signal, #to_hdr, #to_high
Methods inherited from Low::Ref
#each_node, #each_node_deep, #eql?, #explicit_types, #hash, #map_nodes!, #path_each, #resolve, #to_c, #to_hdr, #to_vhdl
Methods inherited from Low::Expression
#boolean?, #break_types!, #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
#hierarchy, #no_parent!, #scope
Constructor Details
This class inherits a constructor from HDLRuby::Low::Expression
Instance Method Details
#behavior ⇒ Object
Gets the enclosing behavior if any.
3516 3517 3518 |
# File 'lib/HDLRuby/hruby_high.rb', line 3516 def behavior return High.cur_behavior end |
#clone ⇒ Object
Clones.
3501 3502 3503 |
# File 'lib/HDLRuby/hruby_high.rb', line 3501 def clone return RefThis.new end |
#system ⇒ Object
Gets the enclosing system type.
3511 3512 3513 |
# File 'lib/HDLRuby/hruby_high.rb', line 3511 def system return High.cur_system end |
#to_low ⇒ Object
Converts the this reference to HDLRuby::Low.
3526 3527 3528 3529 3530 3531 3532 3533 |
# File 'lib/HDLRuby/hruby_high.rb', line 3526 def to_low # return HDLRuby::Low::RefThis.new refThisL = HDLRuby::Low::RefThis.new # # For debugging: set the source high object # refThisL.properties[:low2high] = self.hdr_id # self.properties[:high2low] = refThisL return refThisL end |
#to_rcsim ⇒ Object
Generate the C description of the reference range.
1011 1012 1013 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 1011 def to_rcsim return nil end |