From 52941554c6fedde6bd5338d2dd619e4089b6f293 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Mon, 23 Jan 2023 11:01:09 +0100 Subject: [PATCH] Added passing NISP data to nextpnr Signed-off-by: Maciej Kurc --- toolchains/nextpnr.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/toolchains/nextpnr.py b/toolchains/nextpnr.py index d97c66a59..00b2a4f79 100644 --- a/toolchains/nextpnr.py +++ b/toolchains/nextpnr.py @@ -699,8 +699,17 @@ def __init__(self, rootdir): def configure(self): super().configure() + self.tool_options['binary_path'] = self.toolchain_bin + nisp_data = os.path.join( + self.rootdir, 'env', 'interchange', 'devices', self.chip, + '{}_site_routability.json'.format(self.chip) + ) + + options = self.tool_options['nextpnr_options'] + options['site-routing-graph'] = nisp_data + class NextpnrXilinx(NextpnrGeneric): '''nextpnr Xilinx variant using Yosys for synthesis'''