jtag: add access to targeted idcode

This commit is contained in:
Gwenhael Goavec-Merou 2021-08-18 07:39:23 +02:00
parent c206920f65
commit c47b494311
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ class Jtag {
*/
std::vector<int> get_devices_list() {return _devices_list;}
/*!
* \brief return current selected device idcode
* \return device idcode
*/
uint32_t get_target_device_id() {return _devices_list[device_index];}
/*!
* \brief set index for targeted FPGA
* \param[in] index: index in the chain