Method: RubyHDL::High::Transmit#to_expr

Defined in:
lib/HDLRuby/std/sequencer_sw.rb

#to_exprObject

Convert to expression: transforms the transmit to a comparison.



2806
2807
2808
2809
2810
2811
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2806

def to_expr
  # Remove the transmit from the top SW block.
  RubyHDL::High.top_sblock.delete(self)
  # And convert it to a comparison.
  return Binary.new(@left.type,@left,@right)
end