Re: EXTERNAL: Re: [vhdl-200x] Modular types

From: <tgingold@free.fr>
Date: Tue Jul 08 2014 - 01:24:43 PDT
> I agree that the resolution proposal inherently feels wrong to use as
> a solution.
> 
> I'm not sure I understand what the problems  with (1) are (apart from
> overflowing) in performing all the arithmetic in normal integer mode
> and implicitly converting to the modular type on assignment.

Well, the arithmetic is not the same.  Eg: (3 + 1) mod 3

For a signed type, the result is 1.
For a modular type with a modulus of 4, the result is 0.

Regards,
Tristan.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jul 8 01:27:07 2014

This archive was generated by hypermail 2.1.8 : Tue Jul 08 2014 - 01:29:12 PDT