RE: [vhdl-200x] Modular types

From: <whygee@f-cpu.org>
Date: Mon Jul 14 2014 - 11:45:50 PDT
Le 2014-07-14 20:35, ryan.w.hinton@L-3com.com a écrit :
> Can someone help me understand why the modulus affects the definition
> of logical and shift operations?  I imagine logical and shift
> operations applying to the twos-complement representation of the
> integer.  I don't see how the modulus affects this definition.

Just to be explicit and clear, the operators
  - could be named shl2, sha2, shr2, rol2, ror2, and2, or2, ...
       (BTW, the boolean case for modulars is quite easy to manage,
       just mask the MSB, but the rotations are the trickiest of the lot)
  - would trigger a warning when used on non-binary modulars

or any combination of these possibilities.

Any other suggestion ?

yg

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jul 14 11:46:17 2014

This archive was generated by hypermail 2.1.8 : Mon Jul 14 2014 - 11:46:21 PDT