pld/xilinx: make instruction codes configurable

Change-Id: I4d2c1fbd4d6007ba8d5c8c687a7c13e25fb6a474
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7713
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Daniel Anselmi
2023-04-15 01:13:12 +02:00
committed by Antonio Borneo
parent 5ae0264055
commit 9cb09f8cfe
3 changed files with 125 additions and 12 deletions

View File

@@ -10,9 +10,23 @@
#include <jtag/jtag.h>
#define VIRTEX2_MAX_USER_INSTRUCTIONS 4
struct virtex2_command_set {
uint64_t cfg_out;
uint64_t cfg_in;
uint64_t jprog_b;
uint64_t jstart;
uint64_t jshutdown;
uint64_t bypass;
uint64_t user[VIRTEX2_MAX_USER_INSTRUCTIONS];
unsigned int num_user;
};
struct virtex2_pld_device {
struct jtag_tap *tap;
int no_jstart;
struct virtex2_command_set command_set;
};
#endif /* OPENOCD_PLD_VIRTEX2_H */