mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
verilog: impose limit on maximum expression width
Designs with unreasonably wide expressions would previously get stuck allocating memory forever.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
logger -expect error "Expression width 1073741824 exceeds implementation limit of 16777216!" 1
|
||||
read_verilog <<EOF
|
||||
module top(
|
||||
output out
|
||||
);
|
||||
assign out =
|
||||
{1024 {
|
||||
{1024 {
|
||||
{1024 {
|
||||
1'b1
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
;
|
||||
endmodule
|
||||
EOF
|
||||
Reference in New Issue
Block a user