Class: HRP2SemaphorePlugin

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

Constant Summary collapse

@@ep =
[:eSignalSemaphore, :eWaitSemaphore, :eManageSemaphore, :eReferSemaphore]

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

tSemaphoreの受け口リスト



64
65
66
# File 'lib/tecsgen/plugin/HRP2SemaphorePlugin.rb', line 64

def get_entry_ports_name_list
  @@ep
end

HRP2SemaphorePlugin#print_cfg_cre

CRE_SEMの出力

file

FILE: 出力先ファイル

val

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

tab

string: インデント用のtab



49
50
51
52
# File 'lib/tecsgen/plugin/HRP2SemaphorePlugin.rb', line 49

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

HRP2SemaphorePlugin#print_cfg_sac

SAC_SEMの出力

file

FILE: 出力先ファイル

val

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

acv

string: アクセスベクタ



59
60
61
# File 'lib/tecsgen/plugin/HRP2SemaphorePlugin.rb', line 59

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