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:
parent
cb17eeaf50
commit
8c509a5659
3 changed files with 11 additions and 1 deletions
7
tests/simple/lesser_size_cast.sv
Normal file
7
tests/simple/lesser_size_cast.sv
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue