projects
/
yosys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2006 from jersey99/signed-in-rtlil-wire
[yosys.git]
/
techlibs
/
achronix
/
synth_achronix.cc
diff --git
a/techlibs/achronix/synth_achronix.cc
b/techlibs/achronix/synth_achronix.cc
old mode 100755
(executable)
new mode 100644
(file)
index
92b1078
..
262a5e7
--- a/
techlibs/achronix/synth_achronix.cc
+++ b/
techlibs/achronix/synth_achronix.cc
@@
-52,7
+52,7
@@
struct SynthAchronixPass : public ScriptPass {
log(" do not flatten design before synthesis\n");
log("\n");
log(" -retime\n");
log(" do not flatten design before synthesis\n");
log("\n");
log(" -retime\n");
- log(" run 'abc' with
-dff option
\n");
+ log(" run 'abc' with
'-dff -D 1' options
\n");
log("\n");
log("\n");
log("The following commands are executed by this synthesis command:\n");
log("\n");
log("\n");
log("The following commands are executed by this synthesis command:\n");
@@
-95,8
+95,8
@@
struct SynthAchronixPass : public ScriptPass {
run_to = args[argidx].substr(pos+1);
continue;
}
run_to = args[argidx].substr(pos+1);
continue;
}
- if (args[argidx] == "-flatten") {
- flatten =
tru
e;
+ if (args[argidx] == "-
no
flatten") {
+ flatten =
fals
e;
continue;
}
if (args[argidx] == "-retime") {
continue;
}
if (args[argidx] == "-retime") {
@@
-108,7
+108,7
@@
struct SynthAchronixPass : public ScriptPass {
extra_args(args, argidx, design);
if (!design->full_selection())
extra_args(args, argidx, design);
if (!design->full_selection())
- log_cmd_error("This com
an
nd only operates on fully selected designs!\n");
+ log_cmd_error("This com
ma
nd only operates on fully selected designs!\n");
log_header(design, "Executing SYNTH_ACHRONIX pass.\n");
log_push();
log_header(design, "Executing SYNTH_ACHRONIX pass.\n");
log_push();
@@
-144,7
+144,6
@@
struct SynthAchronixPass : public ScriptPass {
run("opt -fast -mux_undef -undriven -fine -full");
run("memory_map");
run("opt -undriven -fine");
run("opt -fast -mux_undef -undriven -fine -full");
run("memory_map");
run("opt -undriven -fine");
- run("dffsr2dff");
run("dff2dffe -direct-match $_DFF_*");
run("opt -fine");
run("techmap -map +/techmap.v");
run("dff2dffe -direct-match $_DFF_*");
run("opt -fine");
run("techmap -map +/techmap.v");
@@
-152,12
+151,12
@@
struct SynthAchronixPass : public ScriptPass {
run("clean -purge");
run("setundef -undriven -zero");
if (retime || help_mode)
run("clean -purge");
run("setundef -undriven -zero");
if (retime || help_mode)
- run("abc -markgroups -dff", "(only if -retime)");
+ run("abc -markgroups -dff
-D 1
", "(only if -retime)");
}
if (check_label("map_luts"))
{
}
if (check_label("map_luts"))
{
- run("abc -lut 4" + string(retime ? " -dff" : ""));
+ run("abc -lut 4" + string(retime ? " -dff
-D 1
" : ""));
run("clean");
}
run("clean");
}