Cleaner tests for RTLIL cells in struct_dynamic_range.sv

This commit is contained in:
Dag Lem 2023-05-04 13:36:57 +02:00
parent ad437c178d
commit fb7f3bb290
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,3 @@
/*.log
/*.out
/run-test.mk
/temp

View File

@ -1,8 +1,7 @@
! mkdir -p temp
read_verilog -sv struct_dynamic_range.sv
write_rtlil temp/struct_dynamic_range.il
! grep -F -q ' cell $shift ' temp/struct_dynamic_range.il
! grep -F -q ' switch $mul' temp/struct_dynamic_range.il
select -assert-count 4 t:$mul
select -assert-count 2 t:$shift
select -assert-count 2 t:$shiftx
prep -top top
flatten
sat -enable_undef -verify -prove-asserts