Skip to content

Typo cleanup: Python descriptions/comments and VHDL comments#1422

Merged
ruck314 merged 1 commit into
pre-releasefrom
description-cleanup
May 18, 2026
Merged

Typo cleanup: Python descriptions/comments and VHDL comments#1422
ruck314 merged 1 commit into
pre-releasefrom
description-cleanup

Conversation

@ruck314
Copy link
Copy Markdown
Contributor

@ruck314 ruck314 commented May 16, 2026

Post-PR #1421 cleanup. 143 files, +237/-237 lines, no behavioural change.

  • Python: 39 typos across 24 files in description=, docstrings, comments, and error messages (tests/ audited clean).
  • VHDL: 197 typos across 119 files — comment-only. No signals/ports/entities renamed, no report/assert string literals modified. Pre-flight verified every misspelled string only appears in -- comments before any bulk substitution.
  • AdcTester: _Ad9249.py __init__ accepts description as a named parameter — the only kwarg-hardening fix retained from the original post-PR Removed redundant description attribute causing software to fail #1421 audit.

Verification: compileall clean · flake8 --count python/ = 0 · scripts/vsg_linter.sh No issues found · cocotb suite not runnable locally (CI-only make MODULES=$PWD import pipeline).

@ruck314 ruck314 changed the title Post-PR#1421 cleanup: harden wrappers + fix Python typos Typo cleanup: Python descriptions/comments and VHDL comments May 16, 2026
Post-PR #1421 cleanup pass focused on English-word typos in
user-facing prose, plus one small kwargs-collision fix retained
from the original audit. No behavioural change.

Net changes: 143 files, +237/-237 lines.

Python typos -- 24 files, 39 fixes
  Audited every .py under python/ and tests/ via 6 parallel review
  passes. tests/ was clean. Highlights:
    analog_devices/_Adt7420.py     Analod Deviced -> Analog Devices
    analog_devices/_Ad9249.py      Regsisters     -> Registers
    analog_devices/_Ad9249.py      Compliment     -> Complement
    silabs/_Si5{324,326,5345Lite,5394Lite}.py
                                   conflagration  -> configuration
    silabs/_Si5345Pages.py         Ready Only     -> Read Only
    ti/_Ads54J54.py                dcimation      -> decimation
    ti/_Lmk61e2.py                 retreived      -> retrieved
    xilinx/_AxiSysMonUltraScale.py Managment      -> Management
    xilinx/_AxiSysMonUltraScale.py defatul        -> default
    protocols/jesd204b/_JesdRx.py / _JesdTx.py
        brake/missaligned/Indicades/undeflow/funtionality/
        checkes/re-syncronisations -> fixed
  British spellings (synchronised, re-synchronisations)
  preserved where already used.

VHDL typos -- 119 files, 197 fixes
  Audited every .vhd under axi/, base/, devices/, dsp/, ethernet/,
  protocols/, and xilinx/ via 8 parallel review passes (1146 files
  total).

  Only -- comment text was touched. No signal, port, process,
  entity, generic, or component names were renamed; no string
  literals in report/assert statements were modified.

  Most prevalent (boilerplate copy-paste families):
    7Series GT clones (gtx7/gth7/gtp7)
        sucessfully -> successfully (x9)
        Tranceiver  -> Transceiver  (x3)
    PGP Axi banners
        Errror      -> Error        (x6)
    pgp2b/pgp2fc/pgp3 *Pkg / *RxPhy / *RxCell
        occured     -> occurred     (x10)
    XauiCore wrappers
        adn         -> and          (x16 in repeated boilerplate)
    AD9249/AD9681 readout
        primatives/primative/curDealy
                    -> primitives/primitive/curDelay
    xvc-udp JTAG
        paylod/paralle/the the     -> fixed

  Real-English-word substitutions verified per occurrence
  (not bulk-replaced):
    weather->whether, it->if, na->and, od->of, got->go,
    dessert->deassert, rests->resets, with->without, read->ready,
    an->and, save->same, though->through, knowns->knows,
    incase->in case, to to->to, the the->the, Interfac e->Interface

  Pre-flight verified that every misspelled string only appears in
  -- comment lines (never as an identifier or in code) before any
  bulk substitution. British spellings preserved.

AdcTester kwargs fix -- 1 file
  The only kwarg-hardening change retained from the post-PR #1421
  audit:
    python/surf/devices/analog_devices/_Ad9249.py
        AdcTester.__init__ accepts description as a named parameter,
        eliminating the TypeError: got multiple values for keyword
        argument 'description' when a caller passes description=.

  The other 8 wrappers identified in the original audit
  (AxiMonAxiL, Ltm4664, Si5345, Si5394, PhantomS711, PMBus,
  Pgp3AxiL, Pgp4AxiL) were prepared but reverted; they remain at
  their pre-release shape.

Verification:
  python -m compileall -f python/  -- clean
  flake8 --count python/           -- 0
  scripts/vsg_linter.sh            -- No issues found
  cocotb regression suite NOT run locally; it requires the
  make MODULES=$PWD import HDL pipeline only available in CI.
@ruck314 ruck314 force-pushed the description-cleanup branch from b471731 to 2869a21 Compare May 16, 2026 04:40
@ruck314 ruck314 requested a review from bengineerd May 16, 2026 04:42
@ruck314 ruck314 marked this pull request as ready for review May 16, 2026 04:42
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.61%. Comparing base (e5c7de9) to head (2869a21).
⚠️ Report is 410 commits behind head on pre-release.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff                @@
##           pre-release    #1422       +/-   ##
================================================
- Coverage        36.66%   25.61%   -11.06%     
================================================
  Files               28      242      +214     
  Lines             1459    18355    +16896     
================================================
+ Hits               535     4702     +4167     
- Misses             924    13653    +12729     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ruck314 ruck314 merged commit 3d7dd61 into pre-release May 18, 2026
5 checks passed
@ruck314 ruck314 deleted the description-cleanup branch May 18, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants