- Timestamp:
- Aug 8, 2007, 9:16:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Synthesis
r42 r48 25 25 26 26 vhdl : execute $(DIR_WORK) 27 @ 27 @\ 28 28 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Pack.vhdl)); \ 29 29 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 30 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 31 @ \ 32 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 30 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi; \ 31 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 33 32 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 34 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 35 @ \ 33 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi; \ 36 34 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*.vhdl|$(GREP_NOT) "(_Pack\.|_Testbench\.)")); \ 37 35 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl.log}); \ 38 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 36 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi; 39 37 40 38 vhdl_sim : vhdl 41 @ 39 @\ 42 40 declare -a vhdl_files=($$($(LS) $(DIR_VHDL)/*_Testbench.vhdl)); \ 43 41 declare -a log_files=($${vhdl_files[*]/%.vhdl/.vhdl_sim.log}); \ 44 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi 42 if $(TEST) $${#log_files[*]} -ne 0; then $(MAKE) $${log_files[*]/#$(DIR_VHDL)/$(DIR_LOG)}; fi; 45 43 46 44 fpga : vhdl_sim 47 @$(ECHO) -e "" > $(FPGA_CFG_FILE_LOCAL) 48 @$(ECHO) "files :::::::: $(FPGA_FILES)" 49 @for file in $(FPGA_FILES); do \ 45 @\ 46 $(ECHO) -e "" > $(FPGA_CFG_FILE_LOCAL); \ 47 $(ECHO) "files :::::::: $(FPGA_FILES)"; \ 48 for file in $(FPGA_FILES); do \ 50 49 declare -a files=($$($(LS) $$file*.vhdl|$(GREP_NOT) "(_Testbench\.)")); \ 51 50 $(ECHO) -e "# $$file" >> $(FPGA_CFG_FILE_LOCAL); \ … … 54 53 $(ECHO) -e "target_dep\t$$file.prj\t$${files[*]}" >> $(FPGA_CFG_FILE_LOCAL); \ 55 54 $(ECHO) -e "" >> $(FPGA_CFG_FILE_LOCAL); \ 56 done 57 @($(XILINX_ENV); $(CD) $(FPGA_CFG_FILE_GLOBAL_DIR); ./$(FPGA_CFG_FILE_GLOBAL))58 @$(MAKE) $(FPGA_LOG_FILES)55 done; \ 56 ($(XILINX_ENV); $(CD) $(FPGA_CFG_FILE_GLOBAL_DIR); ./$(FPGA_CFG_FILE_GLOBAL)); \ 57 $(MAKE) $(FPGA_LOG_FILES); 59 58 60 59 $(DIR_LOG)/%.fpga.log : 61 @$(ECHO) "Synthetis on FPGA : $*" 62 @$(XILINX_ENV); $(MAKE) -f Makefile.mkf $*.ngc &> $@ 60 @\ 61 $(ECHO) "Synthetis on FPGA : $*"; \ 62 $(XILINX_ENV); $(MAKE) -f Makefile.mkf $*.ngc &> $@; 63 63 64 64 $(DIR_WORK) : 65 @$(ECHO) "Create work-space : $@" 66 @$(MODELTECH_VLIB) $@ 65 @\ 66 $(ECHO) "Create work-space : $@"; \ 67 $(MODELTECH_VLIB) $@; 67 68 68 69 $(DIR_LOG)/%.vhdl_sim.log : $(DIR_VHDL)/%.vhdl $(DIR_LOG)/%.vhdl.log 69 @$(ECHO) "VHDL's Simulation : $*" 70 @$(MODELTECH_VSIM) "$(DIR_WORK).`$(BASENAME) $* |$(UPPERtoLOWER)`" &> $@ 70 @\ 71 $(ECHO) "VHDL's Simulation : $*"; \ 72 $(MODELTECH_VSIM) "$(DIR_WORK).`$(BASENAME) $* |$(UPPERtoLOWER)`" &> $@; \ 71 73 declare -i count=`$(GREP) -ch "Test OK" $@`; \ 72 74 if $(TEST) $$count -ne 0; \ … … 76 78 77 79 $(DIR_LOG)/%.vhdl.log : $(DIR_VHDL)/%.vhdl 78 @$(ECHO) "VHDL's Compilation : $*" 79 @$(MODELTECH_VCOM) $< &> $@ 80 @\ 81 $(ECHO) "VHDL's Compilation : $*"; \ 82 $(MODELTECH_VCOM) $< &> $@; 80 83 81 84 synthesis_clean : 82 @if $(TEST) -f Makefile.mkf; then $(MAKE) -f Makefile.mkf clean; fi 83 @$(RM) $(DIR_WORK) transcript Makefile.mkf 85 @\ 86 if $(TEST) -f Makefile.mkf; then $(MAKE) -f Makefile.mkf clean; fi; \ 87 $(RM) $(DIR_WORK) transcript Makefile.mkf; 84 88 85 89 synthesis_help : 86 @$(ECHO) " -----[ Synthesis ]----------------------------------" 87 @$(ECHO) "" 88 @$(ECHO) " * vhdl : compile all vhdl's file" 89 @$(ECHO) " * vhdl_sim : simulate all testbench's file" 90 @$(ECHO) " * fpga : synthetis with fpga's tools" 91 @$(ECHO) "" 90 @\ 91 $(ECHO) " -----[ Synthesis ]----------------------------------";\ 92 $(ECHO) "";\ 93 $(ECHO) " * vhdl : compile all vhdl's file";\ 94 $(ECHO) " * vhdl_sim : simulate all testbench's file";\ 95 $(ECHO) " * fpga : synthetis with fpga's tools";\ 96 $(ECHO) "";
Note: See TracChangeset
for help on using the changeset viewer.