RE: [vhdlsynth] Re: [vhdl-200x-ft] Bit size rules

From: Jonathan Bromley <jonathan.bromley@doulos.com>
Date: Mon Jul 12 2004 - 01:33:24 PDT

> -----Original Message-----
> From: Marcus Harnisch [mailto:marcus.harnisch@gmx.net]
> Sent: 10 July 2004 19:55
> To: Jonathan Bromley
> Cc: vhdl-200x-ft@eda.org; vhdlsynth@vhdl.org
> Subject: Re: [vhdlsynth] Re: [vhdl-200x-ft] Bit size rules

> >PROPOSAL
> >~~~~~~~~
> >Require that any fixed-point object or subtype have
> >a descending array range.
> >
> >IMPLEMENTATION SUGGESTION (2)
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >Modify the base language so that unconstrained
> >vector types can be declared to have a range that
> >is required to be ascending or descending.

> Could that perhaps be addressed by allowing to set the
> 'ascending attribute?

I don't much like that idea myself - it sounds like just a
slightly different way of doing

  assert [not] my_array'ascending

and the idea of attempting to set something that's a static
property of an object doesn't really appeal.

As I said, I don't really want to get bogged down in syntax
proposals right now, since they're not central to the basic
idea. Further down the line we could easily imagine various
ways to do the necessary syntax. One possibility, which
requires no new syntax but does require a significant change
in language definition, is to permit just one subtype
constraint to be applied to an existing constrained array
type, so that

  type ascending_bitvector is array (0 to 10000) of bit;

would have the effect of setting the direction and
absolute limits on subtypes of ascending_bitvector, so that
a subsequent

  subtype ascending_byte is ascending_bitvector(0 to 7);

would be legal.

Regards

-- 
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223                   Email: jonathan.bromley@doulos.com
Fax: +44 (0)1425 471573                           Web: http://www.doulos.com
This e-mail and any  attachments are  confidential and Doulos Ltd. reserves 
all rights of privilege in  respect thereof. It is intended for the use of 
the addressee only. If you are not the intended recipient please delete it 
from  your  system, any  use, disclosure, or copying  of this  document is 
unauthorised. The contents of this message may contain personal views which 
are not the views of Doulos Ltd., unless specifically stated.
Received on Mon Jul 12 01:33:29 2004

This archive was generated by hypermail 2.1.8 : Mon Jul 12 2004 - 01:33:35 PDT