OpenCores
URL https://opencores.org/ocsvn/qspiflash/qspiflash/trunk

Subversion Repositories qspiflash

[/] [qspiflash/] [trunk/] [bench/] [formal/] [Makefile] - Blame information for rev 21

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 dgisselq
################################################################################
2
##
3
## Filename:    Makefile
4
##
5
## Project:     Wishbone Controlled Quad SPI Flash Controller
6
##
7
## Purpose:     To direct the formal verification of the quad-spi flash
8
##              controller.
9
##
10
## Creator:     Dan Gisselquist, Ph.D.
11
##              Gisselquist Technology, LLC
12
##
13
################################################################################
14
##
15
## Copyright (C) 2017, Gisselquist Technology, LLC
16
##
17
## This program is free software (firmware): you can redistribute it and/or
18
## modify it under the terms of  the GNU General Public License as published
19
## by the Free Software Foundation, either version 3 of the License, or (at
20
## your option) any later version.
21
##
22
## This program is distributed in the hope that it will be useful, but WITHOUT
23
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
24
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
25
## for more details.
26
##
27
## You should have received a copy of the GNU General Public License along
28
## with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
29
## target there if the PDF file isn't present.)  If not, see
30
##  for a copy.
31
##
32
## License:     GPL, v3, as defined and found on www.gnu.org,
33
##              http://www.gnu.org/licenses/gpl.html
34
##
35
##
36
################################################################################
37
##
38
##
39
all:    test
40
test: llqspi.check
41
YOSYS   := yosys
42
SMTBMC  := yosys-smtbmc
43
# SOLVER  := -s z3      # 18 minutes
44
# SOLVER := -s yices    # 34 seconds
45
SOLVER := -s boolector  # 25 seconds
46
# SOLVER := -s cvc4 ... not properly installed ??
47
# SOLVER := -s mathsat
48
 
49
LLQSPISTEPS=88
50
LLQSPI=llqspi
51
BMCOUT=$(BASE)_bmc
52
INDOUT=$(BASE)_tmp
53
LLQSPIBMCARGS := $(SOLVER)    -t $(LLQSPISTEPS) --dump-vcd $(BMCOUT).vcd
54
LLQSPIINDARGS := $(SOLVER) -i -t $(LLQSPISTEPS) --dump-vcd $(INDOUT)_ind.vcd
55
 
56
.PHONY: llqspi.check llqspi.check.bmc llqspi.check.ind
57
llqspi.check: llqspi.check.bmc llqspi.check.ind
58
 
59
llqspi.check.bmc: llqspi.smt2
60
        $(SMTBMC)    $(LLQSPIBMCARGS) llqspi.smt2
61
        $(SMTBMC) -g $(LLQSPIBMCARGS) llqspi.smt2
62
llqspi.check.ind: llqspi.smt2
63
        $(SMTBMC)    $(LLQSPIINDARGS) llqspi.smt2
64
 
65
llqspi.smt2: ../../rtl/llqspi.v llqspi.ys
66
        $(YOSYS) -ql llqspi.yslog -s llqspi.ys
67
 
68
.PHONY: clean
69
clean:
70
        rm $(BASE).smt2 $(BMCOUT).smt2 $(INDOUT).smt2 *.vcd

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.