class HDLRuby::High::Concat

Describes z high-level concat expression.

Public Instance Methods

to_expr() click to toggle source

Converts to a new expression.

# File lib/HDLRuby/hruby_high.rb, line 2847
def to_expr
    return Concat.new(self.type,
        self.each_expression.map do |expr|
            expr.to_expr
        end
    )
end
to_low() click to toggle source

Converts the concatenation expression to HDLRuby::Low.

# File lib/HDLRuby/hruby_high.rb, line 2856
def to_low
    # return HDLRuby::Low::Concat.new(self.type.to_low,
    #     self.each_expression.map do |expr|
    #         expr.to_low
    #     end
    # )
    concatL = HDLRuby::Low::Concat.new(self.type.to_low,
        self.each_expression.map do |expr|
            expr.to_low
        end
    )
    # For debugging: set the source high object
    concatL.properties[:low2high] = self.hdr_id
    self.properties[:high2low] = concatL
    return concatL
end