Besides the predefined math functions, described in the previous chapter, Verilog-A provides also a way to define our own functions. User-defined functions could be used to encapsulate self-contained segments of the code and avoid the replication of the same or very similar code sections. Moreover, testing can be carried out on each function in isolation, rather than on the whole module. This chapter describes the two main stages in using the user-defined functions, first how to define a function and second how to invoke it in the module procedural ...
11. User-Defined Functions
Get A Practical Guide to Verilog-A: Mastering the Modeling Language for Analog Devices, Circuits, and Systems now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.