RE: [vhdl-200x] Modular types

From: Martin.J Thompson <Martin.J.Thompson@trw.com>
Date: Fri Jun 27 2014 - 00:42:06 PDT
>From: owner-vhdl-200x@eda.org [mailto:owner-vhdl-200x@eda.org] On Behalf Of Jones, Andy D
>Sent: 26 June 2014 21:23
>To: vhdl-200x@eda.org
>Subject: RE: [vhdl-200x] Modular types

...
>Do we want something that automatically truncates (modulo) an integer expression result to a given "size" object,
>or do we want each operation to constrain its results accordingly?

>Without far-reaching changes to the language, I don't know how to accomplish the latter, except with array types,
>which we are trying to avoid, presumably for performance reasons.

I think the point *is* to introduce a significant (but not that far-reaching?) change to the language and introduce a new type (based on the universal_integer) with new behaviour on assignment of reduction-modulo-some-constant.  The compiler will sort it all out.

Or am I missing your point?

Cheers,
Martin

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jun 27 00:42:28 2014

This archive was generated by hypermail 2.1.8 : Fri Jun 27 2014 - 00:42:32 PDT