LudwigCRON / reflow

Analog/Digital/Mixed Signal Simulation Flow
6 stars 0 forks source link

Add PLATFORM_DIR env variable #10

Open LudwigCRON opened 4 years ago

LudwigCRON commented 4 years ago

Add an environment variables PLATFORM_DIR giving the top dir where project.config And then allows its use in Sources.list

for VPI modules it is better

SIM_FLAGS+=-m$(PLATFORM_DIR)/models/vpi/hello.vpi
SIM_FLAGS+=-mtasks.vpi -M$(PLATFORM_DIR)/models/vpi

rather than giving relative (not working with vpm) or absolute path dependents from a user to another

LudwigCRON commented 4 years ago

The PLATFORM_DIR variable shall be computed and provided as a parameter to tools.

In Sources.list, is such variables necessary? For VPI see #5

LudwigCRON commented 4 years ago

In general, it is preferable to implement a rules on a file extension as Reflow resolves path before sending to any tools.

If such global variables are still needed please describe your use case to ponder over.