3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-21 02:30:25 +00:00

dfflibmap: test negated state next_state with mixed polarities

This commit is contained in:
Emil J. Tywoniak 2025-07-10 18:54:43 +02:00
parent 73cbcffbbb
commit 7fe817c52f
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,35 @@
library(test) {
cell (dffsr_mixedpol) {
area : 6;
ff("IQ", "IQN") {
// look here
next_state : "!D";
clocked_on : "CLK";
// look here
clear : "!CLEAR";
preset : "PRESET";
clear_preset_var1 : L;
clear_preset_var2 : L;
}
pin(D) {
direction : input;
}
pin(CLK) {
direction : input;
}
pin(CLEAR) {
direction : input;
}
pin(PRESET) {
direction : input;
}
pin(Q) {
direction: output;
function : "IQ";
}
pin(QN) {
direction: output;
function : "IQN";
}
}
}