Skip to content

Commit f8181a5

Browse files
committed
Added passing NISP data to nextpnr
Signed-off-by: Maciej Kurc <[email protected]>
1 parent 591b915 commit f8181a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

toolchains/nextpnr.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,18 @@ 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+
self.tool_options['nextpnr_options'] += " --site-routing-graph {}".format(
711+
nisp_data
712+
)
713+
704714

705715
class NextpnrXilinx(NextpnrGeneric):
706716
'''nextpnr Xilinx variant using Yosys for synthesis'''

0 commit comments

Comments
 (0)