• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
          • Duplicate-detect
          • Vl-print-certain-warnings
          • Duperhs-check
            • Vl-duperhs-alistp
            • Vl-modulelist-duperhs-check
            • Vl-duperhs-too-trivial-p
            • Vl-maybe-warn-duperhs
            • Vl-warnings-for-duperhs-alist
            • Vl-module-duperhs-check
            • Vl-make-duperhs-alist-aux
            • Vl-make-duperhs-alist
            • Vl-design-duperhs-check
          • *vl-lint-help*
          • Lint-stmt-rewrite
          • Drop-missing-submodules
          • Check-case
          • Drop-user-submodules
          • Check-namespace
          • Vl-lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Lint

Duperhs-check

Check for assignments with the same right-hand side.

This is a trivially simple check for cases like:

assign a = rhs;
assign b = rhs;

That is, where rhs is literally identical in both assignments. Such assignments are not necessarily errors, but are kind of odd.

Subtopics

Vl-duperhs-alistp
(vl-duperhs-alistp x) recognizes association lists where every key satisfies vl-expr-p and each value satisfies vl-assignlist-p.
Vl-modulelist-duperhs-check
(vl-modulelist-duperhs-check x) maps vl-module-duperhs-check across a list.
Vl-duperhs-too-trivial-p
Heuristic to avoid warning about assigning simple, common right-hand sides to multiple wires.
Vl-maybe-warn-duperhs
Create warnings for assignments that share some RHS.
Vl-warnings-for-duperhs-alist
Vl-module-duperhs-check
Look for duplicated rhses in a module, and add warnings about them.
Vl-make-duperhs-alist-aux
Vl-make-duperhs-alist
Builds the vl-duperhs-alistp for a list of assignments.
Vl-design-duperhs-check