in reply to File modification on the fly
use warnings; use strict; # Change input record separator to parse whole Verilog lines local $/ = ';'; while (<DATA>) { s/\s+/ /g; # Convert all whitespace to single-space print "$_\n"; } __DATA__ DFFX1 k0_reg_184 ( .D(key_184 ), .CLK(clk), .QN(n18736) ); DFFX1 k0_reg_183 ( .D(key_183 ), .CLK(clk), .Q(k0_183 ), .QN(n65993) );
Output:
DFFX1 k0_reg_184 ( .D(key_184 ), .CLK(clk), .QN(n18736) ); DFFX1 k0_reg_183 ( .D(key_183 ), .CLK(clk), .Q(k0_183 ), .QN(n65993) +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File modification on the fly (Verilog)
by mavericknik (Sexton) on Aug 02, 2016 at 21:43 UTC | |
by toolic (Bishop) on Aug 03, 2016 at 13:12 UTC | |
by $h4X4_|=73}{ (Monk) on Aug 03, 2016 at 07:46 UTC |