D. Shah
f05d024666
ecp5: Use snake case for arch-specific functions
...
This makes the difference clearer between the general arch API that
everyone must implement; and helper functions specific to one arch.
Signed-off-by: D. Shah <dave@ds0.me>
2021-02-03 10:53:08 +00:00
D. Shah
d792bce0fb
ecp5: Implement IdStringList for all arch object names
...
This is a complete implementation of IdStringList for ECP5; excluding
the GUI (which you will have to disable for it to build).
Signed-off-by: D. Shah <dave@ds0.me>
2021-02-02 17:00:32 +00:00
D. Shah
9388df19d3
refactor: Replace getXName().c_str(ctx) with ctx->nameOfX
...
This makes the ongoing migration to IdStringList easier.
Signed-off-by: D. Shah <dave@ds0.me>
2021-02-02 17:00:14 +00:00
D. Shah
6d23461bcd
ecp5: Proof-of-concept using IdStringList for bel names
...
This uses the new IdStringList API to store bel names for the ECP5. Note
that other arches and the GUI do not yet build with this
proof-of-concept patch.
getBelByName still uses the old implementation and could be more
efficiently implemented with further development.
Signed-off-by: D. Shah <dave@ds0.me>
2021-02-02 17:00:12 +00:00
D. Shah
ff92d19fed
arch: Add getNameDelimiter API for string lists
...
Signed-off-by: D. Shah <dave@ds0.me>
2021-02-02 16:59:40 +00:00
Keith Rothman
da74a425d2
Run "make clangformat".
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:44:49 -08:00
Keith Rothman
9089ee2d16
Add pybindings for new APIs.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:43:36 -08:00
Keith Rothman
9fe546f279
Rename Partition -> BelBucket.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:34:56 -08:00
Keith Rothman
d03d9d839b
Working compile of ECP5.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:34:56 -08:00
Keith Rothman
71e210dd4b
Refactor ECP5 to new Partition API.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:34:56 -08:00
Keith Rothman
2285c8dbbd
Initial refactoring of placer API.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-02 07:34:56 -08:00
Keith Rothman
5cf2f8d1ea
Seperate PipRange types in pybindings_shared.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-02-01 10:23:21 -08:00
D. Shah
94e8847d67
cleanup: Spelling fixes
...
Signed-off-by: D. Shah <dave@ds0.me>
2021-01-28 15:19:06 +00:00
D. Shah
6ecf7f86c8
cleanup: Remove dead/unused code
...
Note that some '#if 0' code that might still be useful for debugging in
the future has been retained.
Signed-off-by: D. Shah <dave@ds0.me>
2021-01-28 14:59:13 +00:00
D. Shah
75ee2fc4e6
Move RelPtr/RelSlice out of arches into common
...
The bba approach seems widely used enough that it's reasonable for this
to become part of common code.
Signed-off-by: D. Shah <dave@ds0.me>
2021-01-27 20:43:01 +00:00
D. Shah
3fc5455ec5
ecp5: Switch from RelPtr to RelSlice
...
This replaces RelPtrs and a separate length field with a Rust-style
slice containing both a pointer and a length; with bounds checking
always enforced.
Thus iterating over these structures is both cleaner and safer.
Signed-off-by: D. Shah <dave@ds0.me>
2021-01-27 19:39:19 +00:00
D. Shah
dc46d84c35
ecp5: Fix bottom clock tile renaming for tilegroups
...
Signed-off-by: D. Shah <dave@ds0.me>
2021-01-25 15:45:56 +00:00
David Shah
818faa78aa
clangformat
...
Signed-off-by: David Shah <dave@ds0.me>
2020-12-30 16:49:55 +00:00
David Shah
5e53a18292
ecp5: Improve pseudo-diff IO error handling
...
Signed-off-by: David Shah <dave@ds0.me>
2020-12-27 20:14:49 +00:00
David Shah
c667c56bd9
ecp5: Fix FF timing data
...
Signed-off-by: David Shah <dave@ds0.me>
2020-12-17 20:27:32 +00:00
Yehowshua Immanuel
fe8a011629
Update CMakeLists.txt
...
I believe Prjtrellis has CMAKE define pytrellis as a shared module, not library.
On MacOS, this makes a difference and NextPNR expected ``.dylib``
instead of ``.so``. Things still work on Linux.
2020-11-17 17:53:46 -05:00
David Shah
06555aa003
clangformat
...
Signed-off-by: David Shah <dave@ds0.me>
2020-11-14 09:07:34 +00:00
David Shah
8686b6dada
RelPtr: remove copy constructor and copy assignment
...
These operations are meaningless for a data structure that references
another structure relative to its location.
Signed-off-by: David Shah <dave@ds0.me>
2020-11-13 20:19:53 +00:00
David Shah
9916525418
ecp5: Fix handling of CLK/LSR wire attached settings
...
Signed-off-by: David Shah <dave@ds0.me>
2020-11-05 11:53:55 +00:00
David Shah
b18ea204c2
Remove wire alias API
...
It has not actually been implemented in any router for over 2.5 years and causes nothing more than confusion. It can always be added back if it forms part of a future solution; possibly as part of a more general database structure rethink.
Signed-off-by: David Shah <dave@ds0.me>
2020-10-15 09:36:15 +01:00
David Shah
576baa994f
ecp5: Fix some tricky ECLKSYNCB/CLKDIVF packing cases
...
Signed-off-by: David Shah <dave@ds0.me>
2020-10-09 21:41:55 +01:00
David Shah
c4244d967d
docs: Tidy up
...
Signed-off-by: David Shah <dave@ds0.me>
2020-10-01 09:02:29 +01:00
kittennbfive
3c7c95ecce
Update primitives.md
2020-09-30 19:29:13 +00:00
David Shah
9aff6aa55c
ecp5: Add support for setting PIO clamp
...
Signed-off-by: David Shah <dave@ds0.me>
2020-09-26 09:24:01 +01:00
William D. Jones
e63270f918
Fix MESSAGE indicating where externally-built .bbas live.
2020-08-22 21:09:21 -04:00
David Shah
be607c10a8
Merge pull request #489 from YosysHQ/dave/ecp5-fix-ioddrx2
...
ecp5: Fix how ODDRX2 SCLK/RST are set
2020-08-13 20:05:16 +01:00
David Shah
fd5d95320b
ecp5: Fix how ODDRX2 SCLK/RST are set
...
Signed-off-by: David Shah <dave@ds0.me>
2020-08-13 13:24:52 +01:00
David Shah
e475490992
ecp5: Run fixupHierarchy after packing
...
Signed-off-by: David Shah <dave@ds0.me>
2020-08-12 10:12:10 +01:00
Miodrag Milanovic
8f2b707d02
Initial conversion to pybind11
2020-07-23 18:35:18 +02:00
David Shah
467d26d9e6
ecp5: Add a warning for unknown LPF IOBUF attrs
...
Signed-off-by: David Shah <dave@ds0.me>
2020-07-13 17:30:24 +01:00
David Shah
19a4ddf2f0
ecp5: Add SYSCONFIG settings to bitstream
...
Signed-off-by: David Shah <dave@ds0.me>
2020-07-12 14:51:14 +01:00
David Shah
6016e54d6c
ecp5: Add parsing of SYSCONFIG line in LPF
...
Signed-off-by: David Shah <dave@ds0.me>
2020-07-12 12:53:16 +01:00
David Shah
137241cfef
Merge pull request #463 from YosysHQ/fix-archcheck
...
Fix arch checks, and add these to CI
2020-07-02 13:32:30 +01:00
whitequark
18bb70afca
CMake: improve logic for discovering Trellis.
2020-07-01 21:11:03 +00:00
whitequark
f6e30f22f4
CMake: fix path checks in chipdb build scripts.
...
`if(NOT DEFINED)` is not appropriate since a variable that contains
`-NOTFOUND` still counts as `DEFINED`. This can cause issues if
configuration fails, writes `-NOTFOUND` to the cache, and is then
restarted.
2020-07-01 20:22:21 +00:00
David Shah
c0901fb972
ecp5: Fix derivation of OSCG timing constraint
...
Signed-off-by: David Shah <dave@ds0.me>
2020-06-29 22:11:00 +01:00
David Shah
2c4ae853f2
ecp5: Fix getTileBelDimZ
...
Signed-off-by: David Shah <dave@ds0.me>
2020-06-29 19:52:31 +01:00
Miodrag Milanovic
7a95629aff
Fix clangformat and execute it
2020-06-27 13:20:16 +02:00
Miodrag Milanovic
901ad4e917
Update git ignore locations
2020-06-27 13:18:06 +02:00
David Shah
4f4aa53120
Merge pull request #460 from whitequark/better-embed
...
Simplify and improve chipdb embedding/loading
2020-06-26 11:32:13 +01:00
whitequark
89e0cc8078
Simplify and improve chipdb embedding/loading.
2020-06-26 08:36:07 +00:00
whitequark
19a3095ecb
Fix typo
2020-06-25 17:26:57 +00:00
whitequark
bf8d4c428e
CMake: require at least version 3.5 (Ubuntu 16.04).
2020-06-25 14:03:37 +00:00
whitequark
1dc1164dce
CMake: rewrite chipdb handling from ground up.
2020-06-25 14:03:37 +00:00
David Shah
43fd9e6779
ecp5: Fix placement of DCCs to guarantee routeability
...
Signed-off-by: David Shah <dave@ds0.me>
2020-06-10 15:47:47 +01:00