We tried to update our Kasli gateware to artiq 8, but got an error message in the compilation. The error message goes away when changing the hardware revision from v1.1 to v2.0 (but our hardware is v1.1, so we need that one).
The error message appears to be related to changes made in commit c5147d7.
Our json file:
"target": "kasli",
"variant": "mpik",
"hw_rev": "v1.1",
"ext_ref_frequency": 100e6,
"base": "standalone",
"core_addr": "192.168.1.117",
"vendor": "QUARTIQ",
"peripherals": [
{
"type": "dio",
"board": "DIO_BNC",
"ports": [0],
"hw_rev": "v1.2",
"bank_direction_low": "input",
"bank_direction_high": "output"
},
{
"type": "dio",
"board": "DIO_BNC",
"ports": [1],
"hw_rev": "v1.2",
"bank_direction_low": "output",
"bank_direction_high": "output"
},
{
"type": "dio",
"board": "DIO_BNC",
"ports": [2],
"hw_rev": "v1.2",
"bank_direction_low": "output",
"bank_direction_high": "output"
},
{
"type": "sampler",
"hw_rev": "v2.2",
"ports": [3, 4]
},
{
"type": "urukul",
"hw_rev": "v1.3",
"ports": [5, 6],
"dds": "ad9912",
"clk_sel": 2
},
{
"type": "urukul",
"hw_rev": "v1.3",
"ports": [7, 8],
"clk_sel": 2
},
{
"type": "zotino",
"hw_rev": "v1.3",
"ports": [11]
}
]
}
The error message:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 852, in <module>
main()
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 846, in main
soc = cls(description, gateware_identifier_str=args.gateware_identifier_str, **soc_kasli_argdict(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 663, in __init__
StandaloneBase.__init__(self,
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 123, in __init__
self.submodules += SMAClkinForward(self.platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 38, in __init__
sma_clkin = platform.request("sma_clkin")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 246, in request
return self.constraint_manager.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 165, in request
resource = _lookup(self.available, name, number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 74, in _lookup
raise ConstraintError("Resource not found: {}:{}".format(name, number))
migen.build.generic_platform.ConstraintError: Resource not found: sma_clkin:None
While I couldn't find any extra arguments in the json schema, I tried to add an extra argument in the top
"enable_wrpll": true,
to see if that fixes the problem, but then a new error appeared
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 852, in <module>
main()
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 846, in main
soc = cls(description, gateware_identifier_str=args.gateware_identifier_str, **soc_kasli_argdict(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 663, in __init__
StandaloneBase.__init__(self,
File "/home/user/scratch/artiq/artiq/gateware/targets/kasli.py", line 108, in __init__
clk_synth = self.platform.request("cdr_clk_clean_fabric")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 246, in request
return self.constraint_manager.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 165, in request
resource = _lookup(self.available, name, number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vrpyf33l6n8p8kaq033b788ykznlclhn-python3-3.11.9-env/lib/python3.11/site-packages/migen/build/generic_platform.py", line 74, in _lookup
raise ConstraintError("Resource not found: {}:{}".format(name, number))
migen.build.generic_platform.ConstraintError: Resource not found: cdr_clk_clean_fabric:None
How do we need to amend our json file to avoid this error message?