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

Subversion Repositories System09

[/] [System09/] [trunk/] [rtl/] [System09_Digilent_Atlys/] [Makefile] - Diff between revs 152 and 159

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 152 Rev 159
Line 82... Line 82...
.PHONY: impact
.PHONY: impact
impact: roms bit do_impact
impact: roms bit do_impact
 
 
prom: roms $(DESIGN_NAME).mcs
prom: roms $(DESIGN_NAME).mcs
 
 
.PHONY: xsload
.PHONY: impact
xsload: roms $(DESIGN_NAME).bit
impact: roms $(DESIGN_NAME).bit do_impact
        @$(ECHO)
 
        @$(ECHO) "======= Downloading bitstream to XSA-3S1000 using XSLOAD (parallel) ="
 
        $(XSLOAD) -p 0 -b xsa-3s1000 -fpga $<
 
 
 
usbxsload.bit: roms $(DESIGN_NAME).bit
 
        @$(ECHO)
 
        @$(ECHO) "======= Generating special bitstream with StartUpClk=JtagClk ========"
 
        $(GREP) -v StartUpClk $(BITGEN_OPTIONS_FILE) >tmp.ut
 
        $(ECHO) "-g StartUpClk:JtagClk" >>tmp.ut
 
        $(BITGEN) $(BITGEN_FLAGS) -f tmp.ut $(DESIGN_NAME).ncd usbxsload.bit
 
 
 
.PHONY: usbxsload
 
usbxsload: roms usbxsload.bit
 
        @$(ECHO)
 
        @$(ECHO) "======= Downloading bitstream to XSA-3S1000 using XSLOAD (USB) ======"
 
        $(XSLOAD) -usb 0 -b xsa-3s1000 -fpga usbxsload.bit
 
 
 
.PHONY: usbflash0
 
usbflash0: roms prom $(DESIGN_NAME).bit
 
        $(XSLOAD) -usb 0 -b xsa-3s1000 -flash $(DESIGN_NAME).mcs
 
 
 
.PHONY: help
.PHONY: help
help:
help:
        @$(ECHO) "Use this Makefile to regenerate the entire System09 bitstream"
        @$(ECHO) "Use this Makefile to regenerate the entire System09 bitstream"
        @$(ECHO) "after modifying any of the source RTL or 6809 assembler code."
        @$(ECHO) "after modifying any of the source RTL or 6809 assembler code."
Line 125... Line 105...
        @$(ECHO) "    all       - Rebuild everything"
        @$(ECHO) "    all       - Rebuild everything"
        @$(ECHO) "    prom      - Rebuild the entire system and generate an MCS prom file"
        @$(ECHO) "    prom      - Rebuild the entire system and generate an MCS prom file"
        @$(ECHO) "    exo       - Rebuild the entire system and generate an EXO prom file"
        @$(ECHO) "    exo       - Rebuild the entire system and generate an EXO prom file"
        @$(ECHO)
        @$(ECHO)
        @$(ECHO) "  For downloading the bitstream to the board:"
        @$(ECHO) "  For downloading the bitstream to the board:"
        @$(ECHO) "    xsload    - Download the bitstream to the FPGA via XSLOAD"
 
        @$(ECHO) "    usbxsload - Download the bitstream to the FPGA via usbXSLOAD"
 
        @$(ECHO) "    usbflash0 - Download the bitstream Flash slot 0 via usbXSLOAD"
 
        @$(ECHO) "    impact    - Download the bitstream to the FPGA via iMPACT"
        @$(ECHO) "    impact    - Download the bitstream to the FPGA via iMPACT"
        @$(ECHO)
        @$(ECHO)
        @$(ECHO) "  For project maintenance:"
        @$(ECHO) "  For project maintenance:"
        @$(ECHO) "    help      - Print this help text"
        @$(ECHO) "    help      - Print this help text"
        @$(ECHO) "    clean     - Clean up the ISE files"
        @$(ECHO) "    clean     - Clean up the ISE files"
Line 145... Line 122...
        -$(RM) *.cfi *_bitgen.xwbt *.ncd *.ngc *.ngd *.twr *.bit *.mcs *.stx *.ucf.untf *.mrp *.ptwx *_map.map
        -$(RM) *.cfi *_bitgen.xwbt *.ncd *.ngc *.ngd *.twr *.bit *.mcs *.stx *.ucf.untf *.mrp *.ptwx *_map.map
        -$(RM) *.ncl *.ngm *.prm *_pad.txt *.twx *.log *.syr *.par *.exo *.xpi *.xrpt *.xml
        -$(RM) *.ncl *.ngm *.prm *_pad.txt *.twx *.log *.syr *.par *.exo *.xpi *.xrpt *.xml
        -$(RM) *.cmd_log *.ngr *.bld *_summary.html *.nc1 *.pcf *.bgn tmp.ut
        -$(RM) *.cmd_log *.ngr *.bld *_summary.html *.nc1 *.pcf *.bgn tmp.ut
        -$(RM) *.pad *.placed_ncd_tracker *.routed_ncd_tracker *_pad.csv *.drc
        -$(RM) *.pad *.placed_ncd_tracker *.routed_ncd_tracker *_pad.csv *.drc
        -$(RM) *.pad_txt $(DESIGN_NAME)_impact.cmd *.unroutes $(DESIGN_NAME)_vhdl.prj
        -$(RM) *.pad_txt $(DESIGN_NAME)_impact.cmd *.unroutes $(DESIGN_NAME)_vhdl.prj
        -$(RM) par_usage_statistics.html $(DESIGN_NAME)_envsettings.html
        -$(RM) par_usage_statistics.html $(DESIGN_NAME)_envsettings.html usage_statistics_webtalk.html
        -$(RMDIR) _ngo _xmsgs xst xlnx_auto_0_xdb xst_tmp_dirs iseconfig
        -$(RMDIR) _ngo _xmsgs xst xlnx_auto_0_xdb xst_tmp_dirs iseconfig
 
 
.PHONY: cleanall
.PHONY: cleanall
cleanall: clean
cleanall: clean
        -$(MAKE) -C ../../Tools/as09 clean
        -$(MAKE) -C ../../Tools/as09 clean

powered by: WebSVN 2.1.0

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