class TdlSpace::DefLogicArrayChain

Public Instance Methods

-(name) click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 84
def -(name)
    if @chain.length > 1
        dimension = @chain[0,@chain.length-1]
    else 
        dimension = []
    end
    name = to_inp(name)
    rel = belong_to_module.Def.logic(name: name,dsize: @chain.last || 1,dimension: dimension,type: @type || 'logic')
end
clock(*args) click to toggle source
# File lib/tdl/class_hdl/hdl_ex_defarraychain.rb, line 185
def clock(*args) 
    if args.any?
        if args[0].is_a? Hash 
            freqM = args[0][:freqM]
        else 
            freqM = args[0]
        end 
    else  
        freqM = nil
    end

    a = ClockDefLogicArrayChain.new(@belong_to_module)
    a.freqM = freqM

    return a
end
integer() click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 109
def integer 
    @type = 'integer'
    return self 
end
reset(*args) click to toggle source
# File lib/tdl/class_hdl/hdl_ex_defarraychain.rb, line 202
def reset(*args) 

    if args.any?
        if args[0].is_a? Hash 
            active = args[0][:active]
        else 
            active = args[0]
        end 
    else  
        active = nil
    end

    a = ResetDefLogicArrayChain.new(@belong_to_module)
    a.active = active

    return a

end
string() click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 114
def string 
    @type = "string"
    return self 
end
tri0() click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 99
def tri0 
    @type = 'tri0'
    return self 
end
tri1() click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 104
def tri1 
    @type = 'tri1'
    return self 
end
wire() click to toggle source
# File lib/tdl/sdlmodule/sdlmodule_arraychain.rb, line 94
def wire 
    @type = 'wire'
    return self 
end