Commit Graph

184 Commits

Author SHA1 Message Date
Alessandro Comodi 1bd8142625 scripts: use open safe file class
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2022-03-17 10:04:19 +01:00
Alessandro Comodi 6e026bf30e util: add open safe file class
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2022-03-15 12:27:43 +01:00
Alessandro Comodi dcb1743764 add file locking system to avoid race conditions on db files
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2022-03-04 13:59:38 +01:00
Daniel Schultz 74ba878c25 utils: Add new tools to roi all parts
* 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>
2021-03-15 17:37:58 +01:00
Alessandro Comodi 13ffbcbf50 segmaker: fix site_type prefixes for GTP sites
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-02-26 11:59:39 +01:00
Alessandro Comodi 5137498bcb 066-gtp-int-pips: add fuzzer for GTP_INT_INTERFACE DELAY PIPs
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-02-04 12:35:00 +01:00
Alessandro Comodi 6e95748068 065-gtp-common-pips: add fuzzer to document GTP_COMMON_MID pips
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>
2021-02-02 19:35:23 +01:00
Tomasz Michalak 2262775279
Merge pull request #1533 from antmicro/sort-unknown-bits
disassembler: sort remaining unknown bits
2021-02-02 12:21:12 +01:00
Jan Kowalewski 9662a48860 064-gtp-channel: add GTP_CHANNEL to segmaker
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
2021-01-22 10:40:04 +01:00
Alessandro Comodi f8ae373dd5 063-gtp-common-conf: add IBUFDS_GTE2 primitive as well
This commit also solves an issue in the bitfilter function.
Given that the GTP_COMMON and GTP_COMMON_MID_[LEFT|RIGHT] have the same
bits, but in different frames, we need to add all of the possible frames
to the bitfilter callback.

This causes issues in determining the IN_USE feature, therefore, there
must be two different bitfilter callbacks, one for GTP_COMMON, and one
for GTP_COMMON_MID_[LEFT|RIGHT]

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-01-20 18:23:24 +01:00
Daniel Schultz 082e982911 prjxray: Update scripts to access fabric data
Parts data are now divided from the part. Update all scripts to access the
fabric data from the fabric files.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-01-12 22:36:58 +01:00
Alessandro Comodi 471b314529 disassembler: sort remaining unknown bits
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-01-05 18:14:17 +01:00
Syed Tousif Ahmed f5bfdc6c28 Addresses review comments.
Signed-off-by: Syed Tousif Ahmed <stahmed@seas.upenn.edu>
2020-11-30 14:09:17 -05:00
Syed Tousif Ahmed 23059f6dc0 Fixes get_node_for_wire by initializing self.node
Signed-off-by: Syed Tousif Ahmed <stahmed@seas.upenn.edu>
2020-11-26 22:47:49 -05:00
Keith Rothman d117b73b18 Add node names to database.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-26 09:32:52 -07:00
Keith Rothman 69d40a054e Report bad line when reading segbits.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-19 10:24:02 -07: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 05d6a420f7 Add assertion to debug CI failure.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-05 10:11:53 -07:00
Keith Rothman fa6840e6db Break circular import through tile_segbits.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-09-01 13:18:06 -07:00
Andrew Butt 70f7412374 Remove grid argument and fix formatting
Signed-off-by: Andrew Butt <butta@seas.upenn.edu>
2020-07-15 15:54:27 -04:00
Andrew Butt 9456bcded1 Make suggested overlay changes, still need tests
Signed-off-by: Andrew Butt <butta@seas.upenn.edu>
2020-07-14 18:10:44 -04:00
Andrew Butt 2bed3cc771 Add overlay python object to act as inverse roi
Signed-off-by: Andrew Butt <butta@seas.upenn.edu>
2020-07-10 18:44:32 -04: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
Tomasz Michalak 0357b3e4b1 Fix formatting after updating license headers
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
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
Alessandro Comodi db04b939fc grid: add prohibited sites to GridType
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-03-24 18:41:13 +01:00
Keith Rothman c2a5c7ffa1 Remove broken special case logic from xjson.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-18 15:48:02 -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
Alessandro Comodi 39aecf2d0c Do not assert if XRAY_PART env variable is not present
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi d571c0c014 run make format
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Alessandro Comodi 5f12851934 fix segmaker to get the correct tilegrid
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
Keith Rothman c38859c600 Add clock_region field to GridInfo.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-12-15 11:20:02 -08:00
Maciej Kurc 0d5a596a87 Addressed review comments.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-12-10 18:42:12 +01:00
Maciej Kurc 4502fc14e6 fasm2frames parameter "--part" made mandatory if XRAY_PART is not set, removed emitting common features for all parts if the part is not given.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-12-10 17:54:54 +01:00
Maciej Kurc 634593ee06 Changed the way that required features are to be stored in the db.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-12-10 13:49:51 +01:00
Maciej Kurc 726d744fca Changed JSON format for required features.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-12-10 13:20:44 +01:00
Maciej Kurc 6b234bf484 Added support for having a set of required features in the prjxray db.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-12-09 13:40:05 +01:00
Jake Mercer 15cfb5bd46 FUZZER - DSP - Add Ports & ROI Module
Added code for ports to the DSP48E1 instances.  Moved DSP instances
inside an ROI module and using the verilog top harness as in other
fuzzers.

Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-11-02 11:43:12 +00:00
Jake Mercer e0fb0c0cb1 FUZZER - DSP - Refactor
Refactor the DSP Python scripts to be easier to manage.  Use JSON
instead of CSV.

Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-11-02 11:43:12 +00:00
Jake Mercer c05b4b0406 MAKE - Format Trailing Whitespace
Add `make format-trailing-ws`.  This recipe finds all _files_ (not
links) known to Git and uses `sed` to remove trailing whitespace.

Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-10-26 10:04:52 +01:00
litghost c94cb0224c
Revert "Whitespace" 2019-10-23 14:22:17 -07:00
Jake Mercer bf11f43390 FORMAT - Run `make format`
Changes after running `make format`.  Future commits which add
whitespace should be caught by CI at the PR stage.

Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-10-22 19:35:24 +01:00
litghost 7d51518018
Merge pull request #1099 from litghost/fix_tile_segbit_alias
Enable ppips on aliased segbit files.
2019-10-14 20:39:18 -07:00
Keith Rothman 58d586cc87 Enable ppips even on aliased segbit files.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-10-14 16:42:52 -07:00
Keith Rothman c0b8aef3a9 Add pin functions to tilegrid.
- Add support to emit PUDC_B pullup if unused (for A7 and Z7 fabrics).

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-10-14 16:38:02 -07:00
Maciej Kurc 4c23f10d4d Added generation of bit correlation report.
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
2019-07-25 12:11:56 +02:00
litghost 19305ba9cb
Merge pull request #954 from antmicro/solver
Alternative solver for the fuzzing problem
2019-07-23 10:23:03 -07:00