blob: 43a41497160dbf0145ff5c638f085070f00715c9 [file] [log] [blame]
vsdevaraddid57a3aa2022-03-20 15:10:01 +05301# SPDX-FileCopyrightText: 2020 Efabless Corporation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15# SPDX-License-Identifier: Apache-2.0
16
17# ---- Test patterns for project striVe ----
18
19.SUFFIXES:
20.SILENT: clean all
21
22
23PATTERNS = io_ports la_test1 la_test2 wb_port mprj_stimulus
24
25all: ${PATTERNS}
26
27 for i in ${PATTERNS}; do \
28 ( cd $$i && make -f Makefile $${i}.vcd &> verify.log && grep Monitor verify.log) ; \
29 done
30
31DV_PATTERNS = $(foreach dv, $(PATTERNS), verify-$(dv))
32$(DV_PATTERNS): verify-% :
33 cd $* && make
34
35clean: ${PATTERNS}
36 for i in ${PATTERNS}; do \
37 ( cd $$i && \rm -f *.elf *.hex *.bin *.vvp *.log *.vcd *.lst *.hexe ) ; \
38 done
39 rm -rf *.log
40
41.PHONY: clean all