Hi Tristan, >> The second proposes adding discriminants (another concept borrowed >> from ADA). I am actually surprised that ADA did not do modular >> types this way as this provides a general feature that we can use >> for other things, such as saturating types. > Your discriminant proposal doesn't allow large modular types, and > doesn't provide strong typing :-( The proposal shows an example using current VHDL types. Certainly if integers are extended, the extended integers could be used. Hard to base a proposal on something that does not exist yet. In addition, as a general feature, discriminants could be used to create a saturating integer type or even a real number with a modulus (independent as to whether it makes sense or not). Cheers, Jim p.s. I added notes on your thoughts about generics. It would be interesting to hear your reply. Also note that Cliff W has been experimenting with a package that uses generics to do modulo types. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jim Lewis Jim@SynthWorks.com VHDL Training Expert http://www.SynthWorks.com IEEE VHDL Working Group Chair OSVVM, Chief Architect and Cofounder 1-503-590-4787 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Oct 23 14:32:50 2014
This archive was generated by hypermail 2.1.8 : Thu Oct 23 2014 - 14:33:31 PDT