mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-12 14:11:00 +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
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue