You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! When I run it now I get another error as well.
This is due to the way inheritance is used in DVSim. The sim_cfg variable is misleading as it implies that only sim configs are used. Where in this case it's a LintCfg.
We can fix this up fairly easily, but longer term we need to remove the inheritance to avoid unintended side effects like this.
dvsim ~/base/opentitan/hw/top_earlgrey/lint/top_earlgrey_lint_cfgs.hjson --select-cfg=aes --tool=ascentlint
[I 260327 09:22:05 run:860] [proj_root]: /home/jamesm/base/opentitan
[I 260327 09:22:05 one_shot:92] [scratch_path]: [aes] [/home/jamesm/base/opentitan/scratch/master/aes-lint-ascentlint]
[C 260327 09:22:05 logging:108] Unhandled exception
Traceback (most recent call last):
File "/home/jamesm/base/dvsim/.venv/bin/dvsim", line 10, in <module>
sys.exit(main())
~~~~^^
File "/home/jamesm/base/dvsim/src/dvsim/cli/run.py", line 950, in main
results = cfg.deploy_objects()
File "/home/jamesm/base/dvsim/src/dvsim/flow/base.py", line 423, in deploy_objects
jobs = [d.get_job_spec() for d in deploy]
~~~~~~~~~~~~~~^^
File "/home/jamesm/base/dvsim/src/dvsim/job/deploy.py", line 120, in get_job_spec
commit=self.sim_cfg.commit,
^^^^^^^^^^^^^^^^^^^
AttributeError: 'LintCfg' object has no attribute 'commit'
Traceback (most recent call last):
File "/home/jamesm/base/dvsim/.venv/bin/dvsim", line 10, in <module>
sys.exit(main())
~~~~^^
File "/home/jamesm/base/dvsim/src/dvsim/cli/run.py", line 950, in main
results = cfg.deploy_objects()
File "/home/jamesm/base/dvsim/src/dvsim/flow/base.py", line 423, in deploy_objects
jobs = [d.get_job_spec() for d in deploy]
~~~~~~~~~~~~~~^^
File "/home/jamesm/base/dvsim/src/dvsim/job/deploy.py", line 120, in get_job_spec
commit=self.sim_cfg.commit,
^^^^^^^^^^^^^^^^^^^
AttributeError: 'LintCfg' object has no attribute 'commit'
See my comment here: #133 (comment), as that issue is now essentially a duplicate of the new error James is reporting in this issue.
I agree that a longer term fix is very necessary to prevent future breakages like this, but the easy fix is available in a PR here: #139
I can't run the lint locally at the moment to verify it works, but I at least don't get any errors and I'm getting through to the scheduler, so hopefully that should fix this issue as well?
Activity
machshev commentedon Mar 27, 2026
Thanks! When I run it now I get another error as well.
This is due to the way inheritance is used in DVSim. The
sim_cfgvariable is misleading as it implies that only sim configs are used. Where in this case it's aLintCfg.We can fix this up fairly easily, but longer term we need to remove the inheritance to avoid unintended side effects like this.
AlexJones0 commentedon Apr 1, 2026
See my comment here: #133 (comment), as that issue is now essentially a duplicate of the new error James is reporting in this issue.
I agree that a longer term fix is very necessary to prevent future breakages like this, but the easy fix is available in a PR here: #139
I can't run the lint locally at the moment to verify it works, but I at least don't get any errors and I'm getting through to the scheduler, so hopefully that should fix this issue as well?