Commit Graph

3708 Commits

Author SHA1 Message Date
litghost 2046bcaa9a
Merge pull request #1627 from dnltz/WIP/dnltz/parts_fixups
Docu fixup and prevent AssertionError
2021-04-01 09:23:18 -07:00
litghost 9836bef057
Merge pull request #1634 from antmicro/fix-pcie-pips
071-ppips: fix allowed and forbidden wires for PCIe
2021-03-30 09:58:49 -07:00
Alessandro Comodi a613dc48ba
Merge pull request #1628 from antmicro/add-clock-info-ports-json
cells_data: add clock information on ports.json
2021-03-29 09:55:30 +02:00
Alessandro Comodi 2be05d612b utils: update_resources: remove temp_file
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-26 13:47:38 +01:00
Alessandro Comodi b2a45db8ce 064-gtp-channel: fix width of [TR]XOUT_DIV attributes
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-26 13:47:38 +01:00
Alessandro Comodi 8305cc81d9 run make format-tcl
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-26 13:47:38 +01:00
Alessandro Comodi cb54b7f012 update_resources: skip parts with same speedgrade to get pins
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-26 13:47:38 +01:00
Alessandro Comodi 0219727e9c cells_data: add clock information on ports.json
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-26 13:47:38 +01:00
Daniel Schultz 969f1dd5ee settings: Handle return code correctly
"eval $(python3 script.py)" does not handle the return code correctly and would try to evaluate
the complete output of the Python traceback. Temporarily save the output in a variable and check
the return code. If the RC is unequal to zero, return the RC and leave the bash script.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-26 08:28:54 +01:00
Daniel Schultz f562d6acfd Makefile: Do not dump the environment during db-prepare
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>
2021-03-26 08:28:54 +01:00
Daniel Schultz 0cd104463e docs: Update "new device" section
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-26 08:28:54 +01:00
litghost ff1509bc89
Merge pull request #1633 from antmicro/fix-hostcheck
Fix hostcheck
2021-03-25 17:58:05 -07:00
Jan Kowalewski 4809922dc4 071-ppips: fix allowed and forbidden wires for PCIe
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
2021-03-25 19:29:46 +01:00
Alessandro Comodi 865859a5f6 hostcheck: add mount to the output
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-25 10:55:13 +01:00
Alessandro Comodi 5ca05083d0 hostcheck: increase timeout and fix indentation
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-25 09:47:42 +01:00
Alessandro Comodi e418f024b9 hostcheck: apply suggestion from comment and replaced tab with spaces
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-24 18:40:19 +01:00
Daniel Schultz 173bb3b34a kokoro: hostcheck: Add more debug information
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-22 15:22:16 +01:00
Daniel Schultz a6fb88b676 kokoro: hostcheck: Wait 30 seconds at the beginning
The storage device needs a little bit of time to be attached. Wait at the
beginning to make sure the storage device is really not mounted.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-20 11:08:13 +01:00
litghost 086f9a1714
Merge pull request #1562 from dnltz/WIP/dnltz/new_parts
Populate all parts
2021-03-18 13:07:02 -07:00
Daniel Schultz 772c4280ac fuzzers: 025-bram-config: exclude frame 0
Add an exclusion for frame 0 because this does not contain any bits and
the database checks fails.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-18 08:54:22 +01:00
litghost a0dbca4da8
Merge pull request #1550 from antmicro/python-deps
setup.py: add dependencies
2021-03-16 12:55:41 -07:00
Alessandro Comodi fc196c7967 setup: add comment to remove dependency
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-15 17:43:40 +01:00
Daniel Schultz 3b472bd657 Makefile: ROI after all parts are generated
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz 43bfaca467 gitignore: Ignore autogenerated resources.yaml file
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz 1d1cf3d5e5 Move devices.yaml files
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz f8e2c37fe1 kokoro: Generate files during CI runs
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz a6c54b0b3e Remove autogenerated files
These files are now autogenerated and not needed to be deployed to the repo.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz 7b16929e7d README: Add new step to prepare db
This step generates all static part information files.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz ef350f9216 Makefile: Update to roi all parts for a family
Adds a db-extra-X-roi command which will call a Python tool because the
part list is some kind of dynamic and Makefiles can't read from a YAML file
and iterates over all keys.

