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 <uwu@icenowy.me>
This commit is contained in:
Icenowy Zheng 2023-03-13 16:46:31 +08:00
parent 67e8d77421
commit b05c306908
1 changed files with 2 additions and 2 deletions

View File

@ -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}.")