Commit Graph

43 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
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
Tim 'mithro' Ansell 5a6272374f Fix segprint tool.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2020-02-24 21:01:01 -08:00
Alessandro Comodi 93d448e135 fixing tests
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Tomasz Michalak 48e5b8fc8d segprint: drop empty sections with -z -D
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-15 21:43:53 +02:00
Keith Rothman b1c822cb98 Fix review comments.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-14 08:27:43 -08:00
Keith Rothman bf8fd49ba4 Remove remaining usage of height, as words is the key.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-28 11:31:44 -08:00
John McMaster 010a2eb5da segprint: --bit-only
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2019-01-09 18:36:18 +01:00
John McMaster 955759020d segprint: fix -b flag, working on tilegrid directly
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2019-01-08 19:05:39 +01:00
Tomasz Michalak f0f7661fbb utils: segprint: Fix issue #443 with segprint -b
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-01-07 18:09:43 +01:00
John McMaster 96ee4ac449 checkdb: check tile overlap
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-10 14:58:14 -08:00
John McMaster 3220cdc1ee dbfixup: db_root arg
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 14:28:31 -08:00
John McMaster aefe1a9534 segprint: ignore hint pips
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-06 12:07:29 -08:00
John McMaster 334f28a9a4 segprint: decode bits shared by overlapping tiles
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-06 12:05:23 -08:00
Keith Rothman de5c8a44a3 Pass configuration from top of utility, rather than implicit variables.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-11-01 16:18:32 -07:00
John McMaster b44e9dd49f segprint: use prjxray.db lib
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-31 18:54:05 -07:00
John McMaster 5532adac5b segprint: grid => tiles, segments
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-31 18:53:59 -07:00
John McMaster 8171030058 segprint: move load_bitdata into lib
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-30 10:47:33 -07:00
Keith Rothman 7eadae4ded Assorted fixes.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-22 09:08:34 -07:00
John McMaster a931e999b6 segprint: add note
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 17:49:01 -07:00
John McMaster 50c295efb5 misc utils: process_db() w/ load file on or exists, not and
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 17:49:01 -07:00
John McMaster d93547ed4b segprint: remove outdated comment
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 17:49:01 -07:00
John McMaster 87792c00a8 segprint: remove dead code
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 17:49:01 -07:00
John McMaster 178c76f74d bits2fasm: format enums correctly
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
John McMaster 7998b77ee3 segprint: include all tile memory spaces, not just IO
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 14:31:59 -07:00
John McMaster 86fce0fee3 segprint: cleanup, fix
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-17 14:31:59 -07:00
Keith Rothman 4fe294df19 Run make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-05 09:36:33 -07:00
Keith Rothman f77755ea5d Add TODO to remove hack.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-05 09:34:45 -07:00
Keith Rothman fcac3aa05c Lighter hack.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-05 09:31:45 -07:00
Keith Rothman dba45f30fa Hack thinks to work (for now).
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-10-05 09:09:38 -07:00
Rick Altherr 43e51dd5c1 Reformat existing Python files with yapf
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-09 14:50:06 -08:00
Rick Altherr 67c7914a2c Revert "Autopep8 on all existing sources"
This reverts commit 925885c2cc.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-09 14:49:57 -08:00
Rick Altherr 925885c2cc Autopep8 on all existing sources
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:23:42 -08:00
Clifford Wolf 339fd235bc Update tools to correctly handle ECC mask (ECC is only 13 LSB bits in word 50)
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 1b21d3a064 Add "segprint -b"
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
John McMaster fb474660b2 segprint +x
Signed-off-by: John McMaster <JohnDMcMaster@gmail.com>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
Clifford Wolf 2fd3beb510 Add support for !<bit> to segprint.py
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 b6e77bc285 Update segprint.py for new database
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 f4f801b1c7 Add consistent sorting order to segprint
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 f04450be66 Improve segprint.py
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 c8188315f7 Add lvb_long_mux minitest
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 61c51d6a15 Add segprint.py, use in switchboxes minitest
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