- Timestamp:
- Apr 5, 2007, 4:17:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Synthesis
r3 r15 16 16 FPGA_CFG_FILE_GLOBAL = configure.mkf 17 17 18 #-----[ Tools ]--------------------------------------------19 VLIB = vlib20 VCOM = vcom21 VSIM = vsim -c -do "run -all; quit"22 23 ENV_XILINX = source $(TOOLS)/xilinx/settings.sh24 25 18 #-----[ Rules ]-------------------------------------------- 26 19 .PRECIOUS : $(DIR_LOG)/%.vhdl.log $(DIR_LOG)/%.vhdl_sim.log 27 20 28 21 vhdl : execute $(DIR_WORK) 29 @declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Pack.vhdl)); \ 22 @ \ 23 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Pack.vhdl)); \ 30 24 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 31 $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; 32 @declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 25 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 26 @ \ 27 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 33 28 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 34 $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; 35 @declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*.vhdl|$(GREP_NOT) "(_Pack\.|_Testbench\.)")); \ 29 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 30 @ \ 31 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*.vhdl|$(GREP_NOT) "(_Pack\.|_Testbench\.)")); \ 36 32 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 37 $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)};33 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 38 34 39 35 vhdl_sim : vhdl 40 @declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 36 @ \ 37 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 41 38 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl_sim.log}); \ 42 $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)};39 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 43 40 44 41 fpga : vhdl_sim … … 52 49 $(ECHO) -e "" >> $(FPGA_CFG_FILE_LOCAL); \ 53 50 done 54 @($( ENV_XILINX); $(CD) $(FPGA_CFG_FILE_GLOBAL_DIR); ./$(FPGA_CFG_FILE_GLOBAL))51 @($(XILINX_ENV); $(CD) $(FPGA_CFG_FILE_GLOBAL_DIR); ./$(FPGA_CFG_FILE_GLOBAL)) 55 52 @$(MAKE) $(patsubst $(DIR_CFG)/%.cfg,$(DIR_LOG)/%.fpga.log,$(wildcard $(DIR_CFG)/*.cfg)) 56 53 57 54 $(DIR_LOG)/%.fpga.log : 58 55 @$(ECHO) "Synthetis on FPGA : $*" 59 @$( ENV_XILINX); $(MAKE) -f Makefile.mkf $*.ngc > $@56 @$(XILINX_ENV); $(MAKE) -f Makefile.mkf $*.ngc > $@ 60 57 61 58 $(DIR_WORK) : 62 59 @$(ECHO) "Create work-space : $@" 63 @$( VLIB) $@60 @$(MODELTECH_VLIB) $@ 64 61 65 62 $(DIR_LOG)/%.vhdl_sim.log : $(DIR_VHDL)/%.vhdl $(DIR_LOG)/%.vhdl.log 66 63 @$(ECHO) "VHDL's Simulation: $*" 67 @$( VSIM) "$(DIR_WORK).`$(BASENAME) $* |$(UPPERtoLOWER)`" > $@64 @$(MODELTECH_VSIM) "$(DIR_WORK).`$(BASENAME) $* |$(UPPERtoLOWER)`" > $@ 68 65 declare -i count=`$(GREP) -ch "Test KO" $@`; \ 69 66 if $(TEST) $$count -eq 0; \ … … 74 71 $(DIR_LOG)/%.vhdl.log : $(DIR_VHDL)/%.vhdl 75 72 @$(ECHO) "VHDL's Compilation : $*" 76 @$( VCOM) $< > $@73 @$(MODELTECH_VCOM) $< > $@ 77 74 78 75 synthesis_clean :
Note: See TracChangeset
for help on using the changeset viewer.