3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-16 10:55:46 +00:00

dfflibmap: fix next_state inversion propagation for DFF flops by inverting reset value polarity

This commit is contained in:
Emil J. Tywoniak 2025-10-28 13:01:26 +01:00
parent 8bc63ef6da
commit b2fe335b2d
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,24 @@
library (test_not_next) {
cell (dff_not_next) {
area: 1.0;
pin (QN) {
direction : output;
function : "STATE";
}
pin (CLK) {
direction : input;
clock : true;
}
pin (D) {
direction : input;
}
pin (RN) {
direction : input;
}
ff (STATE, STATEN) {
clocked_on: "CLK";
next_state: "!D";
preset : "!RN";
}
}
}