class HDLRuby::High::When
Describes a high-level when for a case statement.
Constants
- High
High-level libraries for describing digital hardware.
Public Class Methods
new(match,statement)
click to toggle source
Creates a new when for a casde statement that executes statement
on match
.
Calls superclass method
HDLRuby::Low::When::new
# File lib/HDLRuby/hruby_high.rb, line 2265 def initialize(match,statement) super(match,statement) end
Public Instance Methods
to_low()
click to toggle source
Converts the if to HDLRuby::Low
.
# File lib/HDLRuby/hruby_high.rb, line 2270 def to_low # return HDLRuby::Low::When.new(self.match.to_low, # self.statement.to_low) whenL = HDLRuby::Low::When.new(self.match.to_low, self.statement.to_low) # For debugging: set the source high object whenL.properties[:low2high] = self.hdr_id self.properties[:high2low] = whenL return whenL end