Skip to content

Commit 5294155

Browse files
committed
Added passing NISP data to nextpnr
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
1 parent 591b915 commit 5294155

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

toolchains/nextpnr.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,17 @@ def __init__(self, rootdir):
699699

700700
def configure(self):
701701
super().configure()
702+
702703
self.tool_options['binary_path'] = self.toolchain_bin
703704

705+
nisp_data = os.path.join(
706+
self.rootdir, 'env', 'interchange', 'devices', self.chip,
707+
'{}_site_routability.json'.format(self.chip)
708+
)
709+
710+
options = self.tool_options['nextpnr_options']
711+
options['site-routing-graph'] = nisp_data
712+
704713

705714
class NextpnrXilinx(NextpnrGeneric):
706715
'''nextpnr Xilinx variant using Yosys for synthesis'''

0 commit comments

Comments
 (0)