From 4762ef9b7238f67d065775b752ebf51289c1f437 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 15 Jun 2014 15:28:10 +0200 Subject: Clean project --- FPGA/pwm/pwm.tcl | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 82 insertions(+), 6 deletions(-) (limited to 'FPGA/pwm/pwm.tcl') diff --git a/FPGA/pwm/pwm.tcl b/FPGA/pwm/pwm.tcl index 267245a..bda2614 100644 --- a/FPGA/pwm/pwm.tcl +++ b/FPGA/pwm/pwm.tcl @@ -1,6 +1,82 @@ -set_location_assignment PIN_P25 -to speed[0] -set_location_assignment PIN_AE14 -to speed[1] -set_location_assignment PIN_N2 -to clk -set_location_assignment PIN_G26 -to resetn -set_location_assignment PIN_K26 -to fan -set_location_assignment PIN_Y18 -to led_fan +# Copyright (C) 1991-2013 Altera Corporation +# Your use of Altera Corporation's design tools, logic functions +# and other software and tools, and its AMPP partner logic +# functions, and any output files from any of the foregoing +# (including device programming or simulation files), and any +# associated documentation or information are expressly subject +# to the terms and conditions of the Altera Program License +# Subscription Agreement, Altera MegaCore Function License +# Agreement, or other applicable license agreement, including, +# without limitation, that your use is for the sole purpose of +# programming logic devices manufactured by Altera and sold by +# Altera or its authorized distributors. Please refer to the +# applicable agreement for further details. + +# Quartus II: Generate Tcl File for Project +# File: pwm.tcl +# Generated on: Sun Jun 15 15:04:34 2014 + +# Load Quartus II Tcl Project package +package require ::quartus::project + +set need_to_close_project 0 +set make_assignments 1 + +# Check that the right project is open +if {[is_project_open]} { + if {[string compare $quartus(project) "pwm"]} { + puts "Project pwm is not open" + set make_assignments 0 + } +} else { + # Only open if not already open + if {[project_exists pwm]} { + project_open -revision pwm pwm + } else { + project_new -revision pwm pwm + } + set need_to_close_project 1 +} + +# Make assignments +if {$make_assignments} { + set_global_assignment -name FAMILY "Cyclone II" + set_global_assignment -name DEVICE EP2C35F672C6 + set_global_assignment -name ORIGINAL_QUARTUS_VERSION "13.0 SP1" + set_global_assignment -name PROJECT_CREATION_TIME_DATE "18:34:57 MAY 05, 2014" + set_global_assignment -name LAST_QUARTUS_VERSION "13.0 SP1" + set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files + set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0 + set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85 + set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1 + set_global_assignment -name USE_CONFIGURATION_DEVICE ON + set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED" + set_global_assignment -name BDF_FILE pwm.bdf + set_global_assignment -name QIP_FILE lpm_mux0.qip + set_global_assignment -name QIP_FILE lpm_constant0.qip + set_global_assignment -name QIP_FILE lpm_constant1.qip + set_global_assignment -name QIP_FILE lpm_constant2.qip + set_global_assignment -name QIP_FILE lpm_constant3.qip + set_global_assignment -name QIP_FILE lpm_counter1.qip + set_global_assignment -name QIP_FILE lpm_compare0.qip + set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top + set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top + set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top + set_global_assignment -name RESERVE_ALL_UNUSED_PINS_NO_OUTPUT_GND "AS INPUT TRI-STATED" + set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL" + set_location_assignment PIN_N2 -to clk + set_location_assignment PIN_G26 -to resetn + set_location_assignment PIN_K26 -to fan + set_location_assignment PIN_Y18 -to led_fan + set_location_assignment PIN_P25 -to speed[0] + set_location_assignment PIN_AE14 -to speed[1] + set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top + + # Commit assignments + export_assignments + + # Close project + if {$need_to_close_project} { + project_close + } +} -- cgit v1.2.3