RE: [vhdl-200x] Modular types

From: Martin.J Thompson <Martin.J.Thompson@trw.com>
Date: Fri Jul 11 2014 - 07:53:52 PDT
> -----Original Message-----
> From: owner-vhdl-200x@eda.org [mailto:owner-vhdl-200x@eda.org] On
> Behalf Of Brian Drummond
> Sent: 11 July 2014 14:36
> To: vhdl-200x@eda.org
> Subject: Re: [vhdl-200x] Modular types
> 

> But if we are providing boolean and shift operators for the special
> case of modulo 2**n, then we have to do one of:
> 
> 1) restrict modular types to mod 2**n. Prohibits other legitimate uses.
> IMO : Just No.
> 2) Define boolean and shift only for mod 2**n and prohibit for other
> cases. Ugly irregular language feature. IMO : No.
> 3) Define boolean and shift only for mod 2**n and leave their semantics
> undefined for other cases. IMO : that would not be appropriate in Ada.
> 4) Have well defined semantics for all cases, in such a way that
> efficiency and implementation burden are tolerable, and that the common
> 2**n case has the desired properties. IMO : this is the only tolerable
> option of the first four.
> 5) Split modular types into two  : power of two, and other. IMO : too
> much complexity
> 6) ???

I can't think of anything to go in 6), so I agree, (4) is our best option.

Cheers,
Martin


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jul 11 07:54:52 2014

This archive was generated by hypermail 2.1.8 : Fri Jul 11 2014 - 07:55:45 PDT