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:
parent
73cbcffbbb
commit
7fe817c52f
2 changed files with 51 additions and 0 deletions
35
tests/techmap/dfflibmap_dffsr_mixedpol.lib
Normal file
35
tests/techmap/dfflibmap_dffsr_mixedpol.lib
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue