aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/formal/abs/test_abs.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/formal/abs/test_abs.vhd')
-rw-r--r--testsuite/formal/abs/test_abs.vhd37
1 files changed, 0 insertions, 37 deletions
diff --git a/testsuite/formal/abs/test_abs.vhd b/testsuite/formal/abs/test_abs.vhd
deleted file mode 100644
index 3e711b2..0000000
--- a/testsuite/formal/abs/test_abs.vhd
+++ /dev/null
@@ -1,37 +0,0 @@
-library ieee;
-use ieee.std_logic_1164.all;
-use ieee.numeric_std.all;
-
-entity ent is
- port (
- clk : in std_logic;
- a : in signed(7 downto 0);
- b : out signed(7 downto 0)
- );
-end;
-
-architecture a of ent is
-begin
- process(clk)
- begin
- if rising_edge(clk) then
- b <= abs a;
- end if;
- end process;
-
- formal: block
- signal last_a : signed(7 downto 0);
- signal has_run : std_logic := '0';
- begin
- process(clk)
- begin
- if rising_edge(clk) then
- has_run <= '1';
- last_a <= a;
- end if;
- end process;
-
- default clock is rising_edge(clk);
- assert always has_run -> b >= 0 or (last_a = x"80" and last_a = b);
- end block;
-end;