Class: String

Inherits:
Object
  • Object
show all
Includes:
ClassHDL::AssignDefOpertor, CtrlLogic
Defined in:
lib/tdl/exlib/itegration.rb,
lib/tdl/basefunc.rb,
lib/tdl/Logic/logic_latency.rb,
lib/tdl/axi4/axi4_interconnect_verb.rb,
lib/tdl/class_hdl/hdl_redefine_opertor.rb

Overview

add to itegration names_pool

Direct Known Subclasses

GenInnerStr, NqString, StringBandItegration

Constant Summary

Constants included from ClassHDL::AssignDefOpertor

ClassHDL::AssignDefOpertor::OP_SYMBOLS

Instance Method Summary collapse

Methods included from ClassHDL::AssignDefOpertor

curr_assign_block, curr_assign_block=, curr_assign_block_stack, curr_opertor_stack, included, init_op_methods, use_new_yield_opertors, use_old_cond_opertors, with_new_assign_block, with_new_opertor, with_normal_opertor, with_rollback_opertors

Methods included from CtrlLogic

#broaden_and_cross_clk, #cross_clock, #latency

Instance Method Details

#high_signalObject



22
23
24
# File 'lib/tdl/axi4/axi4_interconnect_verb.rb', line 22

def high_signal
    self
end

#low_signalObject



18
19
20
# File 'lib/tdl/axi4/axi4_interconnect_verb.rb', line 18

def low_signal
    self
end

#snoop(itgt = nil, sdlmodule = nil) ⇒ Object

def of(itgt)

itgt.names_pool[self]

end

def signal_of(itgt,sdlmodule)

sdlmodule.signal(self.of(itgt))

end



273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/tdl/exlib/itegration.rb', line 273

def snoop(itgt=nil,sdlmodule=nil)
     itgt ||= $_implicit_curr_itgt_.last
     if sdlmodule
         # unless sdlmodule.has_signal?(itgt.names_pool[self])
         unless sdlmodule.respond_to?(itgt.names_pool[self])
             if sdlmodule.is_a?(TopModule) && sdlmodule.techbench.respond_to?(itgt.names_pool[self])
                 sdlmodule.techbench.signal(itgt.names_pool[self])
             else 
                 sdlmodule.signal(itgt.names_pool[self])
                 # raise TdlError.new("Dont have `#{itgt.names_pool[self]}` in module <#{sdlmodule.module_name}>" )
             end
         else 
             sdlmodule.signal(itgt.names_pool[self])
         end
     else
         itgt.top_module.signal(itgt.names_pool[self])
     end
end

#to_inp(itgt = nil) ⇒ Object



257
258
259
260
261
262
263
# File 'lib/tdl/exlib/itegration.rb', line 257

def to_inp(itgt=nil)
    if itgt
        itgt.names_pool.use_self(self)
    else
        $_implicit_curr_itgt_.last.names_pool.use_self(self)
    end
end

#to_nqObject



105
106
107
# File 'lib/tdl/basefunc.rb', line 105

def to_nq
    NqString.new(self)
end