Re: [vhdl-200x] Modular types

From: Brian Drummond <brian@shapes.demon.co.uk>
Date: Wed Jul 09 2014 - 12:44:35 PDT
On Wed, 2014-06-25 at 14:17 +0000, Martin.J Thompson wrote:
> Greetings all,
> 
>  
> 
> In the last teleconference I was asked to look at what VHDL might be
> able to implement for “modular types”, so I’ve taken a look at how Ada
> does it (quotes below are taken from the LRM
> http://www.ada-auth.org/standards/ada12.html). 

> I would propose that any VHDL implementation of modular types would
> stick very closely to the Ada definition.

> So, are there any features you would like which are not mentioned?
> Constraints which do not make sense?

I would agree but I would suggest (as Whygee suggested following his
experiments) adding shift and rotate operators. 

The meaning of these is easy to understand for the modulo-2**n case. but
may require some thought in the more general case (I would suggest shift
on a bit position basis, followed by a modulo operation like the and/or
operations.

- Brian




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jul 9 12:44:55 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 09 2014 - 12:44:58 PDT