comp.lang.ada
 help / color / mirror / Atom feed
From: pbgraham@engin.umich.edu (Paul B. Graham)
Subject: Re: ADA - VHDL
Date: 1996/07/12
Date: 1996-07-12T00:00:00+00:00	[thread overview]
Message-ID: <4s5jmg$47s@srvr1.engin.umich.edu> (raw)
In-Reply-To: 31E4E37A.4487EB71@sh.bel.alcatel.be



> >    for i in reverse Weekdays loop
> 
> There exist an attribute 'reverse_range
> which can be used to get the same result.

Actually not.  The 'RANGE and 'REVERSE_RANGE attributes in VHDL can only
be used with array types.  Thus in Ada you can write

    for i in character loop ...
or
    for i in reverse character loop ...

But in VHDL you must do

    for i in character loop
or
    for i in character'high downto character'low loop

because the construct

    for i in character'reverse_range loop

is illegal.

Paul




  reply	other threads:[~1996-07-12  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-09  0:00 ADA - VHDL P. Cnudde VH14 (8218)
1996-07-09  0:00 ` Jacques Rouillard
1996-07-10  0:00 ` Paul B. Graham
1996-07-10  0:00   ` Robert Dewar
1996-07-11  0:00     ` Michael Feldman
1996-07-10  0:00   ` Laurent Gasser
1996-07-11  0:00     ` P. Cnudde VH14 (8218)
1996-07-12  0:00       ` Paul B. Graham [this message]
1996-07-11  0:00 ` Robert Dewar
1996-07-15  0:00   ` Brian "Cheebie" Merchant
1996-07-16  0:00     ` Stephen A. Bailey
1996-07-16  0:00     ` P. Cnudde VH14 (8218)
1996-07-16  0:00     ` jos de laender vh14 7461
1996-07-22  0:00     ` Nick Weavers
1996-07-11  0:00 ` Jean-Marc Bourguet
1996-07-11  0:00 ` Jens Hansson
1996-07-12  0:00 ` Jean-Marc Bourguet
1996-07-13  0:00   ` Michael Feldman
1996-07-17  0:00 ` Chris Papademetrious
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox