Skip to content

Add a bulk write feature to reg.py

Laurent Petre requested to merge feature/reg.py-bulk-writes into main

Description

The title should be rather explicit.

This merge request introduces a new command in reg.py: write_all. Following the same idea as read_all, it allows bulk writes of registers matching a given wildcard pattern.

The first commit is more technical and fixes a long-standing inconvenience regarding the choice of the Python executable for reg.py.

Related Issue

Fixes #266 (closed).

How Has This Been Tested?

Tested with a few bulk register reads and writes on the GE1/1 integration setup in B904.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports