[Cryptech-Commits] [test/coretest_test_core] 06/08: Adding Makefile for building and running simulations.
git at cryptech.is
git at cryptech.is
Tue Mar 17 13:52:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository test/coretest_test_core.
commit f70c6f820a1736976808e39786a4cc90fc812aa4
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Thu Mar 13 16:12:32 2014 +0100
Adding Makefile for building and running simulations.
---
toolruns/Makefile | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/toolruns/Makefile b/toolruns/Makefile
new file mode 100755
index 0000000..045271d
--- /dev/null
+++ b/toolruns/Makefile
@@ -0,0 +1,73 @@
+#===================================================================
+#
+# Makefile
+# --------
+# Makefile for building coretest_test_core simulations.
+#
+#
+# Author: Joachim Strombergson
+# Copyright (c) 2014, SUNET
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or
+# without modification, are permitted provided that the following
+# conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+#===================================================================
+
+UART_SRC=../../uart/src/rtl/uart.v ../../uart/src/rtl/uart_core.v
+CORETEST_SRC=../../coretest/src/rtl/coretest.v
+TEST_CORE_SRC=../../test_core/src/rtl/test_core.v
+TEST_SRC=../src/rtl/coretest_test_core.v
+TB_SRC=../src/tb/tb_coretest_test_core.v
+
+CC=iverilog
+
+all: tester
+
+
+tester: $(TB_SRC) $(TEST_SRC) $(CORETEST_SRC) $(TEST_CORE_SRC) $(UART_SRC)
+ $(CC) -o tester.sim $(TB_SRC) $(TEST_SRC) $(CORETEST_SRC) $(TEST_CORE_SRC) $(UART_SRC)
+
+
+sim-tester: tester.sim
+ ./tester.sim
+
+
+clean:
+ rm -f tester.sim
+
+
+help:
+ @echo "Supported targets:"
+ @echo "------------------"
+ @echo "all: Build all simulation targets."
+ @echo "tester: Build the tester simulation target."
+ @echo "sim-tester: Run the uart simulation."
+ @echo "clean: Delete all built files."
+
+#===================================================================
+# EOF Makefile
+#===================================================================
+
More information about the Commits
mailing list