raise a proper error message when enabling WRPLL with v1.x Kasli. Will backport after this PR got merged
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
[x] Use correct spelling and grammar.
Code Changes
[x] Test your changes or have someone test them. Mention what was tested and how.
Git Logistics
[x] Split your contribution into logically separate changes (git rebase --interactive). Merge/squash/fixup commits that just fix or amend previous commits. Remove unintended changes & cleanup. See tutorial.
[x] Write short & meaningful commit messages. Review each commit for messages (git show). Format:
topic: description. < 50 characters total.
Longer description. < 70 characters per line
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+.
ARTIQ Pull Request
Description of Changes
Old error message
New error message
Type of Changes
Steps (Choose relevant, delete irrelevant before submitting)
All Pull Requests
Code Changes
Git Logistics
git rebase --interactive
). Merge/squash/fixup commits that just fix or amend previous commits. Remove unintended changes & cleanup. See tutorial.[x] Write short & meaningful commit messages. Review each commit for messages (
git show
). Format: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+.