openxc7 / openxc7-snap Goto Github PK
View Code? Open in Web Editor NEWsnap package for nextpnr PnR FPGA toolchain for Xilinx 7 series FPGAs, with Spartan7, Artix7, Zynq7 and Kintex7 support
License: BSD 3-Clause "New" or "Revised" License
snap package for nextpnr PnR FPGA toolchain for Xilinx 7 series FPGAs, with Spartan7, Artix7, Zynq7 and Kintex7 support
License: BSD 3-Clause "New" or "Revised" License
Currently building anything with the snap package will result in the following warning.
/snap/openxc7/current/usr/lib/python3/dist-packages/fasm/parser/__init__.py:30: RuntimeWarning: Unable to import fast Antlr4 parser implementation.
ImportError: cannot import name 'antlr_to_tuple' from partially initialized module 'fasm.parser' (most likely due to a circular import) (/snap/openxc7/current/usr/lib/python3/dist-packages/fasm/parser/__init__.py)
Falling back to the much slower pure Python textX based parser
implementation.
As shown by mithro in chipsalliance/f4pga-examples#201 this can have a huge impact on build times and should be addressed.
I receive this issue when using ODDR
ERROR: Failed to route arc 0 of net '$abc$10147$iopadmap$vga_r[0]', from SITEWIRE/OLOGIC_X0Y78/OUTFF_Q to SITEWIRE/IOB_X0Y78/OUSED_OUT.
When using SDR it works, but also with previous version of nextpnr-xilinx (generating the image below)
Vivado produces no issue.
Verilog code: https://gist.github.com/suarezvictor/ded5ce54e8533a6f2bf45d555113c114
I'm trying to use the snap install with oss-cad-suite + litex environments and I think I'm hitting a 3.8 vs 3.11 issue with a script crashing:
Python path configuration:
PYTHONHOME = '/home/engin/oss-cad-suite'
PYTHONPATH = (not set)
program name = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
isolated = 0
environment = 1
user site = 0
import site = 1
sys._base_executable = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
sys.base_prefix = '/home/engin/oss-cad-suite'
sys.base_exec_prefix = '/home/engin/oss-cad-suite'
sys.executable = '/snap/openxc7/x1/usr/bin/nextpnr-xilinx'
sys.prefix = '/home/engin/oss-cad-suite'
sys.exec_prefix = '/home/engin/oss-cad-suite'
sys.path = [
'/home/engin/oss-cad-suite/lib/python38.zip',
'/home/engin/oss-cad-suite/lib/python3.8',
'/home/engin/oss-cad-suite/lib/python3.8/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f4c50fb1c00 (most recent call first):
<no Python frame>
Traceback (most recent call last):
Can the snap python version be updated to 3.11?
It seems all the previous releases had 'v' in front of the actual version number, and toolchain-installer.sh relies on it.
For some reason the release 0.6.0 is not found at the 'v0.6.0' path but it's '0.6.0', this breaks the toolchain-installer.
I'm attempting to build the blinky-qmtech project from the demo-projects repo, and while it works fine on my Mint 20.3 (Ubuntu 20.04 derivative), the build fails on Mint 21 (Ubuntu 22.04 derivative - and someone else had the same problem using Ubuntu 22.04 itself)
The problem seems to be python-related, and it's entirely possible I'm doing something wrong, but the error message I'm seeing is this:
nextpnr-xilinx --chipdb ../chipdb/xc7k325tffg676-1.bin --xdc blinky.xdc --json blinky.json --fasm blinky.fasm --verbose --debug
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.executable = '/snap/nextpnr-kintex/x1/usr/bin/nextpnr-xilinx'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f4b200f67c0 (most recent call first):
<no Python frame>
make: *** [Makefile:25: blinky.fasm] Error 1
Python is installed and working well enough to use litex, so I think the problem is related to the snap or its configuration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.