3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-10 13:10:51 +00:00

dfflibmap: cover enable inference with test

This commit is contained in:
Emil J. Tywoniak 2024-12-09 14:18:08 +01:00
parent 52336369fa
commit 681b678417
3 changed files with 51 additions and 13 deletions

View file

@ -5,7 +5,7 @@ library(test) {
ff("IQ", "IQN") {
next_state : "D";
clocked_on : "!CLK";
}
}
pin(D) {
direction : input;
}
@ -19,7 +19,7 @@ library(test) {
pin(QN) {
direction: output;
function : "IQN";
}
}
}
cell (dffsr) {
area : 6;
@ -30,7 +30,7 @@ library(test) {
preset : "PRESET";
clear_preset_var1 : L;
clear_preset_var2 : L;
}
}
pin(D) {
direction : input;
}
@ -50,6 +50,30 @@ library(test) {
pin(QN) {
direction: output;
function : "IQN";
}
}
}
cell (dffe) {
area : 6;
ff("IQ", "IQN") {
next_state : "(D&EN) | (IQ&!EN)";
clocked_on : "!CLK";
}
pin(D) {
direction : input;
}
pin(EN) {
direction : input;
}
pin(CLK) {
direction : input;
}
pin(Q) {
direction: output;
function : "IQ";
}
pin(QN) {
direction: output;
function : "IQN";
}
}
}