Module: HDLRuby::High::HArrow
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Module giving high-level properties for handling the arrow (<=) operator.
Constant Summary collapse
Instance Method Summary collapse
-
#<=(expr) ⇒ Object
Creates a transmit, or connection with an +expr+.
Instance Method Details
#<=(expr) ⇒ Object
Creates a transmit, or connection with an +expr+.
NOTE: it is converted afterward to an expression if required.
2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 |
# File 'lib/HDLRuby/hruby_high.rb', line 2335 def <=(expr) if High.top_user.is_a?(HDLRuby::Low::Block) then # We are in a block, so generate and add a Transmit. High.top_user. add_statement(Transmit.new(self.to_ref,expr.to_expr)) else # We are in a system type, so generate and add a Connection. High.top_user. add_connection(Connection.new(self.to_ref,expr.to_expr)) end end |