• 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
          • Vl-module
          • Vl-vardecl
          • Expressions
          • Vl-fundecl
          • Vl-assign
          • Vl-gateinst
          • Vl-modinst
          • Vl-commentmap
          • Vl-portdecl
          • Vl-taskdecl
          • Vl-design
          • Vl-interface
          • Vl-plainarglist->exprs
          • Vl-taskdecllist->names
          • Vl-fundecllist->names
          • Vl-package
          • Vl-port
          • Vl-udp
          • Vl-paramdecl
          • Vl-genelement
          • Vl-cycledelayrange
            • Vl-cycledelayrange-fix
            • Vl-cycledelayrange-equiv
            • Make-vl-cycledelayrange
            • Vl-cycledelayrange->right
            • Vl-cycledelayrange->left
            • Change-vl-cycledelayrange
            • Vl-cycledelayrange-p
          • Vl-namedarg
          • Vl-sort-blockitems-aux
          • Vl-distitem
          • Vl-gatedelay
          • Vl-repetition
          • Vl-typedef
          • Vl-range
          • Vl-gatestrength
          • Vl-program
          • Vl-config
          • Vl-always
          • Vl-datatype-update-dims
          • Vl-import
          • Vl-enumbasetype
          • Vl-repeateventcontrol
          • Vl-paramargs
          • Vl-initial
          • Vl-eventcontrol
          • Vl-udpsymbol-p
          • Vl-maybe-range
          • Vl-maybe-nettypename
          • Vl-maybe-gatestrength
          • Vl-maybe-gatedelay
          • Vl-maybe-delayoreventcontrol
          • Vl-alias
          • Maybe-string-fix
          • Vl-maybe-packeddimension
          • Vl-fwdtypedef
          • Vl-evatom
          • Vl-packeddimension-p
          • Vl-maybe-udpsymbol
          • Vl-maybe-module
          • Vl-maybe-direction
          • Vl-maybe-datatype
          • Vl-maybe-cstrength
          • Vl-direction-p
          • Vl-arguments
          • Vl-maybe-design
          • Vl-udpline
          • Vl-exprdist
          • Vl-context1
          • Vl-genvar
          • Vl-enumitem
          • Vl-datatype-update-udims
          • Vl-datatype-update-pdims
          • Vl-modelement
          • Vl-udpedge
          • Vl-delaycontrol
          • Vl-context
          • Vl-sort-blockitems
          • Vl-distweighttype-p
          • Vl-ctxelement->loc
          • Vl-blockitem
          • Vl-vardecllist
          • Vl-module->ifports
          • Vl-modelement->loc
          • Vl-ctxelement
          • Vl-coretypename-p
          • Vl-packeddimensionlist
          • Vl-modelementlist->genelements
          • Vl-gatetype-p
          • Vl-paramdecllist
          • Vl-lifetime-p
          • Vl-datatype->udims
          • Vl-datatype->pdims
          • Vl-timeunit-p
          • Vl-repetitiontype-p
          • Vl-port->name
          • Vl-importlist
          • Vl-genelement->loc
          • Vl-delayoreventcontrol
          • Vl-cstrength-p
          • Statements
          • Vl-udpentry-p
          • Vl-packeddimension-fix
          • Vl-nettypename-p
          • Vl-portdecllist
          • Vl-port->loc
          • Vl-enumbasekind-fix
          • Vl-arguments->args
          • Vl-taskdecllist
          • Vl-portlist
          • Vl-importpart-p
          • Vl-importpart-fix
          • Vl-fundecllist
          • Vl-blockstmt-p
          • Vl-assignlist
          • Vl-alwaystype-p
          • Vl-typedeflist
          • Vl-syntaxversion-p
          • Vl-randomqualifier-p
          • Vl-modinstlist
          • Vl-gateinstlist
          • Vl-blockitemlist
          • Vl-udptable
          • Vl-udplist
          • Vl-udpentrylist
          • Vl-programlist
          • Vl-paramvaluelist
          • Vl-packagelist
          • Vl-namedparamvaluelist
          • Vl-namedarglist
          • Vl-modulelist
          • Vl-modportlist
          • Vl-modport-portlist
          • Vl-interfacelist
          • Vl-initiallist
          • Vl-genvarlist
          • Vl-fwdtypedeflist
          • Vl-evatomlist
          • Vl-enumitemlist
          • Vl-distlist
          • Vl-configlist
          • Vl-alwayslist
          • Vl-aliaslist
          • Vl-regularportlist
          • Vl-rangelist-list
          • Vl-rangelist
          • Vl-paramdecllist-list
          • Vl-modelementlist
          • Vl-maybe-range-list
          • Vl-interfaceportlist
          • Vl-argumentlist
          • Data-types
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Syntax

Vl-cycledelayrange

Representation of cycle delay ranges in SystemVerilog sequences.

This is a product type introduced by defprod.

Fields
left — vl-expr
The left-hand side expression. Examples: left is 5 in ##5, 10 in ##[10:20], 0 in ##[*], and 1 in ##[+]. Supposed to be a constant expression that produces a non-negative integer value.
right — vl-maybe-expr
The right-hand side expression, if applicable. Note that our expression representation allows us to directly represent $ as a vl-keyguts atom, so in case of ranges like ##[1:$], right is just the expression for $. Other examples: right is nil in ##5, 20 in ##[10:20], $ in ##[*], and $ in ##[+]. Supposed to be a constant expression that produces a non-negative integer value that is at least as large as left.

See SystemVerilog-2012 Section 16.7. This is essentially our representation of the following grammar rules:

cycle_delay_range ::= '##' constant_primary
                    | '##' '[' cycle_delay_const_range_expression ']'
                    | '##[*]'
                    | '##[+]'

cycle_delay_const_range_expression ::= constant_expression ':' constant_expression
                                     | constant_expression ':' '$'

Note (page 346) that the expressions here (constant_primary or constant_expressions) are supposed to be determined at compile time and result in nonnegative integer expressions. The $ token means the end of simulation, or for formal verification tools indicates a finite but unbounded range. The right-hand side expression is supposed to be greater than or equal to the left-hand side expression.

Some of this syntax is unnecessary:

  • The syntax ##[*] just means ##[0:$]
  • The syntax ##[+] just means ##[1:$]

Accordingly in our internal representation we don't bother with these, but instead just translate them into 0,$ or 1,$ ranges.

Subtopics

Vl-cycledelayrange-fix
Fixing function for vl-cycledelayrange structures.
Vl-cycledelayrange-equiv
Basic equivalence relation for vl-cycledelayrange structures.
Make-vl-cycledelayrange
Basic constructor macro for vl-cycledelayrange structures.
Vl-cycledelayrange->right
Get the right field from a vl-cycledelayrange.
Vl-cycledelayrange->left
Get the left field from a vl-cycledelayrange.
Change-vl-cycledelayrange
Modifying constructor for vl-cycledelayrange structures.
Vl-cycledelayrange-p
Recognizer for vl-cycledelayrange structures.