Skip to content

[BUG] lu_gpaddr_o assignment #3232

@suppamax

Description

@suppamax

Is there an existing CVA6 bug for this?

  • I have searched the existing bug issues

Bug Description

At least with my version of Questa and with CVA6 configured with active H-ext, the expression

lu_gpaddr_o[12+2*CVA6Cfg.VpnLen/CVA6Cfg.PtLevels-1:12] = lu_vaddr_i[12+2*(CVA6Cfg.VpnLen/CVA6Cfg.PtLevels)-1:12];

assigns the wrong number of bits to the element on the left. VpnLen is 29, PteLevels is 3: 2*CVA6Cfg.VpnLen/CVA6Cfg.PtLevels (on the left) is 19, while 2*(CVA6Cfg.VpnLen/CVA6Cfg.PtLevels) (on the right) is 18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type:BugFor bugs in the RTL, Documentation, Verification environment or Tool and Build system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions