From 72f5e640af8bdccb641bb561757021c0a3d83edb Mon Sep 17 00:00:00 2001 From: David Shah Date: Sat, 9 Jun 2018 19:38:37 +0200 Subject: Adding basic placement constraints Specify the attribute (* LOC="bel_name" *) on any cell to constrain its placement to that bel. Signed-off-by: David Shah --- python/dump_design.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/dump_design.py b/python/dump_design.py index d95f041b..3972f4dc 100644 --- a/python/dump_design.py +++ b/python/dump_design.py @@ -20,6 +20,6 @@ for cell, cinfo in sorted(design.cells, key=lambda x: x.first): val = "{}'b{}".format(len(val), val) print("\t\t{}: {}".format(param, val)) - if not cinfo.bel.nil(): + if cinfo.bel != -1: print("\tBel: {}".format(chip.getBelName(cinfo.bel))) print() -- cgit v1.2.3