- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tecsgen/tecslib/plugin/HRP2TaskPlugin.rb
r321 r429 35 35 # の責任を負わない. 36 36 # 37 # $Id$ 37 38 #++ 38 39 … … 52 53 # tab : 53 54 def print_cfg_cre(file, cell, val, tab) 54 val[:id] = val[:id].gsub( /(^|[^\$])\$id\$/, "\\1#{@celltype.get_name.to_s}_#{cell.get_name.to_s}" ) 55 #val[:id] = val[:id].gsub( /(^|[^\$])\$id\$/, "\\1#{@celltype.get_name.to_s}_#{cell.get_global_name.to_s}" ) 56 #val[:id] = @celltype.subst_name( val[:id], @celltype.get_name_array( cell ) ) 55 57 # $cbp$の代わり 56 58 index = cell.get_id - @celltype.get_id_base … … 58 60 cell_CB_name = "#{index}" 59 61 # CRE_XXX/DEF_XXXの生成 60 print "assign task plugin\n"62 dbgPrint "assign task plugin\n" 61 63 domainOption = cell.get_region.get_domain_root.get_domain_type.get_option 62 64 # if cell.get_region.get_region_type == :DOMAIN 65 # cell.show_tree 1 63 66 if domainOption != "OutOfDomain" 64 67 # 保護ドメインに属する場合 … … 68 71 raise "system task cannot have user stack." 69 72 end 73 p "CRE_TSK 0 user=#{val[:userStackSize]} system=#{val[:systemStackSize]}" 70 74 file.print <<EOT 71 75 #{tab}CRE_TSK(#{val[:id]}, { #{val[:taskAttribute]}, #{cell_CB_name}, tTask_start_task, #{val[:priority]}, #{val[:systemStackSize]}, NULL }); … … 76 80 raise "user task must have user stack." 77 81 end 82 p "CRE_TSK 1" 78 83 if val[:systemStackSize] == "OMIT" 79 84 file.print <<EOT … … 81 86 EOT 82 87 else 88 p "CRE_TSK 2" 83 89 file.print <<EOT 84 90 #{tab}CRE_TSK(#{val[:id]}, { #{val[:taskAttribute]}, #{cell_CB_name}, tTask_start_task, #{val[:priority]}, #{val[:userStackSize]}, NULL, #{val[:systemStackSize]}, NULL }); … … 121 127 ct = cell.get_celltype 122 128 if ct.class == Celltype && check_celltype_list.include?( ct ) == false 129 # チェック済みセルタイプに登録 130 check_celltype_list << ct 131 123 132 # 未チェックのセルタイプだった場合 124 133 # puts "check for ATT_MOD : #{ct.classget_global_name}" … … 134 143 regions = ct.get_domain_roots 135 144 regions_hrp2 = regions[ :HRP2 ] 136 print "HRP2 domain in #{ct.get_name}: "145 dbgPrint "HRP2 domain in #{ct.get_name}: " 137 146 regions_hrp2.each { |reg| 138 print reg.get_name147 dbgPrint reg.get_name 139 148 } 140 149 puts "" … … 179 188 file.print "ATT_MOD(\"#{ct.get_global_name}.o\");\n" 180 189 file.close 181 182 check_celltype_list << ct183 190 else 184 191 # 何もしない
Note:
See TracChangeset
for help on using the changeset viewer.