Reduce number of active GCLKs in final iterations.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-03-21 13:41:36 -07:00
parent 7a5f3a43c7
commit 3e851a6256
1 changed files with 8 additions and 1 deletions

View File

@ -436,7 +436,14 @@ module top();
wire_name = 'gclk_{}'.format(site)
gclks.append(wire_name)
if not mmcm_pll_only:
include_source = True
if mmcm_pll_only:
include_source = False
elif only_gclk_left(todos):
include_source = need_gclk_connection(todos, site)
if include_source:
clock_sources.add_clock_source(wire_name, 'ANY')
print("""