XADC and DNA for Xilinx FPGA (#407)

* xilinx: add XADC and DNA args, see https://github.com/cfib/openFPGALoaderXADC/tree/XADC_3
parts: add xcku060
* doc: add xcku060
This commit is contained in:
bma
2023-11-25 08:47:24 +01:00
committed by GitHub
parent b119a955a6
commit 234f7f5a35
5 changed files with 209 additions and 6 deletions
+10 -1
View File
@@ -24,7 +24,8 @@ class Xilinx: public Device, SPIInterface {
const std::string &spiOverJtagPath,
const std::string &target_flash,
bool verify, int8_t verbose,
bool skip_load_bridge, bool skip_reset);
bool skip_load_bridge, bool skip_reset,
bool read_dna, bool read_xadc);
~Xilinx();
void program(unsigned int offset, bool unprotect_flash) override;
@@ -191,6 +192,14 @@ class Xilinx: public Device, SPIInterface {
SECONDARY_FLASH = 0x2
};
/* XADC */
unsigned int xadc_read(unsigned short addr);
void xadc_write(unsigned short addr, unsigned short data);
unsigned int xadc_single(unsigned short ch);
/* DNA */
unsigned long long fuse_dna_read(void);
/*!
* \brief Starting from UltraScale, Xilinx devices can support dual
* QSPI flash configuration, with two different flash chips