mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-23 15:42:32 +00:00
dfflibmap: add regression test for resetval clobber
This commit is contained in:
parent
332ea782eb
commit
eb96123030
2 changed files with 65 additions and 0 deletions
52
tests/techmap/dfflibmap_resetval_clobber.lib
Normal file
52
tests/techmap/dfflibmap_resetval_clobber.lib
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
library(test) {
|
||||
cell (bad_dff) {
|
||||
area : 1;
|
||||
ff("IQ", "IQN") {
|
||||
next_state : "!D"; // Look here
|
||||
clocked_on : "CLK";
|
||||
preset : "!RST"; // Look here
|
||||
}
|
||||
pin(D) {
|
||||
direction : input;
|
||||
}
|
||||
pin(CLK) {
|
||||
direction : input;
|
||||
}
|
||||
pin(RST) {
|
||||
direction : input;
|
||||
}
|
||||
pin(Q) {
|
||||
direction: output;
|
||||
function : "IQ";
|
||||
}
|
||||
pin(QN) {
|
||||
direction: output;
|
||||
function : "IQN";
|
||||
}
|
||||
}
|
||||
cell (good_dff) {
|
||||
area : 1;
|
||||
ff("IQ", "IQN") {
|
||||
next_state : "D"; // Look here
|
||||
clocked_on : "CLK";
|
||||
clear : "RST"; // Look here
|
||||
}
|
||||
pin(D) {
|
||||
direction : input;
|
||||
}
|
||||
pin(CLK) {
|
||||
direction : input;
|
||||
}
|
||||
pin(RST) {
|
||||
direction : input;
|
||||
}
|
||||
pin(Q) {
|
||||
direction: output;
|
||||
function : "IQ";
|
||||
}
|
||||
pin(QN) {
|
||||
direction: output;
|
||||
function : "IQN";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue