Skip to content

Commit

Permalink
Added passing NISP data to nextpnr
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Kurc <[email protected]>
  • Loading branch information
mkurc-ant committed Jan 23, 2023
1 parent 591b915 commit e725101
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions toolchains/nextpnr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'''
Expand Down

0 comments on commit e725101

Please sign in to comment.