Commit Graph

15 Commits

Author SHA1 Message Date
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
Tomasz Michalak 35b7130116 Replace API for Series7
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
2019-10-09 08:45:04 +02:00
Tomasz Michalak bf5475cfa6 xc7patch: refactor to use same xc7series utilities as xc7frames2bit
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
Keith Rothman 84ccebce22 make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-11-15 15:28:17 -08:00
Keith Rothman f9481e7c7c Correct sentence.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-11-15 14:05:43 -08:00
Keith Rothman 8da0a38fd7 Run make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-11-15 14:04:22 -08:00
Keith Rothman 9166a43649 Do not insert non-existant frames.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2018-11-15 14:01:12 -08:00
Rick Altherr 3d33f101bc xc7patch: Generate Xilinx BIT header in output bitstream
Xilinx tools generate and expect an additional header to be added to the
bitstream.  This header is the only difference between .bit and .bin
files and is not required by the part in any way.  OpenOCD only supports
reading .bit files so the easiest path to a using FOSS tools from FASM
down is to generate a .bit header in xc7patch's output. To distinguish
xc7patch-generated files from Xilinx-generated files, the source file
field includes a Generator tag indicating that the bitstream was produced by
xc7patch.  Vivado uses the same technique to record the Vivado version
in a Version tag.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr b7d01aa9f6 xc7patch: generate init and final sequences in output bitstream
Bitstreams generated by xc7patch can now be directly loaded into parts
via Vivado's Hardware Manager (bitstream must have .bin suffix) or by
flashing into a boot FLASH.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr 43b70caf03 xc7series: Dynamically allocate config packets when writing bitstreams
ConfigurationPacket assumes that the payload data is owned by someone
else. For frame data, that is generally true.  For initialization and
finalization sequences, those payloads need to be created and managed.
Instead, dynamically allocate packets which allows for using subclasses
of ConfigurationPacket that store the payload with the packet.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 14:34:31 -08:00
Rick Altherr f5099113e6 xc7patch: remove disabled debug code
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 12:40:49 -08:00
Rick Altherr 61b6a9dfe7 xc7patch: use ECC calculation from lib
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-01 12:39:56 -08:00
Rick Altherr 86db6b6724 Tool to patch a 7-series bitstream
Applies a .frm file (lines of frame address: frame words) to a bitstream
and writes the result as a new bitstream.  Note that the new bitstream
will not include the initialization and finalization sequences required
for programming.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-22 14:15:31 -08:00