URL
https://opencores.org/ocsvn/darkriscv/darkriscv/trunk
Subversion Repositories darkriscv
[/] [darkriscv/] [trunk/] [boards/] [piswords_rs485_lx9/] [darksocv.mk] - Rev 2
Compare with Previous | Blame | View Log
## Copyright (c) 2018, Marcelo Samsoniuk# All rights reserved.## Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions are met:## * Redistributions of source code must retain the above copyright notice, this# list of conditions and the following disclaimer.## * 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.## * Neither the name of the copyright holder nor the names of its# contributors may be used to endorse or promote products derived from# this software without specific prior written permission.## 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 HOLDER 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.## ===8<--------------------------------------------------------- cut here!## The general concept is based in the article:## https://www.fpgarelated.com/showarticle/786.php## However, since the ISE GUI itself creates a "darksocv.cmd_log" file with# all commands executed and the respective options, it is possible change# some options in the ISE and check the file in order to understand how# enable/disable the different options.## board Piswords RS485 LX9BOARD = piswords_rs485_lx9DEVICE = xc6slx9-tqg144-2ISE = ../boards/$(BOARD)RTL = ../rtlSRC = ../srcTMP = ../tmpXST = $(ISE)/darksocv.xstSYR = $(TMP)/darksocv.syrUCF = $(ISE)/darksocv.ucfIMP = $(ISE)/darksocv.impNGC = $(TMP)/darksocv.ngcNGD = $(TMP)/darksocv.ngdPCF = $(TMP)/darksocv.pcfNCD = $(TMP)/darksocv.ncdTWX = $(TMP)/darksocv.twxTWR = $(TMP)/darksocv.twrBIT = $(TMP)/darksocv.bitMAP = $(TMP)/darksocv_map.ncdUT = $(ISE)/darksocv.utPRJS = $(ISE)/darksocv.prjRTLS = $(RTL)/darksocv.v $(RTL)/darkriscv.v $(RTL)/darkuart.v $(RTL)/config.vhifdef HARVARDBOOT = $(SRC)/darksocv.rom.mem $(SRC)/darksocv.ram.memelseBOOT = $(SRC)/darksocv.memendifIMP = $(ISE)/darksocv.impdefault: all$(NGC): $(PRJS) $(BOOT) $(RTLS)cd $(TMP) && xst -intstyle ise -ifn $(XST) -ofn $(SYR)$(NGD): $(NGC) $(UCF) $(BOOT) $(RTLS)cd $(TMP) && ngdbuild -intstyle ise -dd _ngo -nt timestamp -uc $(UCF) -p $(DEVICE) $(NGC) $(NGD)$(PCF): $(NGD) $(BOOT) $(UCF) $(RTLS)cd $(TMP) && map -intstyle ise -p $(DEVICE) -w -logic_opt on -ol high -t 1 -xt 0 -register_duplication on -r 4 -global_opt off -mt 2 -detail -ir off -ignore_keep_hierarchy -pr off -lc auto -power off -o $(MAP) $(NGD) $(PCF)$(NCD): $(PCF) $(BOOT) $(UCF) $(RTLS)cd $(TMP) && par -w -intstyle ise -ol high -mt 2 $(MAP) $(NCD) $(PCF)cd $(TMP) && trce -intstyle ise -v 3 -s 2 -n 3 -fastpaths -xml $(TWX) $(NCD) -o $(TWR) $(PCF)$(BIT): $(UT) $(NCD) $(BOOT) $(UCF) $(RTLS)cd $(TMP) && bitgen -intstyle ise -f $(UT) $(NCD)all: $(BIT) $(BOOT) $(UCF) $(RTLS)install: $(BIT) $(BOOT) $(UCF) $(RTLS)cd $(TMP) && impact -batch $(IMP)clean:-rm -v $(TMP)/*
