Generative Programming

Slobodan Mijalković · Apress eBooks · 2022

Generative programming is used to create conditional or multiple instances of modules, branches, functions, variables, nets, and other generable module items. This is a powerful tool for parameterizing and configuring the module's architecture and simplifying its implementation. It allows for modules with the repetitive structure to be described more concisely and also provides the ability for parameter values to affect the structure of Verilog-A models. Although the generate statements use syntax very similar to the procedural conditional and looping statements, it is important to recognize that they do not execute at simulation time. Generate statements are executed during the elaboration of the model which occurs after parsing and before simulation.

Read the paper · More papers on PaperTik