Class: RubyHDL::High::RefName
- Inherits:
-
Ref
- Object
- Expression
- Ref
- RubyHDL::High::RefName
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a SW implementation of a reference by name.
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(type, name) ⇒ RefName
constructor
Create a new named reference with +type+ data type and +name+ name.
-
#to_python(l = "") ⇒ Object
Convert to Python code.
-
#to_ruby ⇒ Object
(also: #to_c)
Convert to Ruby code.
-
#to_tf(l = "") ⇒ Object
Convert to TensorFlow code.
Methods inherited from Ref
Methods inherited from Expression
#<=, #[], #heach, #mux, #sdownto, #seach, #stimes, #supto, #to_expr, #to_value
Methods included from HEnumerable
#hall?, #hany?, #hchain, #hchunk, #hchunk_while, #hcompact, #hcount, #hcycle, #hdrop, #hdrop_while, #heach_cons, #heach_entry, #heach_range, #heach_slice, #heach_with_index, #heach_with_object, #hfind, #hfind_index, #hfirst, #hflat_map, #hgrep, #hgrep_v, #hgroup_by, #hinclude?, #hinject, #hlazy, #hmap, #hmax, #hmax_by, #hmin, #hmin_by, #hminmax, #hminmax_by, #hnone?, #hone?, #hpartition, #hreduce, #hreject, #hreverse_each, #hselect, #hslice_after, #hslice_before, #hslice_when, #hsort, #hsort_by, #hsum, #htake, #htake_while, #htally, #hto_a, #hto_h, #huniq, #hzip
Constructor Details
#initialize(type, name) ⇒ RefName
Create a new named reference with +type+ data type and +name+ name.
2581 2582 2583 2584 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2581 def initialize(type,name) super(type) @name = name.to_sym end |
Instance Method Details
#to_python(l = "") ⇒ Object
Convert to Python code.
2595 2596 2597 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2595 def to_python(l = "") return to_ruby end |
#to_ruby ⇒ Object Also known as: to_c
Convert to Ruby code.
2587 2588 2589 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2587 def to_ruby return @name.to_s end |
#to_tf(l = "") ⇒ Object
Convert to TensorFlow code.
2600 2601 2602 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2600 def to_tf(l = "") return to_tf end |