de2_70.tcl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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_70.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_70"]} {
  24. puts "Project de2_70 is not open"
  25. set make_assignments 0
  26. }
  27. } else {
  28. # Only open if not already open
  29. if {[project_exists de2_70]} {
  30. project_open -revision de2_70 de2_70
  31. } else {
  32. project_new -revision de2_70 de2_70
  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 EP2C70F896C6
  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_70/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_70/top_level_de2_70.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_70/pll_de2_70.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_T29 -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_AD15 -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_D21 -to serial_rx
  81. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to serial_rx
  82. set_location_assignment PIN_E21 -to serial_tx
  83. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to serial_tx
  84. set_location_assignment PIN_AJ6 -to leds[0]
  85. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[0]
  86. set_location_assignment PIN_AK5 -to leds[1]
  87. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[1]
  88. set_location_assignment PIN_AJ5 -to leds[2]
  89. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[2]
  90. set_location_assignment PIN_AJ4 -to leds[3]
  91. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[3]
  92. set_location_assignment PIN_AK3 -to leds[4]
  93. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to leds[4]
  94. set_location_assignment PIN_AA4 -to SDRAM_ADDR[0]
  95. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[0]
  96. set_location_assignment PIN_AA5 -to SDRAM_ADDR[1]
  97. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[1]
  98. set_location_assignment PIN_AA6 -to SDRAM_ADDR[2]
  99. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[2]
  100. set_location_assignment PIN_AB5 -to SDRAM_ADDR[3]
  101. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[3]
  102. set_location_assignment PIN_AB7 -to SDRAM_ADDR[4]
  103. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[4]
  104. set_location_assignment PIN_AC4 -to SDRAM_ADDR[5]
  105. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[5]
  106. set_location_assignment PIN_AC5 -to SDRAM_ADDR[6]
  107. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[6]
  108. set_location_assignment PIN_AC6 -to SDRAM_ADDR[7]
  109. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[7]
  110. set_location_assignment PIN_AD4 -to SDRAM_ADDR[8]
  111. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[8]
  112. set_location_assignment PIN_AC7 -to SDRAM_ADDR[9]
  113. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[9]
  114. set_location_assignment PIN_Y8 -to SDRAM_ADDR[10]
  115. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[10]
  116. set_location_assignment PIN_AE4 -to SDRAM_ADDR[11]
  117. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[11]
  118. set_location_assignment PIN_AF4 -to SDRAM_ADDR[12]
  119. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_ADDR[12]
  120. set_location_assignment PIN_AC1 -to SDRAM_DQ[0]
  121. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[0]
  122. set_location_assignment PIN_AC2 -to SDRAM_DQ[1]
  123. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[1]
  124. set_location_assignment PIN_AC3 -to SDRAM_DQ[2]
  125. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[2]
  126. set_location_assignment PIN_AD1 -to SDRAM_DQ[3]
  127. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[3]
  128. set_location_assignment PIN_AD2 -to SDRAM_DQ[4]
  129. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[4]
  130. set_location_assignment PIN_AD3 -to SDRAM_DQ[5]
  131. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[5]
  132. set_location_assignment PIN_AE1 -to SDRAM_DQ[6]
  133. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[6]
  134. set_location_assignment PIN_AE2 -to SDRAM_DQ[7]
  135. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[7]
  136. set_location_assignment PIN_AE3 -to SDRAM_DQ[8]
  137. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[8]
  138. set_location_assignment PIN_AF1 -to SDRAM_DQ[9]
  139. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[9]
  140. set_location_assignment PIN_AF2 -to SDRAM_DQ[10]
  141. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[10]
  142. set_location_assignment PIN_AF3 -to SDRAM_DQ[11]
  143. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[11]
  144. set_location_assignment PIN_AG2 -to SDRAM_DQ[12]
  145. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[12]
  146. set_location_assignment PIN_AG3 -to SDRAM_DQ[13]
  147. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[13]
  148. set_location_assignment PIN_AH1 -to SDRAM_DQ[14]
  149. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[14]
  150. set_location_assignment PIN_AH2 -to SDRAM_DQ[15]
  151. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQ[15]
  152. set_location_assignment PIN_V9 -to SDRAM_DQM[0]
  153. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQM[0]
  154. set_location_assignment PIN_AB6 -to SDRAM_DQM[1]
  155. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_DQM[1]
  156. set_location_assignment PIN_AA9 -to SDRAM_BA[0]
  157. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_BA[0]
  158. set_location_assignment PIN_AA10 -to SDRAM_BA[1]
  159. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_BA[1]
  160. set_location_assignment PIN_W10 -to SDRAM_nCAS
  161. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nCAS
  162. set_location_assignment PIN_AA8 -to SDRAM_CKE
  163. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CKE
  164. set_location_assignment PIN_Y10 -to SDRAM_CS
  165. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CS
  166. set_location_assignment PIN_Y9 -to SDRAM_nRAS
  167. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nRAS
  168. set_location_assignment PIN_W9 -to SDRAM_nWE
  169. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_nWE
  170. set_location_assignment PIN_AD6 -to SDRAM_CLK
  171. set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SDRAM_CLK
  172. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_command"
  173. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_address"
  174. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_dqm"
  175. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_cke"
  176. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_bank"
  177. set_instance_assignment -name FAST_INPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|iob_data"
  178. set_instance_assignment -name FAST_INPUT_REGISTER ON -to "DRAM:dram|SDRAM_Controller:sdram_ctrl|captured_data"
  179. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_ADDR
  180. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_BA
  181. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CKE
  182. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CLK
  183. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_CS
  184. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQM
  185. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nCAS
  186. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nRAS
  187. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nWE
  188. set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQ
  189. set_instance_assignment -name FAST_INPUT_REGISTER ON -to SDRAM_DQ
  190. set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
  191. # Commit assignments
  192. export_assignments
  193. # Close project
  194. if {$need_to_close_project} {
  195. project_close
  196. }
  197. }