[vhdl-200x] RE: Modular types

From: Martin.J Thompson <Martin.J.Thompson@trw.com>
Date: Thu Jul 24 2014 - 02:20:09 PDT
Hi all, and thanks to Jim for the reminder :)

I've summarised the past discussions on the implementation of a modular type.  You can find a proposal here:

http://www.eda-twiki.org/cgi-bin/view.cgi/P1076/ModularTypes

A number of questions are still outstanding...

First and foremost:

Do we implement as a "new type", or by "extending the operation of resolution functions"?
Andy, I'm not sure I've grasped all the implications of your proposed solution through the use of resolution functions. In particular - would it be possible to perform logical operations on modular types merely by overloading the resolution function?

Also,

* Should logical, shift, etc. operators be allowed on non-power-of-2-modulus?
* Should assignment operate like Ada or in what has been described as "the expected way"?
* Should modular types *have* to go from 0 to something? Or would -1 to 6 be acceptable?  And would it allow logicals, shifts and rotates?

Comments welcome!

Cheers,
Martin


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 24 02:20:42 2014

This archive was generated by hypermail 2.1.8 : Thu Jul 24 2014 - 02:21:10 PDT