mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-14 11:15:40 +00:00
Testcases for new truncation checks
This commit is contained in:
parent
8f0028652a
commit
dca9234d86
5 changed files with 30 additions and 0 deletions
6
tests/rtlil/bug1206_memory_offset_negative_overflow.ys
Normal file
6
tests/rtlil/bug1206_memory_offset_negative_overflow.ys
Normal 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
|
||||
6
tests/rtlil/bug1206_memory_offset_overflow.ys
Normal file
6
tests/rtlil/bug1206_memory_offset_overflow.ys
Normal 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
|
||||
6
tests/rtlil/bug1206_memory_size_overflow.ys
Normal file
6
tests/rtlil/bug1206_memory_size_overflow.ys
Normal 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
|
||||
6
tests/rtlil/bug1206_wire_offset_negative_overflow.ys
Normal file
6
tests/rtlil/bug1206_wire_offset_negative_overflow.ys
Normal 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
|
||||
6
tests/rtlil/bug1206_wire_offset_overflow.ys
Normal file
6
tests/rtlil/bug1206_wire_offset_overflow.ys
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue