I'm trying to build a verilogams stimulus block that pulls a task or a few lines in a task from a separate file. I am able to make it work by adding a line like this at the appropriate point in the stimulus file... `include \path\file.vams I can also include a header file that says... `ifndef STIM_FILE `define STIM_FILE "\path\file.vams" `endif and then include it in the same place in the stimulus by using... `include `STIM_FILE However, I can't work out how to paramterize the STIM FILE (ie "/path/file.vams"), so that I can use an environment variable or a simulation parameter to define where it comes from. Any ideas on how to make this work? In my ideal world, I would be able fix the path and define ‘file.vams’ to various values with some kind of parameter for different stimulus options.
↧