Created
August 1, 2011 17:08
-
-
Save errordeveloper/1118537 to your computer and use it in GitHub Desktop.
Makefile for Verilator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %.newdir: | |
| mkdir -p $(@:.newdir=) && cd $(@:.newdir=) | |
| %.delete: | |
| rm -rf $(@:.delete=) | |
| test: | |
| @echo "\ | |
| module our;\n\ | |
| initial begin $$ \bdisplay(\"Hello World\");\n$$ \bfinish;\nend\n\ | |
| endmodule" \ | |
| > [email protected] | |
| @echo "\ | |
| #include \"Vour.h\"\n\ | |
| #include \"verilated.h\"\n\ | |
| int main(int argc, char **argv, char **env) {\n\ | |
| Verilated::commandArgs(argc, argv);\n\ | |
| Vour* top = new Vour;\n\ | |
| while (!Verilated::gotFinish()) { top->eval(); }\n\ | |
| exit(0);\n\ | |
| }"\ | |
| > [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment