blob: 43a41497160dbf0145ff5c638f085070f00715c9 [file] [log] [blame]
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +02001# 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
Marwan Abbas51a10962022-02-11 16:35:19 +020022
manarabdelaty8dbabc12021-04-16 21:53:57 +020023PATTERNS = io_ports la_test1 la_test2 wb_port mprj_stimulus
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020024
25all: ${PATTERNS}
Marwan Abbas51a10962022-02-11 16:35:19 +020026
Marwan Abbas96d63c52022-02-13 19:13:03 +020027 for i in ${PATTERNS}; do \
28 ( cd $$i && make -f Makefile $${i}.vcd &> verify.log && grep Monitor verify.log) ; \
29 done
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020030
manarabdelaty340cc4a2021-04-20 18:28:22 +020031DV_PATTERNS = $(foreach dv, $(PATTERNS), verify-$(dv))
32$(DV_PATTERNS): verify-% :
33 cd $* && make
34
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020035clean: ${PATTERNS}
36 for i in ${PATTERNS}; do \
Marwan Abbas0f930452022-02-22 09:18:53 -080037 ( cd $$i && \rm -f *.elf *.hex *.bin *.vvp *.log *.vcd *.lst *.hexe ) ; \
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020038 done
manarabdelatyb41301c2021-04-19 23:30:35 +020039 rm -rf *.log
40
Ahmed Ghazyd4ec2f02021-04-05 18:32:10 +020041.PHONY: clean all