xvc_client: Xilinx Virtual Cable client PoC

This commit is contained in:
Gwenhael Goavec-Merou
2022-04-10 16:02:39 +02:00
parent 3cc9adf2aa
commit 7bfce0fb2b
6 changed files with 454 additions and 0 deletions
+8
View File
@@ -28,6 +28,9 @@
#include "dirtyJtag.hpp"
#include "part.hpp"
#include "usbBlaster.hpp"
#ifdef ENABLE_XVC_CLIENT
#include "xvc_client.hpp"
#endif
using namespace std;
@@ -115,6 +118,11 @@ void Jtag::init_internal(cable_t &cable, const string &dev, const string &serial
case MODE_CMSISDAP:
_jtag = new CmsisDAP(cable.config.vid, cable.config.pid, _verbose);
break;
#endif
#ifdef ENABLE_XVC_CLIENT
case MODE_XVC_CLIENT:
_jtag = new XVC_client("127.0.0.1", clkHZ, _verbose);
break;
#endif
default:
std::cerr << "Jtag: unknown cable type" << std::endl;