lib/HDLRuby/hruby_low_bool2select.rb in HDLRuby-2.2.3 vs lib/HDLRuby/hruby_low_bool2select.rb in HDLRuby-2.2.5
- old
+ new
@@ -127,9 +127,20 @@
# Nothing to do.
return self
end
end
+ ## Extends the TimeRepeat class with functionality for converting booleans
+ # in assignments to setlect operators.
+ class TimeRepeat
+ # Converts booleans in assignments to select operators.
+ def boolean_in_assign2select!
+ # Simply recurse on the stamtement.
+ self.statement.boolean_in_assign2select!
+ return self
+ end
+ end
+
## Extends the Block class with functionality for converting booleans
# in assignments to select operators.
class Block