Class CsrGroup

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Csr>

public class CsrGroup extends HashMap<String,Csr>

A class simplify actions on a group of related Csrs.

See Also:
  • Constructor Details

    • CsrGroup

      public CsrGroup()
  • Method Details

    • load

      public void load()

      Loads all Csrs in group.

    • verify

      public void verify()

      Verifies all Csrs in group.

    • putRegex

      public void putRegex(String regex, String val)

      Updates registers matching regex in any Csr in group.

      Updates the hardware registers for those matching the provided regular expression.

      Parameters:
      regex - Regular expression to be matched against the targeted register names.
      val - Hexadecimal String representation of the value to set.
    • setRegex

      public void setRegex(String regex, String val)

      Sets CsrBitset bits for all registers matching regex in any Csr in group.

      Updates the register mirror for registers matching the provided regular expression.

      Does not update the hardware.

      Parameters:
      regex - Regular expression to be matched against the targeted register names.
      val - Hexadecimal String representation of the value to set.