mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
abstract: test -slice from:to for -init
This commit is contained in:
parent
07004f1089
commit
3f60a2cc67
|
@ -52,10 +52,16 @@ EOT
|
||||||
proc
|
proc
|
||||||
opt_expr
|
opt_expr
|
||||||
opt_dff
|
opt_dff
|
||||||
|
design -save basic
|
||||||
select -assert-count 1 w:Q a:init=2'b01 %i
|
select -assert-count 1 w:Q a:init=2'b01 %i
|
||||||
abstract -init -slice 0 w:Q
|
abstract -init -slice 0 w:Q
|
||||||
check -assert
|
check -assert
|
||||||
select -assert-count 1 w:Q a:init=2'b0x %i
|
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
|
design -reset
|
||||||
read_verilog <<EOT
|
read_verilog <<EOT
|
||||||
|
|
Loading…
Reference in a new issue