2697 |
miho |
1 |
// Program Version |
|
|
2 |
// --------------- |
|
|
3 |
|
2940 |
miho |
4 |
#define VERSION "1.06" // Program version |
2697 |
miho |
5 |
|
|
|
6 |
|
|
|
7 |
// JTAG Port Definitions |
|
|
8 |
// --------------------- |
|
|
9 |
|
|
|
10 |
// Use FTDI as Port Interface |
|
|
11 |
#include "mlab_xvcd_port_FTDI.h" |
|
|
12 |
|
|
|
13 |
// JTAG Port Pin Masks (look at mlab_xvcd_port_FTDI.h for pin names) |
2940 |
miho |
14 |
#define PORT_TCK ( FTDI_TXD ) // JTAG TCK (output) |
|
|
15 |
#define PORT_TDI ( FTDI_RXD ) // JTAG TDI (output) |
|
|
16 |
#define PORT_TDO ( FTDI_RTS ) // JTAG TDO (input) |
|
|
17 |
#define PORT_TMS ( FTDI_CTS ) // JTAG TMS (output) |
|
|
18 |
#define PORT_LED ( FTDI_RI | CBUS3 ) // Activituy LED (output) |
2697 |
miho |
19 |
|
|
|
20 |
// FTDI Settings |
|
|
21 |
#define BAUD_RATE 1000000 // Baoud Rate (mult it by 16) |
|
|
22 |
#define USB_LATENCY 1 // FTDI USB Latency Timer in ms (FT232R 0, FT2232 1) |
|
|
23 |
|
|
|
24 |
// Performance Data (configuring XC3S50AN) |
|
|
25 |
// ---------------- |
|
|
26 |
// BAUD_RATE USB_LATENCY --> FT220X FT232R |
|
|
27 |
// 1000000 1 3s 2s |
|
|
28 |
// 10000000 1 3s |
|
|
29 |
// 1000000 0 2.8s |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
// Network Definitions |
|
|
33 |
// ------------------- |
|
|
34 |
|
|
|
35 |
// TCP/IP |
|
|
36 |
#define XVC_TCP_PORT "2542" // TCP Port Number to Listen to (string!) |
|
|
37 |
#define XVC_JTAG_LEN (1024*8) // JTAG String Length in bits |