diff options
author | T. Meissner <programming@goodcleanfun.de> | 2019-10-07 19:13:46 +0200 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2019-10-07 19:13:46 +0200 |
commit | b405a27654f326eb1117c0eda8e7389a64fc5c94 (patch) | |
tree | 87867ece999abba761b40ea5d2debdd6018247f4 /testsuite/issue4 | |
parent | bf8b41da7f0650d93b79447a2a62313b15afc9af (diff) | |
download | ghdl-yosys-plugin-b405a27654f326eb1117c0eda8e7389a64fc5c94.tar.gz ghdl-yosys-plugin-b405a27654f326eb1117c0eda8e7389a64fc5c94.tar.bz2 ghdl-yosys-plugin-b405a27654f326eb1117c0eda8e7389a64fc5c94.zip |
testsuite: Add formal tests (#57)
* Add formal tests for shift operations
* ci: build ghdl/synth:formal and run test suites in it
* add testsuite/formal/testsuite.sh
* create testsuite/issues
* ci: remove a level of grouping
* testenv: fix SYMBIYOSYS
* refactor
* testsuite/formal/shifts: Add check for shifts > vector length
Diffstat (limited to 'testsuite/issue4')
-rw-r--r-- | testsuite/issue4/counter8.vhdl | 23 | ||||
-rw-r--r-- | testsuite/issue4/no_vector.vhdl | 16 | ||||
-rwxr-xr-x | testsuite/issue4/testsuite.sh | 9 | ||||
-rw-r--r-- | testsuite/issue4/vector.vhdl | 16 |
4 files changed, 0 insertions, 64 deletions
diff --git a/testsuite/issue4/counter8.vhdl b/testsuite/issue4/counter8.vhdl deleted file mode 100644 index 2067e23..0000000 --- a/testsuite/issue4/counter8.vhdl +++ /dev/null @@ -1,23 +0,0 @@ -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity counter8 is - port (clk : in std_logic; - led0 : out std_logic); -end counter8; - -architecture synth of counter8 is - -begin - - process (clk) - variable temp : unsigned (7 downto 0); - begin - if rising_edge(clk) then - temp:= temp + 1; - led0 <= temp(0); - end if; - end process; - -end synth; diff --git a/testsuite/issue4/no_vector.vhdl b/testsuite/issue4/no_vector.vhdl deleted file mode 100644 index a3c2c46..0000000 --- a/testsuite/issue4/no_vector.vhdl +++ /dev/null @@ -1,16 +0,0 @@ -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity no_vector is - port (led0: out std_logic); -end no_vector; - -architecture synth of no_vector is - -signal nv : std_logic; - -begin - nv <= '1'; - led0 <= nv; -end synth; diff --git a/testsuite/issue4/testsuite.sh b/testsuite/issue4/testsuite.sh deleted file mode 100755 index 49ead4d..0000000 --- a/testsuite/issue4/testsuite.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -. ../testenv.sh - -for f in no_vector counter8 vector; do - synth "${f}.vhdl -e ${f}" -done - -clean diff --git a/testsuite/issue4/vector.vhdl b/testsuite/issue4/vector.vhdl deleted file mode 100644 index de74ea9..0000000 --- a/testsuite/issue4/vector.vhdl +++ /dev/null @@ -1,16 +0,0 @@ -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity vector is - port (led0: out std_logic); -end vector; - -architecture synth of vector is - -signal v : std_logic_vector(7 downto 0); - -begin - v <= std_logic_vector'("10101010"); - led0 <= v(0); -end synth; |