The previous xc7s50t branch was messed up. This new branch is created to re-submit xc7s50t's changes for merging.
Signed-off-by: Steve <steve.bohan.liu@outlook.com>
The resources.yaml file does not exists at the beginning of the db-prepare calls
but the environment wants to read it which leads to the following error:
Preparing artix7 files
============================
Traceback (most recent call last):
File ".../prjxray/utils/create_environment.py", line 62, in <module>
main()
File ".../prjxray/utils/create_environment.py", line 55, in main
environment = get_environment_variables()
File ".../prjxray/utils/create_environment.py", line 37, in get_environment_variables
part_info = get_part_information(db_root, part)
File ".../prjxray/prjxray/util.py", line 44, in get_part_information
"Mapping file {} does not exists".format(filename)
AssertionError: Mapping file .../prjxray/database/artix7/mapping/parts.yaml does not exists
Do not dump the environment during this stage because the XRAY_PART is the only
neccessary information which is set in the <family>.sh script.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
* Adds a new tool to update the parts mapping file for a family.
* Adds a new tool to update the resource file for a family.
* Adds a new tool to roi all parts by calling "make roi_only" with different
parts
Update the Makefile to update the artix7 files with "make db-update".
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Problems found:
- for some PIPs configurations, no bit is generated. For instance if
there are only connections with RX/TX from the GTP channel
- some missing PIPs with one bit only
- re-routing now correctly runs for every PIP
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Since the tilegrid.json file is not anymore placed inside the part directory,
the test needs to be updated slightly to work with the new structure.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
From the official PyYAML documentation:
"Warning: It is not safe to call yaml.load with any data received from an
untrusted source! yaml.load is as powerful as pickle.load and so may call
any Python function. Check the yaml.safe_load function though."
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Set localisation settings to default values to prevent different locale
results from tools.
Example: Non-English speaking countries use a comma as decimal seperators but
Python's float convert only accepts a point.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
* Move Python environment values into `utils/environment.python.sh`
* Source the `utils/environment.python.sh` before running Python
scripts.
* Add `DeprecationWarning` suppression for `distutils`
Now the output of `make test-py` returns `30 passed in N.NNs` instead of
the previous `30 passed, 1 warnings in N.NNs`
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>