diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2014-03-13 16:12:32 +0100 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2014-03-13 16:12:32 +0100 |
commit | f70c6f820a1736976808e39786a4cc90fc812aa4 (patch) | |
tree | 1ffdd9d8cba242f746351c676d18eeb7efcfb6a0 | |
parent | ddc31ff699dc8f4424b8d8a543293d980d2dbedf (diff) |
Adding Makefile for building and running simulations.
-rwxr-xr-x | toolruns/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
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 +#=================================================================== + |