Re: [vhdl-200x] Modular types, alternative solutions

From: <tgingold@free.fr>
Date: Thu Oct 23 2014 - 20:52:12 PDT
> Frankly, before we go supporting modular types, I'd like to see
> longer integers than 32 bit signed integers. That limitation is more
> of a pain to work around than working with modular arithmetic using
> the language as-is.

Nothing in the language prevents from having integer types longer than
32 bits.  That's a implementation issue; you should ask your vendor to
support them.

What you may want to is have the Std.Standard.Integer longer than
32 bits.  I am not sure that this is a good idea.  One of VHDL issue
is that Integer is used at many places (and more places that needed).

What is wrong with numeric_bit or numeric_std ?  They provide all the
needs of integer/modular types, but cannot be used easily to index
arrays or as the type of iterator.  Maybe we should concentrate on
that point.

Tristan.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Oct 23 20:52:39 2014

This archive was generated by hypermail 2.1.8 : Thu Oct 23 2014 - 20:52:46 PDT