3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-14 19:25:40 +00:00

Testcases for new truncation checks

This commit is contained in:
Michael Baier 2026-07-10 14:37:19 +02:00
parent 8f0028652a
commit dca9234d86
5 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,6 @@
logger -expect error "Memory offset .* out of range" 1
read_rtlil <<EOT
module \foo
memory width 8 offset -4294967396 \mem
end
EOT

View file

@ -0,0 +1,6 @@
logger -expect error "Memory offset .* out of range" 1
read_rtlil <<EOT
module \foo
memory width 8 offset 4294967396 \mem
end
EOT

View file

@ -0,0 +1,6 @@
logger -expect error "Memory size .* out of range" 1
read_rtlil <<EOT
module \foo
memory width 8 size 4294967396 \mem
end
EOT

View file

@ -0,0 +1,6 @@
logger -expect error "Wire offset .* out of range" 1
read_rtlil <<EOT
module \foo
wire width 8 offset -4294967396 \bar
end
EOT

View file

@ -0,0 +1,6 @@
logger -expect error "Wire offset .* out of range" 1
read_rtlil <<EOT
module \foo
wire width 8 offset 4294967396 \bar
end
EOT