( ESNUG 313 Item 12 ) --------------------------------------------- [3/10/99]
Subject: Nicely Reformatting Synopsys Output Via "vi" Editing Tricks
> This may seem a bit silly, but it's been obthering me. How do I control
> the line length of netlists written out by Synopsys Design Compiler. It
> wraps lines at about 80 columns. For those times when I need to dig
> through the gates it would be much easier to have each cell on its own
> line. I've looked through the docs but can't find the magic variable.
>
> - David Rogoff
From: Don Devine <devine@cadence.com>
I'm assuming you're on a unix system. This is something someone sent me
some time ago. The idea is to do some post processing in vi. I know its
not in Synopsys but may help you anyway if you play a bit.
1) Open your vhdl or verilog netlist in vi.
2) Place your cursor at the beginning of a paragraph.
3) Press the escape key.
4) Enter the command to run UNIX /usr/ucb/fmt (default 72 columns) on
a complete paragraph: !}fmt
5) Press the return key. This will format that paragraph to 72 columns,
wrapping intelligently. To format to different column widths, e.g.,
50 columns, use: !}fmt -w 50
To format the whole page, use the from-line-1-to-the-end syntax:
:1,$!fmt -w 78
Or, another way to format the whole page is to use the whole-page syntax:
:%!fmt -w 78
It's an idiots guide just in case you don't know vi. Hope this helps.
- Don Devine
ACCENT srl / Cadence Vimercate (Milan), Itay
|
|