class HDLRuby::High::Type

Describes a high-level data type.

NOTE: by default a type is not specified.

Constants

High

High-level libraries for describing digital hardware.

Public Class Methods

new(name) click to toggle source

Creates a new type named name.

Calls superclass method HDLRuby::Low::Type::new
# File lib/HDLRuby/hruby_high.rb, line 1537
def initialize(name)
    # Initialize the type structure.
    super(name)
end

Public Instance Methods

to_low(name = self.name) click to toggle source

Converts the type to HDLRuby::Low and set its name.

NOTE: should be overridden by other type classes.

# File lib/HDLRuby/hruby_high.rb, line 1545
def to_low(name = self.name)
    # return HDLRuby::Low::Type.new(name)
    typeL = HDLRuby::Low::Type.new(name)
    # For debugging: set the source high object
    typeL.properties[:low2high] = self.hdr_id
    self.properties[:high2low] = typeL
    return typeL
end