基于FPGA的防火墙系统设计.rar

源代码在线查看: system.make

软件大小: 1892 K
上传用户: wode
关键词: FPGA 防火墙 系统设计
下载地址: 免注册下载 普通下载 VIP

相关代码

				#################################################################
				# Makefile generated by Xilinx Platform Studio 
				# Project:C:\myproj2\firewall\myxps\system.xmp
				#################################################################
				
				# Name of the Microprocessor system
				# The hardware specification of the system is in file :
				# C:\myproj2\firewall\myxps\system.mhs
				# The software specification of the system is in file :
				# C:\myproj2\firewall\myxps\system.mss
				
				include system_incl.make
				
				
				#################################################################
				# EXTERNAL TARGETS
				#################################################################
				all:
					@echo "Makefile to build a Microprocessor system :"
					@echo "Run make with any of the following targets"
					@echo " "
					@echo "  netlist  : Generates the netlist for the given MHS "
					@echo "  bits     : Runs Implementation tools to generate the bitstream"
					@echo "  exporttopn:Export to ProjNav"
					@echo " "
					@echo "  libs     : Configures the sw libraries for this system"
					@echo "  program  : Compiles the program sources for all the processor instances"
					@echo " "
					@echo "  init_bram: Initializes bitstream with BRAM data"
					@echo "  ace      : Generate ace file from bitstream and elf"
					@echo "  download : Downloads the bitstream onto the board"
					@echo " "
					@echo "  sim      : Generates HDL simulation models and runs simulator for chosen simulation mode"
					@echo "  simmodel : Generates HDL simulation models for chosen simulation mode"
					@echo "  behavioral:Generates behavioral HDL models with BRAM initialization"
					@echo "  structural:Generates structural simulation HDL models with BRAM initialization"
					@echo "  timing   : Generates timing simulation HDL models with BRAM initialization"
					@echo "  vp       : Generates virtual platform model"
					@echo " "
					@echo "  netlistclean: Deletes netlist"
					@echo "  bitsclean: Deletes bit, ncd, bmm files"
					@echo "  hwclean  : Deletes implementation dir"
					@echo "  libsclean: Deletes sw libraries"
					@echo "  programclean: Deletes compiled ELF files"
					@echo "  swclean  : Deletes sw libraries and ELF files"
					@echo "  simclean : Deletes simulation dir"
					@echo "  vpclean  : Deletes virtualplatform dir"
					@echo "  clean    : Deletes all generated files/directories"
					@echo " "
					@echo "  make  : (Default)"
					@echo "      Creates a Microprocessor system using default initializations"
					@echo "      specified for each processor in MSS file"
				
				
				bits: $(SYSTEM_BIT)
				
				ace: $(SYSTEM_ACE)
				
				netlist: $(POSTSYN_NETLIST)
				
				libs: $(LIBRARIES)
				
				program: $(ALL_USER_ELF_FILES)
				
				download: $(DOWNLOAD_BIT) dummy
					@echo "*********************************************"
					@echo "Downloading Bitstream onto the target board"
					@echo "*********************************************"
					impact -batch etc/download.cmd
				
				init_bram: $(DOWNLOAD_BIT)
				
				sim: $(DEFAULT_SIM_SCRIPT)
				
				simmodel: $(DEFAULT_SIM_SCRIPT)
				
				behavioral_model: $(BEHAVIORAL_SIM_SCRIPT)
				
				structural_model: $(STRUCTURAL_SIM_SCRIPT)
				
				vp: $(VPEXEC)
				
				clean: hwclean libsclean programclean simclean vpclean
					rm -f _impact.cmd
				
				hwclean: netlistclean bitsclean
					rm -rf implementation synthesis xst hdl
					rm -rf xst.srp $(SYSTEM).srp
				
				netlistclean:
					rm -f $(POSTSYN_NETLIST)
					rm -f $(BMM_FILE)
				
				bitsclean:
					rm -f $(SYSTEM_BIT)
					rm -f implementation/$(SYSTEM).ncd
					rm -f implementation/$(SYSTEM)_bd.bmm 
				
				bitsclean:
				
				simclean: 
					rm -rf simulation/behavioral
				
				swclean: libsclean programclean
					@echo ""
				
				libsclean: $(LIBSCLEAN_TARGETS)
				
				programclean: $(PROGRAMCLEAN_TARGETS)
				
				vpclean:
					rm -rf virtualplatform
				
				#################################################################
				# SOFTWARE PLATFORM FLOW
				#################################################################
				
				
				$(LIBRARIES): $(MHSFILE) $(MSSFILE) __xps/libgen.opt
					@echo "*********************************************"
					@echo "Creating software libraries..."
					@echo "*********************************************"
					libgen $(LIBGEN_OPTIONS) $(MSSFILE)
				
				
				ppc405_0_libsclean:
					rm -rf ppc405_0/lib/
				
				#################################################################
				# SOFTWARE APPLICATION TESTAPP_MEMORY
				#################################################################
				
				TestApp_Memory_program: $(TESTAPP_MEMORY_OUTPUT) 
				
				$(TESTAPP_MEMORY_OUTPUT) : $(TESTAPP_MEMORY_SOURCES) $(TESTAPP_MEMORY_HEADERS) $(TESTAPP_MEMORY_LINKER_SCRIPT) \
				                    $(LIBRARIES) __xps/testapp_memory_compiler.opt
					@mkdir -p $(TESTAPP_MEMORY_OUTPUT_DIR) 
					$(TESTAPP_MEMORY_CC) $(TESTAPP_MEMORY_CC_OPT) $(TESTAPP_MEMORY_SOURCES) -o $(TESTAPP_MEMORY_OUTPUT) \
					$(TESTAPP_MEMORY_OTHER_CC_FLAGS) $(TESTAPP_MEMORY_INCLUDES) $(TESTAPP_MEMORY_LIBPATH) \
					$(TESTAPP_MEMORY_CFLAGS) $(TESTAPP_MEMORY_LFLAGS) 
					$(TESTAPP_MEMORY_CC_SIZE) $(TESTAPP_MEMORY_OUTPUT) 
					@echo ""
				
				TestApp_Memory_programclean:
					rm -f $(TESTAPP_MEMORY_OUTPUT) 
				
				#################################################################
				# SOFTWARE APPLICATION TESTAPP_PERIPHERAL
				#################################################################
				
				TestApp_Peripheral_program: $(TESTAPP_PERIPHERAL_OUTPUT) 
				
				$(TESTAPP_PERIPHERAL_OUTPUT) : $(TESTAPP_PERIPHERAL_SOURCES) $(TESTAPP_PERIPHERAL_HEADERS) $(TESTAPP_PERIPHERAL_LINKER_SCRIPT) \
				                    $(LIBRARIES) __xps/testapp_peripheral_compiler.opt
					@mkdir -p $(TESTAPP_PERIPHERAL_OUTPUT_DIR) 
					$(TESTAPP_PERIPHERAL_CC) $(TESTAPP_PERIPHERAL_CC_OPT) $(TESTAPP_PERIPHERAL_SOURCES) -o $(TESTAPP_PERIPHERAL_OUTPUT) \
					$(TESTAPP_PERIPHERAL_OTHER_CC_FLAGS) $(TESTAPP_PERIPHERAL_INCLUDES) $(TESTAPP_PERIPHERAL_LIBPATH) \
					$(TESTAPP_PERIPHERAL_CFLAGS) $(TESTAPP_PERIPHERAL_LFLAGS) 
					$(TESTAPP_PERIPHERAL_CC_SIZE) $(TESTAPP_PERIPHERAL_OUTPUT) 
					@echo ""
				
				TestApp_Peripheral_programclean:
					rm -f $(TESTAPP_PERIPHERAL_OUTPUT) 
				
				#################################################################
				# SOFTWARE APPLICATION MYSOFTPROJ
				#################################################################
				
				mysoftproj_program: $(MYSOFTPROJ_OUTPUT) 
				
				$(MYSOFTPROJ_OUTPUT) : $(MYSOFTPROJ_SOURCES) $(MYSOFTPROJ_HEADERS) $(MYSOFTPROJ_LINKER_SCRIPT) \
				                    $(LIBRARIES) __xps/mysoftproj_compiler.opt
					@mkdir -p $(MYSOFTPROJ_OUTPUT_DIR) 
					$(MYSOFTPROJ_CC) $(MYSOFTPROJ_CC_OPT) $(MYSOFTPROJ_SOURCES) -o $(MYSOFTPROJ_OUTPUT) \
					$(MYSOFTPROJ_OTHER_CC_FLAGS) $(MYSOFTPROJ_INCLUDES) $(MYSOFTPROJ_LIBPATH) \
					$(MYSOFTPROJ_CFLAGS) $(MYSOFTPROJ_LFLAGS) 
					$(MYSOFTPROJ_CC_SIZE) $(MYSOFTPROJ_OUTPUT) 
					@echo ""
				
				mysoftproj_programclean:
					rm -f $(MYSOFTPROJ_OUTPUT) 
				
				#################################################################
				# BOOTLOOP ELF FILES
				#################################################################
				
				
				
				$(PPC405_0_BOOTLOOP): $(PPC405_BOOTLOOP)
					@mkdir -p $(BOOTLOOP_DIR)
					cp -f $(PPC405_BOOTLOOP) $(PPC405_0_BOOTLOOP)
				
				#################################################################
				# HARDWARE IMPLEMENTATION FLOW
				#################################################################
				
				
				$(BMM_FILE) \
				$(WRAPPER_NGC_FILES): $(MHSFILE) __xps/platgen.opt \
				                      $(CORE_STATE_DEVELOPMENT_FILES)
					@echo "****************************************************"
					@echo "Creating system netlist for hardware specification.."
					@echo "****************************************************"
					platgen $(PLATGEN_OPTIONS) $(MHSFILE)
				
				$(POSTSYN_NETLIST): $(WRAPPER_NGC_FILES)
					@echo "Running synthesis..."
					bash -c "cd synthesis; ./synthesis.sh"
				
				$(SYSTEM_BIT): 
					@echo "You have chosen ProjNav for your implementation flow."
					@echo "'Import From ProjNav' functionality to import the bit and bmm files into XPS from ProjNav."
				
				exporttopn: $(WRAPPER_NGC_FILES) dummy
					@echo "*********************************************"
					@echo "Exporting to ProjNav..."
					@echo "*********************************************"
					@echo "WARNING: All the IPs instantiated in the embedded design are synthesized in EDK using XST. It is recommended to directly instantiate the XMP file as a source in your ProjNav project"
					pjcli.bat -v -f ise_cmdfile
				
				$(DOWNLOAD_BIT): $(SYSTEM_BIT) $(BRAMINIT_ELF_FILES) __xps/bitinit.opt
					@cp -f implementation/$(SYSTEM)_bd.bmm .
					@echo "*********************************************"
					@echo "Initializing BRAM contents of the bitstream"
					@echo "*********************************************"
					bitinit $(MHSFILE) $(SEARCHPATHOPT) $(BRAMINIT_ELF_FILE_ARGS) \
					-bt $(SYSTEM_BIT) -o $(DOWNLOAD_BIT)
					@rm -f $(SYSTEM)_bd.bmm
				
				$(SYSTEM_ACE): $(DOWNLOAD_BIT) $(TESTAPP_MEMORY_OUTPUT) $(TESTAPP_PERIPHERAL_OUTPUT) $(MYSOFTPROJ_OUTPUT) 
					@echo "*********************************************"
					@echo "Creating system ace file"
					@echo "*********************************************"
					xmd -tcl genace.tcl -jprog -hw $(DOWNLOAD_BIT) -elf $(TESTAPP_MEMORY_OUTPUT) $(TESTAPP_PERIPHERAL_OUTPUT) $(MYSOFTPROJ_OUTPUT)  -target ppc_hw  -ace $(SYSTEM_ACE)
				
				#################################################################
				# SIMULATION FLOW
				#################################################################
				
				
				################## BEHAVIORAL SIMULATION ##################
				
				$(BEHAVIORAL_SIM_SCRIPT): $(MHSFILE) __xps/simgen.opt \
				                          $(BRAMINIT_ELF_FILES)
					@echo "*********************************************"
					@echo "Creating behavioral simulation models..."
					@echo "*********************************************"
					simgen $(SIMGEN_OPTIONS) -m behavioral $(MHSFILE)
				
				################## STRUCTURAL SIMULATION ##################
				
				$(STRUCTURAL_SIM_SCRIPT): $(WRAPPER_NGC_FILES) __xps/simgen.opt \
				                          $(BRAMINIT_ELF_FILES)
					@echo "*********************************************"
					@echo "Creating structural simulation models..."
					@echo "*********************************************"
					simgen $(SIMGEN_OPTIONS) -sd implementation -m structural $(MHSFILE)
				
				
				################## TIMING SIMULATION ##################
				
				$(TIMING_SIM_SCRIPT):
					@echo "Timing simulation of complete design (including toplevel) flow should be done in ProjNav"
				
				#################################################################
				# VIRTUAL PLATFORM FLOW
				#################################################################
				
				
				$(VPEXEC): $(MHSFILE) __xps/vpgen.opt
					@echo "****************************************************"
					@echo "Creating virtual platform for hardware specification.."
					@echo "****************************************************"
					vpgen $(VPGEN_OPTIONS) $(MHSFILE)
				
				dummy:
					@echo ""
				
							

相关资源