Merge pull request #1646 from Icenowy/gw2ar

soc/cores/clock/gowin_gw2a: enable GW2AR support
This commit is contained in:
enjoy-digital 2023-03-13 21:12:00 +01:00 committed by GitHub
commit c2ea83db38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class GW2APLL(GW1NPLL):
@staticmethod @staticmethod
def get_vco_freq_range(device): def get_vco_freq_range(device):
vco_freq_range = None vco_freq_range = None
if device.startswith('GW2A-'): if device.startswith('GW2A-') or device.startswith('GW2AR-'):
vco_freq_range = (500e6, 1250e6) # datasheet values vco_freq_range = (500e6, 1250e6) # datasheet values
if vco_freq_range is None: if vco_freq_range is None:
raise ValueError(f"Unsupported device {device}.") raise ValueError(f"Unsupported device {device}.")
@ -26,7 +26,7 @@ class GW2APLL(GW1NPLL):
@staticmethod @staticmethod
def get_pfd_freq_range(device): def get_pfd_freq_range(device):
pfd_freq_range = None pfd_freq_range = None
if device.startswith('GW2A-'): if device.startswith('GW2A-') or device.startswith('GW2AR-'):
pfd_freq_range = (3e6, 500e6) # datasheet values pfd_freq_range = (3e6, 500e6) # datasheet values
if pfd_freq_range is None: if pfd_freq_range is None:
raise ValueError(f"Unsupported device {device}.") raise ValueError(f"Unsupported device {device}.")