class HDLRuby::Low::SignalC

Describes a constant signal.

Add the conversion to high.

Public Instance Methods

immutable?() click to toggle source

Tells if the signal is immutable (cannot be written.)

# File lib/HDLRuby/hruby_low.rb, line 2480
def immutable?
    # Constant signals are immutable.
    true
end
to_high() click to toggle source

Creates a new high constant signal.

# File lib/HDLRuby/hruby_low2high.rb, line 182
def to_high
    # Is there an initial value?
    if (self.value) then
        # Yes, create a new high signal with it.
        return HDLRuby::High::SignalC.new(self.name,self.type.to_high,
                                      self.val.to_high)
    else
        # No, create a new high signal with it.
        return HDLRuby::High::SignalC.new(self.name,self.type.to_high)
    end
end