• 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-genvar-declaration
            • Vl-parse
            • Parse-netdecls
            • Parse-asserts
            • Vl-maybe-parse-lifetime
            • Parse-dpi-import-export
            • Parse-ports
            • Parse-timeunits
              • Vl-parse-optional-timeunits-declaration
              • Vl-parse-timeliteral
              • Vl-parse-timeunitdecl
              • Vl-parse-timeprecisiondecl
            • 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-timeunits

Functions for parsing SystemVerilog timeunit and timeprecision declarations.

The optional timeunits_declaration comes after the module header. It is defined in a gross way to allow either a timeunit, timeprecision, or both in either order:

 timeunits_declaration ::=
  'timeunit' time_literal [ '/' time_literal ] ';'
| 'timeprecision' time_literal ';'
| 'timeunit' time_literal [ '/' time_literal ] ';' 'timeprecision' time_literal ';'
| 'timeprecision' time_literal ';' 'timeunit' time_literal [ '/' time_literal ] ';'

Subtopics

Vl-parse-optional-timeunits-declaration
Matches [timeunits_declaration].
Vl-parse-timeliteral
Match a time_literal.
Vl-parse-timeunitdecl
Matches 'timeunit' time_literal [ '/' time_literal ] ';' .
Vl-parse-timeprecisiondecl
Matches 'timeprecision' time_literal ';' .