Get email delivery of the Cadence blog featured here
An e template (known as a parameterized
type in other programming languages) is a feature that has been around for
several releases and can be a great way of creating re-usable code. Templates can be used anywhere a user would like
to create a single re-useable object that might operate on different data
types. An example would be to create a scoreboard (if you were not
already using the ovm_scbd package) that can be instantiated to perform
checking on packets, transactions, or any other type of data structure of
Below is a short example of a simple FIFO scoreboard
implemented using a template:
Using the above code, a user can instantiate the same
scoreboard code to handle any type of data structure.
Hope this little technical tidbit helps.