System Verilog - General Improvements To Classical Verilog

General Improvements To Classical Verilog

In addition to the new features above, SystemVerilog enhances the usability of Verilog's existing language features. The following are some of these enhancements:

  • The procedural assignment operator(s) (<=, =) can now operate directly on arrays.
  • Port (inout, input, output) definitions are now expanded to support a wider variety of datatypes: struct, enum, real, and multi-dimensional types are supported.
  • The for-loop construct now allows automatic variable declaration inside the for statement. And loop-control is improved by the continue and break statements.
  • SystemVerilog adds a do/while to the while construct.
  • Constant variables, i.e. those designated as non-changing during runtime, can be designated by use of const.
  • Variable initialization can now operate on arrays.
  • The preprocessor has improved `define macro-substitution capabilities, specifically substitution within literal-strings (""), as well as concatenation of multiple macro-tokens into a single word.
  • The fork/join construct has been expanded with join_none and join_any.
  • Additions to the `timescale directive allow simulation timescale to be controlled more predictably in a large simulation environment, with each source-file using a local timescale.
  • Task ports can now be declared ref. A reference gives the task body direct access to the source arguments. in the caller's scope. Since it is operating on the original variable itself, rather than a copy of the argument's value, the task/function can modify variables (but not nets) in the caller's scope in realtime. The inout/output port-declarations pass variables by value, and defer updating the caller-scope variable until the moment the task exits.
  • Functions can now be declared void, which means it returns no value.
  • Parameters can be declared any type, including user-defined typedefs.

Besides this, SystemVerilog allows convenient interface to foreign languages (like C/C++), by SystemVerilog DPI (Direct Programming Interface).

Read more about this topic:  System Verilog

Famous quotes containing the words general, improvements and/or classical:

    You don’t want a general houseworker, do you? Or a traveling companion, quiet, refined, speaks fluent French entirely in the present tense? Or an assistant billiard-maker? Or a private librarian? Or a lady car-washer? Because if you do, I should appreciate your giving me a trial at the job. Any minute now, I am going to become one of the Great Unemployed. I am about to leave literature flat on its face. I don’t want to review books any more. It cuts in too much on my reading.
    Dorothy Parker (1893–1967)

    The improvements of ages have had but little influence on the essential laws of man’s existence: as our skeletons, probably, are not to be distinguished from those of our ancestors.
    Henry David Thoreau (1817–1862)

    Culture is a sham if it is only a sort of Gothic front put on an iron building—like Tower Bridge—or a classical front put on a steel frame—like the Daily Telegraph building in Fleet Street. Culture, if it is to be a real thing and a holy thing, must be the product of what we actually do for a living—not something added, like sugar on a pill.
    Eric Gill (1882–1940)