§ Устройство
Device Model: 5CEBA4F23C7Скачать минимальный проект.
§ makefile
all: pgm pgm: quartus_pgm -m jtag -o "p;output_files/de0.sof" syn: quartus_map --read_settings_files=on --write_settings_files=off de0 -c de0 quartus_fit --read_settings_files=off --write_settings_files=off de0 -c de0 quartus_asm --read_settings_files=on --write_settings_files=off de0 -c de0 cdb: quartus_cdb de0 -c de0 --update_mif quartus_asm --read_settings_files=on --write_settings_files=off de0 -c de0 sta: quartus_sta de0 -c de0 clean: rm -rf db incremental_db simulation timing greybox_tmp *.jdi *.pof *.sld *.rpt *.summary *.sof *.done *.pin *.bak *.smsg *.qws *.vcd rm -rf *.gtkw *.qqq *.jic *.map .qsys_editundo_redo.txt PLLJ_PLLSPE_INFO.txt c5_pin_model_dump.txt output_files obj_dir *.o *.elf *.lst
§ de0.v
Это главный файл, включает в себя модуль PLL.module de0( /* Reset */ input RESET_N, /* Clocks */ input CLOCK_50, input CLOCK2_50, input CLOCK3_50, inout CLOCK4_50, /* DRAM */ output DRAM_CKE, output DRAM_CLK, output [1:0] DRAM_BA, output [12:0] DRAM_ADDR, inout [15:0] DRAM_DQ, output DRAM_CAS_N, output DRAM_RAS_N, output DRAM_WE_N, output DRAM_CS_N, output DRAM_LDQM, output DRAM_UDQM, /* GPIO */ inout [35:0] GPIO_0, inout [35:0] GPIO_1, /* 7-Segment LED */ output [6:0] HEX0, output [6:0] HEX1, output [6:0] HEX2, output [6:0] HEX3, output [6:0] HEX4, output [6:0] HEX5, /* Keys */ input [3:0] KEY, /* LED */ output [9:0] LEDR, /* PS/2 */ inout PS2_CLK, inout PS2_DAT, inout PS2_CLK2, inout PS2_DAT2, /* SD-Card */ output SD_CLK, inout SD_CMD, inout [3:0] SD_DATA, /* Switch */ input [9:0] SW, /* VGA */ output [3:0] VGA_R, output [3:0] VGA_G, output [3:0] VGA_B, output VGA_HS, output VGA_VS ); // Z-state assign DRAM_DQ = 16'hzzzz; assign GPIO_0 = 36'hzzzzzzzz; assign GPIO_1 = 36'hzzzzzzzz; // LED OFF assign HEX0 = 7'b1111111; assign HEX1 = 7'b1111111; assign HEX2 = 7'b1111111; assign HEX3 = 7'b1111111; assign HEX4 = 7'b1111111; assign HEX5 = 7'b1111111; // --------------------------------------------------------------------- wire clock_25; wire clock_50; wire clock_75; wire clock_100; wire clock_106; pll u0( // Источник тактирования .clkin (CLOCK_50), // Производные частоты .m25 (clock_25), .m50 (clock_50), .m75 (clock_75), .m100 (clock_100), .m106 (clock_106), ); // ----------------------------------------------------------------------- endmodule // ********************************************************************* // Модуль PLL // ********************************************************************* module pll( input wire clkin, input wire rst, output wire m25, output wire m50, output wire m75, output wire m100, output wire m106, output wire locked ); altera_pll #( .fractional_vco_multiplier("false"), .reference_clock_frequency("50.0 MHz"), .operation_mode("normal"), .number_of_clocks(5), .output_clock_frequency0("25.0 MHz"), .phase_shift0("0 ps"), .duty_cycle0(50), .output_clock_frequency1("100.0 MHz"), .phase_shift1("0 ps"), .duty_cycle1(50), .output_clock_frequency2("50 MHz"), .phase_shift2("0 ps"), .duty_cycle2(50), .output_clock_frequency3("106 MHz"), .phase_shift3("0 ps"), .duty_cycle3(50), .output_clock_frequency4("75 MHz"), .phase_shift4("0 ps"), .duty_cycle4(50), .output_clock_frequency5("0 MHz"), .phase_shift5("0 ps"), .duty_cycle5(50), .output_clock_frequency6("0 MHz"), .phase_shift6("0 ps"), .duty_cycle6(50), .output_clock_frequency7("0 MHz"), .phase_shift7("0 ps"), .duty_cycle7(50), .output_clock_frequency8("0 MHz"), .phase_shift8("0 ps"), .duty_cycle8(50), .output_clock_frequency9("0 MHz"), .phase_shift9("0 ps"), .duty_cycle9(50), .output_clock_frequency10("0 MHz"), .phase_shift10("0 ps"), .duty_cycle10(50), .output_clock_frequency11("0 MHz"), .phase_shift11("0 ps"), .duty_cycle11(50), .output_clock_frequency12("0 MHz"), .phase_shift12("0 ps"), .duty_cycle12(50), .output_clock_frequency13("0 MHz"), .phase_shift13("0 ps"), .duty_cycle13(50), .output_clock_frequency14("0 MHz"), .phase_shift14("0 ps"), .duty_cycle14(50), .output_clock_frequency15("0 MHz"), .phase_shift15("0 ps"), .duty_cycle15(50), .output_clock_frequency16("0 MHz"), .phase_shift16("0 ps"), .duty_cycle16(50), .output_clock_frequency17("0 MHz"), .phase_shift17("0 ps"), .duty_cycle17(50), .pll_type("General"), .pll_subtype("General") ) altera_pll_i ( .rst (rst), .outclk ({m75, m106, m50, m100, m25}), .locked (locked), .fboutclk ( ), .fbclk (1'b0), .refclk (clkin) ); endmodule
§ de0.qpf
"Mon May 5 11:54:18 2014" QUARTUS_VERSION = "13" # Revisions PROJECT_REVISION = "de0"DATE =
§ de0.qsf
"Cyclone V" set_global_assignment -name DEVICE 5CEBA4F23C7 set_global_assignment -name TOP_LEVEL_ENTITY "de0" set_global_assignment -name ORIGINAL_QUARTUS_VERSION 13 set_global_assignment -name LAST_QUARTUS_VERSION 15.1.0 set_global_assignment -name PROJECT_CREATION_TIME_DATE "MON MAY 5 11:54:18 2014" set_global_assignment -name NUM_PARALLEL_PROCESSORS 16 set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files #============================================================ # CLOCK2 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK2_50 #============================================================ # CLOCK3 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK3_50 #============================================================ # CLOCK4 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK4_50 #============================================================ # CLOCK #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK_50 #============================================================ # DRAM #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[9] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[10] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[11] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_ADDR[12] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_BA[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_BA[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_CAS_N set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_CKE set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_CLK set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_CS_N set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[9] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[10] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[11] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[12] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[13] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[14] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_DQ[15] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_LDQM set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_RAS_N set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_UDQM set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to DRAM_WE_N #============================================================ # GPIO #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[9] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[10] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[11] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[12] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[13] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[14] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[15] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[16] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[17] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[18] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[19] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[20] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[21] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[22] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[23] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[24] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[25] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[26] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[27] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[28] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[29] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[30] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[31] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[32] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[33] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[34] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_0[35] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[9] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[10] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[11] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[12] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[13] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[14] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[15] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[16] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[17] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[18] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[19] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[20] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[21] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[22] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[23] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[24] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[25] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[26] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[27] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[28] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[29] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[30] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[31] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[32] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[33] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[34] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO_1[35] #============================================================ # HEX #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX0[6] #============================================================ # HEX1 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX1[6] #============================================================ # HEX2 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX2[6] #============================================================ # HEX3 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX3[6] #============================================================ # HEX4 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX4[6] #============================================================ # HEX5 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to HEX5[6] #============================================================ # KEY #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to KEY[3] #============================================================ # LEDR #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to LEDR[9] #============================================================ # PS2 #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to PS2_CLK set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to PS2_CLK2 set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to PS2_DAT set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to PS2_DAT2 #============================================================ # RESET #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to RESET_N #============================================================ # SD #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_CLK set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_CMD set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_DATA[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_DATA[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_DATA[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SD_DATA[3] #============================================================ # SW #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[4] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[5] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[6] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[7] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[8] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to SW[9] #============================================================ # VGA #============================================================ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_B[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_B[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_B[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_B[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_G[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_G[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_G[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_G[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_HS set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_R[0] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_R[1] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_R[2] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_R[3] set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to VGA_VS #============================================================ # End of pin assignments by Terasic System Builder #============================================================ set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO" set_location_assignment PIN_H13 -to CLOCK2_50 set_location_assignment PIN_E10 -to CLOCK3_50 set_location_assignment PIN_V15 -to CLOCK4_50 set_location_assignment PIN_M9 -to CLOCK_50 set_location_assignment PIN_W8 -to DRAM_ADDR[0] set_location_assignment PIN_T8 -to DRAM_ADDR[1] set_location_assignment PIN_U11 -to DRAM_ADDR[2] set_location_assignment PIN_Y10 -to DRAM_ADDR[3] set_location_assignment PIN_N6 -to DRAM_ADDR[4] set_location_assignment PIN_AB10 -to DRAM_ADDR[5] set_location_assignment PIN_P12 -to DRAM_ADDR[6] set_location_assignment PIN_P7 -to DRAM_ADDR[7] set_location_assignment PIN_P8 -to DRAM_ADDR[8] set_location_assignment PIN_R5 -to DRAM_ADDR[9] set_location_assignment PIN_U8 -to DRAM_ADDR[10] set_location_assignment PIN_P6 -to DRAM_ADDR[11] set_location_assignment PIN_R7 -to DRAM_ADDR[12] set_location_assignment PIN_T7 -to DRAM_BA[0] set_location_assignment PIN_AB7 -to DRAM_BA[1] set_location_assignment PIN_V6 -to DRAM_CAS_N set_location_assignment PIN_R6 -to DRAM_CKE set_location_assignment PIN_AB11 -to DRAM_CLK set_location_assignment PIN_U6 -to DRAM_CS_N set_location_assignment PIN_Y9 -to DRAM_DQ[0] set_location_assignment PIN_T10 -to DRAM_DQ[1] set_location_assignment PIN_R9 -to DRAM_DQ[2] set_location_assignment PIN_Y11 -to DRAM_DQ[3] set_location_assignment PIN_R10 -to DRAM_DQ[4] set_location_assignment PIN_R11 -to DRAM_DQ[5] set_location_assignment PIN_R12 -to DRAM_DQ[6] set_location_assignment PIN_AA12 -to DRAM_DQ[7] set_location_assignment PIN_AA9 -to DRAM_DQ[8] set_location_assignment PIN_AB8 -to DRAM_DQ[9] set_location_assignment PIN_AA8 -to DRAM_DQ[10] set_location_assignment PIN_AA7 -to DRAM_DQ[11] set_location_assignment PIN_V10 -to DRAM_DQ[12] set_location_assignment PIN_V9 -to DRAM_DQ[13] set_location_assignment PIN_U10 -to DRAM_DQ[14] set_location_assignment PIN_T9 -to DRAM_DQ[15] set_location_assignment PIN_U12 -to DRAM_LDQM set_location_assignment PIN_AB6 -to DRAM_RAS_N set_location_assignment PIN_N8 -to DRAM_UDQM set_location_assignment PIN_AB5 -to DRAM_WE_N set_location_assignment PIN_N16 -to GPIO_0[0] set_location_assignment PIN_B16 -to GPIO_0[1] set_location_assignment PIN_M16 -to GPIO_0[2] set_location_assignment PIN_C16 -to GPIO_0[3] set_location_assignment PIN_D17 -to GPIO_0[4] set_location_assignment PIN_K20 -to GPIO_0[5] set_location_assignment PIN_K21 -to GPIO_0[6] set_location_assignment PIN_K22 -to GPIO_0[7] set_location_assignment PIN_M20 -to GPIO_0[8] set_location_assignment PIN_M21 -to GPIO_0[9] set_location_assignment PIN_N21 -to GPIO_0[10] set_location_assignment PIN_R22 -to GPIO_0[11] set_location_assignment PIN_R21 -to GPIO_0[12] set_location_assignment PIN_T22 -to GPIO_0[13] set_location_assignment PIN_N20 -to GPIO_0[14] set_location_assignment PIN_N19 -to GPIO_0[15] set_location_assignment PIN_M22 -to GPIO_0[16] set_location_assignment PIN_P19 -to GPIO_0[17] set_location_assignment PIN_L22 -to GPIO_0[18] set_location_assignment PIN_P17 -to GPIO_0[19] set_location_assignment PIN_P16 -to GPIO_0[20] set_location_assignment PIN_M18 -to GPIO_0[21] set_location_assignment PIN_L18 -to GPIO_0[22] set_location_assignment PIN_L17 -to GPIO_0[23] set_location_assignment PIN_L19 -to GPIO_0[24] set_location_assignment PIN_K17 -to GPIO_0[25] set_location_assignment PIN_K19 -to GPIO_0[26] set_location_assignment PIN_P18 -to GPIO_0[27] set_location_assignment PIN_R15 -to GPIO_0[28] set_location_assignment PIN_R17 -to GPIO_0[29] set_location_assignment PIN_R16 -to GPIO_0[30] set_location_assignment PIN_T20 -to GPIO_0[31] set_location_assignment PIN_T19 -to GPIO_0[32] set_location_assignment PIN_T18 -to GPIO_0[33] set_location_assignment PIN_T17 -to GPIO_0[34] set_location_assignment PIN_T15 -to GPIO_0[35] set_location_assignment PIN_H16 -to GPIO_1[0] set_location_assignment PIN_A12 -to GPIO_1[1] set_location_assignment PIN_H15 -to GPIO_1[2] set_location_assignment PIN_B12 -to GPIO_1[3] set_location_assignment PIN_A13 -to GPIO_1[4] set_location_assignment PIN_B13 -to GPIO_1[5] set_location_assignment PIN_C13 -to GPIO_1[6] set_location_assignment PIN_D13 -to GPIO_1[7] set_location_assignment PIN_G18 -to GPIO_1[8] set_location_assignment PIN_G17 -to GPIO_1[9] set_location_assignment PIN_H18 -to GPIO_1[10] set_location_assignment PIN_J18 -to GPIO_1[11] set_location_assignment PIN_J19 -to GPIO_1[12] set_location_assignment PIN_G11 -to GPIO_1[13] set_location_assignment PIN_H10 -to GPIO_1[14] set_location_assignment PIN_J11 -to GPIO_1[15] set_location_assignment PIN_H14 -to GPIO_1[16] set_location_assignment PIN_A15 -to GPIO_1[17] set_location_assignment PIN_J13 -to GPIO_1[18] set_location_assignment PIN_L8 -to GPIO_1[19] set_location_assignment PIN_A14 -to GPIO_1[20] set_location_assignment PIN_B15 -to GPIO_1[21] set_location_assignment PIN_C15 -to GPIO_1[22] set_location_assignment PIN_E14 -to GPIO_1[23] set_location_assignment PIN_E15 -to GPIO_1[24] set_location_assignment PIN_E16 -to GPIO_1[25] set_location_assignment PIN_F14 -to GPIO_1[26] set_location_assignment PIN_F15 -to GPIO_1[27] set_location_assignment PIN_F13 -to GPIO_1[28] set_location_assignment PIN_F12 -to GPIO_1[29] set_location_assignment PIN_G16 -to GPIO_1[30] set_location_assignment PIN_G15 -to GPIO_1[31] set_location_assignment PIN_G13 -to GPIO_1[32] set_location_assignment PIN_G12 -to GPIO_1[33] set_location_assignment PIN_J17 -to GPIO_1[34] set_location_assignment PIN_K16 -to GPIO_1[35] set_location_assignment PIN_U21 -to HEX0[0] set_location_assignment PIN_V21 -to HEX0[1] set_location_assignment PIN_W22 -to HEX0[2] set_location_assignment PIN_W21 -to HEX0[3] set_location_assignment PIN_Y22 -to HEX0[4] set_location_assignment PIN_Y21 -to HEX0[5] set_location_assignment PIN_AA22 -to HEX0[6] set_location_assignment PIN_AA20 -to HEX1[0] set_location_assignment PIN_AB20 -to HEX1[1] set_location_assignment PIN_AA19 -to HEX1[2] set_location_assignment PIN_AA18 -to HEX1[3] set_location_assignment PIN_AB18 -to HEX1[4] set_location_assignment PIN_AA17 -to HEX1[5] set_location_assignment PIN_U22 -to HEX1[6] set_location_assignment PIN_Y19 -to HEX2[0] set_location_assignment PIN_AB17 -to HEX2[1] set_location_assignment PIN_AA10 -to HEX2[2] set_location_assignment PIN_Y14 -to HEX2[3] set_location_assignment PIN_V14 -to HEX2[4] set_location_assignment PIN_AB22 -to HEX2[5] set_location_assignment PIN_AB21 -to HEX2[6] set_location_assignment PIN_Y16 -to HEX3[0] set_location_assignment PIN_W16 -to HEX3[1] set_location_assignment PIN_Y17 -to HEX3[2] set_location_assignment PIN_V16 -to HEX3[3] set_location_assignment PIN_U17 -to HEX3[4] set_location_assignment PIN_V18 -to HEX3[5] set_location_assignment PIN_V19 -to HEX3[6] set_location_assignment PIN_U20 -to HEX4[0] set_location_assignment PIN_Y20 -to HEX4[1] set_location_assignment PIN_V20 -to HEX4[2] set_location_assignment PIN_U16 -to HEX4[3] set_location_assignment PIN_U15 -to HEX4[4] set_location_assignment PIN_Y15 -to HEX4[5] set_location_assignment PIN_P9 -to HEX4[6] set_location_assignment PIN_N9 -to HEX5[0] set_location_assignment PIN_M8 -to HEX5[1] set_location_assignment PIN_T14 -to HEX5[2] set_location_assignment PIN_P14 -to HEX5[3] set_location_assignment PIN_C1 -to HEX5[4] set_location_assignment PIN_C2 -to HEX5[5] set_location_assignment PIN_W19 -to HEX5[6] set_location_assignment PIN_U7 -to KEY[0] set_location_assignment PIN_W9 -to KEY[1] set_location_assignment PIN_M7 -to KEY[2] set_location_assignment PIN_M6 -to KEY[3] set_location_assignment PIN_AA2 -to LEDR[0] set_location_assignment PIN_AA1 -to LEDR[1] set_location_assignment PIN_W2 -to LEDR[2] set_location_assignment PIN_Y3 -to LEDR[3] set_location_assignment PIN_N2 -to LEDR[4] set_location_assignment PIN_N1 -to LEDR[5] set_location_assignment PIN_U2 -to LEDR[6] set_location_assignment PIN_U1 -to LEDR[7] set_location_assignment PIN_L2 -to LEDR[8] set_location_assignment PIN_L1 -to LEDR[9] set_location_assignment PIN_D3 -to PS2_CLK set_location_assignment PIN_E2 -to PS2_CLK2 set_location_assignment PIN_G2 -to PS2_DAT set_location_assignment PIN_G1 -to PS2_DAT2 set_location_assignment PIN_P22 -to RESET_N set_location_assignment PIN_H11 -to SD_CLK set_location_assignment PIN_B11 -to SD_CMD set_location_assignment PIN_K9 -to SD_DATA[0] set_location_assignment PIN_D12 -to SD_DATA[1] set_location_assignment PIN_E12 -to SD_DATA[2] set_location_assignment PIN_C11 -to SD_DATA[3] set_location_assignment PIN_U13 -to SW[0] set_location_assignment PIN_V13 -to SW[1] set_location_assignment PIN_T13 -to SW[2] set_location_assignment PIN_T12 -to SW[3] set_location_assignment PIN_AA15 -to SW[4] set_location_assignment PIN_AB15 -to SW[5] set_location_assignment PIN_AA14 -to SW[6] set_location_assignment PIN_AA13 -to SW[7] set_location_assignment PIN_AB13 -to SW[8] set_location_assignment PIN_AB12 -to SW[9] set_location_assignment PIN_B6 -to VGA_B[0] set_location_assignment PIN_B7 -to VGA_B[1] set_location_assignment PIN_A8 -to VGA_B[2] set_location_assignment PIN_A7 -to VGA_B[3] set_location_assignment PIN_L7 -to VGA_G[0] set_location_assignment PIN_K7 -to VGA_G[1] set_location_assignment PIN_J7 -to VGA_G[2] set_location_assignment PIN_J8 -to VGA_G[3] set_location_assignment PIN_H8 -to VGA_HS set_location_assignment PIN_A9 -to VGA_R[0] set_location_assignment PIN_B10 -to VGA_R[1] set_location_assignment PIN_C9 -to VGA_R[2] set_location_assignment PIN_A5 -to VGA_R[3] set_location_assignment PIN_G8 -to VGA_VS #============================================================ 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 STRATIX_DEVICE_IO_STANDARD "2.5 V" set_global_assignment -name OPTIMIZATION_TECHNIQUE SPEED set_global_assignment -name SYNTH_TIMING_DRIVEN_SYNTHESIS ON set_global_assignment -name OPTIMIZE_HOLD_TIMING "ALL PATHS" set_global_assignment -name OPTIMIZE_MULTI_CORNER_TIMING ON set_global_assignment -name FITTER_EFFORT "STANDARD FIT" set_global_assignment -name STRATIXV_CONFIGURATION_SCHEME "ACTIVE SERIAL X1" set_global_assignment -name USE_CONFIGURATION_DEVICE ON set_global_assignment -name STRATIXII_CONFIGURATION_DEVICE EPCS64 set_global_assignment -name CRC_ERROR_OPEN_DRAIN ON set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall set_global_assignment -name ACTIVE_SERIAL_CLOCK FREQ_100MHZ set_global_assignment -name EDA_SIMULATION_TOOL "ModelSim-Altera (Verilog)" set_global_assignment -name EDA_OUTPUT_DATA_FORMAT "VERILOG HDL" -section_id eda_simulation set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top#============================================================ # Build by Terasic V1.0.0 #============================================================ set_global_assignment -name FAMILY