forked from yuyomagico/rpi-jtag-spartan3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxilinx_devices.h
27 lines (26 loc) · 964 Bytes
/
xilinx_devices.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
#include <vector>
namespace jtag_au {
class XC3S200 {
public:
// Reference https://www.xilinx.com/support/documentation/user_guides/ug332.pdf
// Page 207
std::vector<unsigned char>
EXTEST = {0,0,0,0,0,0},
IDCODE = {1,0,0,1,0,0},//REMEMBER TO FLIP BITS SHOWN IN DATASHEET.
BYPASS = {1,1,1,1,1,1},
CFG_IN = {1,0,1,0,0,0},
JSTART = {0,0,1,1,0,0},
JPROGRAM = {1,1,0,1,0,0};
};
class XFC01S {
// Reference https://www.xilinx.com/support/documentation/data_sheets/ds123.pdf
// Page 5
public:
std::vector<unsigned char>
EXTEST = {0,0,0,0,0,0,0,0},
IDCODE = {0,1,1,1,1,1,1,1},
CONFIG = {0,1,1,1,0,1,1,1},
BYPASS = {1,1,1,1,1,1,1,1};
};
}