Skip to content

dmcontrol.haltreq should always read as 0 #161

Closed

Description

@bcstrongx

The RISC-V spec (v0.13.2, here) defines the dmcontrol.haltreq bit with access "W" (Section 3.12.2), which is defined as "Write-only. When read this field returns 0" (Table 1.2). However, the current implementation allows this bit to be read as 1 after a write sets it to 1.

Any easy fix might be to mask off the top bit of the read value in dm_csrs.sv:
dm::DMControl: resp_queue_inp.data = dmcontrol_q;

Activity

  1. phsauter commented on Sep 3, 2026

    @phsauter
    Collaborator

    Closed with #194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions