Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef XILINX_HPP
#define XILINX_HPP
#include <string>
#include "bitparser.hpp"
#include "device.hpp"
#include "jtag.hpp"
#include "spiInterface.hpp"
class Xilinx: public Device, SPIInterface {
public:
Xilinx(Jtag *jtag, std::string filename, bool verbose);
~Xilinx();
void program(unsigned int offset = 0) override;
void program_spi(unsigned int offset = 0);
void program_mem(BitParser &bitfile);
int idCode();
void reset();
/* spi interface */
int spi_put(uint8_t cmd, uint8_t *tx, uint8_t *rx,
uint16_t len) override;
int spi_put(uint8_t *tx, uint8_t *rx, uint16_t len) override;
int spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond,
uint32_t timeout, bool verbose = false) override;
};
#endif
7a8b80d9dThis file is pinned to the selected release. Download the original to open it in your design tool.