From 4af5baab218a78c3af18269db8501031b457ed64 Mon Sep 17 00:00:00 2001 From: Robert Ou Date: Sun, 25 Jun 2017 20:16:43 -0700 Subject: coolrunner2: Initial mapping of DFFs All DFFs map to either FDCP (matches Xilinx) or a custom FDCP_N (negative-edge triggered) --- techlibs/coolrunner2/synth_coolrunner2.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'techlibs/coolrunner2/synth_coolrunner2.cpp') diff --git a/techlibs/coolrunner2/synth_coolrunner2.cpp b/techlibs/coolrunner2/synth_coolrunner2.cpp index 516d29ad0..c58b52cdf 100644 --- a/techlibs/coolrunner2/synth_coolrunner2.cpp +++ b/techlibs/coolrunner2/synth_coolrunner2.cpp @@ -145,6 +145,7 @@ struct SynthCoolrunner2Pass : public ScriptPass { run("opt -fast -full"); run("techmap"); + run("dfflibmap -prepare -liberty +/coolrunner2/xc2_dff.lib"); } if (check_label("map_pla")) @@ -156,6 +157,9 @@ struct SynthCoolrunner2Pass : public ScriptPass if (check_label("map_cells")) { + run("dfflibmap -liberty +/coolrunner2/xc2_dff.lib"); + run("dffinit -ff FDCP Q INIT"); + run("dffinit -ff FDCP_N Q INIT"); run("iopadmap -bits -inpad IBUF O:I -outpad IOBUFE I:IO -inoutpad IOBUFE O:IO -toutpad IOBUFE E:I:IO -tinoutpad IOBUFE E:O:I:IO"); } -- cgit v1.2.3