diff options
Diffstat (limited to 'FPGA/pwm/pwm.tcl')
-rw-r--r-- | FPGA/pwm/pwm.tcl | 88 |
1 files changed, 82 insertions, 6 deletions
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 @@ | |||
1 | set_location_assignment PIN_P25 -to speed[0] | 1 | # Copyright (C) 1991-2013 Altera Corporation |
2 | set_location_assignment PIN_AE14 -to speed[1] | 2 | # Your use of Altera Corporation's design tools, logic functions |
3 | set_location_assignment PIN_N2 -to clk | 3 | # and other software and tools, and its AMPP partner logic |
4 | set_location_assignment PIN_G26 -to resetn | 4 | # functions, and any output files from any of the foregoing |
5 | set_location_assignment PIN_K26 -to fan | 5 | # (including device programming or simulation files), and any |
6 | set_location_assignment PIN_Y18 -to led_fan | 6 | # associated documentation or information are expressly subject |
7 | # to the terms and conditions of the Altera Program License | ||
8 | # Subscription Agreement, Altera MegaCore Function License | ||
9 | # Agreement, or other applicable license agreement, including, | ||
10 | # without limitation, that your use is for the sole purpose of | ||
11 | # programming logic devices manufactured by Altera and sold by | ||
12 | # Altera or its authorized distributors. Please refer to the | ||
13 | # applicable agreement for further details. | ||
14 | |||
15 | # Quartus II: Generate Tcl File for Project | ||
16 | # File: pwm.tcl | ||
17 | # Generated on: Sun Jun 15 15:04:34 2014 | ||
18 | |||
19 | # Load Quartus II Tcl Project package | ||
20 | package require ::quartus::project | ||
21 | |||
22 | set need_to_close_project 0 | ||
23 | set make_assignments 1 | ||
24 | |||
25 | # Check that the right project is open | ||
26 | if {[is_project_open]} { | ||
27 | if {[string compare $quartus(project) "pwm"]} { | ||
28 | puts "Project pwm is not open" | ||
29 | set make_assignments 0 | ||
30 | } | ||
31 | } else { | ||
32 | # Only open if not already open | ||
33 | if {[project_exists pwm]} { | ||
34 | project_open -revision pwm pwm | ||
35 | } else { | ||
36 | project_new -revision pwm pwm | ||
37 | } | ||
38 | set need_to_close_project 1 | ||
39 | } | ||
40 | |||
41 | # Make assignments | ||
42 | if {$make_assignments} { | ||
43 | set_global_assignment -name FAMILY "Cyclone II" | ||
44 | set_global_assignment -name DEVICE EP2C35F672C6 | ||
45 | set_global_assignment -name ORIGINAL_QUARTUS_VERSION "13.0 SP1" | ||
46 | set_global_assignment -name PROJECT_CREATION_TIME_DATE "18:34:57 MAY 05, 2014" | ||
47 | set_global_assignment -name LAST_QUARTUS_VERSION "13.0 SP1" | ||
48 | set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files | ||
49 | set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0 | ||
50 | set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85 | ||
51 | set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1 | ||
52 | set_global_assignment -name USE_CONFIGURATION_DEVICE ON | ||
53 | set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED" | ||
54 | set_global_assignment -name BDF_FILE pwm.bdf | ||
55 | set_global_assignment -name QIP_FILE lpm_mux0.qip | ||
56 | set_global_assignment -name QIP_FILE lpm_constant0.qip | ||
57 | set_global_assignment -name QIP_FILE lpm_constant1.qip | ||
58 | set_global_assignment -name QIP_FILE lpm_constant2.qip | ||
59 | set_global_assignment -name QIP_FILE lpm_constant3.qip | ||
60 | set_global_assignment -name QIP_FILE lpm_counter1.qip | ||
61 | set_global_assignment -name QIP_FILE lpm_compare0.qip | ||
62 | set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top | ||
63 | set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top | ||
64 | set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top | ||
65 | set_global_assignment -name RESERVE_ALL_UNUSED_PINS_NO_OUTPUT_GND "AS INPUT TRI-STATED" | ||
66 | set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL" | ||
67 | set_location_assignment PIN_N2 -to clk | ||
68 | set_location_assignment PIN_G26 -to resetn | ||
69 | set_location_assignment PIN_K26 -to fan | ||
70 | set_location_assignment PIN_Y18 -to led_fan | ||
71 | set_location_assignment PIN_P25 -to speed[0] | ||
72 | set_location_assignment PIN_AE14 -to speed[1] | ||
73 | set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top | ||
74 | |||
75 | # Commit assignments | ||
76 | export_assignments | ||
77 | |||
78 | # Close project | ||
79 | if {$need_to_close_project} { | ||
80 | project_close | ||
81 | } | ||
82 | } | ||