- 追加された行はこの色です。
- 削除された行はこの色です。
*ASIPS [#efbcdbfa]
**使い方 [#j6561eaa]
**べんりにつかう [#n7e6b978]
いちいち3回コマンド実行するのがめどいので
てきとーrubyスクリプトにしました
パスの通ったところでどうぞ
使い方:ruby hoge.rb [inputfile(spec_hoge.xml)]
if (ARGV[0] == nil) then
puts ARGV[0]
puts "[filename]\n"
exit
end
spec= ARGV[0]
no_cnt= spec.gsub(".xml", "_nocnt.xml")
struct= spec.gsub(".xml", "_structure.xml")
v= spec.gsub(".xml", ".v")
`rm -f #{no_cnt}`
`rm -f #{struct}`
`rm -f #{v}`
`MakeStructure -input #{spec} -output #{no_cnt}`
if (!File.exists?(no_cnt)) then
exit
end
`ApplyCounter -spec #{spec} -input #{no_cnt} -output #{struct} `
if (!File.exists?(struct)) then
exit
end
`MakeHDL -library library.xml -spec #{spec} -input #{struct} -output #{v}`
if (File.exists?(v)) then
puts "output success..\n";
end