Class: HDLRuby::Low::SignalC
- Defined in:
- lib/HDLRuby/hruby_low.rb,
lib/HDLRuby/hruby_low2high.rb
Overview
Add the conversion to high.
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
#clone, #each_deep, #eql?, #explicit_types!, #hash, #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
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.)
2530 2531 2532 2533 |
# File 'lib/HDLRuby/hruby_low.rb', line 2530 def immutable? # Constant signals are immutable. true end |
#to_high ⇒ Object
Creates a new high constant signal.
182 183 184 185 186 187 188 189 190 191 192 |
# 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 |