- 论坛徽章:
- 0
|
哈希如下:
'cases' => [ {'name' => 'VCD',
'opt' => {'dump_vcd1' => {'dump_start' => "280000 ns",
'dump_end' => "301250 ns",
'dump_hier' => "\$MC_SHELL",
'vcd_name' => "idle2stress",}
'dump_vcd2' => {'dump_start' => "284500 ns",
'dump_end' => "294500 ns",
'dump_hier' => "\$MC_SHELL",
'vcd_name' => "active_no_traffic",}
'dump_vcd3' => {
...... },
},
},
{'name'=>'Power',
'opt' => {'power_analysis1' => {'top_design' => "mc_ctrl",
'vcd_name' => "idle2srtess",
'pa_start' => "280000ns",
'pa_end' => "301250ns",
},
'power_analysis2' => {'top_design' => "mc_ctrl",
'vcd_name' => "active_no_traffic",
'pa_start' => "284500ns",
'pa_end' => "294500ns",}
'power_nanlysis3' => {
....}
},
可以看出两个name下的分支有一些参数是形同的,现在想要重复利用其中一个name里的参数,即要把name的关键字是VCD下的opt与name是关键字是Power下opt对应的分支一一对应起来,请问我该怎么做 |
|