Commit Graph

47 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 5e5217c631 utils: add file locking
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2022-03-10 14:05:40 +01: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
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
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
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
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
Keith Rothman 816c87a393 Do not require zero features to have zero bits, but do ignore them.
During database building, zero features may have other bits.  For now,
ignore the fact that zero features have non-zero bits.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-06-20 09:38:47 -07:00
Keith Rothman 01a0be3162 Add support to zero db to support simple groups.
Previously these kinds of zero groups would require encoding the
final bits, rather than tags.  This is extends the dbfixup to
construct groups via groups of tags, rather than groups of bits.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-06-19 14:46:39 -07:00
Tomasz Michalak 22cdae1536 Generate db files with fuzzer name of origin
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-05-27 08:46:44 +02:00
Keith Rothman 6f13ee4155 Merge BRAM_L and BRAM_R solving and decrease maximum candidate count from 4 to 2.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-31 10:47:55 -08:00
Keith Rothman 7469df937a Run make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-30 17:52:55 -08: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
John McMaster b979eafae1 dbfixup: drop bad entries instead of asserting when strict=0
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-19 15:14:56 -08:00
John McMaster 7acefbb2bb dbfixup: fix zero enums
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-17 18:14:08 -08:00
John McMaster 5e8a50fe37 dbfixup: more verbose bit index message
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-05 17:51:41 -08:00
John McMaster bef4a1184d dbfixup: quick hacks to make 050 happy
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-14 18:09:04 -08:00
John McMaster a3980ff738 dbfixup: handle always mode
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-14 17:37:50 -08:00
John McMaster 5d1396e667 dbfixup: missing arg on --clb-int
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-13 14:33:13 -08:00
John McMaster d31c5af8ce dbfixup: bits frozenset => set
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-12 15:47:14 -08:00
John McMaster 5c3083d1a4 dbfixup: move parse_db_line() to util
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-12 15:44:13 -08:00
John McMaster bcaf5c207d dbfixup: more verbose const assertion
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-12 10:57:46 -08:00
John McMaster dbf2c3b4b2 dbfixup: const0 support
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 20:04:54 -08:00
John McMaster e43e433550 dbfixup: zero_range() only on clb-int, assert on zero db size mismatch
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 17:30:03 -08:00
John McMaster 8f172bccf2 dbfixup: apply patches per project instead of globally
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 14:28:31 -08:00
John McMaster a790148ed0 dbfixup: generic file load args
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 14:28:31 -08:00
John McMaster d713c1e306 dbfixup: functions, comments, argparse
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-07 14:28:31 -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 57b000529c utils: consistently mark +x
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-10-24 17:15:17 -07:00
Clifford Wolf 1ec9706398 Update python script formatting
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-02-14 13:41:24 +01:00
Clifford Wolf 09e6426533 Fix dsp and bram mask generation
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-02-06 17:57:52 +01: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 36e9270371 Add dbfixup update_mask lines for BRAMs and DSPs
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2017-12-22 23:28:39 +01:00
Clifford Wolf 533bb83f45 Fix dbfixup.py for incomplete databases
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2017-12-22 17:28:39 +01:00
John McMaster 534c2930c7 dbfixup: duplicate line workaround
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
John McMaster 8618dfb035 Revert "017-clbprecyinit: push db"
This reverts commit 033d9de8649b36cd9be52d9bbef1e18e28b82190.

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
John McMaster 0cd9bc59cd 017-clbprecyinit: push db
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 58a5f37164 Add CLBL?_?.SLICE?_X?.?MUX to 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 169fb7b862 Add CLBL?_?.SLICE?_X?.?FF.DMUX database entries
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 7d4ca0858f Improvements related to HCLK 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 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 34c29d08c0 Update 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 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