Class: HDLRuby::High::TimeTerminate
- Inherits:
-
Low::TimeTerminate
- Object
- Low::Statement
- Low::TimeTerminate
- HDLRuby::High::TimeTerminate
- Includes:
- HStatement
- Defined in:
- lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Describes a timed terminate statement: not synthesizable!
Constant Summary
Constants included from Low::Low2Symbol
Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable
Instance Attribute Summary collapse
-
#rcstatement ⇒ Object
readonly
Extends the TimeTerminate class for hybrid Ruby-C simulation.
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#execute(mode) ⇒ Object
Executes the statement.
-
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
-
#to_low ⇒ Object
Converts the repeat statement to HDLRuby::Low.
-
#to_rcsim ⇒ Object
Generate the C description of the terminate.
Methods included from HStatement
Methods inherited from Low::TimeTerminate
#boolean_in_assign2select!, #clone, #each_block_deep, #each_deep, #each_node, #each_node_deep, #each_statement_deep, #eql?, #explicit_types!, #extract_selects!, #hash, #initialize, #signal2subs!, #to_c, #to_verilog, #to_vhdl
Methods inherited from Low::Statement
#add_blocks_code, #add_make_block, #behavior, #block, #blocks2seq!, #break_types!, #clone, #delete_related!, #delete_unless!, #each_deep, #each_statement, #eql?, #explicit_types!, #extract_declares!, #fix_scope_refnames!, #hash, #mix?, #par_in_seq2seq!, #parent_system, #replace_expressions!, #replace_names!, #scope, #to_c, #to_ch, #to_hdr, #to_high, #to_seq!, #to_upper_space!, #to_vhdl, #top_block, #top_scope, #use_name?, #with_boolean!
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::TimeTerminate
Instance Attribute Details
#rcstatement ⇒ Object (readonly)
Extends the TimeTerminate class for hybrid Ruby-C simulation.
657 658 659 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 657 def rcstatement @rcstatement end |
Instance Method Details
#execute(mode) ⇒ Object
Executes the statement.
900 901 902 903 904 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 900 def execute(mode) # @behavior ||= self.get_behavior # @behavior.terminate exit end |
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
895 896 897 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 895 def init_sim(systemT) @sim = systemT end |
#to_low ⇒ Object
Converts the repeat statement to HDLRuby::Low.
2830 2831 2832 |
# File 'lib/HDLRuby/hruby_high.rb', line 2830 def to_low return HDLRuby::Low::TimeTerminate.new end |
#to_rcsim ⇒ Object
Generate the C description of the terminate.
660 661 662 663 664 665 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 660 def to_rcsim # Create the terminate C object. @rcstatement = RCSim.rcsim_make_timeTerminate() return @rcstatement end |