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



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

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



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

def wire 
    @type = 'wire'
    return self 
end