m-labs / artiq

A leading-edge control system for quantum information experiments
https://m-labs.hk/artiq
GNU Lesser General Public License v3.0
413 stars 192 forks source link

kasli: raise error when enabling WRPLL with v1.x #2442

Closed MorganTL closed 2 weeks ago

MorganTL commented 2 weeks ago

ARTIQ Pull Request

Description of Changes

Old 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 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

New 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/morgan/dev/artiq-master/artiq/gateware/targets/kasli.py", line 854, in <module>
    main()
  File "/home/morgan/dev/artiq-master/artiq/gateware/targets/kasli.py", line 846, in main
    raise ValueError("Kasli {} does not support WRPLL".format(description["hw_rev"]))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Kasli v1.0 does not support WRPLL

Type of Changes

Type
:scroll: Docs

Steps (Choose relevant, delete irrelevant before submitting)

All Pull Requests

Code Changes

Git Logistics

Licensing

See copyright & licensing for more info. ARTIQ files that do not contain a license header are copyrighted by M-Labs Limited and are licensed under LGPLv3+.