Class: HRP2EventflagPlugin

Inherits:
HRP2KernelObjectPlugin show all
Defined in:
lib/tecsgen/plugin/HRP2EventflagPlugin.rb

Constant Summary collapse

@@ep =
[:eSetEventflag, :eWaitEventflag, :eManageEventflag, :eReferEventflag]

Constants inherited from Plugin

Plugin::PluginArgProc

Instance Method Summary collapse

Methods inherited from HRP2KernelObjectPlugin

check_referenced_cells, #gen_factory, get_celltype_list, include_celltype?, include_region, #initialize, isChecked, set_celltype, set_region_list, #string_cfg_cre

Methods inherited from CelltypePlugin

#gen_factory, gen_post_code, #initialize, #new_cell

Methods inherited from Plugin

#cdl_error, #check_plugin_arg, #gen_cdl_file, #gen_ep_func?, #gen_postamble, #gen_preamble, #initialize, #new_cell, #parse_plugin_arg, #print_msg, #set_locale, #set_silent

Methods inherited from Node

#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #initialize, #locale_str, #set_locale

Constructor Details

This class inherits a constructor from HRP2KernelObjectPlugin

Instance Method Details

#get_entry_ports_name_listObject

tEventflagの受け口リスト



65
66
67
# File 'lib/tecsgen/plugin/HRP2EventflagPlugin.rb', line 65

def get_entry_ports_name_list
  @@ep
end

HRP2EventflagPlugin#print_cfg_cre

CRE_FLGの出力

file

FILE: 出力先ファイル

val

string: カーネルオブジェクトの属性の解析結果

tab

string: インデント用のtab



50
51
52
53
# File 'lib/tecsgen/plugin/HRP2EventflagPlugin.rb', line 50

def print_cfg_cre(file, cell, val, tab)
  file.print tab
    file.puts "CRE_FLG(#{val[:id]}, {#{val[:attribute]}, #{val[:flagPattern]}});"
end

HRP2EventflagPlugin#print_cfg_sac

SAC_FLGの出力

file

FILE: 出力先ファイル

val

string: カーネルオブジェクトの属性の解析結果

acv

string: アクセスベクタ



60
61
62
# File 'lib/tecsgen/plugin/HRP2EventflagPlugin.rb', line 60

def print_cfg_sac(file, val, acv)
  file.puts "SAC_FLG(#{val[:id]}, {#{acv[0]}, #{acv[1]}, #{acv[2]}, #{acv[3]}});"
end