# board_control_pal_firmware_makefile # Created: 06-Jul-2004 # Last edited: 16-Dec-2004 # It allows the firmware to be incrementally synthesized and implemented # without editing the script file. It also has a mechanism to clean out all # files generated from the synthesize and implementation process. # usage: make -f board_control_pal_firmware_makefile # # It is easier is board_control_pal_firmware_makefile is copied to a file named # makefile so that the makefile name does not need to be specified. # # make # Arguments # # all (default) # This will run all programs to synthesize and implement the design # from VHDL files and produce a JEDEC file for programming the PAL. # # xst # This will run xst with the options defined in # _config/board_control_pal_firmware.xst. # Its input is VHDL and ucf files and its output is an ngc and syr # file. # # ngdbuild # This will run ngdbuild with the options defined in # _config/board_control_pal_firmware.ngdbuild # Its input is an ngc and ucf file and its output is a ngd file. # # cpldfit # This will run cpldfit with the options defined in # _config/board_control_pal_firmware.cpldfit # Its input is an ngd file and its output is an vm6 file and xml, # html files and text report files. # # tsim # This will run tsim which translates the vm6 file into a format that # NetGen can ingest. The input is a vm6 file and the output is an # NGA file. # # netgen # This will run netgen which backannotates the fit design into a # format that simulation software can ingest. The input is a NGA # file and the outputs are a VHDL file and an SDF file. # # hprep6 # This will run hprep6 with the options defined in # _config/board_control_pal_firmware.hprep6 # Its input is a vm6 file and its output is a jed (JEDEC) file. # # XSLTProcess # This will run XSLTProcess. # Its input is xml files from cpldfit and its output is a web interface # to the fit summary. # # clean # This will remove all of the intermediate files created during the # synthesize and implementation proccess. all: xst -ifn _config/board_control_pal_firmware.xst -ofn bcp.syr ngdbuild -f _config/board_control_pal_firmware.ngdbuild -cpldfit -f _config/board_control_pal_firmware.cpldfit -hprep6 -f _config/board_control_pal_firmware.hprep6 -tsim bcp.vm6 bcp.nga -netgen -f _config/board_control_pal_firmware.netgen xst: xst -ifn _config/board_control_pal_firmware.xst -ofn bcp.syr ngdbuild: ngdbuild -f _config/board_control_pal_firmware.ngdbuild cpldfit: cpldfit -f _config/board_control_pal_firmware.cpldfit hprep6: hprep6 -f _config/board_control_pal_firmware.hprep6 tsim: tsim bcp.vm6 bcp.nga netgen: netgen -f _config/board_control_pal_firmware.netgen #XSLTProcess: # XSLTProcess "bcp_build.xml" clean : rm -fr bcp* rm -fr tmperr.err rm -fr _xst/* rm -fr _ngo/* rm -fr _tmp/*