summaryrefslogtreecommitdiffstats
path: root/fpga/xilinx/programmer/bit2svf/templates/alg_Spartan_II.svft
blob: 8ef16a4f760edaf39f3f558647af3e4564934d94 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//Info: Sample template for programming XILINX SpartanII FPGA
//Info: Created with output from Impact

--LITERAL START
TRST OFF;
ENDIR IDLE;
ENDDR IDLE;
STATE RESET;
STATE IDLE;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
//Loading device with 'idcode' instruction.
SIR 5 TDI (09) SMASK (1f) ;
SDR 32 TDI (00000000) SMASK (ffffffff) TDO ($ID$) MASK ($IDMASK$) ;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
//Loading device with 'idcode' instruction.
SIR 5 TDI (09) ;
SDR 32 TDI (00000000) TDO ($ID$) ;
//Loading device with 'bypass' instruction.
SIR 5 TDI (1f) ;
STATE RESET;
// Loading device with a `cfg_in` instruction. 
SIR 5 TDI (05) ;
SDR 288 TDI (00000000e00000008001000ca00000008001000cbcfd05008004800c66aa995500000000) SMASK (ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) ;
STATE RESET;
// Loading device with a `jstart` instruction. 
SIR 5 TDI (0c) ;
SDR 13 TDI (0000) SMASK (1fff) ;
STATE RESET;
// Loading device with a `cfg_in` instruction. 
SIR 5 TDI (05) ;
SDR 352 TDI (00000000e00000008001000ca00000008001000cfffc05008004800c100000008001000c66aa995500000000) SMASK (ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) ;
STATE RESET;
// Loading device with a `jstart` instruction. 
SIR 5 TDI (0c) ;
SDR 13 TDI (0000) SMASK (1fff) ;
STATE RESET;
// Loading device with a `cfg_in` instruction. 
SIR 5 TDI (05) ;
SDR 288 TDI (00000000e00000008001000ca00000008001000cb4fd05008004800c66aa995500000000) SMASK (ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) ;
STATE RESET;
// Loading device with a `jstart` instruction. 
SIR 5 TDI (0c) ;
SDR 13 TDI (0000) SMASK (1fff) ;
STATE RESET;
// Loading device with a `cfg_in` instruction. 
SIR 5 TDI (05) ;

SDR $SBITS$ TDI ($DATA_INV(-1)$) SMASK ($FILL(0xFF,-1)$);

STATE RESET;
// Loading device with a `jstart` instruction. 
SIR 5 TDI (0c) ;
SDR 13 TDI (0000) SMASK (1fff) ;
STATE RESET;
//Loading device with 'bypass' instruction.
SIR 5 TDI (1f) ;
//Loading device with 'bypass' instruction.
SIR 5 TDI (1f) ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
TIR 0 ;
HIR 0 ;
HDR 0 ;
TDR 0 ;
STATE RESET;
//Checking done pin status.
//Loading device with 'Bypass' instruction.
SIR 5 TDI (1f) TDO (05) MASK (04) ;
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
SIR 5 TDI (1f) ;
SDR 1 TDI (00) SMASK (01) ;
--END