3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

sv: fix size cast clipping expression width

This commit is contained in:
Zachary Snow 2021-12-30 00:01:30 -07:00 committed by Zachary Snow
parent cb17eeaf50
commit 8c509a5659
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,7 @@
module top (
input signed [1:0] a,
input signed [2:0] b,
output signed [4:0] c
);
assign c = 2'(a) * b;
endmodule