Which version of VHDL supports delimited comments.

F

fl

Guest
Hi,
I am new to VHDL. The book "The designer's guide to VHDL", 3rd ed.
says:

VHDL-87, -93 and -2002
These versions of VHDL only allow single-line comments, not delimited
comments.

I am very curious which version VHDL allows delimited comments.


Thanks a lot.
 
fl wrote:

I am very curious which version VHDL allows delimited comments.
None, but many editors will
comment or uncomment a region.

-- Mike Treseler
 
On Wed, 11 Jun 2008 22:06:25 +0100, "HT-Lab" <hans64@ht-lab.com> wrote:

"fl" <rxjwg98@gmail.com> wrote in message
news:6b3e7763-0ab6-4535-916b-16d0c7f09e46@j22g2000hsf.googlegroups.com...
Hi,
I am new to VHDL. The book "The designer's guide to VHDL", 3rd ed.
says:

VHDL-87, -93 and -2002
These versions of VHDL only allow single-line comments, not delimited
comments.

I am very curious which version VHDL allows delimited comments.

It is supported in VHDL2006/7/8/9 or whatever it will be called. Currently
only Aldec supports part of this new standard.

It is the same as in C/C++, that is, /* ... */

Hans
www.ht-lab.com
I seriously hope not. I would far rather it was the same as in Modula-2
etc.

/*
-- Comment out this page of broken code to see what happens

test <= (others => '0');

/*
The following line has interesting properties with C style comments,
but causes no problem with Modula-2 (* *) because comment delimiters can
be nested
*/

test <= gotcha;

-- Return to working code
*/

Not that I have ever fallen into this trap in practice. *cough*

- Brian
 
Brian Drummond wrote:
On Wed, 11 Jun 2008 22:06:25 +0100, "HT-Lab" <hans64@ht-lab.com> wrote:

"fl" <rxjwg98@gmail.com> wrote in message
news:6b3e7763-0ab6-4535-916b-16d0c7f09e46@j22g2000hsf.googlegroups.com...
Hi,
I am new to VHDL. The book "The designer's guide to VHDL", 3rd ed.
says:

VHDL-87, -93 and -2002
These versions of VHDL only allow single-line comments, not delimited
comments.

I am very curious which version VHDL allows delimited comments.
It is supported in VHDL2006/7/8/9 or whatever it will be called. Currently
only Aldec supports part of this new standard.

It is the same as in C/C++, that is, /* ... */

Hans
www.ht-lab.com


I seriously hope not. I would far rather it was the same as in Modula-2
etc.
The draft standard for VHDL-2008 does support delimited comments in the
C/C++ style. It does not support nested delimited comments.

--
Tim McBrayer
x4229
 

Welcome to EDABoard.com

Sponsor

Back
Top