Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DSPF syntax for commenting

Status
Not open for further replies.

sutapanaki

Advanced Member level 4
Advanced Member level 4
Joined
Nov 2, 2001
Messages
1,346
Helped
524
Reputation
1,050
Reaction score
489
Trophy points
1,363
Location
US
Activity points
11,153
Hi,

I am using an extracted netlist DSPF file and I need to comment a bunch of lines. I was wondering if there is a possibility to comment everything at once. I tried /* */ but it doesn't work and generates errors when I started the spectre simulation. Of course, I can always go and put * at the beginning of each and every line but that will be a lot of * and time needed to spend on this.
 

Use vi:

vim file.dspf
Esc:set nu
Esc:n1,n2s/^/*/

(n1 and n2 are line numbers - '*' will be added for all lines between n1 and n2; "s" means "substitute", ^ is beginning of line).
 
Do you know what the nedit macro will be for that purpose - adding * at the start of every line in a selection of lines?
The simple way s to copy line comment macro for C/C++ and replace // with *

1. Change syntax highlighting to C
2. Copy comment macro for C: Preferences→Defauklt Settings→Customize Menus→Macro Menu
3. Select Comments>// Comment@C@C++@Java@JavaScript and push copy button
4. Change // to * in macro command and Menu entry like below:
1654851161747.png

5. Repeat for uncomment
6. Select Block and run Comment macro:
1654851243391.png
 
"Simple things should be simple, complex things should be possible".

Apparently, whether a "thing" is simple or not, depends on the tool, and on the training/education background.

I understand there is a barrier in learning "vi", but once you overcome that barrier, many things become simple and efficient...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top