• 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-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-stmt
              • Vl-assignstmt
              • Vl-stmt-p
              • Vl-blockstmt
                • Make-vl-blockstmt
                • Vl-blockstmt->sequentialp
                • Vl-blockstmt->paramdecls
                • Vl-blockstmt->loaditems
                • Vl-blockstmt->vardecls
                • Vl-blockstmt->imports
                • Vl-blockstmt->stmts
                • Vl-blockstmt->name
                • Vl-blockstmt->atts
                • Change-vl-blockstmt
              • Vl-forstmt
              • Vl-casestmt
              • Vl-stmt-case
              • Vl-ifstmt
              • Vl-waitstmt
              • Vl-repeatstmt
              • Vl-eventtriggerstmt
              • Vl-whilestmt
              • Vl-timingstmt
              • Vl-enablestmt
              • Vl-deassignstmt
              • Vl-disablestmt
              • Vl-stmt-equiv
              • Vl-foreverstmt
              • Vl-stmt-kind
              • Vl-nullstmt
              • Vl-returnstmt
              • Vl-stmt-fix
              • Vl-stmt-count
            • Vl-stmtlist
            • Vl-caselist
          • 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
  • Vl-stmt

Vl-blockstmt

Representation of begin/end and fork/join blocks.

This is a product type, introduced by deftagsum in support of vl-stmt.

Fields
sequentialp — booleanp
name — maybe-string
imports — vl-importlist
paramdecls — vl-paramdecllist
vardecls — vl-vardecllist
loaditems — vl-blockitemlist
stmts — vl-stmtlist
atts — vl-atts

General Form:

begin [ : <name> <declarations> ]
  <statements>
end

fork [ :<name> <declarations> ]
  <statements>
join

See Section 9.8. The difference betwen the two kinds of blocks is that in a begin/end block, statements are to be executed in order, whereas in a fork/join block, statements are executed simultaneously.

Blocks that are named can have local declarations, and can be referenced by other statements (e.g., disable statements). With regards to declarations: "All variables shall be static; that is, a unique location exists for all variables, and leaving or entering blocks shall not affect the values stored in them."

A further remark is that "Block names give a means of uniquely identifying all variables at any simulation time." This seems to suggest that one might try to flatten all of the declarations in a module by, e.g., prepending the block name to each variable name.

Subtopics

Make-vl-blockstmt
Basic constructor macro for vl-blockstmt structures.
Vl-blockstmt->sequentialp
Get the sequentialp field from a vl-blockstmt.
Vl-blockstmt->paramdecls
Get the paramdecls field from a vl-blockstmt.
Vl-blockstmt->loaditems
Get the loaditems field from a vl-blockstmt.
Vl-blockstmt->vardecls
Get the vardecls field from a vl-blockstmt.
Vl-blockstmt->imports
Get the imports field from a vl-blockstmt.
Vl-blockstmt->stmts
Get the stmts field from a vl-blockstmt.
Vl-blockstmt->name
Get the name field from a vl-blockstmt.
Vl-blockstmt->atts
Get the atts field from a vl-blockstmt.
Change-vl-blockstmt
Modifying constructor for vl-blockstmt structures.