mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-20 17:09:45 +00:00
clockgate: formal liberty tests
This commit is contained in:
parent
f4a10a4808
commit
687e5442f2
5 changed files with 107 additions and 100 deletions
31
tests/techmap/clockgate_bad.il
Normal file
31
tests/techmap/clockgate_bad.il
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
module \bad1
|
||||
wire input 1 \clk
|
||||
wire input 3 \d1
|
||||
wire input 2 \en
|
||||
wire output 4 \q1
|
||||
cell $dffe $auto$ff.cc:266:slice$27
|
||||
parameter \CLK_POLARITY 1
|
||||
parameter \EN_POLARITY 1
|
||||
parameter \WIDTH 1
|
||||
connect \CLK \clk
|
||||
connect \D \d1
|
||||
connect \EN 1'1
|
||||
connect \Q \q1
|
||||
end
|
||||
end
|
||||
|
||||
module \bad2
|
||||
wire input 1 \clk
|
||||
wire input 3 \d1
|
||||
wire input 2 \en
|
||||
wire output 4 \q1
|
||||
cell $dffe $auto$ff.cc:266:slice$27
|
||||
parameter \CLK_POLARITY 1
|
||||
parameter \EN_POLARITY 1
|
||||
parameter \WIDTH 1
|
||||
connect \CLK 1'1
|
||||
connect \D \d1
|
||||
connect \EN \en
|
||||
connect \Q \q1
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue