Verilog ポート リストの後に次のようなコードを追加したいと考えています。
module module_name (
input wire in1,
input wire in2,
output wire out1
);
sed (または別のコマンド) を使用して、「module」で始まり「);」で終わるポート リストを見つける方法についてのヘルプを探しています。「);」に続く行にコードを追加します。
コマンド:
sed '/^module/,/);/a code to append' test.v
一致したシーケンス内のすべての行に「追加するコード」を配置し、その後だけでなく
module module_name (
code to append
input wire in1,
code to append
input wire in2,
code to append
output wire out1
code to append
);
code to append