DS861E
DS861E
Datasheet
DS861-1.7E, 11/22/2024
Copyright © 2024 Guangdong Gowin Semiconductor Corporation. All Rights
Reserved.
Contents
Contents ............................................................................................................... i
List of Figures .................................................................................................... iv
List of Tables ....................................................................................................... v
1 General Description......................................................................................... 1
1.1 Features .............................................................................................................................. 1
1.2 Product Resources ............................................................................................................. 3
1.3 Package Information ........................................................................................................... 2
2 Architecture ...................................................................................................... 3
2.1 Architecture Overview ......................................................................................................... 3
2.2 PSRAM ............................................................................................................................... 5
2.3 HyperRAM .......................................................................................................................... 5
2.4 NOR FLASH ....................................................................................................................... 6
2.5 Configurable Function Units ............................................................................................... 7
2.6 Input/Output Blocks ............................................................................................................ 9
2.6.1 I/O Standards ................................................................................................................. 10
2.6.2 True LVDS Design ......................................................................................................... 14
2.6.3 I/O Logic ........................................................................................................................ 15
2.6.4 I/O Logic Modes............................................................................................................. 17
2.7 Block SRAM ...................................................................................................................... 18
2.7.1 Introduction .................................................................................................................... 18
2.7.2 Memory Configuration Modes ....................................................................................... 18
2.7.3 Mixed Data Width Configuration .................................................................................... 20
2.7.4 Parity Bit ........................................................................................................................ 21
2.7.5 Synchronous Operation ................................................................................................. 21
2.7.6 BSRAM Operation Modes ............................................................................................. 21
2.7.7 Clock Mode .................................................................................................................... 23
2.8 User Flash (GW1NSR-4) .................................................................................................. 24
2.9 Digital Signal Processing .................................................................................................. 25
2.9.1 Introduction .................................................................................................................... 25
2.9.2 Macro ............................................................................................................................. 25
2.9.3 DSP Operation Modes ................................................................................................... 26
DS861-1.7E i
Contents
DS861-1.7E ii
Contents
DS861-1.7E iii
List of Figures
List of Figures
DS861-1.7E iv
List of Tables
List of Tables
DS861-1.7E v
List of Tables
DS861-1.7E vi
1General Description 1.1Features
1 General Description
1.1 Features
Lower power consumption memory chips
- 55nm embedded flash technology Integrates a NOR Flash memory chip
- Core voltage: 1.2V Hard core processor
- GW1NSR-4C/4 support LV - 32-bit Arm Cortex-M3 processor
version only - ARM v7-M Thumb2 architecture
- Supports dynamically turning optimized for small-footprint
on/off the clock embedded applications
Integrates HyperRAM/PSRAM - System timer (SysTick), providing
DS861-1.7E 1(63)
1General Description 1.1Features
DS861-1.7E 2(63)
1General Description 1.2Product Resources
DS861-1.7E 3(63)
1General Description 1.3Package Information
Table 1-3 Device-Package Combinations and Maximum User I/Os (True LVDS
Pairs)
Note!
JTAGSEL_N and JTAG pins cannot be used as GPIOs simultaneously. However,
when mode [2:0] = 001, the JTAGSEL_N pin is always a GPIO, in other words the
JTAGSEL_N pin and the four JTAG pins (TCK, TMS, TDI, TDO) can be used as
GPIOs simultaneously. See UG863, GW1NSR series of FPGA Products Package
and Pinout User Guide for more details.
The package types in this manual are referred to by acronyms, see 4.1 Part Naming
for more information.
For more information, see UG864, GW1NSR-4 Pinout and UG865, GW1NSR-4C
Pinout.
DS861-1.7E 2(63)
2Architecture 2.1Architecture Overview
2 Architecture
I/OBank1
IOB
CLU PLL
NOR FLASH
I/OBank3
I/OBank1
DS861-1.7E 3(63)
2Architecture 2.1 Architecture Overview
NOR FLASH.
The core of the GW1NSR device is an array of logic cells surrounded
by IO blocks. Besides, BSRAMs, DSP blocks, PLLs, an on-chip oscillator,
and Flash resources allowing for instant-on are provided. In addition,
GW1NSR-4C has an embedded Cortex-M3 processor, see Table 1-1.
The Configurable Logic Units (CLUs) are the basic logic blocks that
form the core of GW1NSR FPGAs. Devices with different capacities have
different numbers of rows and columns of CFUs/CLUs. For more
information, see 2.5 Configurable Function Units.
The I/O resources in the GW1NSR series of FPGA products are
arranged around the periphery of the devices in groups referred to as
banks. The I/O resources support multiple I/O standards and can be used
for regular mode, SDR mode, and generic DDR mode. For more
information, see 2.6 Input/Output Blocks.
BSRAMs are arranged in row(s) inside the GW1NSR series of FPGA
products. Each BSRAM occupies 3 CLU locations. There are two uses of
BSRAMs, but the two uses cannot be used at the same time. Firstly, they
function as the SRAM resources for the Cortex-M3 processor system. The
capacity of each BSRAM is 16Kbits, and the total capacity is
128Kbits(GW1NSR-4/4C). Secondly, they can be utilized for user storage.
The capacity of each BSRAM is 18Kbits, and the total capacity is
180Kbits(GW1NSR-4/4C). And in this case multiple configuration modes
and operation modes are supported. For more information, see 2.7 Block
SRAM.
GW1NSR-4 has built-in User Flash memory resources, ensuring data
retention even when powered off. See 2.8 User Flash (GW1NSR-4) for
more information.
The GW1NSR series of FPGA products provide DSP blocks. DSP
blocks are arranged in row(s) inside the GW2A series of FPGA products.
Each DSP block occupies 9 CLU locations. Each DSP block contains two
macros, and each macro contains two pre-adders, two 18 x 18 bit
multipliers, and one three-input ALU. For more information, see 2.9 Digital
Signal Processing.
The GW1NSR series of FPGA products have embedded PLL
resources. The PLLs can provide synthesizable clock frequencies.
Frequency adjustment (multiplication and division), phase adjustment, and
duty cycle adjustment can be realized by configuring the parameters.
These FPGAs also have an embedded programmable on-chip clock
oscillator that supports clock frequencies ranging from 2.5 MHz to 120MHz,
providing clocking resources for the MSPI mode. It provides an MSPI clock
source for the MSPI configuration mode with a tolerance of ±5%. For more
information, see 2.12 Clocks.
The embedded configuration Flash resources in GW1NSR FPGAs
support instant-on and security bit operations, catering to AUTO BOOT and
DUAL BOOT configuration modes. For more information, see 2.15
Programming & Configuration.
DS861-1.7E 4(63)
2Architecture 2.2 PSRAM
2.2 PSRAM
Features
Clock frequency: 166 MHz
Double Data Rate
32Mb capacity for each PSRAM
8-bit data width for each PSRAM
Read-write data strobe (RWDS)
Temperature compensated refresh
Partial array self-refresh (PASR)
Hybrid sleep mode
Deep power down(DPD)
Drive strengths: 35, 50, 100, and 200 Ohm
Burst access
Burst lengths: 16/32/64/128
Status/control registers
1.8V power supply
Please refer to the corresponding pinout manual for the power supply
of the PSRAM.
The IP Core Generator integrated in the Gowin Software supports a
PSRAM controller IP that can interface to both embedded and external
PSRAMs. This controller IP can be used for the PSRAM power-up
initialization, read calibration, etc. For more information, please refer to
IPUG525,Gowin PSRAM Memory Interface IP User Guide.
2.3 HyperRAM
Features
Clock frequency: 200 MHz
Double Data Rate
Clock: supports single-ended clock and differential clock
Supports chip select
Data width: 8bits
DS861-1.7E 5(63)
2Architecture 2.4 NOR FLASH
DS861-1.7E 6(63)
2Architecture 2.5 Configurable Function Units
DS861-1.7E 7(63)
2Architecture 2.5 Configurable Function Units
REG/
LUT SREG
CLS3
REG/
LUT SREG
LUT REG
CLS2
LUT REG
CRU
LUT REG
CLS1
LUT REG
LUT REG
CLS0
LUT REG
Note!
The SREGs need special patch support. Please contact Gowin’s technical support or local
office for this patch.
DS861-1.7E 8(63)
2Architecture 2.6 Input/Output Blocks
DO
DO
DO
TO
TO
TO
TO
DI
DI
DI
DI
IO Logic IO Logic IO Logic IO Logic
A B A B
CLK
CLK
CLK
CLK
Routing
Routing
Routing
Routing
Routing
Routing
Routing
Routing
Output
Output
Output
Output
Input
Input
Input
Input
Routing Routing
DS861-1.7E 9(63)
2Architecture 2.6 Input/Output Blocks
I/O logic modes. For more information about the IOB, please refer to
UG289,Gowin Programmable IO (GPIO) User Guide.
2.6.1 I/O Standards
There are four I/O banks in the GW1NSR series of FPGA products, as
shown in Figure 2-5. Each bank has its own I/O power supply VCCIO. To
support SSTL, HSTL, etc., each bank also has one independent voltage
source (VREF) as the reference voltage. You can choose to use the internal
VREF (0.5 x VCCIO) or the external VREF input via any IO from the bank.
Figure 2-5 I/O Bank Distribution View of GW1NSR-4C/4
Top
I/O Bank2
Right
GW1NSR-4C/4
Bottom
I/O Bank3
DS861-1.7E 10(63)
2Architecture 2.6 Input/Output Blocks
For the VCCIO requirements of different I/O standards, see Table 2-1
and Table 2-2.
Table 2-1 Output I/O Standards and Configuration Options
I/O standard Single-ended/Differe
Bank VCCIO(V) Drive Strength (mA) Typical Applications
(output) ntial
LVCMOS33/ Universal interface
Single-ended 3.3 4,8,12,16,24
LVTTL33
LVCMOS25 Single-ended 2.5 4,8,12,16 Universal interface
LVCMOS18 Single-ended 1.8 4,8,12 Universal interface
LVCMOS15 Single-ended 1.5 4,8 Universal interface
LVCMOS12 Single-ended 1.2 4,8 Universal interface
SSTL25_I Single-ended 2.5 8 Memory interface
SSTL25_II Single-ended 2.5 8 Memory interface
SSTL33_I Single-ended 3.3 8 Memory interface
SSTL33_II Single-ended 3.3 8 Memory interface
SSTL18_I Single-ended 1.8 8 Memory interface
SSTL18_II Single-ended 1.8 8 Memory interface
SSTL15 Single-ended 1.5 8 Memory interface
HSTL18_I Single-ended 1.8 8 Memory interface
HSTL18_II Single-ended 1.8 8 Memory interface
HSTL15_I Single-ended 1.5 8 Memory interface
PC and embedded
PCI33 Single-ended 3.3 8/4
system
High-speed data
LVPECL33E Differential 3.3 16
transmission
LCD timing driver
MVLDS25E Differential 2.5 16 interface and column
driver interface
Multi-point
BLVDS25E Differential 2.5 16 high-speed data
transmission
High-speed
RSDS25E Differential 2.5 8 point-to-point data
transmission
High-speed
LVDS25E Differential 2.5 8 point-to-point data
transmission
Mobile Industry
MIPI Differential (MIPI) 1.2 N/A
Processor Interface
High-speed
Differential (True
LVDS25 2.5/3.3 N/A point-to-point data
LVDS)
transmission
High-speed
Differential (True
RSDS 2.5/3.3 N/A point-to-point data
LVDS)
transmission
LCD timing driver
Differential (True
MINILVDS 2.5/3.3 N/A interface and column
LVDS)
driver interface
Differential (True LCD row/column
PPLVDS 2.5/3.3 N/A
LVDS) driver
DS861-1.7E 11(63)
2Architecture 2.6 Input/Output Blocks
Table 2-2 Input I/O Standards and Configuration Options Supported by GW1NSR
Single-end Hysteresis
I/O standard (input) ed/Differen Bank VCCIO(V) Options VREF Required?
tial Supported?
Single-end
LVCMOS33/ LVTTL33 1.2/1.5/1.8/2.5/3.3 Yes No
ed
Single-end
LVCMOS25 1.2/1.5/1.8/2.5/3.3 Yes No
ed
Single-end
LVCMOS18 1.2/1.5/1.8/2.5/3.3 Yes No
ed
Single-end
LVCMOS15 1.2/1.5/1.8/2.5/3.3 Yes No
ed
Single-end
LVCMOS12 1.2/1.5/1.8/2.5/3.3 Yes No
ed
Single-end
SSTL15 1.5/1.8/2.5/3.3 No Yes
ed
Single-end
SSTL25_I 2.5/3.3 No Yes
ed
Single-end
SSTL25_II 2.5/3.3 No Yes
ed
Single-end
SSTL33_I 3.3 No Yes
ed
Single-end
SSTL33_II 3.3 No Yes
ed
Single-end
SSTL18_I 1.8/2.5/3.3 No Yes
ed
Single-end
SSTL18_II 1.8/2.5/3.3 No Yes
ed
Single-end
HSTL18_I 1.8/2.5/3.3 No Yes
ed
DS861-1.7E 12(63)
2Architecture 2.6 Input/Output Blocks
Single-end Hysteresis
I/O standard (input) ed/Differen Bank VCCIO(V) Options VREF Required?
tial Supported?
Single-end
HSTL18_II 1.8/2.5/3.3 No Yes
ed
Single-end
HSTL15_I 1.5/1.8/2.5/3.3 No Yes
ed
Single-end
LVCMOS33OD25 2.5 No No
ed
Single-end
LVCMOS33OD18 1.8 No No
ed
Single-end
LVCMOS33OD15 1.5 No No
ed
Single-end
LVCMOS25OD18 1.8 No No
ed
Single-end
LVCMOS25OD15 1.5 No No
ed
Single-end
LVCMOS18OD15 1.5 No No
ed
Single-end
LVCMOS15OD12 1.2 No No
ed
Single-end
LVCMOS25UD33 3.3 No No
ed
Single-end
LVCMOS18UD25 2.5 No No
ed
Single-end
LVCMOS18UD33 3.3 No No
ed
Single-end
LVCMOS15UD18 1.8 No No
ed
Single-end
LVCMOS15UD25 2.5 No No
ed
Single-end
LVCMOS15UD33 3.3 No No
ed
Single-end
LVCMOS12UD15 1.5 No No
ed
Single-end
LVCMOS12UD18 1.8 No No
ed
Single-end
LVCMOS12UD25 2.5 No No
ed
Single-end
LVCMOS12UD33 3.3 No No
ed
Single-end
PCI33 3.3 Yes No
ed
Single-end
VREF1_DRIVER ed (Vref 1.2/1.5/1.8/2.5/3.3 No Yes
Input)
Differential
MIPI 1.2 No No
(MIPI)
LVDS25 Differential 2.5/3.3 No No
RSDS Differential 2.5/3.3 No No
MINILVDS Differential 2.5/3.3 No No
PPLVDS Differential 2.5/3.3 No No
LVDS25E Differential 2.5/3.3 No No
MLVDS25E Differential 2.5/3.3 No No
DS861-1.7E 13(63)
2Architecture 2.6 Input/Output Blocks
Single-end Hysteresis
I/O standard (input) ed/Differen Bank VCCIO(V) Options VREF Required?
tial Supported?
BLVDS25E Differential 2.5/3.3 No No
RSDS25E Differential 2.5/3.3 No No
LVPECL33E Differential 3.3 No No
SSTL15D Differential 1.5/1.8/2.5/3.3 No No
SSTL25D_I Differential 2.5/3.3 No No
SSTL25D_II Differential 2.5/3.3 No No
SSTL33D_I Differential 3.3 No No
SSTL33D_II Differential 3.3 No No
SSTL18D_I Differential 1.8/2.5/3.3 No No
SSTL18D_II Differential 1.8/2.5/3.3 No No
HSTL18D_I Differential 1.8/2.5/3.3 No No
HSTL18D_II Differential 1.8/2.5/3.3 No No
HSTL15D_I Differential 1.5/1.8/2.5/3.3 No No
LVCMOS12D Differential 1.2/1.5/1.8/2.5/3.3 No No
LVCMOS15D Differential 1.5/1.8/2.5/3.3 No No
LVCMOS18D Differential 1.8/2.5/3.3 No No
LVCMOS25D Differential 2.5/3.3 No No
LVCMOS33D Differential 3.3 No No
GW1NSR
Transmitter Receiver
txout+ rxin+ txout+ rxin+
50Ω Logic 50Ω
100Ω Array
50Ω 50Ω
txout- rxin- txout- rxin-
DS861-1.7E 14(63)
2Architecture 2.6 Input/Output Blocks
TX TRIREG
GND
SER
D OREG
IODELAY
DI
Q IREG
IDES IEM
Rate
Q0-Qn-1
Sel
CI
output.
Descriptions of the I/O logic modules of the GW1NSR series of FPGA
products are presented below.
IODELAY
See Figure 2-8 for an overview of the IODELAY module. Each I/O of
DS861-1.7E 15(63)
2Architecture 2.6 Input/Output Blocks
Tdlyunit - 30ps -
DLYSTEP 0 - 127
DI DO
DLY UNIT
SDTAP
VALUE
D Q
CE
CLK
SR
Note!
CE can be programmed as either active low (0: enable) or active high (1: enable).
CLK can be programmed as either rising edge triggering or falling edge triggering.
DS861-1.7E 16(63)
2Architecture 2.6 Input/Output Blocks
CLK LEAD
D IEM MCLK
RESET LAG
DES
This series of FPGA products provide a simple deserializer(DES) for
input I/O logic to support advanced I/O protocols.
SER
This series of FPGA products provide a simple serializer(SER) for
output I/O logic to support advanced I/O protocols.
2.6.4 I/O Logic Modes
The I/O Logic of the GW1NSR series of FPGA products supports
several operation modes. In each operation mode, the I/O (or I/O
differential pair) can be configured as output, input, INOUT or tristate
output (output signal with tristate control).
DS861-1.7E 17(63)
2Architecture 2.7 Block SRAM
DS861-1.7E 18(63)
2Architecture 2.7 Block SRAM
Write Port
Read
Port
16K x 1 8K x 2 4K x 4 2K x 8 1K x 16 512 x 32 2K x 9 1K x 18 512 x 36
16K x 1 * * * * * *
8K x 2 * * * * * *
4K x 4 * * * * * *
2K x 8 * * * * * *
1K x 16 * * * * * *
512x32 * * * * * *
2K x 9 * * *
1K x 18 * * *
Note!
“*” denotes the modes supported.
DS861-1.7E 20(63)
2Architecture 2.7 Block SRAM
AD
Input Memory Pipeline
DI Register DO
Register Array
WRE
CLK
OCE
DS861-1.7E 21(63)
2Architecture 2.7 Block SRAM
ADB
Input
CLKA Register
DIA Input Memory
CLKB
Register Array
ADA
Pipeline
Register
OCEB
DOB
DIA DIB
ADA Input Input ADB
WREA Register Register WREB
Memory
CLKA Array CLKB
Pipeline Pipeline
Register Register OCEB
OCEA
DOA DOB
Write Mode
NORMAL MODE
In this mode, when you write data to one port, the output data of this
port does not change. The written data will not appear at the read port.
WRITE-THROUGH MODE
In this mode, when you write data to one port, the written data will
appear at the output of this port.
READ-BEFORE-WRITE MODE
In this mode, when you write data to one port, the written data will be
stored in the memory according to the address, and the original data in this
address will appear at the output of this port.
DS861-1.7E 22(63)
2Architecture 2.7 Block SRAM
Clock Mode Dual Port Mode Semi-Dual Port Mode Single Port Mode
Independent
Yes No No
Clock Mode
Read/Write
Yes Yes No
Clock Mode
Single Port Clock
No No Yes
Mode
Independent Clock Mode
Figure 2-12 shows the independent clocking operations in dual port
mode with one clock at each port. CLKA controls all the registers at Port A;
CLKB controls all the registers at Port B.
Figure 2-12 Independent Clock Mode
WREA WREB
ADA ADB
Input Input
DIA DIB
Register Register
Memory
Array
CLKA CLKB
Output Output
DOA DOB
Register Register
WREA WREB
Input
Register
Input Memory
CLKA CLKB
Register Array
Pipeline
Register
DS861-1.7E 23(63)
2Architecture 2.8 User Flash (GW1NSR-4)
DI Input
Register
Memory
CLK
Array
Output
DO
Register
WRE
DS861-1.7E 24(63)
2Architecture 2.9 Digital Signal Processing
DS861-1.7E 25(63)
2Architecture 2.10 MIPI D-PHY RX/TX Implemented by Using GPIOs
Four 9 x 9 multipliers
Note!
Two macros can form one 36 x 36 multiplier.
DS861-1.7E 26(63)
2Architecture 2.11 Cortex-M3
2.11 Cortex-M3
2.11.1 Introduction
GW1NSR-4C is a system-on-chip FPGA device that incorporates a
microprocessor system hard core, Gowin FPGA fabric, and other standard
peripherals and hard cores, including BSRAM resources and PLL/OSC
clocking resources. The embedded microprocessor system contains a
low-power, low-cost and high-performance ARM Cortex-M3 32-bit RISC
core. The flexible FPGA fabric serves as user programmable peripherals,
or soft-core IPs.
The embedded microprocessor system consists of a processor block
and an associated bus system that connects to standard peripherals. The
FPGA fabric contains rich programmable logic resources offering a flexible
architecture that allows the user to achieve multiple peripherals by calling
soft-core IPs, such as SPI, I2C or I3C. The microprocessor system only
interfaces with the FPGA fabric and JTAG config-core internally with no
access to the I/O blocks of GW1NSR-4C.
The bus system consists of an AHB-Lite Bus, an AHB2APB bridge bus,
and two APB buses(APB1 and APB2).
The microprocessor system accesses the FPGA sub-memory system
through the AHB bus. The system includes a controller that implements
read-only operations of 128KB of Flash resources and read/write
operations of a maximum of 8KB (configurable to 2KB, 4KB, or 8KB) of
BSRAM resources. Upon Power-On boot loading, Cortex-M3 loads
instructions and data that are pre-stored in the Flash-ROM before initiating
the execution.
In addition, there are two AHB bus extension ports: INTEXP0 and
TARGEXP0. Each of these AHB extension ports provides a 126-bit AHB
bus interconnecting to any high-speed User programmable peripherals
implemented within the FPGA. A GPIO block interconnects the AHB bus
with the FPGA fabric to allow the user to implement general purpose I/O
functions in the FPGA.
In terms of the two APB Bus (APB1 and APB2), APB1 interconnects
with two timers (Timer0 and Timer1), two UARTs (Uart0 and Uart1), and
one watchdog. The two UARTs connect to the FPGA directly. The two
DS861-1.7E 27(63)
2Architecture 2.11 Cortex-M3
timers and the watchdog are controlled and used within the microprocessor
system and are accessed through registers. The APB2 bus connects
directly to the FPGA.
The processor block consists of a Cortex-M3 core, bus matrix, Nested
Vector Interrupt Controller (NVIC), Debug Access Port (DAP), and time
stamp, etc.
The Cortex-M3 core accesses the bus system through the bus matrix.
GW1NSR-4C offers six user interrupts. The DAP contains the JTAG
DAP and the Trace-Port-Interface-Unit (TPIU).
FPGA fabric takes advantage of its rich Clocking Resource (PLL, OSC)
and provides the Main Clock, Power-On Reset and System Reset signals
to the embedded microprocessor system.
See Figure 2-15 for the Cortex-M3 architecture.
Figure 2-15 Cortex-M3 Architecture
Cortex-M3
Processor Block
JTAG I/F
DAP JTAG
Cortex-M3
Core
Time
Stamp
TPIU I/F
Bus-Matrix User_int0/1
NVIC
Clk/Reset Clock
Resource
PLL/OSC
AHB Extension:
INTEXP0
Memory Sub-System
AHB Extension:
TARGEXP0 Mem-Cntrl
AHB To
AHB SRAM/FLASH I/F B-SRAM
Lite
Bus GPIO I/F
GPIO
FLASH
AHB2APB
IntMonitor
Logic Resource
Soft-Core
APB I/F SPI I2C
APB1 APB2
UART USB
I/F I3C
UART1 Type-C
Timer1
Watchdog
DS861-1.7E 28(63)
2Architecture 2.11 Cortex-M3
2.11.2 Cortex-M3
Features
Compact core
Thumb-2 instruction set, delivering the high-performance expected of
an ARM core
Associated with 32 bits and 16 bits devices; typically, in the range of a
few kilobytes of memory for microcontroller class applications
Rapid application execution through Harvard architecture
characterized by separate buses for instructions and data
Exception and Interrupt handling, implemented through register
operations
Deterministic, fast interrupt processing
Memory protection unit (MPU), providing a privileged mode for
protecting operation system functionality
Migration from the ARM7 processor family for better performance and
power efficiency
Full-featured debug solution
- JTAG Debug Port
- Flash Patch and Breakpoint (FPB) unit for implementing
breakpoints
- Data Watchpoint and Trigger (DWT) unit for implementing
watchpoints, trigger resources, and system profiling
- Instrumentation Trace Macrocell (ITM) for printf style debugging
- Trace Port Interface Unit (TPIU) for bridging to a Trace Port
2.11.3 Bus-Matrix
The bus-matrix is used to connect the Cortex-M3 processor and debug
port with an external AHB bus. Connections between the bus-matrix and
the AHB bus:
ICode bus: 32bit AHBLite bus, used for fetching instructions and
vectors from code space.
DCode bus: 32bit AHBLite bus, used for data loading/storage and
debug access.
System bus: 32bit AHBLite bus, used for fetching instructions and
vectors from system space, data loading/storage and debug access.
APB: 32bit APB bus, used for external space data loading/storage and
debug access.
The bus-matrix also controls the following functions.
Unaligned accesses: converts the unaligned processor access to
aligned access.
DS861-1.7E 29(63)
2Architecture 2.11 Cortex-M3
DS861-1.7E 30(63)
2Architecture 2.11 Cortex-M3
DS861-1.7E 31(63)
2Architecture 2.11 Cortex-M3
DS861-1.7E 32(63)
2Architecture 2.11 Cortex-M3
and monitor control register), which is a global enable bit that enables both
the Data Watch Trace (DWT) and Instrumentation Trace Module (ITM) on
behalf of the debug of the Cortex-M3 microprocessor. The time stamp
generator is used during the debug process to set up the break point and
marching step, etc.
Figure 2-16 DEMCR Register
DEMCR寄存器
31 25 24 23 20 19 18 17 16 15 11 10 9 8 7 6 5 4 3 1 0
Note!
TRCENA is the global enable for DWT and ITM:
0: DWT and ITM units disabled.
1: DWT and ITM units enabled.
2.11.7 Timer
The SoC offers an embedded microprocessor system that contains
two synchronous standard timers: Timer0 and Timer1. These can be
accessed and controlled through the APB1 bus.
Timer0 and Timer1 are 32-bit down-counters with the following
features:
Users can generate an interrupt request signal, TIMERINT, when the
counter reaches 0. The interrupt request is held until it is cleared by
writing to the INTCLEAR Register.
Users can employ the zero-to-one transition of the external input signal,
EXTIN, as a timer enable.
If the timer count reaches 0 and, at the same time, the software clears
a previous interrupt status, the interrupt status is set to 1.
The external clock, EXTIN, must be slower than half of the peripheral
clock because it is sampled by a double flip-flop before going through
edge-detection logic when the external inputs act as a clock.
Timer0: EXTIN is hard-wired to GPIO[1].
Timer1: EXTIN is hard-wired to GPIO[6].
DS861-1.7E 33(63)
2Architecture 2.11 Cortex-M3
PCLK Synchronizer
Reload value Edge detection
PCLKG
CTRL[2]
PRESETn EXTIN
Decrement 1
PSEL
32bits down
PADDR[11:2] counter 0 1
CTRL[1]
PENABLE 1
PWRITE CTRL[0]
0 1
PWDATA[31:0]
SET
PREADY Val==1
PSLVERR TIMERINT
CTRL[3]
CLR
PRDATA[31:0]
ECOREVNUM[3:0]
2.11.8 UART
The SoC is embedded with two UARTs: UART0 and UART1. These
can be accessed and controlled through the APB1 bus. The max. baud rate
supported is 921.6Kbits/s.
UART0 and UART1support 8 bits communication without parity and
one stop bit.
DS861-1.7E 34(63)
2Architecture 2.11 Cortex-M3
TX FSM
Baud rate
APB generator
interface
RX FSM
DS861-1.7E 35(63)
2Architecture 2.11 Cortex-M3
2.11.9 Watchdog
The SoC is embedded with a watchdog, which can be accessed and
controlled through the APB1 bus.
The watchdog module is based on a 32-bit down-counter that is
initialized from the reload register, WDOGLOAD.
The watchdog module generates a regular interrupt, WDOGINT,
depending on a programmed value. The counter decrements by one on
each positive clock edge of WDOGCLK when the clock enable,
WDOGCLKEN, is active high. The watchdog monitors the interrupt and
asserts a reset request WDOGRES signal when the counter reaches 0,
and the counter is stopped. On the next enabled WDOGCLK clock edge,
the counter is reloaded from the WDOGLOAD register and the countdown
sequence continues.
The watchdog module applies a reset to a system in the event of a
software failure, providing a way to recover from software crashes. For
example, if the interrupt is not cleared and the counter reaches 0 again, the
watchdog module triggers a system reset.
The Watchdog operation is shown in the following figure.
DS861-1.7E 36(63)
2Architecture 2.11 Cortex-M3
Base Data
Name Type Reset Value Description
Offset Width
Read/
WDOGLOAD 0x00 32 0xFFFFFFFF Watchdog Load Register
Write
Read
WDOGVALUE 0x04 32 0xFFFFFFFF Watchdog Value Register
only
Watchdog Control Register
Read/ [1]:
WDOGCONTROL 0x08 2 0x0
Write
[0]:
Read/
WDOGLOCK 0xC00 32 0x0 Watchdog Lock Register
Write
Read
WDOGPERIPHID4 0XFD0 8 0x04 Peripheral ID Register 4
only
Read
WDOGPERIPHID5 0XFD4 8 0x00 Peripheral ID Register 5
only
DS861-1.7E 37(63)
2Architecture 2.11 Cortex-M3
Base Data
Name Type Reset Value Description
Offset Width
Read
WDOGPERIPHID6 0XFD8 8 0x00 Peripheral ID Register 6
only
Read
WDOGPERIPHID7 0XFDC 8 0x00 Peripheral ID Register 7
only
Read
WDOGPERIPHID0 0XFE0 8 0x24 Peripheral ID Register 0
only
Read
WDOGPERIPHID1 0XFE4 8 0XB8 Peripheral ID Register 1
only
Read
WDOGPERIPHID2 0XFE8 8 0X1B Peripheral ID Register 2
only
Read
WDOGPERIPHID3 0XFEC 8 0X00 Peripheral ID Register 3
only
Read
WDOGPCELLID0 0XFF0 8 0X0D Component ID Register 0
only
Read
WDOGPCELLID1 0XFF4 8 0XF0 Component ID Register 1
only
Read
WDOGPCELLID2 0XFF8 8 0X05 Component ID Register 2
only
Read
WDOGPCELLID3 0XFFC 8 0XB1 Component ID Register 3
only
2.11.10 GPIO
The SoC communicates with the GPIO block through the AHB bus.
The GIPO block interconnects with the FPGA. The GPIO block provides a
16-bit I/O interface with the following features:
Programmable interrupt generation capability. You can configure each
bit of the I/O pins to generate interrupts.
Bit masking supports the use of address values.
Registers for alternate function switching with pin multiplexing support.
Thread safe operation by providing separate set and clear addresses
for control registers.
The GPIO registers are shown in the following table. The base
address of GPIO is 0x40010000.
DS861-1.7E 38(63)
2Architecture 2.11 Cortex-M3
DS861-1.7E 39(63)
2Architecture 2.12 Clocks
0xFFFF_FFFF
SCB
Reserved 0xE000_ED00
NVIC
System 0xE000_E100
Control SysTick
Space 0xE000_E010
0xE000_0000 SCS 0x4001_1000
Reserved 0xE000_E000 GPIO
For External 0x4001_0000
Devices Watchdog
0xA000_0000
Reserved 0x4000_8000
For External UART1
SRAM 0x4000_5000
0x6000_0000 UART0
Peripheral 0x4000_4000
0x4000_0000 Timer1
Reserved 0x4000_1000
0x2000_4000
SRAM Timer0
0x2000_0000
0x4000_0000
Reserved
0x0002_0000
Code flash
0x0000_0000
2.12 Clocks
The clock resources and wiring are critical for high-performance
applications in FPGA. The GW1NSR series of FPGA products provide
global clocks (GCLKs) which connect to all the registers directly. In addition,
high-speed clocks (HCLKs), PLLs, etc. are provided.
For more information, see UG286, Gowin Clock User Guide.
2.12.1 Global Clocks
The Global Clock(GCLK) resources are divided into two quadrants (L
and R) in the GW1NSR devices, with each quadrant providing eight GCLKs.
The clock sources of GCLKs include dedicated clock input pins and CRUs,
DS861-1.7E 40(63)
2Architecture 2.13 Long Wires
T
I/O Bank2
I/O Bank3
IO Bank HCLK
DS861-1.7E 41(63)
2Architecture 2.15 Programming & Configuration
as a GPIO, RECONFIG_N can only be used for output. For more information, please
refer to UG290, Gowin FPGA Products Programming and Configuration User Guide.
DS861-1.7E 42(63)
2Architecture 2.16 On-chip Oscillator
DS861-1.7E 43(63)
3DC and Switching Characteristics 3.1 Operating Conditions
Note!
Please ensure that you use Gowin’s devices within the recommended operating
conditions and ranges. Data beyond the working conditions and ranges are for reference
only. Gowin does not guarantee that all devices will operate normally beyond the
operating conditions and ranges.
DS861-1.7E 44(63)
3DC and Switching Characteristics 3.2 ESD performance
For more information on the power supplies, please refer to UG864, GW1NSR-4
Pinout and UG865, GW1NSR-4C Pinout .
The allowable ripples on VCC, VCCIO, and VCCX are 3%, 5%, and 5% respectively. 1).
For devices of which the PLL is powered directly with V CC, the ripple on VCC can affect
the jitter characteristics of the PLL output clock; 2). The ripple on VCCIO can eventually
be passed on to the output waveform of the IO Buffer.
DS861-1.7E 45(63)
3DC and Switching Characteristics 3.3 DC Electrical Characteristics
DS861-1.7E 46(63)
3DC and Switching Characteristics 3.3 DC Electrical Characteristics
Hysteresis=“NONE”, “L2H”, “H2L”, “HIGH” indicates the Hysteresis options that can
[1]
be set when setting I/O Constraints in the FloorPlanner tool of Gowin EDA, for more
details, see SUG935, Gowin Design Physical Constraints User Guide.
[2]Enabling the L2H (low to high) option means raising VIH by VHYST; enabling the H2L
(high to low) option means lowering VIL by VHYST; enabling the HIGH option means
enabling both L2H and H2L options, i.e. VHYST(HIGH) = VHYST(L2H) + VHYST(H2L). The
diagram is shown below.
VHYST
VIH (None) VIL (None)
VHYST
VIL (H2L on)
DS861-1.7E 47(63)
3DC and Switching Characteristics 3.3 DC Electrical Characteristics
DS861-1.7E 48(63)
3DC and Switching Characteristics 3.3 DC Electrical Characteristics
DS861-1.7E 49(63)
3DC and Switching Characteristics 3.4 Switching Characteristics
DS861-1.7E 50(63)
3DC and Switching Characteristics 3.4 Switching Characteristics
Speed Grade
Name Description Unit
Min Max
tLUT4_CLU LUT4 delay - 0.674 ns
tLUT5_CLU LUT5 delay - 1.388 ns
tLUT6_CLU LUT6 delay - 2.01 ns
tLUT7_CLU LUT7 delay - 2.632 ns
tLUT8_CLU LUT8 delay - 3.254 ns
tSR_CLU Set/Reset to Register output - 1.86 ns
tCO_CLU Clock to Register output - 0.76 ns
-5 -6
Name Unit
Min Max Min Max
HCLK Tree delay 0.8 1.4 0.5 1.2 ns
PCLK Tree
1.4 2.6 1.0 2.2 ns
delay(GCLK0~5)
PCLK Tree
1.8 3.2 1.4 2.9 ns
delay(GCLK6~7)
Pin-LUT-Pin Delay 3.4 5 3 4.5 ns
DS861-1.7E 51(63)
3DC and Switching Characteristics 3.4 Switching Characteristics
DS861-1.7E 52(63)
3DC and Switching Characteristics 3.5 Cortex-M3 AC/DC Characteristics
Specification
Symbol Description Unit
Min. Max.
Max. current of
IVCC - 100 mA
VCC
Max. current of
IVSS - -100 mA
VSS
IINJ Leakage current - +/-5 mA
Specification
Symbol Description Device Unit
Min. Max.
AHB clock
fHCLK GW1NSR-4C 0 80 MHz
frequency
DS861-1.7E 53(63)
3DC and Switching Characteristics 3.6 User Flash Characteristics(GW1NSR-4)
Specification
Symbol Description Device Unit
Min. Max.
APB clock
fPCLK GW1NSR-4C 0 80 MHz
frequency
DS861-1.7E 54(63)
3DC and Switching Characteristics 3.6 User Flash Characteristics(GW1NSR-4)
DS861-1.7E 55(63)
3DC and Switching Characteristics 3.6 User Flash Characteristics(GW1NSR-4)
After XADR, YADR, XE, and YE are valid, Tacc starts at the rising edge of SE.
[2]
DOUT will be kept before the next valid read operation starts.
Thv is the cumulative time from the start of the write operation to the next data erase
[3]
operation. The same address cannot be written twice before the next erase; the same
memory cell cannot be written twice before the next erase. This limitation is for
security reasons.
[4] All waveforms have a 1ns rising time and a 1ns falling time.
[5]Control signals(X, YADR, XE, and YE) need to be held for at least T acc, which starts
at the rising edge of SE.
DS861-1.7E 56(63)
3DC and Switching Characteristics 3.7 Configuration Interface Timing Specification
DS861-1.7E 57(63)
4Ordering Information 4.1 Part Naming
4 Ordering Information
Logic Density
4: 4,608 LUTs
DS861-1.7E 58(63)
4Ordering Information 4.1 Part Naming
C: ARM Cortex-M3
Package Type
C: ARM Cortex-M3 QN48P (QFN48P, 0.4mm)
QN48G (QFN48G, 0.4mm)
MG64P (MBGA64P, 0.5mm)
DS861-1.7E 59(63)
4Ordering Information 4.2 Package Markings
[3]
Part Number [1] XXXXXXXXXX
Part Number XXXXXXXXXXXXXXXXX XXXXXXXXXX
Date Code YYWWXXXX Date Code YYWWXXXX
Lot Number LLLLLLLLL Lot Number LLLLLLLLL
Note!
[1] The first two lines in the right figure(s) above are both the “Part Number”.
[2] The Date Code followed by an “X” is for X version devices.
Whether the package marking bears the Gowin Logo or not depends on the
[3]
package type, package size, and Part Number length. The above figure are only
examples of the package markings.
DS861-1.7E 60(63)
5About This Manual 5.1 Purpose
5.1 Purpose
This data sheet provides a comprehensive overview of the GW1NSR
series of FPGA products, including their features, resources, architecture,
AC/DC characteristics, and ordering details. It aims to enhance
accessibility and facilitate the effective utilization of Gowin's devices.
DS861-1.7E 62(63)
5 About This Manual 5.4 Support and Feedback
Terminology and
Full Name
Abbreviations
SSRAM Shadow Static Random Access Memory
TDM Time Division Multiplexing
Timer Timer
TimeStamp TimeStamp
TPIU Trace Port Interface Unit
UART Universal Asynchronous Receiver/Transmitter
USB Universal Serial Bus
Watchdog Watchdog
DS861-1.7E 63(63)