diff options
author | Robert Ou <rqou@robertou.com> | 2017-06-25 20:16:43 -0700 |
---|---|---|
committer | Robert Ou <rqou@robertou.com> | 2017-06-25 23:58:28 -0700 |
commit | 4af5baab218a78c3af18269db8501031b457ed64 (patch) | |
tree | 176381bb64c93653d564329b15d62c1823464118 /techlibs/coolrunner2/xc2_dff.lib | |
parent | 1eb5dee79954e48210862980e368c2ce3b2762c9 (diff) | |
download | yosys-4af5baab218a78c3af18269db8501031b457ed64.tar.gz yosys-4af5baab218a78c3af18269db8501031b457ed64.tar.bz2 yosys-4af5baab218a78c3af18269db8501031b457ed64.zip |
coolrunner2: Initial mapping of DFFs
All DFFs map to either FDCP (matches Xilinx) or a custom FDCP_N
(negative-edge triggered)
Diffstat (limited to 'techlibs/coolrunner2/xc2_dff.lib')
-rw-r--r-- | techlibs/coolrunner2/xc2_dff.lib | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/techlibs/coolrunner2/xc2_dff.lib b/techlibs/coolrunner2/xc2_dff.lib new file mode 100644 index 000000000..b578493a1 --- /dev/null +++ b/techlibs/coolrunner2/xc2_dff.lib @@ -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; } + } +} |