A
alb
NOTE: If you are not using 'vmk' utility and are not interested in using
it you can safely discard this article.
Hi everyone,
on the wave of a previous article posted here
(<I am continuing my quest to
put together a Makefile to handle my vhdl projects.
Thanks to 'vmk' I managed to generate a fairly neat Makefile which now
is happily compiling my set of files in the proper order.
The 'vmk' utility supports several toolsets to perform compilation and
simulation (it also supports an 'elaboration' phase...) but when I
generated the Makefile specific for my toolset (ModelSim), it didn't
seem to include any target for the simulation.
In the generated Makefile there are three 'hooks'[1] which are primarily
meant to do the following:
1. add a default target or macros
2. redefine macros or add targets
3. add additional rules
and I could potentially use 1 or 2 to add a simulation target with all
the necessary steps. But I was wondering why the heck 'vmk' has a
defined macro for a simulation target and it doesn't use it. Maybe I'm
missing something.
Since I would like to use my Makefile for synthesis and place&route as
well, I'm looking at using the 2nd hook to add those additional steps.
It seems to me there's no way you can define a toolset with a complete
workflow (compile, simulate, synthesize, place&route) and you need to
rely on external hooks to do so.
Any pointer is appreciated.
Al
[1] They are indeed /include/ files passed via an external configuration
file.
it you can safely discard this article.
Hi everyone,
on the wave of a previous article posted here
(<I am continuing my quest to
put together a Makefile to handle my vhdl projects.
Thanks to 'vmk' I managed to generate a fairly neat Makefile which now
is happily compiling my set of files in the proper order.
The 'vmk' utility supports several toolsets to perform compilation and
simulation (it also supports an 'elaboration' phase...) but when I
generated the Makefile specific for my toolset (ModelSim), it didn't
seem to include any target for the simulation.
In the generated Makefile there are three 'hooks'[1] which are primarily
meant to do the following:
1. add a default target or macros
2. redefine macros or add targets
3. add additional rules
and I could potentially use 1 or 2 to add a simulation target with all
the necessary steps. But I was wondering why the heck 'vmk' has a
defined macro for a simulation target and it doesn't use it. Maybe I'm
missing something.
Since I would like to use my Makefile for synthesis and place&route as
well, I'm looking at using the 2nd hook to add those additional steps.
It seems to me there's no way you can define a toolset with a complete
workflow (compile, simulate, synthesize, place&route) and you need to
rely on external hooks to do so.
Any pointer is appreciated.
Al
[1] They are indeed /include/ files passed via an external configuration
file.