diff options
Diffstat (limited to 'testsuite/issues/issue61/vector.vhdl')
-rw-r--r-- | testsuite/issues/issue61/vector.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/issues/issue61/vector.vhdl b/testsuite/issues/issue61/vector.vhdl new file mode 100644 index 0000000..34274be --- /dev/null +++ b/testsuite/issues/issue61/vector.vhdl @@ -0,0 +1,20 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity vector is + port (v: out signed(63 downto 0); + u: out unsigned(63 downto 0)); +end vector; + +architecture synth of vector is + signal v1 : signed (63 downto 0); + signal u1 : unsigned (63 downto 0); + +begin + v1 <= x"0ffffffffffffff0"; + v <= v1+(-1); + u1 <= x"00ffffffffffff00"; +-- u <= u1 + (-6); -- +4294967290; + u <= u1 + 6; +end synth; |