Step 4: Makefile Flow
- Easy automation into any system.
- Faster turnaround time on small design changes.
-
In the Project Explorer, navigate to the Emulation-SW directory and look for the makefile file. Double-click the file to open it in the editor. This is the makefile that SDx creates and uses for building and running emulations. Alternatively, navigate to the Emulation-HW directory and look for the makefile file. Open the file.
-
Notice that in there is a unique makefile for each build. In the opened makefile in the editor window, look at line 21. Notice that it contains either
hw_emu
orsw_emu
.Figure: Makefile Editor window
-
The makefile can also access SDx without using the GUI.
Open up a new terminal session and navigate to the workspace. Then navigate to the Emulation-SW directory and type: make incremental. The process produces a typical SDx log output.Note: If no changes are made to the host or kernel code, this re-runs the entire software emulation flow.
Lab 2 of this tutorial goes into more detail on how to use the makefile and command line flow.