OpenCores
URL https://opencores.org/ocsvn/mb-jpeg/mb-jpeg/trunk

Subversion Repositories mb-jpeg

[/] [mb-jpeg/] [tags/] [STEP2_2b/] [system.make] - Diff between revs 4 and 5

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 4 Rev 5
#################################################################
#################################################################
# Makefile generated by Xilinx Platform Studio
# Makefile generated by Xilinx Platform Studio
# Project:D:\mb-jpeg\system.xmp
# Project:D:\mb-jpeg\system.xmp
#################################################################
#################################################################
# Name of the Microprocessor system
# Name of the Microprocessor system
# The hardware specification of the system is in file :
# The hardware specification of the system is in file :
# D:\mb-jpeg\system.mhs
# D:\mb-jpeg\system.mhs
# The software specification of the system is in file :
# The software specification of the system is in file :
# D:\mb-jpeg\system.mss
# D:\mb-jpeg\system.mss
include system_incl.make
include system_incl.make
#################################################################
#################################################################
# EXTERNAL TARGETS
# EXTERNAL TARGETS
#################################################################
#################################################################
all:
all:
        @echo "Makefile to build a Microprocessor system :"
        @echo "Makefile to build a Microprocessor system :"
        @echo "Run make with any of the following targets"
        @echo "Run make with any of the following targets"
        @echo " "
        @echo " "
        @echo "  netlist  : Generates the netlist for the given MHS "
        @echo "  netlist  : Generates the netlist for the given MHS "
        @echo "  bits     : Runs Implementation tools to generate the bitstream"
        @echo "  bits     : Runs Implementation tools to generate the bitstream"
        @echo "  exporttopn:Export to ProjNav"
        @echo "  exporttopn:Export to ProjNav"
        @echo " "
        @echo " "
        @echo "  libs     : Configures the sw libraries for this system"
        @echo "  libs     : Configures the sw libraries for this system"
        @echo "  program  : Compiles the program sources for all the processor instances"
        @echo "  program  : Compiles the program sources for all the processor instances"
        @echo " "
        @echo " "
        @echo "  init_bram: Initializes bitstream with BRAM data"
        @echo "  init_bram: Initializes bitstream with BRAM data"
        @echo "  ace      : Generate ace file from bitstream and elf"
        @echo "  ace      : Generate ace file from bitstream and elf"
        @echo "  download : Downloads the bitstream onto the board"
        @echo "  download : Downloads the bitstream onto the board"
        @echo " "
        @echo " "
        @echo "  sim      : Generates HDL simulation models and runs simulator for chosen simulation mode"
        @echo "  sim      : Generates HDL simulation models and runs simulator for chosen simulation mode"
        @echo "  simmodel : Generates HDL simulation models for chosen simulation mode"
        @echo "  simmodel : Generates HDL simulation models for chosen simulation mode"
        @echo "  behavioral_model:Generates behavioral HDL models with BRAM initialization"
        @echo "  behavioral:Generates behavioral HDL models with BRAM initialization"
        @echo "  structural_model:Generates structural simulation HDL models with BRAM initialization"
        @echo "  structural:Generates structural simulation HDL models with BRAM initialization"
        @echo "  timing_model    : Generates timing simulation HDL models with BRAM initialization"
        @echo "  timing   : Generates timing simulation HDL models with BRAM initialization"
        @echo "  vp       : Generates virtual platform model"
        @echo "  vp       : Generates virtual platform model"
        @echo " "
        @echo " "
        @echo "  netlistclean: Deletes netlist"
        @echo "  netlistclean: Deletes netlist"
        @echo "  bitsclean: Deletes bit, ncd, bmm files"
        @echo "  bitsclean: Deletes bit, ncd, bmm files"
        @echo "  hwclean  : Deletes implementation dir"
        @echo "  hwclean  : Deletes implementation dir"
        @echo "  libsclean: Deletes sw libraries"
        @echo "  libsclean: Deletes sw libraries"
        @echo "  programclean: Deletes compiled ELF files"
        @echo "  programclean: Deletes compiled ELF files"
        @echo "  swclean  : Deletes sw libraries and ELF files"
        @echo "  swclean  : Deletes sw libraries and ELF files"
        @echo "  simclean : Deletes simulation dir"
        @echo "  simclean : Deletes simulation dir"
        @echo "  vpclean  : Deletes virtualplatform dir"
        @echo "  vpclean  : Deletes virtualplatform dir"
        @echo "  clean    : Deletes all generated files/directories"
        @echo "  clean    : Deletes all generated files/directories"
        @echo " "
        @echo " "
        @echo "  make  : (Default)"
        @echo "  make  : (Default)"
        @echo "      Creates a Microprocessor system using default initializations"
        @echo "      Creates a Microprocessor system using default initializations"
        @echo "      specified for each processor in MSS file"
        @echo "      specified for each processor in MSS file"
bits: $(SYSTEM_BIT)
bits: $(SYSTEM_BIT)
ace: $(SYSTEM_ACE)
ace: $(SYSTEM_ACE)
netlist: $(POSTSYN_NETLIST)
netlist: $(POSTSYN_NETLIST)
libs: $(LIBRARIES)
libs: $(LIBRARIES)
program: $(ALL_USER_ELF_FILES)
program: $(ALL_USER_ELF_FILES)
download: $(DOWNLOAD_BIT) dummy
download: $(DOWNLOAD_BIT) dummy
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Downloading Bitstream onto the target board"
        @echo "Downloading Bitstream onto the target board"
        @echo "*********************************************"
        @echo "*********************************************"
        impact -batch etc/download.cmd
        impact -batch etc/download.cmd
init_bram: $(DOWNLOAD_BIT)
init_bram: $(DOWNLOAD_BIT)
sim: $(DEFAULT_SIM_SCRIPT)
sim: $(DEFAULT_SIM_SCRIPT)
        cd simulation/behavioral; \
        cd simulation/behavioral; \
        $(SIM_CMD)  &
        $(SIM_CMD)  &
simmodel: $(DEFAULT_SIM_SCRIPT)
simmodel: $(DEFAULT_SIM_SCRIPT)
behavioral_model: $(BEHAVIORAL_SIM_SCRIPT)
behavioral_model: $(BEHAVIORAL_SIM_SCRIPT)
structural_model: $(STRUCTURAL_SIM_SCRIPT)
structural_model: $(STRUCTURAL_SIM_SCRIPT)
 
 
timing_model: $(TIMING_SIM_SCRIPT)
 
 
 
vp: $(VPEXEC)
vp: $(VPEXEC)
clean: hwclean libsclean programclean simclean vpclean
clean: hwclean libsclean programclean simclean vpclean
        rm -f _impact.cmd
        rm -f _impact.cmd
hwclean: netlistclean bitsclean
hwclean: netlistclean bitsclean
        rm -rf implementation synthesis xst hdl
        rm -rf implementation synthesis xst hdl
        rm -rf xst.srp $(SYSTEM).srp
        rm -rf xst.srp $(SYSTEM).srp
netlistclean:
netlistclean:
        rm -f $(POSTSYN_NETLIST)
        rm -f $(POSTSYN_NETLIST)
        rm -f $(BMM_FILE)
        rm -f $(BMM_FILE)
bitsclean:
bitsclean:
        rm -f $(SYSTEM_BIT)
        rm -f $(SYSTEM_BIT)
        rm -f implementation/$(SYSTEM).ncd
        rm -f implementation/$(SYSTEM).ncd
        rm -f implementation/$(SYSTEM)_bd.bmm
        rm -f implementation/$(SYSTEM)_bd.bmm
bitsclean:
bitsclean:
simclean:
simclean:
        rm -rf simulation/behavioral
        rm -rf simulation/behavioral
swclean: libsclean programclean
swclean: libsclean programclean
        @echo ""
        @echo ""
libsclean: $(LIBSCLEAN_TARGETS)
libsclean: $(LIBSCLEAN_TARGETS)
programclean: $(PROGRAMCLEAN_TARGETS)
programclean: $(PROGRAMCLEAN_TARGETS)
vpclean:
vpclean:
        rm -rf virtualplatform
        rm -rf virtualplatform
#################################################################
#################################################################
# SOFTWARE PLATFORM FLOW
# SOFTWARE PLATFORM FLOW
#################################################################
#################################################################
$(LIBRARIES): $(MHSFILE) $(MSSFILE) __xps/libgen.opt
$(LIBRARIES): $(MHSFILE) $(MSSFILE) __xps/libgen.opt
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Creating software libraries..."
        @echo "Creating software libraries..."
        @echo "*********************************************"
        @echo "*********************************************"
        libgen $(LIBGEN_OPTIONS) $(MSSFILE)
        libgen $(LIBGEN_OPTIONS) $(MSSFILE)
microblaze_0_libsclean:
microblaze_0_libsclean:
        rm -rf microblaze_0/lib/
        rm -rf microblaze_0/lib/
$(MICROBLAZE_0_XMDSTUB): $(LIBRARIES)
$(MICROBLAZE_0_XMDSTUB): $(LIBRARIES)
#################################################################
#################################################################
# SOFTWARE APPLICATION DECODER
# SOFTWARE APPLICATION DECODER
#################################################################
#################################################################
decoder_program: $(DECODER_OUTPUT)
decoder_program: $(DECODER_OUTPUT)
$(DECODER_OUTPUT) : $(DECODER_SOURCES) $(DECODER_HEADERS) $(DECODER_LINKER_SCRIPT) \
$(DECODER_OUTPUT) : $(DECODER_SOURCES) $(DECODER_HEADERS) $(DECODER_LINKER_SCRIPT) \
                    $(LIBRARIES) __xps/decoder_compiler.opt
                    $(LIBRARIES) __xps/decoder_compiler.opt
        @mkdir -p $(DECODER_OUTPUT_DIR)
        @mkdir -p $(DECODER_OUTPUT_DIR)
        $(DECODER_CC) $(DECODER_CC_OPT) $(DECODER_SOURCES) -o $(DECODER_OUTPUT) \
        $(DECODER_CC) $(DECODER_CC_OPT) $(DECODER_SOURCES) -o $(DECODER_OUTPUT) \
        $(DECODER_OTHER_CC_FLAGS) $(DECODER_INCLUDES) $(DECODER_LIBPATH) \
        $(DECODER_OTHER_CC_FLAGS) $(DECODER_INCLUDES) $(DECODER_LIBPATH) \
        -xl-mode-$(DECODER_MODE)  \
 
        $(DECODER_CFLAGS) $(DECODER_LFLAGS)
        $(DECODER_CFLAGS) $(DECODER_LFLAGS)
        $(DECODER_CC_SIZE) $(DECODER_OUTPUT)
        $(DECODER_CC_SIZE) $(DECODER_OUTPUT)
decoder_programclean:
decoder_programclean:
        rm -f $(DECODER_OUTPUT)
        rm -f $(DECODER_OUTPUT)
#################################################################
#################################################################
# BOOTLOOP ELF FILES
# BOOTLOOP ELF FILES
#################################################################
#################################################################
$(MICROBLAZE_0_BOOTLOOP): $(MICROBLAZE_BOOTLOOP)
$(MICROBLAZE_0_BOOTLOOP): $(MICROBLAZE_BOOTLOOP)
        @mkdir -p $(BOOTLOOP_DIR)
        @mkdir -p $(BOOTLOOP_DIR)
        cp -f $(MICROBLAZE_BOOTLOOP) $(MICROBLAZE_0_BOOTLOOP)
        cp -f $(MICROBLAZE_BOOTLOOP) $(MICROBLAZE_0_BOOTLOOP)
#################################################################
#################################################################
# HARDWARE IMPLEMENTATION FLOW
# HARDWARE IMPLEMENTATION FLOW
#################################################################
#################################################################
$(BMM_FILE) \
$(BMM_FILE) \
$(WRAPPER_NGC_FILES): $(MHSFILE) __xps/platgen.opt \
$(WRAPPER_NGC_FILES): $(MHSFILE) __xps/platgen.opt \
                      $(CORE_STATE_DEVELOPMENT_FILES)
                      $(CORE_STATE_DEVELOPMENT_FILES)
        @echo "****************************************************"
        @echo "****************************************************"
        @echo "Creating system netlist for hardware specification.."
        @echo "Creating system netlist for hardware specification.."
        @echo "****************************************************"
        @echo "****************************************************"
        platgen $(PLATGEN_OPTIONS) -st xst $(MHSFILE)
        platgen $(PLATGEN_OPTIONS) -st xst $(MHSFILE)
$(POSTSYN_NETLIST): $(WRAPPER_NGC_FILES)
$(POSTSYN_NETLIST): $(WRAPPER_NGC_FILES)
        @echo "Running synthesis..."
        @echo "Running synthesis..."
        bash -c "cd synthesis; ./synthesis.sh; cd .."
        bash -c "cd synthesis; ./synthesis.sh"
 
 
$(SYSTEM_BIT): $(BMM_FILE) $(POSTSYN_NETLIST) __xps/xpsxflow.opt \
$(SYSTEM_BIT): $(FPGA_IMP_DEPENDENCY)
               $(UCF_FILE) $(BITGEN_UT_FILE) $(FASTRUNTIME_OPT_FILE)
 
        @echo "Copying Xilinx Implementation tool scripts.."
 
        @cp -f $(BITGEN_UT_FILE) implementation/bitgen.ut
 
        @cp -f $(FASTRUNTIME_OPT_FILE) implementation/fast_runtime.opt
 
        @cp -f $(UCF_FILE) implementation/$(SYSTEM).ucf
 
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Running Xilinx Implementation tools.."
        @echo "Running Xilinx Implementation tools.."
        @echo "*********************************************"
        @echo "*********************************************"
        xflow -wd implementation -p $(DEVICE) -implement fast_runtime.opt $(SYSTEM).ngc
        @cp -f $(UCF_FILE) implementation/$(SYSTEM).ucf
 
        @cp -f $(XFLOW_OPT_FILE) implementation/xflow.opt
 
        xflow -wd implementation -p $(DEVICE) -implement xflow.opt $(SYSTEM).ngc
 
        @echo "*********************************************"
 
        @echo "Running Bitgen.."
 
        @echo "*********************************************"
 
        @cp -f $(BITGEN_UT_FILE) implementation/bitgen.ut
        cd implementation; bitgen -w -f bitgen.ut $(SYSTEM)
        cd implementation; bitgen -w -f bitgen.ut $(SYSTEM)
exporttopn:
exporttopn:
        @echo "You have chosen XPS for implementation tool flow."
        @echo "You have chosen XPS for implementation tool flow."
        @echo "Please select ProjNav as your implementation flow in Project Options."
        @echo "Please select ProjNav as your implementation flow in Project Options."
        @echo "In batch mode, use commad xset pnproj ."
        @echo "In batch mode, use commad xset pnproj ."
 
 
$(DOWNLOAD_BIT): $(SYSTEM_BIT) $(BRAMINIT_ELF_FILES) __xps/bitinit.opt
$(DOWNLOAD_BIT): $(SYSTEM_BIT) $(BRAMINIT_ELF_FILES) __xps/bitinit.opt
        @cp -f implementation/$(SYSTEM)_bd.bmm .
        @cp -f implementation/$(SYSTEM)_bd.bmm .
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Initializing BRAM contents of the bitstream"
        @echo "Initializing BRAM contents of the bitstream"
        @echo "*********************************************"
        @echo "*********************************************"
        bitinit $(MHSFILE) $(SEARCHPATHOPT) $(BRAMINIT_ELF_FILE_ARGS) \
        bitinit $(MHSFILE) $(SEARCHPATHOPT) $(BRAMINIT_ELF_FILE_ARGS) \
        -bt $(SYSTEM_BIT) -o $(DOWNLOAD_BIT)
        -bt $(SYSTEM_BIT) -o $(DOWNLOAD_BIT)
        @rm -f $(SYSTEM)_bd.bmm
        @rm -f $(SYSTEM)_bd.bmm
