# # pilchard.fst # # This script creates an optimized chip for the Pilchard sample design. # It is designed for the UNIX environment. # # To run the script: # # fc2_shell -f pilchard.fst # # # Define variables # set proj syn set top pilchard set target VIRTEXE set chip pilchard set export_dir export_dir set device V1000EHQ240 set speed -6 # # Remove any old version of the project, # and create the new project # comment out this section to work on # an existing project # exec rm -rf $proj create_project -dir . $proj # # to work on an existing project # merely open it open_project $proj # # Setup project variables # proj_export_timing_constraint = "yes" # # Setup default variables # default_clock_frequency = 50 # # Identify the library source files # # # Identify the design source files # add_file -library WORK -format VHDL pcore.vhd add_file -library WORK -format VHDL pilchard.vhd add_file -library WORK -format VHDL parith.vhd add_file -library WORK -format EDIF dpram256_64.edn #add_file -library WORK -format VHDL vhdl/more_file_here.vhd # # Analyze all the source files and display the progress # analyze_file -progress # # Create a chip targetted for $TARGET with the default part and # speed grade. The chip will be named $chip. $top indicates # the top level design. # create_chip -target $target -device $device -speed $speed -name $chip $top # # Set the current chip to add constraints # current_chip $chip # # Read the constraints file # #source constraints.fst # # Optimize the current chip # set opt_chip [format "%s-Optimized" $chip] optimize_chip -name $opt_chip # # Show any error and warning messages for the chip # list_message # # Create a timing report # report_timing # # Write out the PPR netlist and constraints to the directory $export_dir # exec rm -rf $export_dir exec mkdir -p $export_dir export_chip -dir $export_dir -no_timing_constraint # # Save and close the project # close_project #cd $export_dir #exec ngdbuild -sd edif -uc ucf/pilchard.ucf -p XV1000EHQ240-6 pilchard.edf pilchard.ngd #exec map -p XV1000EHQ240-6 -cm speed -o map.ncd pilchard.ngd pilchard.pcf #exec par -w -ol 5 -d 2 map.ncd pilchard.ncd pilchard.pcf #exec trce pilchard.ncd pilchard.pcf -v 10 -o pilchard.twr #exec bitgen -w -l pilchard.ncd pilchard.bit pilchard.pcf quit