3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 01:24:10 +00:00

abstract: test -slice from:to for -init

This commit is contained in:
Emil J. Tywoniak 2025-02-25 00:22:14 +01:00
parent 07004f1089
commit 3f60a2cc67

View file

@ -52,10 +52,16 @@ EOT
proc
opt_expr
opt_dff
design -save basic
select -assert-count 1 w:Q a:init=2'b01 %i
abstract -init -slice 0 w:Q
check -assert
select -assert-count 1 w:Q a:init=2'b0x %i
design -load basic
select -assert-count 1 w:Q a:init=2'b01 %i
abstract -init -slice 0:1 w:Q
check -assert
select -assert-count 0 w:Q a:init %i
design -reset
read_verilog <<EOT