Class: HDLRuby::Low::SignalC
- Defined in:
- lib/HDLRuby/hruby_low.rb,
lib/HDLRuby/hruby_low2high.rb
Overview
Describes a constant signal.
Direct Known Subclasses
Constant Summary
Constants included from Low2Symbol
Low2Symbol::Low2SymbolPrefix, Low2Symbol::Low2SymbolTable, Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes inherited from SignalI
Attributes included from Hparent
Instance Method Summary collapse
-
#immutable? ⇒ Boolean
Tells if the signal is immutable (cannot be written.).
-
#to_high ⇒ Object
Creates a new high constant signal.
Methods inherited from SignalI
#add_signal, #clone, #each_deep, #each_signal, #explicit_types!, #get_by_name, #get_signal, #initialize, #replace_names!, #set_name!, #set_type!, #set_value!, #to_c, #to_c_alias, #to_c_signal, #to_ch, #to_hdr, #to_verilog, #to_vhdl, #width
Methods included from Low2Symbol
Methods included from Hparent
#absolute_ref, #hierarchy, #no_parent!, #scope
Constructor Details
This class inherits a constructor from HDLRuby::Low::SignalI
Instance Method Details
#immutable? ⇒ Boolean
Tells if the signal is immutable (cannot be written.)
2792 2793 2794 2795 |
# File 'lib/HDLRuby/hruby_low.rb', line 2792 def immutable? # Constant signals are immutable. true end |
#to_high ⇒ Object
Creates a new high constant signal.
196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/HDLRuby/hruby_low2high.rb', line 196 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 |