Method: HDLRuby::High::Std#sreturn
- Defined in:
- lib/HDLRuby/std/sequencer_func.rb
#sreturn(val) ⇒ Object
Returns value +val+ from a sequencer function.
535 536 537 538 539 540 541 542 543 544 |
# File 'lib/HDLRuby/std/sequencer_func.rb', line 535 def sreturn(val) # HDLRuby::High.top_user.hprint("sreturn\n") # Get the top function. funcI = SequencerFunctionI.current unless funcI then raise "Cannot return since outside a function." end # Applies the return on it. funcI.make_return(val) end |