Also some minor clean-ups with the kintex and zynq extra commands.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +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
Daniel Schultz ac308170ef Revert "gitignore: Add exceptions for database/<family>/mapping"
This reverts commit ec04ccba19.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz ef94cf5add gitignore: Ignore vivado .jou and .log
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Daniel Schultz df23e99e7f database: artix7: Fix wrong device fabric mapping
The xc7a35t devices does not use the xc7a50t fabric.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-15 17:37:58 +01:00
Alessandro Comodi dc9060df22 setup: remove non-required dependencies
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-15 16:48:28 +01:00
Karol Gugala 1ed87867ee setup.py: add dependencies
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
2021-03-15 16:48:28 +01:00
litghost c202abb8a1
Merge pull request #1623 from dnltz/WIP/dnltz/fuzzers-clean
fuzzers: Fix some clean commands
2021-03-15 08:40:58 -07:00
litghost 9dd35a33ab
Merge pull request #1619 from litghost/defer_db_check_return
Defer exiting for db-check error until after cleanup.
2021-03-15 08:37:51 -07:00
Alessandro Comodi a56bb361c2
Merge pull request #1616 from antmicro/rework-pcie-conf-fuzzer
Rework pcie-conf fuzzer
2021-03-15 15:07:57 +01:00
Daniel Schultz 8cdc712354 fuzzers: 065(b): Makefile: Rename clean_all to clean
The fuzzer Makefile calls 'make clean' of all fuzzers. Both Makefiles
do not have a clean but a clean_all command. Rename to also clean these data.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-13 10:53:22 +01:00
Daniel Schultz 753eb2e3e1 fuzzers: 005: Makefile: Rename clean and clean_all comamnds
The 'make clean' command in the top-level Makefile calls 'clean' of all
fuzzers. The top-level Makefile does not source and settings file before and
therefore no XRAY_PART is set.

The 005's fuzzers only cleans data for a XRAY_PART file, which is not set.
Remove all fuzzer data during clean and only for a specific part during
clean_all.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-13 10:50:43 +01:00
Keith Rothman 1619b12056 Defer exiting for db-check error until after cleanup.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-03-12 08:52:17 -08:00
litghost d3e19a375d
Merge pull request #1618 from dnltz/WIP/dnltz/hostcheck
Add kokoro hostcheck
2021-03-12 08:47:26 -08:00
Jan Kowalewski ac25035fd4 061-pcie-conf: rework pcie-conf fuzzer
Included changes:
- unify params format to JSON
- add generate_ports script
- export attributes and ports to prjxray_db

Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
2021-03-12 16:06:21 +01:00
Daniel Schultz d258f10c3d kokoro: Add hostcheck step
This step checks the host environment. Right now, it only checks if a drive
is mounted to /tmpfs. If it's not mounted, the run will be aborted and the
dmesg printed.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
2021-03-11 20:12:10 +01:00
litghost 0d9418a908
Merge pull request #1614 from antmicro/add-gtp-ports-attrs-file
gtp: generate attributes and ports files to add to the db
2021-03-10 09:07:49 -08:00
Alessandro Comodi 2ccada206e gtp_common: fix DRP_ENABLE and CLKSWING to be site features
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-09 21:08:16 +01:00
Alessandro Comodi 606489ff4e gtp: create a cells_data dir for the attrs and ports JSONs
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-09 20:58:15 +01:00
Alessandro Comodi 9a35b89c93 docs: add cells_data documentation
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-09 20:58:15 +01:00
Alessandro Comodi 6794c98cdf gtp: generate attributes and ports files to add to the db
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2021-03-09 16:06:19 +01:00
litghost 0ddf03b848
Merge pull request #1615 from litghost/add_disk_space_checks
Add some disk space checks in happy and sad paths.
2021-03-09 06:47:54 -08:00