aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple
diff options
context:
space:
mode:
authorClaire Wolf <claire@symbioticeda.com>2020-03-08 16:12:12 +0100
committerClaire Wolf <claire@symbioticeda.com>2020-03-08 16:12:12 +0100
commita7cc4673c3f75f414a82c81a507da5042bba361f (patch)
tree616a31593f4be7283072a1e0da6b4187af6f7c04 /tests/simple
parentbfeba9ad11847e6a0cbe47f880f3642d5e3a8061 (diff)
downloadyosys-a7cc4673c3f75f414a82c81a507da5042bba361f.tar.gz
yosys-a7cc4673c3f75f414a82c81a507da5042bba361f.tar.bz2
yosys-a7cc4673c3f75f414a82c81a507da5042bba361f.zip
Fix partsel expr bit width handling and add test case
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Diffstat (limited to 'tests/simple')
-rw-r--r--tests/simple/partsel.v4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/simple/partsel.v b/tests/simple/partsel.v
index 7461358ad..83493fcb0 100644
--- a/tests/simple/partsel.v
+++ b/tests/simple/partsel.v
@@ -60,3 +60,7 @@ always @(posedge clk) begin
end
endmodule
+
+module partsel_test003(input [2:0] a, b, input [31:0] din, output [3:0] dout);
+assign dout = din[a*b +: 2];
+endmodule