Hi, I have added two additional proposed implementations to the modular types proposal. The first proposes using records to implement modular types. This can be done today. The big limitation is that there is no way to convey to the synthesis tool that the modulus that goes with the type is a static value, hence, it will likely result in some extra hardware. 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. Best Regards, Jim P.S. I have the whole package for modular types with records if you are interested in playing with it, let me know. Once I test it, I plan on putting it on my website. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jim Lewis VHDL Training Expert, SynthWorks IEEE 1076 VHDL Working Group Chair Open Source VHDL Verification Methodology (OSVVM), Chief Architect and Co-founder 1-503-590-4787 Jim@SynthWorks.com http://www.SynthWorks.com VHDL Training on leading-edge, best coding practices for hardware design and verification. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Oct 16 11:38:49 2014
This archive was generated by hypermail 2.1.8 : Thu Oct 16 2014 - 11:39:44 PDT