mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-01 12:07:51 +00:00
coolrunner2: Initial mapping of DFFs
All DFFs map to either FDCP (matches Xilinx) or a custom FDCP_N (negative-edge triggered)
This commit is contained in:
parent
1eb5dee799
commit
4af5baab21
4 changed files with 76 additions and 0 deletions
31
techlibs/coolrunner2/xc2_dff.lib
Normal file
31
techlibs/coolrunner2/xc2_dff.lib
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
library(xc2_dff) {
|
||||
cell(FDCP) {
|
||||
area: 1;
|
||||
ff("IQ", "IQN") { clocked_on: C;
|
||||
next_state: D;
|
||||
clear: "CLR";
|
||||
preset: "PRE"; }
|
||||
pin(C) { direction: input;
|
||||
clock: true; }
|
||||
pin(D) { direction: input; }
|
||||
pin(Q) { direction: output;
|
||||
function: "IQ"; }
|
||||
pin(CLR) { direction: input; }
|
||||
pin(PRE) { direction: input; }
|
||||
}
|
||||
|
||||
cell(FDCP_N) {
|
||||
area: 1;
|
||||
ff("IQ", "IQN") { clocked_on: "!C";
|
||||
next_state: D;
|
||||
clear: "CLR";
|
||||
preset: "PRE"; }
|
||||
pin(C) { direction: input;
|
||||
clock: true; }
|
||||
pin(D) { direction: input; }
|
||||
pin(Q) { direction: output;
|
||||
function: "IQ"; }
|
||||
pin(CLR) { direction: input; }
|
||||
pin(PRE) { direction: input; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue