| 1 |
164 |
rkastl |
# SDHC-SC-Core
|
| 2 |
|
|
# Secure Digital High Capacity Self Configuring Core
|
| 3 |
|
|
#
|
| 4 |
170 |
rkastl |
# (C) Copyright 2010, Rainer Kastl
|
| 5 |
|
|
# All rights reserved.
|
| 6 |
164 |
rkastl |
#
|
| 7 |
170 |
rkastl |
# Redistribution and use in source and binary forms, with or without
|
| 8 |
|
|
# modification, are permitted provided that the following conditions are met:
|
| 9 |
|
|
# * Redistributions of source code must retain the above copyright
|
| 10 |
|
|
# notice, this list of conditions and the following disclaimer.
|
| 11 |
|
|
# * Redistributions in binary form must reproduce the above copyright
|
| 12 |
|
|
# notice, this list of conditions and the following disclaimer in the
|
| 13 |
|
|
# documentation and/or other materials provided with the distribution.
|
| 14 |
|
|
# * Neither the name of the <organization> nor the
|
| 15 |
|
|
# names of its contributors may be used to endorse or promote products
|
| 16 |
|
|
# derived from this software without specific prior written permission.
|
| 17 |
164 |
rkastl |
#
|
| 18 |
170 |
rkastl |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
|
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 21 |
|
|
# DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
| 22 |
|
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 23 |
|
|
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 24 |
|
|
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
| 25 |
|
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 26 |
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 27 |
|
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
164 |
rkastl |
#
|
| 29 |
|
|
# File : Pins.tcl
|
| 30 |
|
|
# Owner : Rainer Kastl
|
| 31 |
|
|
# Description : Pin & Location Assignments
|
| 32 |
|
|
# Links :
|
| 33 |
|
|
#
|
| 34 |
|
|
|
| 35 |
124 |
rkastl |
# Signal Pin Pullup
|
| 36 |
|
|
set pins {
|
| 37 |
|
|
iClk A12 0
|
| 38 |
|
|
inResetAsync Y20 1
|
| 39 |
|
|
ioCmd A8 1
|
| 40 |
|
|
ioData[0] A9 1
|
| 41 |
|
|
ioData[1] D6 1
|
| 42 |
|
|
ioData[2] C14 1
|
| 43 |
|
|
ioData[3] B8 1
|
| 44 |
|
|
oSclk B9 0
|
| 45 |
|
|
oIcs307Sclk C10 0
|
| 46 |
|
|
oIcs307Data C9 0
|
| 47 |
|
|
oIcs307Strobe E9 0
|
| 48 |
|
|
oLedBank[0] Y6 0
|
| 49 |
|
|
oLedBank[1] W5 0
|
| 50 |
|
|
oLedBank[2] Y5 0
|
| 51 |
|
|
oLedBank[3] Y7 0
|
| 52 |
|
|
oLedBank[4] V8 0
|
| 53 |
|
|
oLedBank[5] W8 0
|
| 54 |
|
|
oLedBank[6] Y9 0
|
| 55 |
|
|
oLedBank[7] W7 0
|
| 56 |
|
|
oDigitAdr[3] Y3 0
|
| 57 |
|
|
oDigitAdr[2] Y4 0
|
| 58 |
|
|
oDigitAdr[1] W4 0
|
| 59 |
|
|
oTx B5 0
|
| 60 |
|
|
}
|
| 61 |
|
|
|
| 62 |
|
|
# Set according to pins
|
| 63 |
|
|
source ../../../syn/pins.tcl
|
| 64 |
|
|
|
| 65 |
|
|
set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED WITH WEAK PULL-UP"
|
| 66 |
|
|
|
| 67 |
|
|
# #set_location_assignment PIN_B20 -to AVRAD[0]
|
| 68 |
|
|
# #set_location_assignment PIN_A20 -to AVRAD[1]
|
| 69 |
|
|
# #set_location_assignment PIN_B19 -to AVRAD[2]
|
| 70 |
|
|
# #set_location_assignment PIN_A19 -to AVRAD[3]
|
| 71 |
|
|
# #set_location_assignment PIN_B18 -to AVRAD[4]
|
| 72 |
|
|
# #set_location_assignment PIN_A18 -to AVRAD[5]
|
| 73 |
|
|
# #set_location_assignment PIN_B17 -to AVRAD[6]
|
| 74 |
|
|
# #set_location_assignment PIN_A17 -to AVRAD[7]
|
| 75 |
|
|
# #set_location_assignment PIN_A11 -to AVRADR[8]
|
| 76 |
|
|
# #set_location_assignment PIN_A13 -to AVRADR[9]
|
| 77 |
|
|
# #set_location_assignment PIN_B13 -to AVRADR[10]
|
| 78 |
|
|
# #set_location_assignment PIN_A14 -to AVRADR[11]
|
| 79 |
|
|
# #set_location_assignment PIN_B14 -to AVRADR[12]
|
| 80 |
|
|
# #set_location_assignment PIN_A15 -to AVRADR[13]
|
| 81 |
|
|
# #set_location_assignment PIN_B15 -to AVRADR[14]
|
| 82 |
|
|
# #set_location_assignment PIN_A16 -to AVRADR[15]
|
| 83 |
|
|
# #set_location_assignment PIN_B16 -to AVRALE
|
| 84 |
|
|
# #set_location_assignment PIN_E15 -to AVRIRQ
|
| 85 |
|
|
# #set_location_assignment PIN_B11 -to AVRRD
|
| 86 |
|
|
# #set_location_assignment PIN_A10 -to AVRWR
|
| 87 |
|
|
# #set_location_assignment PIN_C21 -to BCLK
|
| 88 |
|
|
# #set_location_assignment PIN_D22 -to DIN
|
| 89 |
|
|
# #set_location_assignment PIN_E22 -to DOUT
|
| 90 |
|
|
# #set_location_assignment PIN_D21 -to LRCIN
|
| 91 |
|
|
# #set_location_assignment PIN_E21 -to LRCOUT
|
| 92 |
|
|
# #set_location_assignment PIN_E19 -to MCLK
|
| 93 |
|
|
# set_location_assignment PIN_A12 -to iClk
|
| 94 |
|
|
# #set_location_assignment PIN_AB11 -to iClk
|
| 95 |
|
|
# #set_location_assignment PIN_C22 -to CS
|
| 96 |
|
|
# set_location_assignment PIN_AB5 -to inKey1
|
| 97 |
|
|
# set_location_assignment PIN_AA5 -to inKey2
|
| 98 |
|
|
# set_location_assignment PIN_AB4 -to inKey3
|
| 99 |
|
|
# set_location_assignment PIN_AA4 -to inKey4
|
| 100 |
|
|
# set_location_assignment PIN_AB3 -to inKey5
|
| 101 |
|
|
# set_location_assignment PIN_AA3 -to inKey6
|
| 102 |
|
|
# set_location_assignment PIN_Y6 -to oSeg0
|
| 103 |
|
|
# set_location_assignment PIN_W5 -to oSeg1
|
| 104 |
|
|
# set_location_assignment PIN_Y5 -to oSeg2
|
| 105 |
|
|
# set_location_assignment PIN_Y7 -to oSeg3
|
| 106 |
|
|
# set_location_assignment PIN_V8 -to oSeg4
|
| 107 |
|
|
# set_location_assignment PIN_W8 -to oSeg5
|
| 108 |
|
|
# set_location_assignment PIN_Y9 -to oSeg6
|
| 109 |
|
|
# set_location_assignment PIN_W7 -to oSeg7
|
| 110 |
|
|
# set_location_assignment PIN_W4 -to oDIGIT_ADR_A
|
| 111 |
|
|
# set_location_assignment PIN_Y4 -to oDIGIT_ADR_B
|
| 112 |
|
|
# set_location_assignment PIN_Y3 -to oDIGIT_ADR_C
|
| 113 |
|
|
# #set_location_assignment PIN_B4 -to Txd232
|
| 114 |
|
|
# set_location_assignment PIN_Y20 -to inResetAsync
|
| 115 |
|
|
# #set_location_assignment PIN_D5 -to Ps2Clk1
|
| 116 |
|
|
# #set_location_assignment PIN_E7 -to Ps2Clk2
|
| 117 |
|
|
# #set_location_assignment PIN_D4 -to Ps2Dat1
|
| 118 |
|
|
# #set_location_assignment PIN_C4 -to Ps2Dat2
|
| 119 |
|
|
# #set_location_assignment PIN_A4 -to Rxd232
|
| 120 |
|
|
# #set_location_assignment PIN_W14 -to VgaBl0
|
| 121 |
|
|
# #set_location_assignment PIN_Y14 -to VgaBl1
|
| 122 |
|
|
# #set_location_assignment PIN_Y16 -to VgaGr0
|
| 123 |
|
|
# #set_location_assignment PIN_W15 -to VgaGr1
|
| 124 |
|
|
# #set_location_assignment PIN_V14 -to VgaHsync
|
| 125 |
|
|
# #set_location_assignment PIN_Y17 -to VgaRd0
|
| 126 |
|
|
# #set_location_assignment PIN_W16 -to VgaRd1
|
| 127 |
|
|
# #set_location_assignment PIN_AA6 -to VgaVsync
|
| 128 |
|
|
# #set_location_assignment PIN_C19 -to SCLK
|
| 129 |
|
|
# #set_location_assignment PIN_C20 -to SDIN
|
| 130 |
|
|
# #set_location_assignment PIN_AB7 -to mcoll_pad_i
|
| 131 |
|
|
# #set_location_assignment PIN_AA7 -to mcrs_pad_i
|
| 132 |
|
|
# #set_location_assignment PIN_W12 -to mrx_clk_pad_i
|
| 133 |
|
|
# #set_location_assignment PIN_AA14 -to mrxd_pad_i[0]
|
| 134 |
|
|
# #set_location_assignment PIN_AB15 -to mrxd_pad_i[1]
|
| 135 |
|
|
# #set_location_assignment PIN_AA15 -to mrxd_pad_i[2]
|
| 136 |
|
|
# #set_location_assignment PIN_AB16 -to mrxd_pad_i[3]
|
| 137 |
|
|
# #set_location_assignment PIN_AB13 -to mrxdv_pad_i
|
| 138 |
|
|
# #set_location_assignment PIN_AA13 -to mrxerr_pad_i
|
| 139 |
|
|
# #set_location_assignment PIN_V12 -to mtx_clk_pad_i
|
| 140 |
|
|
# #set_location_assignment PIN_AB9 -to mtxd_pad_o[0]
|
| 141 |
|
|
# #set_location_assignment PIN_AA9 -to mtxd_pad_o[1]
|
| 142 |
|
|
# #set_location_assignment PIN_AB8 -to mtxd_pad_o[2]
|
| 143 |
|
|
# #set_location_assignment PIN_AA8 -to mtxd_pad_o[3]
|
| 144 |
|
|
# #set_location_assignment PIN_AB12 -to mtxen_pad_o
|
| 145 |
|
|
# #set_location_assignment PIN_AB14 -to mtxerr_pad_o
|
| 146 |
|
|
# #set_location_assignment PIN_AB6 -to ETH_Reset_o
|
| 147 |
|
|
# #set_location_assignment PIN_AB17 -to md_io
|
| 148 |
|
|
# #set_location_assignment PIN_AA16 -to mdc_o
|
| 149 |
|
|
#
|
| 150 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey1
|
| 151 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey2
|
| 152 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey3
|
| 153 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey4
|
| 154 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey5
|
| 155 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to inKey6
|
| 156 |
|
|
# set_instance_assignment -name WEAK_PULL_UP_RESISTOR ON -to
|