Class: TdlSpace::DefDebugLogicArrayChain

Inherits:
DefArrayChain show all
Defined in:
lib/tdl/sdlmodule/sdlmodule_arraychain.rb

Instance Attribute Summary

Attributes inherited from DefArrayChain

#belong_to_module, #chain

Instance Method Summary collapse

Methods inherited from DefArrayChain

#[], #check_name, #check_topmodule_method, #initialize, #method_missing, #to_inp

Constructor Details

This class inherits a constructor from TdlSpace::DefArrayChain

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TdlSpace::DefArrayChain

Instance Method Details

#-(name) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/tdl/sdlmodule/sdlmodule_arraychain.rb', line 123

def -(name)
    if @chain.length > 1
        dimension = @chain[0,@chain.length-1]
    else 
        dimension = []
    end
    name = to_inp(name)
    belong_to_module.Def.debuglogic(name: name,dsize: @chain.last || 1,dimension: dimension,type: @type || 'logic')
end

#wireObject



133
134
135
136
# File 'lib/tdl/sdlmodule/sdlmodule_arraychain.rb', line 133

def wire 
    @type = 'wire'
    return self 
end