Block Commenting of VHDL code in Xilinx ISE 6.3i

V

vijay

Guest
Hi,

Is there a provision to Block Comment Code in Xilinx ISE 6.3i for VHDL.

For example if we want to comment a particular code we have to comment
each line with "--".Can we comment out more than one line of code?
For example in C we use /* */ for block commenting.

Thanks and Regards,
Vijay
 
vijay wrote:
Is there a provision to Block Comment Code in Xilinx ISE 6.3i for VHDL.
No. Block commenting is not supported in VHDL '87 or '93, not sure about
2001 but I don't think so. You typically write a macro in your editor of
choice to add '--' to all lines in a block.

You can add:

genlabel: if <some_test> generate
...
end generate;

around sections but the code inside the generate must still be valid VHDL.
--
Tim Hubberstey, P.Eng. . . . . . Hardware/Software Consulting Engineer
Marmot Engineering . . . . . . . VHDL, ASICs, FPGAs, embedded systems
Vancouver, BC, Canada . . . . . . . . . . . http://www.marmot-eng.com
 
On Mon, 07 Feb 2005 04:55:13 GMT, Tim Hubberstey <bogus@bogusname.com>
wrote:

vijay wrote:

Is there a provision to Block Comment Code in Xilinx ISE 6.3i for VHDL.

No. Block commenting is not supported in VHDL '87 or '93, not sure about
2001 but I don't think so.
The 2001 comments are the same as the '93 or '87 ones.

Regards,
Allan
 
Hi Tim,
Can you please throw more light on this.

Thanks and Regards,
Vijay
 
Hi Vijay,
VHDL language has no block comment feature. You need to add "--" to
every line. A good text editor should help you here - select a region of
code, press a key (or sequence of keys) and the selected portion shall be
commented. XEmacs with VHDL mode can do this for you (and uncomment as
well).

HTH,
Srinivasan

--
Srinivasan Venkataramanan
Co-Author: SystemVerilog Assertions Handbook, http://www.abv-sva.org
Co-Author: Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition.
http://www.noveldv.com
I own my words and not my employer, unless specifically mentioned
"vijay" <vijaynkrishna@gmail.com> wrote in message
news:1107753815.545443.238130@c13g2000cwb.googlegroups.com...
Hi Tim,
Can you please throw more light on this.

Thanks and Regards,
Vijay
 
VHDL language has no block comment feature. You need to add "--" to
every line. A good text editor should help you here - select a region of
code, press a key (or sequence of keys) and the selected portion shall be
commented. XEmacs with VHDL mode can do this for you (and uncomment as
well).
I did the same with Textpad which is shareware. I just recorded a
macro which types "--" and a linefeet and let it execute for the hole
selection. The comment is easy to remove with blockselection of
textpad when the comment is fixed to the start of the line with "Pos
1" key.

Wolfgang
 
Hi,

Is there a provision to Block Comment Code in Xilinx ISE 6.3i for
VHDL.

For example if we want to comment a particular code we have to comment
each line with "--".Can we comment out more than one line of code?
For example in C we use /* */ for block commenting.
Thanks and Regards,
Vijay
Use a more Advanced Editor!
I use UltraEdit with a VHDL Syntax File to uncomment several lines of code
with just 2 mouse clicks.
I guess there are tones of editors with that sort of futures.
But I havent found some "really groovy" vhdl ide yet myself.
 
vijay wrote:
Hi,

Is there a provision to Block Comment Code in Xilinx ISE 6.3i for VHDL.

For example if we want to comment a particular code we have to comment
each line with "--".Can we comment out more than one line of code?
For example in C we use /* */ for block commenting.

Thanks and Regards,
Vijay
Via ISAC resolution IR2045, /* */ are candidate block comment
characters for the next VHDL revision. See:

http://www.eda.org/isac/IRs-VHDL-2002/IR2045.txt


Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jim Lewis
Director of Training mailto:Jim@SynthWorks.com
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Welcome to EDABoard.com

Sponsor

Back
Top