forked from M-Labs/artiq
1
0
Fork 0

kasli_generic: fix identifier string

This commit is contained in:
Sebastien Bourdeauducq 2019-03-08 19:57:20 +08:00
parent b219f8b5c7
commit e47ba4b35e
1 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,7 @@ class GenericStandalone(StandaloneBase):
def __init__(self, description, hw_rev=None,**kwargs): def __init__(self, description, hw_rev=None,**kwargs):
if hw_rev is None: if hw_rev is None:
hw_rev = description["hw_rev"] hw_rev = description["hw_rev"]
self.class_name_override = description["variant"]
StandaloneBase.__init__(self, hw_rev=hw_rev, **kwargs) StandaloneBase.__init__(self, hw_rev=hw_rev, **kwargs)
self.config["SI5324_AS_SYNTHESIZER"] = None self.config["SI5324_AS_SYNTHESIZER"] = None
@ -121,6 +122,7 @@ class GenericMaster(MasterBase):
def __init__(self, description, hw_rev=None, **kwargs): def __init__(self, description, hw_rev=None, **kwargs):
if hw_rev is None: if hw_rev is None:
hw_rev = description["hw_rev"] hw_rev = description["hw_rev"]
self.class_name_override = description["variant"]
MasterBase.__init__(self, MasterBase.__init__(self,
hw_rev=hw_rev, hw_rev=hw_rev,
rtio_clk_freq=description.get("rtio_frequency", 125e6), rtio_clk_freq=description.get("rtio_frequency", 125e6),
@ -153,6 +155,7 @@ class GenericSatellite(SatelliteBase):
def __init__(self, description, hw_rev=None, **kwargs): def __init__(self, description, hw_rev=None, **kwargs):
if hw_rev is None: if hw_rev is None:
hw_rev = description["hw_rev"] hw_rev = description["hw_rev"]
self.class_name_override = description["variant"]
SatelliteBase.__init__(self, SatelliteBase.__init__(self,
hw_rev=hw_rev, hw_rev=hw_rev,
rtio_clk_freq=description.get("rtio_frequency", 125e6), rtio_clk_freq=description.get("rtio_frequency", 125e6),
@ -207,7 +210,6 @@ def main():
raise ValueError("Invalid base") raise ValueError("Invalid base")
soc = cls(description, **soc_kasli_argdict(args)) soc = cls(description, **soc_kasli_argdict(args))
soc.class_name_override = description["variant"]
args.variant = description["variant"] args.variant = description["variant"]
build_artiq_soc(soc, builder_argdict(args)) build_artiq_soc(soc, builder_argdict(args))