Merge pull request #1646 from Icenowy/gw2ar
soc/cores/clock/gowin_gw2a: enable GW2AR support
This commit is contained in:
commit
c2ea83db38
|
@ -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}.")
|
||||||
|
|
Loading…
Reference in New Issue