$(SYSTEM_ACE): $(DOWNLOAD_BIT) $(DECODER_OUTPUT)
$(SYSTEM_ACE): $(DOWNLOAD_BIT) $(DECODER_OUTPUT)
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Creating system ace file"
        @echo "Creating system ace file"
        @echo "*********************************************"
        @echo "*********************************************"
        xmd -tcl genace.tcl -jprog -hw $(DOWNLOAD_BIT) -elf $(DECODER_OUTPUT)  -ace $(SYSTEM_ACE)
        xmd -tcl genace.tcl -jprog -hw $(DOWNLOAD_BIT) -elf $(DECODER_OUTPUT)  -target mdm  -ace $(SYSTEM_ACE)
 
 
#################################################################
#################################################################
# SIMULATION FLOW
# SIMULATION FLOW
#################################################################
#################################################################
################## BEHAVIORAL SIMULATION ##################
################## BEHAVIORAL SIMULATION ##################
$(BEHAVIORAL_SIM_SCRIPT): $(MHSFILE) __xps/simgen.opt \
$(BEHAVIORAL_SIM_SCRIPT): $(MHSFILE) __xps/simgen.opt \
                          $(BRAMINIT_ELF_FILES)
                          $(BRAMINIT_ELF_FILES)
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Creating behavioral simulation models..."
        @echo "Creating behavioral simulation models..."
        @echo "*********************************************"
        @echo "*********************************************"
        simgen $(SIMGEN_OPTIONS) -m behavioral $(MHSFILE)
        simgen $(SIMGEN_OPTIONS) -m behavioral $(MHSFILE)
################## STRUCTURAL SIMULATION ##################
################## STRUCTURAL SIMULATION ##################
$(STRUCTURAL_SIM_SCRIPT): $(WRAPPER_NGC_FILES) __xps/simgen.opt \
$(STRUCTURAL_SIM_SCRIPT): $(WRAPPER_NGC_FILES) __xps/simgen.opt \
                          $(BRAMINIT_ELF_FILES)
                          $(BRAMINIT_ELF_FILES)
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Creating structural simulation models..."
        @echo "Creating structural simulation models..."
        @echo "*********************************************"
        @echo "*********************************************"
        simgen $(SIMGEN_OPTIONS) -sd implementation -m structural $(MHSFILE)
        simgen $(SIMGEN_OPTIONS) -sd implementation -m structural $(MHSFILE)
################## TIMING SIMULATION ##################
################## TIMING SIMULATION ##################
$(TIMING_SIM_SCRIPT): $(SYSTEM_BIT) __xps/simgen.opt \
$(TIMING_SIM_SCRIPT): $(SYSTEM_BIT) __xps/simgen.opt \
                      $(BRAMINIT_ELF_FILES)
                      $(BRAMINIT_ELF_FILES)
        @echo "*********************************************"
        @echo "*********************************************"
        @echo "Creating timing simulation models..."
        @echo "Creating timing simulation models..."
        @echo "*********************************************"
        @echo "*********************************************"
        simgen $(SIMGEN_OPTIONS) -sd implementation -m timing $(MHSFILE)
        simgen $(SIMGEN_OPTIONS) -sd implementation -m timing $(MHSFILE)
#################################################################
#################################################################
# VIRTUAL PLATFORM FLOW
# VIRTUAL PLATFORM FLOW
#################################################################
#################################################################
$(VPEXEC): $(MHSFILE) __xps/vpgen.opt
$(VPEXEC): $(MHSFILE) __xps/vpgen.opt
        @echo "****************************************************"
        @echo "****************************************************"
        @echo "Creating virtual platform for hardware specification.."
        @echo "Creating virtual platform for hardware specification.."
        @echo "****************************************************"
        @echo "****************************************************"
        vpgen $(VPGEN_OPTIONS) $(MHSFILE)
        vpgen $(VPGEN_OPTIONS) $(MHSFILE)
dummy:
dummy:
        @echo ""
        @echo ""
 
 

powered by: WebSVN 2.1.0

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