5.6. Hammer Buildfile
Hammer natively supports a GNU Make-based build system to manage build dependencies.
To use this flow,
vlsi.core.build_system must be set to
Hammer will generate a Makefile include in the object directory named
hammer.d after calling the
hammer-vlsi -e env.yml -p config.yml --obj_dir build build
build/hammer.d will contain environment variables needed by Hammer and a target for each major Hammer action (e.g.
synthesis, etc. but not
syn-to-par, which is run automatically when calling
For a flat design, the dependencies are created betwen the major Hammer actions.
For hierarchical designs, Hammer will use the hierarchy to build a dependency graph and construct the Make target dependencies appropriately.
hammer.d should be included in a higher-level Makefile.
hammer.d defines all of the variables that it needs, there are often reasons to set these elsewhere.
?= assignment, the settings created in the top-level Makefile will persist.
An example of this setup is found in Chipyard.
To enable interactive usage,
hammer.d also contains a set of companion “redo” targets (e.g.
These targets intentionally have no dependency information; they are for advanced users to make changes to the input config and/or edit the design manually, then continue the flow.
Additional arguments can be passed to the “redo” targets with the
HAMMER_EXTRA_ARGS environment variable, for the following example uses:
“Patching” the configuration for an action using
Flow control using
--from_step/after_stepto stop a run at a particular step or resume one from a previous iteration.