mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 11:41:23 +00:00
dfflibmap: propagate negated next_state to output correctly
This commit is contained in:
parent
44aa313ba9
commit
778079b058
3 changed files with 160 additions and 2 deletions
28
tests/techmap/dfflibmap_dffsr_not_next.lib
Normal file
28
tests/techmap/dfflibmap_dffsr_not_next.lib
Normal file
|
@ -0,0 +1,28 @@
|
|||
library (test_not_next) {
|
||||
cell (dffsr_not_next) {
|
||||
area : 1.0;
|
||||
pin (Q) {
|
||||
direction : output;
|
||||
function : "STATE";
|
||||
}
|
||||
pin (CLK) {
|
||||
clock : true;
|
||||
direction : input;
|
||||
}
|
||||
pin (D) {
|
||||
direction : input;
|
||||
}
|
||||
pin (RN) {
|
||||
direction : input;
|
||||
}
|
||||
pin (SN) {
|
||||
direction : input;
|
||||
}
|
||||
ff (STATE,STATEN) {
|
||||
clear : "!SN";
|
||||
clocked_on : "CLK";
|
||||
next_state : "!D";
|
||||
preset : "!RN";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue