mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-16 10:55:46 +00:00
dfflibmap: fix next_state inversion propagation for DFF flops by inverting reset value polarity
This commit is contained in:
parent
8bc63ef6da
commit
b2fe335b2d
3 changed files with 62 additions and 0 deletions
24
tests/techmap/dfflibmap_dff_not_next.lib
Normal file
24
tests/techmap/dfflibmap_dff_not_next.lib
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
library (test_not_next) {
|
||||
cell (dff_not_next) {
|
||||
area: 1.0;
|
||||
pin (QN) {
|
||||
direction : output;
|
||||
function : "STATE";
|
||||
}
|
||||
pin (CLK) {
|
||||
direction : input;
|
||||
clock : true;
|
||||
}
|
||||
pin (D) {
|
||||
direction : input;
|
||||
}
|
||||
pin (RN) {
|
||||
direction : input;
|
||||
}
|
||||
ff (STATE, STATEN) {
|
||||
clocked_on: "CLK";
|
||||
next_state: "!D";
|
||||
preset : "!RN";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue