class HDLRuby::High::Cast
Describes a high-level cast expression
Public Instance Methods
to_expr()
click to toggle source
Converts to a new expression.
# File lib/HDLRuby/hruby_high.rb, line 2741 def to_expr return Cast.new(self.type,self.child.to_expr) end
to_low()
click to toggle source
Converts the unary expression to HDLRuby::Low
.
# File lib/HDLRuby/hruby_high.rb, line 2746 def to_low # return HDLRuby::Low::Cast.new(self.type.to_low,self.child.to_low) castL =HDLRuby::Low::Cast.new(self.type.to_low,self.child.to_low) # For debugging: set the source high object castL.properties[:low2high] = self.hdr_id self.properties[:high2low] = castL return castL end