aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordh73 <dh73_fpga@qq.com>2017-11-08 20:24:01 -0600
committerdh73 <dh73_fpga@qq.com>2017-11-08 20:24:01 -0600
commitcf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f (patch)
tree456b6aae2215835e602851eafc3b52bb6bb6f3de /tests
parent1fc061d90c45166f87d92f76b6fae1ec517be72f (diff)
parent9ae25039fb6e28db639372d67c1b72c4170feaa3 (diff)
downloadyosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.tar.gz
yosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.tar.bz2
yosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.zip
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'tests')
-rw-r--r--tests/sva/runtest.sh2
-rw-r--r--tests/sva/vhdlpsl00.vhd34
2 files changed, 1 insertions, 35 deletions
diff --git a/tests/sva/runtest.sh b/tests/sva/runtest.sh
index 35c95a3e0..4c8e16542 100644
--- a/tests/sva/runtest.sh
+++ b/tests/sva/runtest.sh
@@ -29,7 +29,7 @@ generate_sby() {
fi
if [ -f $prefix.vhd ]; then
- echo "verific -vhdpsl $prefix.vhd"
+ echo "verific -vhdl $prefix.vhd"
fi
cat <<- EOT
diff --git a/tests/sva/vhdlpsl00.vhd b/tests/sva/vhdlpsl00.vhd
deleted file mode 100644
index 6d765d5a9..000000000
--- a/tests/sva/vhdlpsl00.vhd
+++ /dev/null
@@ -1,34 +0,0 @@
-library ieee;
-use ieee.std_logic_1164.all;
-use ieee.std_logic_unsigned.all;
-use ieee.numeric_std.all;
-
-entity top is
- port (
- clk : in std_logic;
- rst : in std_logic;
- up : in std_logic;
- down : in std_logic;
- cnt : buffer std_logic_vector(7 downto 0)
- );
-end entity;
-
-architecture rtl of top is
-begin
- process (clk) begin
- if rising_edge(clk) then
- if rst = '1' then
- cnt <= std_logic_vector(to_unsigned(0, 8));
- elsif up = '1' then
- cnt <= cnt + std_logic_vector(to_unsigned(1, 8));
- elsif down = '1' then
- cnt <= cnt - std_logic_vector(to_unsigned(1, 8));
- end if;
- end if;
- end process;
-
- -- PSL default clock is (rising_edge(clk));
- -- PSL assume always ( down -> not up );
- -- PSL assert always ( up |=> (cnt = prev(cnt) + std_logic_vector(to_unsigned(1, 8))) ) abort rst = '1';
- -- PSL assert always ( down |=> (cnt = prev(cnt) - std_logic_vector(to_unsigned(1, 8))) ) abort rst = '1';
-end architecture;