I have a question about modifying a file I have on. It is a verilog netlist, so the lines are so:
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)
So some cells are contained in one line, whereas some cells span 2 lines(2nd one above). I'd like to move cells spanning 2 lines into one.
I know the lines not containing cells will not have a capital X. So if i search for lines that dont match "X", I get all lines that should be appended to the line above it. How would I do this for a very large(~600000) line file? I plan to modify the netlist after this to make the changes I require.