Module: HDLRuby::High::HStatement

Included in:
Case, Delay, If, TimeRepeat, TimeWait, Transmit
Defined in:
lib/HDLRuby/hruby_high.rb

Overview

Module giving high-level statement properties

Instance Method Summary collapse

Instance Method Details

#hif(condition) ⇒ Object

Creates a new if statement with a +condition+ enclosing the statement.

NOTE: the else part is defined through the helse method.



1984
1985
1986
1987
# File 'lib/HDLRuby/hruby_high.rb', line 1984

def hif(condition)
    # Creates the if statement.
    return If.new(condition) { self }
end