#!/usr/local/bin/tcsh # board_control_pal_firmware_build # created: 05-Aug-2004 # last modified: 25-Aug-2004 # This file runs a make file that intern builds the Board Control Pal firmware. This # script is used to archive revisions of the design. # # The build is reffered to by a variable SUFFIX that is the date and revision. # # The output of the build process is stored in # _doc/make_output_$SUFFIX. # # The cpldfit report, mfd, and vm6 files are stored in # _doc/report_$SUFFIX # mfd_$SUFFIX # mv6_$SUFFIX # # The report file can be view directly with a text editor. The mfd and mv6 files are # best viewed with the program Chipviewer (ChipView), but thate are also ASCII text # files that can be viewed with a text editor. # # !!!NOTE!!! # ChipViewer does not display bi-directional pins correctly. It color codes them are # input signals. # There is a discrepency between net names in Chipviewer and the report file. # Intermediate singal names appear in Chipviewer but not in the report file. # # A record of the build is also stored in _doc/report_summary.txt. The # record contains the $SUFFIX and a comment from the command # line. # USAGE: # build comment # # example: # build fixed OCB_DATA index for ADC_ENABLE register readout # Set the DATE variable to the current date set DATE = "`date +%d-%h-%Y`" # Set the REVISION variable to the previous revision set REVISION = "`cat _doc/revision`" # Incriment the revision @ REVISION = $REVISION + 1 # Set the SUFFIX variable to be appended to the log files set SUFFIX = "$DATE"_"$REVISION" echo $SUFFIX # Make design and send output to make_output_SUFFIX make clean && make >& _doc/make_output_$SUFFIX # Move report generated by makefile to report_SUFFIX cp bcp.rpt _doc/report_"$SUFFIX" cp bcp.rpt _doc/board_control_pal_cpldfit_report.txt # Copy mfd file generated by cpldfit to _doc/mfd_SUFFIX cp bcp.mfd _doc/mfd_"$SUFFIX" cp bcp.mfd _doc/bcp.mfd # Copy vm6 file generated by cpldfit to _doc/vm6_SUFFIX cp bcp.vm6 _doc/vm6_"$SUFFIX" cp bcp.vm6 _doc/bcp.vm6 # Copy jed file generated by hprep6 to _bin/bcp_SUFFIX.jed cp bcp.jed _bin/bcp_"$SUFFIX".jed cp bcp.jed _bin/bcp.jed # Copy source to vhd_SUFFIX cp _source/board_control_pal_firmware.vhd _doc/vhd_"$SUFFIX" # Update current revision number in the revision file rm _doc/revision echo $REVISION > _doc/revision # Append report_summary.txt with $SUFFIX and comment from command line echo "$SUFFIX" "$argv" >> _doc/report_summary.txt echo $SUFFIX