5 Configuration Mode Introduction
5.2 JTAG Configuration
UG290-2.3E
25(87)
Read ID CODE Instance
ID Code, i.e. JEDEC ID Code, is a basic identification of FPGA
products.
The length of the Gowin FPGA ID Code is 32 bits. The ID Codes of the
FPGA are listed in the following table.
Table 5-5 Gowin FPGA IDCODE
Gowin FPGA Device Family IDCODE
Device Family
Device Part
Manufacturer ID
IDCODE
Bits 31-12
Bits 11-0
h81B
GW1N-1
h09002
h81B
h0900281B
GW1N-1S
h09003
h0900381B
GW1NZ-1
h01006
h0100681B
GW1NS-2
h03000
h0300081B
GW1NS(R)-2C
h03001
h0300181B
GW1NSE-2C
h03001
h0300181B
GW1N(R)-4
h01001
h0100381B
GW1N(R)-4B
h11003
h1100381B
GW1N(R)-4C
h11003
h0100181B
GW1NS(ER)-4C
h01009
h0100981B
GW1N(R)-9
h11005
h1100581B
GW1N(R)-9C
h11005
h1100481B
GW2A(R)-18/18C
h00000
h0000081B
GW2A-55/55C
h00002
h0000281B
The instruction for reading FPGA is 0x11. Take the GW1N-4B ID Code
as an example to illustrate the working mode of JTAG, please refer to the
following steps:
1. TAP reset: TMS is set to high level and at least 5 clock cycles are
continuously transmitted;
2. Move the state machine from Test-Logic-Reset to Run-Test-Idle;
3. Move the state machine to Shift-IR. Send Read ID instruction (0x11)
beginning with LSB. When MSB (the last bit) is being sent, move state
machine to Exit1-IR at the same time, i.e., TMS should be high level
before sending MSB. Table 5-6 shows the change of TDI and TMS
value during sending 0x11 in 8-clock cycle. The timing is as shown in
Figure 5-11.
Table 5-6 Change of TDI and TMS Value in The Process of Sending Instructions
TCK 1
TCK 2
TCK 3
TCK 4
TCK 5
TCK 6
TCK 7
TCK 8
TDI value
(0x11)
1
0
0
0
1
0
0
0
TMS
0
0
0
0
0
0
0
1