简体   繁体   中英

Access specifier in SystemVerilog

I am totally confused in access specifiers local , static , virtual , protected and automatic . give example or document for the same. Any Help appreciated a lot.

These access specifiers apply to class member declarations (variables, functions and tasks declared within a class)

  • local : these members may only be reference from within the class is is declared in.
  • static : these members are allocated up declaration of a class and are shared between all constructed objects
  • virtual : apply to class methods(tasks and functions) and are better explained here and here .
  • automatic : never used in the declaration of a class or any of its members.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM