Commit Graph

30 Commits

Author SHA1 Message Date
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
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
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 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
Tim 'mithro' Ansell 2eb1bf3bfe fuzzers: Add 000-init-db fuzzer.
Creates the .db files via make rather than via sourcing settings.sh
allowing pip fuzzers to interact correctly with `make clean`.

Fixes #604.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-05 00:44:09 +11:00
Keith Rothman 741715851a Initial cascade pip fuzzer.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-30 14:53:05 -08:00
litghost 1e2f1c6ae1
Merge pull request #533 from antmicro/05x-piplist
Generate piplist once
2019-01-17 12:16:09 -08:00
Karol Gugala ea29a0ca5a utils: environment: generate empty db files if missing
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
2019-01-16 17:39:03 +01:00
Alessandro Comodi b5f7243f39 utils/environment.sh: added fuzzers dir to env variables
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2019-01-16 12:13:49 +01:00
John McMaster d7efa3bc81 vivado: assert expected version
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2019-01-06 17:24:23 +01:00
Felix Held 0d6e327229 introduce vivado wrapper
This fixes the problem that when sourcing the vivado settings file the
library search path is modified resulting in non-vivado binaries not working
due to being dynamically linked against the vivado libraries instead of the
system ones.

Signed-off-by: Felix Held <felix-github@felixheld.de>
2018-12-28 19:05:49 +01:00
Tim 'mithro' Ansell 8d0983aedd Source Python environment in settings.sh
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-17 19:13:45 -08:00
Tim 'mithro' Ansell 23c435aa6e Improve `make format`.
* Use `yapf` from environment if it exists.
 * Better way to generate exclude.
 * Make TCL formatting work.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-13 18:31:10 -08:00
John McMaster 2bb5677d44 parsedb: merge in dbcheck
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-10 14:56:06 -08:00
John McMaster f38309230e reformat.tcl: move to third party
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-05 17:01:00 -08:00
John McMaster 54dcdf1f2e tcl: reformat existing code
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-05 16:52:56 -08:00
John McMaster c22995bf6c environment.sh: fix PYTHONPATH
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-13 14:05:55 -08:00
John McMaster 7f95ce3996 parsedb: tool to validate database
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-12 15:44:13 -08:00
John McMaster ac7fc054e9 blockwidth: tool to print minor address groups
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-23 19:44:20 -07:00
Keith Rothman 3edbde3fe2 Add FASM library to prjxray path.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-18 18:26:34 -07:00
John McMaster 697f83c97a fasm2frames env fix
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 14:31:59 -07:00
John McMaster c8ee9d4f16 fasm2bits: working
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 14:31:59 -07:00
John McMaster e3cd270e16 segprint2fasm -> bits2fasm
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 14:31:59 -07:00
Rick Altherr 90ebf28cef utils: update XRAY_BITREAD to specify part YAML flag
bitread now requires a part YAML file as part of the rewrite to use
libprjxray.  Instead of changing every invocation directly, just add the
flag to the existing environment variable as it is needed for all
invocations.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Clifford Wolf f79def34be Databse cleanups
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Clifford Wolf 3f6ba4b94e Add explicit zero bits to DB format, some cleanups
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Clifford Wolf 9bbadc2a39 Add maskmerge script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Rick Altherr 559eb4176a Export XRAY_* during environment setup
Since some of the tools need to be found by make and other environments,
build the paths when database/<database>/settings.sh is sourced and
export them into the shell environment.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Rick Altherr fedf33b5ce tools: build with CMake
Building with CMake makes it a lot easier to bring in other libraries
such as gflags and abseil.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Rick Altherr c815d4b1a5 Set tool and script paths project-wide
utils/environment.sh determines its absolute path and then creates
environment variables to each of the prjxray tools.  This allows moving
the tools around in the code base without touching every script.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00