de2.tcl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. # Copyright (C) 1991-2013 Altera Corporation
  2. # Your use of Altera Corporation's design tools, logic functions
  3. # and other software and tools, and its AMPP partner logic
  4. # functions, and any output files from any of the foregoing
  5. # (including device programming or simulation files), and any
  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. # Quartus II: Generate Tcl File for Project
  15. # File: de2.tcl
  16. # Generated on: Sat Sep 6 02:27:17 2014
  17. # Load Quartus II Tcl Project package
  18. package require ::quartus::project
  19. set need_to_close_project 0
  20. set make_assignments 1
  21. # Check that the right project is open
  22. if {[is_project_open]} {
  23. if {[string compare $quartus(project) "de2"]} {
  24. puts "Project de2 is not open"
  25. set make_assignments 0
  26. }
  27. } else {
  28. # Only open if not already open
  29. if {[project_exists de2]} {
  30. project_open -revision de2 de2
  31. } else {
  32. project_new -revision de2 de2
  33. }
  34. set need_to_close_project 1
  35. }
  36. # Make assignments
  37. if {$make_assignments} {
  38. set_global_assignment -name FAMILY "Cyclone II"
  39. set_global_assignment -name DEVICE EP2C35F672C6
  40. set_global_assignment -name TOP_LEVEL_ENTITY top_level
  41. set_global_assignment -name ORIGINAL_QUARTUS_VERSION 13.1
  42. set_global_assignment -name PROJECT_CREATION_TIME_DATE "19:30:55 AUGUST 28, 2014"
  43. set_global_assignment -name LAST_QUARTUS_VERSION 13.1
  44. set_global_assignment -name EDA_SIMULATION_TOOL "ModelSim-Altera (VHDL)"
  45. set_global_assignment -name EDA_OUTPUT_DATA_FORMAT VHDL -section_id eda_simulation
  46. set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
  47. set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
  48. set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
  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 POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW"
  52. set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)"
  53. set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "2.5 V"
  54. set_global_assignment -name VHDL_FILE ../../vhdl/board/de2/SDRAM_Controller.vhd
  55. set_global_assignment -name VHDL_FILE ../../vhdl/DRAM.vhd
  56. set_global_assignment -name VHDL_FILE ../../vhdl/gpio.vhd
  57. set_global_assignment -name VHDL_FILE ../../vhdl/T80.vhd
  58. set_global_assignment -name VHDL_FILE ../../vhdl/board/de2/top_level_de2.vhd
  59. set_global_assignment -name VHDL_FILE ../../vhdl/Z80cpu.vhd
  60. set_global_assignment -name VHDL_FILE ../../vhdl/T80_Pack.vhd
  61. set_global_assignment -name VHDL_FILE ../../vhdl/T80_ALU.vhd
  62. set_global_assignment -name VHDL_FILE ../../vhdl/T80_MCode.vhd
  63. set_global_assignment -name VHDL_FILE ../../vhdl/T80_Reg.vhd
  64. set_global_assignment -name VHDL_FILE ../../vhdl/T80se.vhd
  65. set_global_assignment -name VHDL_FILE ../../vhdl/MMU.vhd
  66. set_global_assignment -name VHDL_FILE ../../vhdl/MonZ80.vhd
  67. set_global_assignment -name VHDL_FILE ../../vhdl/SSRAM.vhd
  68. set_global_assignment -name VHDL_FILE ../../vhdl/uart_interface.vhd
  69. set_global_assignment -name VHDL_FILE ../../vhdl/fifo.vhd
  70. set_global_assignment -name VHDL_FILE ../../vhdl/uart.vhd
  71. set_global_assignment -name VHDL_FILE ../../vhdl/timer.vhd
  72. set_global_assignment -name VHDL_FILE ../../vhdl/board/de2/pll_de2.vhd
  73. set_global_assignment -name VHDL_FILE ../../vhdl/clkscale.vhd
  74. set_global_assignment -name VHDL_FILE ../../vhdl/RAM4K36.vhd
  75. set_global_assignment -name VHDL_FILE ../../vhdl/RAM4K9.vhd
  76. set_location_assignment PIN_G26 -to rst_n_pad_i
  77. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to rst_n_pad_i
  78. set_location_assignment PIN_N2 -to sys_clk_pad_i
  79. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to sys_clk_pad_i
  80. set_location_assignment PIN_C25 -to serial_rx
  81. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to serial_rx
  82. set_location_assignment PIN_B25 -to serial_tx
  83. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to serial_tx
  84. set_location_assignment PIN_AE23 -to leds[0]
  85. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[0]
  86. set_location_assignment PIN_AF23 -to leds[1]
  87. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[1]
  88. set_location_assignment PIN_AB21 -to leds[2]
  89. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[2]
  90. set_location_assignment PIN_AC22 -to leds[3]
  91. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[3]
  92. set_location_assignment PIN_AD22 -to leds[4]
  93. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[4]
  94. set_location_assignment PIN_T6 -to SDRAM_ADDR[0]
  95. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[0]
  96. set_location_assignment PIN_V4 -to SDRAM_ADDR[1]
  97. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[1]
  98. set_location_assignment PIN_V3 -to SDRAM_ADDR[2]
  99. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[2]
  100. set_location_assignment PIN_W2 -to SDRAM_ADDR[3]
  101. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[3]
  102. set_location_assignment PIN_W1 -to SDRAM_ADDR[4]
  103. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[4]
  104. set_location_assignment PIN_U6 -to SDRAM_ADDR[5]
  105. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[5]
  106. set_location_assignment PIN_U7 -to SDRAM_ADDR[6]
  107. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[6]
  108. set_location_assignment PIN_U5 -to SDRAM_ADDR[7]
  109. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[7]
  110. set_location_assignment PIN_W4 -to SDRAM_ADDR[8]
  111. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[8]
  112. set_location_assignment PIN_W3 -to SDRAM_ADDR[9]
  113. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[9]
  114. set_location_assignment PIN_Y1 -to SDRAM_ADDR[10]
  115. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[10]
  116. set_location_assignment PIN_V5 -to SDRAM_ADDR[11]
  117. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[11]
  118. set_location_assignment PIN_V6 -to SDRAM_DQ[0]
  119. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[0]
  120. set_location_assignment PIN_AA2 -to SDRAM_DQ[1]
  121. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[1]
  122. set_location_assignment PIN_AA1 -to SDRAM_DQ[2]
  123. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[2]
  124. set_location_assignment PIN_Y3 -to SDRAM_DQ[3]
  125. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[3]
  126. set_location_assignment PIN_Y4 -to SDRAM_DQ[4]
  127. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[4]
  128. set_location_assignment PIN_R8 -to SDRAM_DQ[5]
  129. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[5]
  130. set_location_assignment PIN_T8 -to SDRAM_DQ[6]
  131. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[6]
  132. set_location_assignment PIN_V7 -to SDRAM_DQ[7]
  133. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[7]
  134. set_location_assignment PIN_W6 -to SDRAM_DQ[8]
  135. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[8]
  136. set_location_assignment PIN_AB2 -to SDRAM_DQ[9]
  137. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[9]
  138. set_location_assignment PIN_AB1 -to SDRAM_DQ[10]
  139. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[10]
  140. set_location_assignment PIN_AA4 -to SDRAM_DQ[11]
  141. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[11]
  142. set_location_assignment PIN_AA3 -to SDRAM_DQ[12]
  143. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[12]
  144. set_location_assignment PIN_AC2 -to SDRAM_DQ[13]
  145. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[13]
  146. set_location_assignment PIN_AC1 -to SDRAM_DQ[14]
  147. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[14]
  148. set_location_assignment PIN_AA5 -to SDRAM_DQ[15]
  149. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[15]
  150. set_location_assignment PIN_AD2 -to SDRAM_DQM[0]
  151. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQM[0]
  152. set_location_assignment PIN_Y5 -to SDRAM_DQM[1]
  153. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQM[1]
  154. set_location_assignment PIN_AE2 -to SDRAM_BA[0]
  155. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_BA[0]
  156. set_location_assignment PIN_AE3 -to SDRAM_BA[1]
  157. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_BA[1]
  158. set_location_assignment PIN_AB3 -to SDRAM_nCAS
  159. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nCAS
  160. set_location_assignment PIN_AA6 -to SDRAM_CKE
  161. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CKE
  162. set_location_assignment PIN_AC3 -to SDRAM_CS
  163. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CS
  164. set_location_assignment PIN_AB4 -to SDRAM_nRAS
  165. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nRAS
  166. set_location_assignment PIN_AD3 -to SDRAM_nWE
  167. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nWE
  168. set_location_assignment PIN_AA7 -to SDRAM_CLK
  169. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CLK
  170. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_command"
  171. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_address"
  172. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_dqm"
  173. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_cke"
  174. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_bank"
  175. set_instance_assignment -name FAST_INPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_data"
  176. set_instance_assignment -name FAST_INPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|captured_data"
  177. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_ADDR
  178. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_BA
  179. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CKE
  180. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CLK
  181. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CS
  182. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQM
  183. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nCAS
  184. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nRAS
  185. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nWE
  186. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQ
  187. set_instance_assignment -name FAST_INPUT_REGISTER ON -to SDRAM_DQ
  188. set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
  189. # Commit assignments
  190. export_assignments
  191. # Close project
  192. if {$need_to_close_project} {
  193. project_close
  194. }
  195. }