aboutsummaryrefslogtreecommitdiffstats
path: root/bugs/vivado_3.md
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-11-14 16:49:42 +0000
committerYann Herklotz <git@yannherklotz.com>2019-11-14 16:49:42 +0000
commite827635e34079c8ee9c9e7273a59c905274e553d (patch)
tree5ea082d8120a740af3aeea13eb4565f2ade55c7c /bugs/vivado_3.md
parent798f54c05376ec3b4ebbe8326d0a91eec807df3d (diff)
downloadverismith-e827635e34079c8ee9c9e7273a59c905274e553d.tar.gz
verismith-e827635e34079c8ee9c9e7273a59c905274e553d.zip
Update bug reports
Diffstat (limited to 'bugs/vivado_3.md')
-rw-r--r--bugs/vivado_3.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/bugs/vivado_3.md b/bugs/vivado_3.md
index 79fedd5..7bab2e7 100644
--- a/bugs/vivado_3.md
+++ b/bugs/vivado_3.md
@@ -1,6 +1,14 @@
# Unsigned bit extension in if statement
-[ [Vivado forum 981789](https://forums.xilinx.com/t5/Synthesis/Vivado-2019-1-Unsigned-bit-extension-in-if-statement/td-p/981789) ]
+[ Not fixed | [Vivado forum 981789](https://forums.xilinx.com/t5/Synthesis/Vivado-2019-1-Unsigned-bit-extension-in-if-statement/td-p/981789) ]
+
+## Affected versions
+
+- Vivado 2019.1
+- Vivado 2018.3
+- Vivado 2018.2
+
+## Description
The code below does not seem to behave properly after synthesis with Vivado 2019.1. When the input to the module is `w1 = 2'b01`, then the output should be 0. This is because the unsigned literal `-1'b1` in the if statement is zero extended to 2 bits giving `-2'b01 = 2'b11`.
@@ -10,7 +18,7 @@ However, instead of 0, after synthesis with Vivado, the output it 1. This seems
Assigning `r1` directly to `{-1'b1 == w1}` also works as expected.
-```
+```verilog
module top (y, clk, w1);
output y;
input clk;