From b05c30690854c462a2e704a22ff895c0055a8265 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Mon, 13 Mar 2023 16:46:31 +0800 Subject: [PATCH] soc/cores/clock/gowin_gw2a: enable GW2AR support Gowin GW2AR is just GW2A with co-packaged external RAM. Enable using GW2APLL for GW2AR. Signed-off-by: Icenowy Zheng --- litex/soc/cores/clock/gowin_gw2a.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/clock/gowin_gw2a.py b/litex/soc/cores/clock/gowin_gw2a.py index 44829fcb6..25497463f 100644 --- a/litex/soc/cores/clock/gowin_gw2a.py +++ b/litex/soc/cores/clock/gowin_gw2a.py @@ -17,7 +17,7 @@ class GW2APLL(GW1NPLL): @staticmethod def get_vco_freq_range(device): vco_freq_range = None - if device.startswith('GW2A-'): + if device.startswith('GW2A-') or device.startswith('GW2AR-'): vco_freq_range = (500e6, 1250e6) # datasheet values if vco_freq_range is None: raise ValueError(f"Unsupported device {device}.") @@ -26,7 +26,7 @@ class GW2APLL(GW1NPLL): @staticmethod def get_pfd_freq_range(device): pfd_freq_range = None - if device.startswith('GW2A-'): + if device.startswith('GW2A-') or device.startswith('GW2AR-'): pfd_freq_range = (3e6, 500e6) # datasheet values if pfd_freq_range is None: raise ValueError(f"Unsupported device {device}.")