Commit Graph

364 Commits

Author SHA1 Message Date
Daniel Schultz ec15a221d6 utils: xyaml: Do not use deprecated function
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>
2021-01-12 22:36:58 +01:00
Daniel Schultz d3fba0c6a0 utils: Overwrite localisation settings
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>
2021-01-12 22:36:58 +01:00
Keith Rothman 90d420eef3 Add initial MMCM feature and PIP support.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-08 17:44:42 -07:00
Keith Rothman b741467366 Increase 044 filters and reverse order of mergedb for better errors.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-08 11:18:27 -07:00
Keith Rothman 9ecee64d4e Add IFF.IN_USE feature.
This addresses missing features in
https://github.com/SymbiFlow/symbiflow-arch-defs/issues/1536 .

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-06 10:43:39 -07:00
Keith Rothman 837e160560 Add fix to prevent INT features with 3 bits.
This may help fix #1246.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-01 11:20:06 -07:00
Keith Rothman c7033a6a19 Clean up python install process.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-09-09 09:48:48 -07:00
Maciej Kurc 0ac02c2d27 Added a feature name check to mergedb.py
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-07-29 16:35:27 +02:00
litghost 764ec71eb2 Revert "Move fasm2frames to prjxray"
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-06-15 17:32:11 -07:00
Alessandro Comodi 8e4e400b17 move fasm2frames to prjxray to avoid including utils in python package
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-06-09 13:47:58 +02:00
Andrew Butt 5d4f056864 Add reset config to allow upload to PS region
Signed-off-by: Andrew Butt <butta@seas.upenn.edu>
2020-05-29 09:54:48 -04:00
Tim Ansell 1f41082937
Merge pull request #1301 from antmicro/licensing
Updating copyright headers to match current best practices
2020-05-26 09:01:50 -07:00
Tomasz Michalak c66f4f4aa1 Add license headers to tcl files
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
2020-05-26 07:33:12 -07:00
Tomasz Michalak 300bc62227 Add licensing header to bash scripts
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
2020-05-26 07:33:12 -07:00
Tomasz Michalak e8311caea2 Add licensing header to python scripts
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
2020-05-26 07:33:12 -07:00
Andrew Butt e27733b714 Added support for xc7z020clg400-1 and added an openocd config file for pynq-z1
Signed-off-by: Andrew Butt <butta@seas.upenn.edu>
2020-05-22 16:34:51 -04:00
Alessandro Comodi 28a93e08cc fix pytest
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-05-21 16:32:49 +02:00
Alessandro Comodi 12bf76f897 setup: include utils directory
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-05-21 13:42:26 +02:00
Maciej Kurc 9582526071 Corrected feature name in fasm2frames.py
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-05-07 15:51:55 +02:00
Alessandro Comodi 2d62f223d6 grid: update test data and make format
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-03-24 20:27:26 +01:00
Tim Ansell dd5fb6d9d5
Merge pull request #1254 from mithro/segprint-tool
Fix segprint tool for new tileconn.json location
2020-02-26 21:24:21 -08:00
Tim Ansell 08be5a9d01
Merge pull request #1247 from mithro/small-cleanup
Couple of small cleanup changes
2020-02-26 21:20:51 -08:00
Tim 'mithro' Ansell 5a6272374f Fix segprint tool.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-24 21:01:01 -08:00
litghost 84b1457b88
Merge pull request #1238 from litghost/remap_some_timing
Remap some timing
2020-02-19 16:31:44 -08:00
Keith Rothman 445934140e Fix up some comments.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-19 15:15:59 -08:00
Keith Rothman 328903d2be Add workaround for double counting of long wire delay.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-19 09:27:12 -08:00
Keith Rothman 222eefcece Use extract_numbers for sort keys to preserve previous DB output.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-18 10:45:22 -08:00
Tim 'mithro' Ansell 5165df03fe utils: Support global python environment settings.
* 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>
2020-02-18 10:27:08 -08:00
Tim 'mithro' Ansell b55c225f69 utils: Fix invalid escaping sequence.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-18 10:14:12 -08:00
litghost c0289c5948
Merge pull request #1186 from antmicro/in_term_group
Grouping of IN_TERM features
2020-02-18 09:20:31 -08:00
Keith Rothman 89761c1102 Add some sorting to JSON outputs.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-18 06:39:20 -08:00
Keith Rothman 26d8024402 Use sort key for sets.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-18 06:39:20 -08:00
Keith Rothman 822a61e2f6 Do not sort already ordered data.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-18 06:39:20 -08:00
Maciej Kurc d0c7925763 Move feature grouping before zero bits add and ambiguous solution removal.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-02-18 11:17:58 +01:00
Maciej Kurc e8a52f927d Fixed bug that allowed duplicate solutions.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-02-14 09:39:58 +01:00
Keith Rothman 72ad5d0c4d Add wire filtering to create_timing_worksheet_db.py
This is useful to focus on specific nets.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-13 13:41:40 -08:00
Keith Rothman d95eefc8de Fix some bugs present timing analysis script.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-13 13:19:46 -08:00
Maciej Kurc 014462de26 Ported tag grouping to dbfixup.py
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-02-13 13:47:32 +01:00
Tim 'mithro' Ansell 18cd6aff1c xjson: Support sets + add doctest.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-11 08:42:14 -08:00
Maciej Kurc cbe53a98e0 Separated segbit file reading into a function.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-02-11 13:01:20 +01:00
Maciej Kurc 1196f67f71 Moved the group.py script to the utils dir.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2020-02-11 12:24:34 +01:00
Tim 'mithro' Ansell 0362854b05 Don't sort the CSV fields.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-10 12:04:09 -08:00
Tim 'mithro' Ansell 8b560d0d02 utils: Fix broken sorting of tileconn.json
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-10 11:07:56 -08:00
Tim 'mithro' Ansell 3c91c98e03 Fix the sorting stage.
- Rework how the json files are sorted (numbers are treated as
   numerics).
 - Sort csv and txt files.
 - Sort segbits.*origin_info.db files.
 - Sort the grid file.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-10 08:12:16 -08:00
Alessandro Comodi c4faa02c51 fasm2frames: imported correctly util
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi d4f3c5ce80 fix checkdb.py
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi 127412b5b9 fix wrong location of tilegrid and yaml
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi 93d448e135 fixing tests
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi e44027bcaf Move all part-specific files to dedicated directory
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi 93d1ae82f7 Enable the generation of extra part-dependents files
This change affects the extra-db target, by adding also the generation
of other part-dependent files, such as tilegrid, tileconn, and others.

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00