Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/build_nextpnr_fpga_interchange.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ echo '::endgroup::'

echo '::group::Building nextpnr-fpga_interchange'
cd ./third_party/nextpnr
cmake . -DARCH=fpga_interchange -DRAPIDWRIGHT_PATH=`realpath ../RapidWright` -DINTERCHANGE_SCHEMA_PATH=`realpath ../fpga-interchange-schema`
make
cmake . -DARCH=fpga_interchange -DRAPIDWRIGHT_PATH=`realpath ../RapidWright` -DINTERCHANGE_SCHEMA_PATH=`realpath ../fpga-interchange-schema` -DENABLE_NISP=ON
make -j `nproc`
echo '::endgroup::'
9 changes: 8 additions & 1 deletion fpgaperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import signal
import sys
import yaml
import traceback
from terminaltables import AsciiTable

from toolchains.icestorm import NextpnrIcestorm
Expand Down Expand Up @@ -271,7 +272,13 @@ def run(
err = str(e)
if not verbose and len(err) > 1000:
err = f"[...]\n{err[-1000:]}"
logger.debug(f"ERROR: {err}")
logger.error(err)

if verbose:
trace = traceback.format_exc()
for line in trace.split("\n"):
logger.error(line)

err = err.split("\n")
else:
logger.debug("Printing Stats")
Expand Down
11 changes: 11 additions & 0 deletions toolchains/nextpnr.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,19 @@ 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)
)

self.tool_options['nextpnr_options'].extend([
"--site-routing-graph",
nisp_data
])


class NextpnrXilinx(NextpnrGeneric):
'''nextpnr Xilinx variant using Yosys for synthesis'''
Expand Down