Skip to content

Unable to run Ascentlint #119

@elliotb-lowrisc

Description

@elliotb-lowrisc

This appears to be a regression relative to the version of dvsim still living in the OpenTitan repository.

In the OpenTitan repository with the OT nix shell loaded, when I attempt to run:

dvsim hw/top_earlgrey/lint/top_earlgrey_lint_cfgs.hjson --select-cfg=aes --tool=ascentlint

I get the following output and error:

eb@eb-ThinkPad-T14-Gen-4:~/opentitan$ dvsim hw/top_earlgrey/lint/top_earlgrey_lint_cfgs.hjson --select-cfg=aes --tool=ascentlint
[I 260323 10:34:49 run:840] [proj_root]: /home/eb/opentitan
[I 260323 10:34:49 one_shot:90] [scratch_path]: [aes] [/home/eb/opentitan/scratch/secded/aes-lint-ascentlint]
Traceback (most recent call last):
  File "/usr/bin/dvsim", line 10, in <module>
    sys.exit(main())
  File "/nix/store/p46ncq7pgjz9p81dha5krqsdvj03xbc9-opentitan-env/lib/python3.10/site-packages/dvsim/cli/run.py", line 906, in main
    cfg.create_deploy_objects()
  File "/nix/store/p46ncq7pgjz9p81dha5krqsdvj03xbc9-opentitan-env/lib/python3.10/site-packages/dvsim/flow/base.py", line 407, in create_deploy_objects
    item._create_deploy_objects()
  File "/nix/store/p46ncq7pgjz9p81dha5krqsdvj03xbc9-opentitan-env/lib/python3.10/site-packages/dvsim/flow/one_shot.py", line 144, in _create_deploy_objects
    item = CompileOneShot(build, self)
  File "/nix/store/p46ncq7pgjz9p81dha5krqsdvj03xbc9-opentitan-env/lib/python3.10/site-packages/dvsim/job/deploy.py", line 470, in __init__
    super().__init__(sim_cfg)
  File "/nix/store/p46ncq7pgjz9p81dha5krqsdvj03xbc9-opentitan-env/lib/python3.10/site-packages/dvsim/job/deploy.py", line 77, in __init__
    self._variant_suffix = f"_{self.sim_cfg.variant}" if self.sim_cfg.variant else ""
AttributeError: 'LintCfg' object has no attribute 'variant'

When I instead use util/dvsim/dvsim.py, it runs Ascentlint without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions