• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
            • Parse-clocking
            • Parse-strengths
              • Vl-parse-drive-strength-or-charge-strength
              • Vl-parse-drive-strength
              • Vl-parse-optional-drive-strength
              • Vl-parse-charge-strength
              • *vl-strength1-alist*
              • *vl-strength0-alist*
              • *vl-ds1-alist*
              • *vl-ds0/1-keywords*
              • *vl-ds0-alist*
              • *vl-charge-strengths-keywords*
              • *vl-charge-strengths-alist*
              • *vl-ds1-keywords*
              • *vl-ds0-keywords*
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
            • Parse-asserts
            • Vl-maybe-parse-lifetime
            • Parse-dpi-import-export
            • Parse-ports
            • Parse-timeunits
            • Seq
            • Parse-packages
            • Parse-eventctrl
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
          • Vl-load
          • Vl-load-description
          • Vl-descriptions-left-to-load
          • Inject-warnings
          • Vl-preprocess-debug
          • Vl-write-preprocessor-debug-file
          • Vl-read-file-report-gather
          • Vl-load-descriptions
          • Vl-load-files
          • Translate-off
          • Vl-load-read-file-hook
          • Vl-read-file-report
          • Vl-loadstate-pad
          • Vl-load-summary
          • Vl-collect-modules-from-descriptions
          • Vl-loadstate->warnings
          • Vl-iskips-report
          • Vl-descriptionlist
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Parser

Parse-strengths

Functions for parsing drive/charge strengths.

From Verilog-2005:

drive_strength ::=
   '(' strength0 ',' strength1 ')'
 | '(' strength1 ',' strength0 ')'
 | '(' strength0 ',' 'highz1' ')'
 | '(' strength1 ',' 'highz0' ')'
 | '(' 'highz0'  ',' strength1 ')'
 | '(' 'highz1'  ',' strength0 ')'

strength0 ::= 'supply0' | 'strong0' | 'pull0' | 'weak0'
strength1 ::= 'supply1' | 'strong1' | 'pull1' | 'weak1'

charge_strength ::= '(' ['small'|'medium'|'large'] ')'

Subtopics

Vl-parse-drive-strength-or-charge-strength
Match drive_strength or charge_strength, returning a vl-gatestrength-p or a vl-cstrength-p.
Vl-parse-drive-strength
Match drive_strength, return a vl-gatestrength-p.
Vl-parse-optional-drive-strength
Never fails. If there's a valid drive_strength, we match it and return a vl-gatestrength-p. Otherwise, we don't do anything to the token list and just return nil.
Vl-parse-charge-strength
Match charge_strength, return a vl-cstrength-p.
*vl-strength1-alist*
*vl-strength0-alist*
*vl-ds1-alist*
*vl-ds0/1-keywords*
*vl-ds0-alist*
*vl-charge-strengths-keywords*
*vl-charge-strengths-alist*
*vl-ds1-keywords*
*vl-ds0-keywords*