mirror of https://github.com/YosysHQ/yosys.git
35 lines
594 B
Plaintext
35 lines
594 B
Plaintext
library(test) {
|
|
cell (dlatchsr_mixedpol) {
|
|
area : 6;
|
|
latch("IQ", "IQN") {
|
|
data_in : "!D";
|
|
enable : "ENA";
|
|
clear : "!CLEAR";
|
|
preset : "PRESET";
|
|
clear_preset_var1 : L;
|
|
clear_preset_var2 : L;
|
|
}
|
|
pin(D) {
|
|
direction : input;
|
|
}
|
|
pin(ENA) {
|
|
direction : input;
|
|
clock : true;
|
|
}
|
|
pin(CLEAR) {
|
|
direction : input;
|
|
}
|
|
pin(PRESET) {
|
|
direction : input;
|
|
}
|
|
pin(Q) {
|
|
direction: output;
|
|
function : "IQ";
|
|
}
|
|
pin(QN) {
|
|
direction: output;
|
|
function : "IQN";
|
|
}
|
|
}
|
|
}
|