From 3ea60266488fe7e0b040c379a11d523c11ec9460 Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Tue, 29 Mar 2016 20:02:59 -0700 Subject: Added splitnets to synth_greenpak4 --- techlibs/greenpak4/synth_greenpak4.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'techlibs/greenpak4/synth_greenpak4.cc') diff --git a/techlibs/greenpak4/synth_greenpak4.cc b/techlibs/greenpak4/synth_greenpak4.cc index 04166d8be..872ad5a2c 100644 --- a/techlibs/greenpak4/synth_greenpak4.cc +++ b/techlibs/greenpak4/synth_greenpak4.cc @@ -108,6 +108,7 @@ struct SynthGreenPAK4Pass : public Pass { log(" check -noinit\n"); log("\n"); log(" json:\n"); + log(" splitnets (temporary workaround for gp4par parser limitation)\n"); log(" write_json \n"); log("\n"); } @@ -221,6 +222,7 @@ struct SynthGreenPAK4Pass : public Pass { if (check_label(active, run_from, run_to, "json")) { + Pass::call(design, "splitnets"); if (!json_file.empty()) Pass::call(design, stringf("write_json %s", json_file.c_str())); } -- cgit v1.2.3 From 1ae33344f4f18f4fbb899e4635659bf1cd8f0448 Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Wed, 30 Mar 2016 22:40:14 -0700 Subject: Added initial implementation of "counters" pass to synth_greenpak4. Can only infer non-resettable down counters for now. --- techlibs/greenpak4/synth_greenpak4.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'techlibs/greenpak4/synth_greenpak4.cc') diff --git a/techlibs/greenpak4/synth_greenpak4.cc b/techlibs/greenpak4/synth_greenpak4.cc index 872ad5a2c..29daa9f96 100644 --- a/techlibs/greenpak4/synth_greenpak4.cc +++ b/techlibs/greenpak4/synth_greenpak4.cc @@ -187,6 +187,8 @@ struct SynthGreenPAK4Pass : public Pass { if (check_label(active, run_from, run_to, "fine")) { + Pass::call(design, "counters"); + Pass::call(design, "clean"); Pass::call(design, "opt -fast -mux_undef -undriven -fine"); Pass::call(design, "memory_map"); Pass::call(design, "opt -undriven -fine"); -- cgit v1.2.3 From 984561c034bac0b996d8b2201105a795c6c0e00d Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Wed, 30 Mar 2016 22:52:01 -0700 Subject: Renamed counters pass to greenpak4_counters --- techlibs/greenpak4/synth_greenpak4.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'techlibs/greenpak4/synth_greenpak4.cc') diff --git a/techlibs/greenpak4/synth_greenpak4.cc b/techlibs/greenpak4/synth_greenpak4.cc index 29daa9f96..d44888998 100644 --- a/techlibs/greenpak4/synth_greenpak4.cc +++ b/techlibs/greenpak4/synth_greenpak4.cc @@ -82,6 +82,8 @@ struct SynthGreenPAK4Pass : public Pass { log(" synth -run coarse\n"); log("\n"); log(" fine:\n"); + log(" greenpak4_counters\n"); + log(" clean\n"); log(" opt -fast -mux_undef -undriven -fine\n"); log(" memory_map\n"); log(" opt -undriven -fine\n"); @@ -187,7 +189,7 @@ struct SynthGreenPAK4Pass : public Pass { if (check_label(active, run_from, run_to, "fine")) { - Pass::call(design, "counters"); + Pass::call(design, "greenpak4_counters"); Pass::call(design, "clean"); Pass::call(design, "opt -fast -mux_undef -undriven -fine"); Pass::call(design, "memory_map"); -- cgit v1.2.3