1 |
2 |
jamieiles |
# Copyright Jamie Iles, 2017
|
2 |
|
|
#
|
3 |
|
|
# This file is part of s80x86.
|
4 |
|
|
#
|
5 |
|
|
# s80x86 is free software: you can redistribute it and/or modify
|
6 |
|
|
# it under the terms of the GNU General Public License as published by
|
7 |
|
|
# the Free Software Foundation, either version 3 of the License, or
|
8 |
|
|
# (at your option) any later version.
|
9 |
|
|
#
|
10 |
|
|
# s80x86 is distributed in the hope that it will be useful,
|
11 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
|
|
# GNU General Public License for more details.
|
14 |
|
|
#
|
15 |
|
|
# You should have received a copy of the GNU General Public License
|
16 |
|
|
# along with s80x86. If not, see .
|
17 |
|
|
|
18 |
|
|
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF
|
19 |
|
|
|
20 |
|
|
set_global_assignment -name SMART_RECOMPILE ON
|
21 |
|
|
set_global_assignment -name PHYSICAL_SYNTHESIS_COMBO_LOGIC ON
|
22 |
|
|
set_global_assignment -name PHYSICAL_SYNTHESIS_REGISTER_RETIMING ON
|
23 |
|
|
set_global_assignment -name PHYSICAL_SYNTHESIS_ASYNCHRONOUS_SIGNAL_PIPELINING ON
|
24 |
|
|
set_global_assignment -name PHYSICAL_SYNTHESIS_REGISTER_DUPLICATION ON
|
25 |
|
|
set_global_assignment -name PHYSICAL_SYNTHESIS_EFFORT EXTRA
|
26 |
|
|
set_global_assignment -name OPTIMIZATION_TECHNIQUE SPEED
|
27 |
|
|
|
28 |
|
|
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVCMOS"
|
29 |
|
|
|
30 |
|
|
set_location_assignment PIN_R8 -to clk
|
31 |
|
|
set_location_assignment PIN_J15 -to rst_in_n
|
32 |
|
|
|
33 |
|
|
# SDRAM
|
34 |
|
|
set_location_assignment PIN_P2 -to s_addr[0]
|
35 |
|
|
set_location_assignment PIN_N5 -to s_addr[1]
|
36 |
|
|
set_location_assignment PIN_N6 -to s_addr[2]
|
37 |
|
|
set_location_assignment PIN_M8 -to s_addr[3]
|
38 |
|
|
set_location_assignment PIN_P8 -to s_addr[4]
|
39 |
|
|
set_location_assignment PIN_T7 -to s_addr[5]
|
40 |
|
|
set_location_assignment PIN_N8 -to s_addr[6]
|
41 |
|
|
set_location_assignment PIN_T6 -to s_addr[7]
|
42 |
|
|
set_location_assignment PIN_R1 -to s_addr[8]
|
43 |
|
|
set_location_assignment PIN_P1 -to s_addr[9]
|
44 |
|
|
set_location_assignment PIN_N2 -to s_addr[10]
|
45 |
|
|
set_location_assignment PIN_N1 -to s_addr[11]
|
46 |
|
|
set_location_assignment PIN_L4 -to s_addr[12]
|
47 |
|
|
set_location_assignment PIN_G2 -to s_data[0]
|
48 |
|
|
set_location_assignment PIN_G1 -to s_data[1]
|
49 |
|
|
set_location_assignment PIN_L8 -to s_data[2]
|
50 |
|
|
set_location_assignment PIN_K5 -to s_data[3]
|
51 |
|
|
set_location_assignment PIN_K2 -to s_data[4]
|
52 |
|
|
set_location_assignment PIN_J2 -to s_data[5]
|
53 |
|
|
set_location_assignment PIN_J1 -to s_data[6]
|
54 |
|
|
set_location_assignment PIN_R7 -to s_data[7]
|
55 |
|
|
set_location_assignment PIN_T4 -to s_data[8]
|
56 |
|
|
set_location_assignment PIN_T2 -to s_data[9]
|
57 |
|
|
set_location_assignment PIN_T3 -to s_data[10]
|
58 |
|
|
set_location_assignment PIN_R3 -to s_data[11]
|
59 |
|
|
set_location_assignment PIN_R5 -to s_data[12]
|
60 |
|
|
set_location_assignment PIN_P3 -to s_data[13]
|
61 |
|
|
set_location_assignment PIN_N3 -to s_data[14]
|
62 |
|
|
set_location_assignment PIN_K1 -to s_data[15]
|
63 |
|
|
set_location_assignment PIN_P6 -to s_cs_n
|
64 |
|
|
set_location_assignment PIN_L7 -to s_clken
|
65 |
|
|
set_location_assignment PIN_L1 -to s_cas_n
|
66 |
|
|
set_location_assignment PIN_R6 -to s_bytesel[0]
|
67 |
|
|
set_location_assignment PIN_T5 -to s_bytesel[1]
|
68 |
|
|
set_location_assignment PIN_L2 -to s_ras_n
|
69 |
|
|
set_location_assignment PIN_C2 -to s_wr_en
|
70 |
|
|
set_location_assignment PIN_M7 -to s_banksel[0]
|
71 |
|
|
set_location_assignment PIN_M6 -to s_banksel[1]
|
72 |
|
|
set_location_assignment PIN_R4 -to sdr_clk
|
73 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to s_*
|
74 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to sdr_clk
|
75 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_ras_n
|
76 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_cas_n
|
77 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_wr_en
|
78 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_bytesel
|
79 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_data
|
80 |
|
|
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to s_banksel
|
81 |
|
|
|
82 |
|
|
# IO
|
83 |
|
|
set_location_assignment PIN_A15 -to leds[0]
|
84 |
|
|
set_location_assignment PIN_A13 -to leds[1]
|
85 |
|
|
set_location_assignment PIN_B13 -to leds[2]
|
86 |
|
|
set_location_assignment PIN_A11 -to leds[3]
|
87 |
|
|
set_location_assignment PIN_D1 -to leds[4]
|
88 |
|
|
set_location_assignment PIN_F3 -to leds[5]
|
89 |
|
|
set_location_assignment PIN_B1 -to leds[6]
|
90 |
|
|
set_location_assignment PIN_L3 -to leds[7]
|
91 |
|
|
|
92 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to leds[*]
|
93 |
|
|
|
94 |
|
|
# UART
|
95 |
|
|
set_location_assignment PIN_C3 -to uart_tx
|
96 |
|
|
set_location_assignment PIN_A3 -to uart_rx
|
97 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to uart_tx
|
98 |
|
|
set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to uart_rx
|
99 |
|
|
|
100 |
|
|
# SPI
|
101 |
|
|
set_location_assignment PIN_D12 -to spi_mosi
|
102 |
|
|
set_location_assignment PIN_B12 -to spi_miso
|
103 |
|
|
set_location_assignment PIN_A12 -to spi_ncs
|
104 |
|
|
set_location_assignment PIN_D11 -to spi_sclk
|
105 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to spi_mosi
|
106 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to spi_ncs
|
107 |
|
|
set_instance_assignment -name CURRENT_STRENGTH_NEW 2MA -to spi_sclk
|