Class: TdlSpace::TopModuleTestUnitRef
- Inherits:
-
Object
- Object
- TdlSpace::TopModuleTestUnitRef
- Defined in:
- lib/tdl/sdlmodule/top_module.rb
Instance Method Summary collapse
- #collect_unit(tu) ⇒ Object
- #dve_wave(name: '', signals: []) ⇒ Object
- #echo_units ⇒ Object
- #gen_dve_tcl(filename) ⇒ Object
Instance Method Details
#collect_unit(tu) ⇒ Object
456 457 458 459 |
# File 'lib/tdl/sdlmodule/top_module.rb', line 456 def collect_unit(tu) @__collect_units__ ||= [] @__collect_units__ << tu end |
#dve_wave(name: '', signals: []) ⇒ Object
481 482 483 484 485 |
# File 'lib/tdl/sdlmodule/top_module.rb', line 481 def dve_wave(name: '', signals: []) return unless signals @_dev_wave_ ||= Hash.new @_dev_wave_[name.to_s] = signals ## Signal is TdlTestPoint end |
#echo_units ⇒ Object
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/tdl/sdlmodule/top_module.rb', line 461 def echo_units @__collect_units__ ||= [] index = 1 rels = [] __collect = TdlTestPoint.inst_collect.select { |e| e.target.belong_to_module.top_tb_ref? } @__collect_units__.each do |ue| tp_str = ue.origin.dve_wave_signals.map do |ele| unless __collect.index(ele.tp_instance) puts ele.name end " ->#{__collect.index(ele.tp_instance)+1}< :: #{ele.tp_instance.name} || #{ele.tp_instance.file}:#{ele.tp_instance.line}" end.join("\n") rels << " [#{index}] #{ue.origin.module_name} ::<TestPoints> \n#{tp_str}" index += 1 end rels.join("\n") end |
#gen_dve_tcl(filename) ⇒ Object
487 488 489 490 491 |
# File 'lib/tdl/sdlmodule/top_module.rb', line 487 def gen_dve_tcl(filename) File.open(filename,'w') do |f| f.puts TdlSpace.gen_dev_wave_tcl(@_dev_wave_ || Hash.new) end end |