Lakira Ashley
49f559cd40
Use operator[] instead of .insert
...
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
2023-01-26 07:38:41 +07:00
Lakira Ashley
a92201dd3b
Fix up configuration tests
...
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
2023-01-26 07:38:41 +07:00
Lakira Ashley
da0f14f5fe
Add bitstream compression option
...
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
2023-01-25 05:47:48 +07:00
Robert Winkler
02361a7d41
format: Fix formating in bits2rbt
...
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
2020-12-11 13:19:35 +01:00
Tomasz Michalak
a3ca052ccf
bitread: Refactor AUX data extraction
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2020-12-01 15:48:12 +01:00
Tomasz Michalak
fb607b2cbc
bitread: Rename Aux extraction methods
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2020-12-01 15:48:12 +01:00
Tomasz Michalak
f00011c8fd
bitread: Make private members const and add some comments
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2020-12-01 15:48:12 +01:00
Tomasz Michalak
426c93cffd
bitread: Add AUX support
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2020-12-01 15:48:12 +01:00
Tomasz Michalak
f283ac921b
Add tools test
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2020-12-01 15:48:12 +01:00
Dusty DeWeese
90be7e4204
remove MAP_POPULATE
...
Signed-off-by: Dusty DeWeese <dustin.deweese@gmail.com>
2020-06-17 10:11:20 -07:00
Tomasz Michalak
bb400b4f1e
Add licensing header to C++ source and header files
...
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
Karol Gugala
3acd1e99fc
bitstream_writer: update 7 series tests
...
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
2019-12-12 20:48:43 +01:00
Karol Gugala
9d08578a60
bitstream_writer: fix 7 series and US+ headers
...
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
2019-12-12 18:47:48 +01:00
Jake Mercer
c05b4b0406
MAKE - Format Trailing Whitespace
...
Add `make format-trailing-ws`. This recipe finds all _files_ (not
links) known to Git and uses `sed` to remove trailing whitespace.
Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-10-26 10:04:52 +01:00
litghost
c94cb0224c
Revert "Whitespace"
2019-10-23 14:22:17 -07:00
Jake Mercer
57d8a3a6bd
SEGBITS FILE READER - Handle Whitespace
...
The previous commit caused the segbits file reader test to fail as
trailing whitespace was removed from the test_data. Updated the reader
to additionally handle a tag immediately followed by a newline.
Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-10-22 19:35:24 +01:00
Jake Mercer
bf11f43390
FORMAT - Run `make format`
...
Changes after running `make format`. Future commits which add
whitespace should be caught by CI at the PR stage.
Signed-off-by: Jake Mercer <jake.mercer@civica.co.uk>
2019-10-22 19:35:24 +01:00
Tomasz Michalak
58c26369de
bitstream_tools: Add unit tests for Spartan6
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-22 09:20:04 +02:00
Tomasz Michalak
b35bf3fe11
bitstream_tools: Add support for Spartan6
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-22 09:20:04 +02:00
Tomasz Michalak
170169b01c
Refactor Configuration::createType2ConfigurationPacketData template method
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-21 13:00:50 +02:00
Tomasz Michalak
d91b0a5006
Refactor Configuration::InitWithPackets template method
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-21 13:00:50 +02:00
Tomasz Michalak
7bc54d0c56
Refactor BitstreamReader::InitWithBytes template method
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-21 13:00:50 +02:00
Tomasz Michalak
3f574743cf
Add initial support for UltraScale devices
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-21 13:00:50 +02:00
litghost
2a3f6aecfe
Merge pull request #1103 from antmicro/ultrascaleplus_support
...
Bitstream Tools: Add UltraScalePlus support
2019-10-15 10:33:32 -07:00
Tomasz Michalak
d328a2f576
Add initial support for UltraScalePlus devices
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-15 13:45:14 +02:00
Keith Rothman
1830202f7d
Fixes to enable compilation under clang-7.
...
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-10-14 21:33:23 -07:00
Tomasz Michalak
2f630efada
bitstream_tools: Move bitstream writer template methods to header file
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-11 14:14:28 +02:00
Tomasz Michalak
464a09a424
bitstream_tools: Move frames template methods to header file
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-11 14:14:28 +02:00
Tomasz Michalak
9e0178230f
bitstream_tools: Move ECC related functions to ECC header
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-11 14:14:28 +02:00
Tomasz Michalak
630cebd0fb
Remove unused class
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-09 08:45:04 +02:00
Tomasz Michalak
b356ed2761
Change location of Series7 tests and adapt to new API
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-09 08:45:04 +02:00
Tomasz Michalak
35b7130116
Replace API for Series7
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-09 08:45:04 +02:00
Keith Rothman
c5a9cb4646
Correct class vs struct usage.
...
yaml-lib defines convert as
template<T>
struct convert
Not as a class.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-06-10 16:22:43 -07:00
litghost
b588c5eaaf
Merge pull request #770 from antmicro/bitread_bug
...
xc7series: fix condition detecting 2 empty frames between rows
2019-04-11 10:03:01 -07:00
Tomasz Michalak
cbc58c9ad1
xc7series: add unit test for addMissingFrames
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-10 15:00:41 +02:00
Tomasz Michalak
1f6ba5d734
xc7series: fix bug with missing empty frames
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-10 15:00:41 +02:00
Tomasz Michalak
71ca8257bc
xc7series: add unit test for checking padding frames in configuration
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-10 14:42:34 +02:00
Tomasz Michalak
710658ebf8
libprjxray: move definition of icap_ecc to source file
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-10 14:42:34 +02:00
Tomasz Michalak
091c12438a
xc7series: fix condition for padding frames detection
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-04-10 14:42:34 +02:00
Tomasz Michalak
71f8d7d255
xc7frames2bit: add comments to new utility functions
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-03-19 17:09:59 +01:00
Tomasz Michalak
2aa3c30976
xc7frames2bit: implement tool for xilinx 7-series bitstream generation from frames
...
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-03-19 09:13:29 +01:00
Tim 'mithro' Ansell
aa35026d4f
`make format` all files.
...
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-13 18:43:23 -08:00
John McMaster
66f2816146
make format deltas
...
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-10 17:20:44 -08:00
Michael Gielda
9e8aa9f755
lib: xilinx: catch exceptions by reference
...
Signed-off-by: Michael Gielda <mgielda@antmicro.com>
2018-10-18 02:28:21 +02:00
Christian Fibich
2e20e2e32f
Workaround for g++ and glibc that define `minor` in `<sys/types.h>`.
...
Building prjxray using g++ 7.3.0 and glibc 2.27-3 produces the following warning that is treated as an error:
In file included from [...]/prjxray/lib/include/prjxray/xilinx/xc7series/configuration_column.h:8:0,
from [...]/prjxray/lib/include/prjxray/xilinx/xc7series/configuration_bus.h:10,
from [...]/prjxray/lib/xilinx/xc7series/configuration_bus.cc:1:
[...]/prjxray/lib/include/prjxray/xilinx/xc7series/frame_address.h:32:13: error: In the GNU C Library, "minor" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "minor", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"minor", you should undefine it after including <sys/types.h>. [-Werror]
uint8_t minor() const;
^~~~~~~~~~~
This is related to these two bugs:
https://sourceware.org/bugzilla/show_bug.cgi?format=multiple&id=19239
https://bugzilla.redhat.com/show_bug.cgi?id=130601
This patch is a workaround that undefines `minor` if `_GNU_SOURCE` is defined.
Signed-off-by: Christian Fibich <fibich@technikum-wien.at>
2018-06-22 11:18:13 +02:00
Rick Altherr
0fc3ba0400
lib: xc7series: implement builder pattern for generating COR0 values
...
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr
a4fb9ff7d8
lib: xc7series: define known CMD register values
...
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr
80004a3737
lib: xc7series: config packet subclass for NOPs
...
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr
ab1e60c037
lib: xc7series: add undocumented register used in init sequence
...
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr
2a1154ec16
lib: xc7series: config packet subclass that owns the payload
...
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00