From 5893d13ea39d6f52153f025333829da8081d603a Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 20 Apr 2014 08:58:38 -0700 Subject: [PATCH] Don't connect NetFF CE pin if it is not needed When the clock enable is not generated, don't try to hook it up then detach it. That will make a mess that needs clean up. Instead, leave unused ce pins (Enable) unconnected. --- synth2.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synth2.cc b/synth2.cc index 9ded3d897..ad3c7ddc3 100644 --- a/synth2.cc +++ b/synth2.cc @@ -1009,7 +1009,8 @@ bool NetProcTop::synth_sync(Design*des) connect(tmp->pin(0), ff2->pin_Data()); connect(clock->pin(0), ff2->pin_Clock()); - connect(ce->pin(0), ff2->pin_Enable()); + if (ce->is_linked()) + connect(ce->pin(0), ff2->pin_Enable()); #if 0 if (ff->pin_Aset().is_linked()) connect(ff->pin_Aset(), ff2->pin_Aset());