aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-21 18:10:20 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-21 18:10:20 +0200
commit6796aca2963dbdf9b48331ad46014bcf6382fb73 (patch)
treeb4a934ee4558434cfa4e69e2187d111ae452424f /testsuite
parent6b39e5fa8d8abb742df7ffac50b115034994f35e (diff)
downloadghdl-6796aca2963dbdf9b48331ad46014bcf6382fb73.tar.gz
ghdl-6796aca2963dbdf9b48331ad46014bcf6382fb73.tar.bz2
ghdl-6796aca2963dbdf9b48331ad46014bcf6382fb73.zip
testsuite/synth: add test for previous commit.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/synth/sns01/tb_add03.vhdl8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/synth/sns01/tb_add03.vhdl b/testsuite/synth/sns01/tb_add03.vhdl
index 7bc68ea8a..e856744a7 100644
--- a/testsuite/synth/sns01/tb_add03.vhdl
+++ b/testsuite/synth/sns01/tb_add03.vhdl
@@ -19,6 +19,14 @@ begin
borrow <= '0';
wait for 1 ns;
assert res = b"00000_0011" severity failure;
+
+
+ a <= b"00000_0010";
+ b <= b"00000_0001";
+ borrow <= '1';
+ wait for 1 ns;
+ assert res = b"00000_0000" severity failure;
+
wait;
end process;
end behav;