###########################################################
# Pin location constraints
###########################################################

#CLOCK
NET X_50M LOC  = AF13 | IOSTANDARD=LVCMOS33;		#ok

## single ended trigger input
NET TRG LOC  = AC8 | IOSTANDARD=LVCMOS33;			#ok

#Test Trigger input on 'Testpoint near W5300'
#NET _TW<3> LOC  = R19 | IOSTANDARD=LVCMOS33;		#ok
#NET TEST_TRG LOC  = R19 | IOSTANDARD=LVCMOS33 ;



## trigger veto: xilinx output
NET TRG_V LOC  = AC9 | IOSTANDARD=LVCMOS33;			#ok   
## NET INIT_B LOC  = AA15 | IOSTANDARD=LVCMOS33;		#ok



# RS485 Driver

NET RS485_C_DE LOC  = C5 | IOSTANDARD=LVCMOS33;		#ok
NET RS485_C_RE LOC  = C6 | IOSTANDARD=LVCMOS33;		#ok
#NET RS485_C_DO LOC  = C7 | IOSTANDARD=LVCMOS33;		#ok
#NET RS485_C_DI LOC  = C8 | IOSTANDARD=LVCMOS33;		#ok

NET RS485_E_DE LOC  = D20 | IOSTANDARD=LVCMOS33;		#ok
NET RS485_E_RE LOC  = D21 | IOSTANDARD=LVCMOS33;		#ok
#NET RS485_E_DO LOC  = D22 | IOSTANDARD=LVCMOS33;		#ok
#NET RS485_E_DI LOC  = D23 | IOSTANDARD=LVCMOS33;		#ok


# BOARD ID  - inputs
#NET LINE<0> LOC  = Y1 | IOSTANDARD=LVCMOS33;		#ok
#NET LINE<1> LOC  = Y2 | IOSTANDARD=LVCMOS33;		#ok
#NET LINE<2> LOC  = AB1 | IOSTANDARD=LVCMOS33;		#ok
#NET LINE<3> LOC  = AC1 | IOSTANDARD=LVCMOS33;		#ok
#NET LINE<4> LOC  = AD1 | IOSTANDARD=LVCMOS33;		#ok
#NET LINE<5> LOC  = AD2 | IOSTANDARD=LVCMOS33;		#ok

# W5300 
#######################################################
NET W_D<15> LOC  = D24 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<14> LOC  = D25 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<13> LOC  = D26 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<12> LOC  = E24 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<11> LOC  = E26 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<10> LOC  = F25 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<9> LOC  = F24 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<8> LOC  = G23 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<7> LOC  = G24 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<6> LOC  = J23 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<5> LOC  = K25 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<4> LOC  = K26 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<3> LOC  = J22 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<2> LOC  = K23 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<1> LOC  = L22 | IOSTANDARD=LVCMOS33;		#ok
NET W_D<0> LOC  = M22 | IOSTANDARD=LVCMOS33;		#ok

NET W_A<9> LOC  = V24 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<8> LOC  = V25 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<7> LOC  = W23 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<6> LOC  = Y23 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<5> LOC  = Y24 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<4> LOC  = Y25 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<3> LOC  = AA23 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<2> LOC  = AA24 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<1> LOC  = AA25 | IOSTANDARD=LVCMOS33;		#ok
NET W_A<0> LOC  = Y22 | IOSTANDARD=LVCMOS33;		#ok DUMMY

NET W_WR LOC  = P22 | IOSTANDARD=LVCMOS33;			#ok
NET W_RD LOC  = R20 | IOSTANDARD=LVCMOS33;			#ok
NET W_CS LOC  = T20 | IOSTANDARD=LVCMOS33;			#ok
NET W_INT LOC  = U22 | IOSTANDARD=LVCMOS33;			#ok
NET W_RES LOC  = U23 | IOSTANDARD=LVCMOS33;			#ok

#NET W_BRDY<3> LOC  = AD26 | IOSTANDARD=LVCMOS33;	#ok
#NET W_BRDY<2> LOC  = AC26 | IOSTANDARD=LVCMOS33;	#ok
#NET W_BRDY<1> LOC  = AC25 | IOSTANDARD=LVCMOS33;	#ok
#NET W_BRDY<0> LOC  = AB26 | IOSTANDARD=LVCMOS33;	#ok
# Testpoint near W5300 
#NET W_T<3> LOC  = R19 | IOSTANDARD=LVCMOS33;		#ok
#NET W_T<2> LOC  = N21 | IOSTANDARD=LVCMOS33;		#ok
#NET W_T<1> LOC  = M21 | IOSTANDARD=LVCMOS33;		#ok
#NET W_T<0> LOC  = K21 | IOSTANDARD=LVCMOS33;		#ok

# Platform Flash - serial connection
#######################################################
##NET FL_CLK LOC  = AE24 | IOSTANDARD=LVCMOS33;		#ok
##NET FL_D0 LOC  = AF24 | IOSTANDARD=LVCMOS33;		#ok 

# DRS Signals
#######################################################
NET DENABLE LOC  = B1 | IOSTANDARD=LVCMOS25;		#ok
NET DWRITE LOC  = R2 | IOSTANDARD=LVCMOS25;			#ok

NET SRIN LOC  = E1 | IOSTANDARD=LVCMOS25;			#ok -- nur fuer vollauslese noetig; auf Z legen.
#NET REFCLK LOC  = AC11 | IOSTANDARD=LVCMOS25;		#ok -- listen to REFCLK possible


NET D_A<3> LOC  = N1 | IOSTANDARD=LVCMOS25;			#ok
NET D_A<2> LOC  = M2 | IOSTANDARD=LVCMOS25;			#ok
NET D_A<1> LOC  = K2 | IOSTANDARD=LVCMOS25;			#ok
NET D_A<0> LOC  = H2 | IOSTANDARD=LVCMOS25;			#ok


# PLL-Lock input: high active
NET D_PLLLCK<0> LOC  = L3 | IOSTANDARD=LVCMOS25 | PULLDOWN ;		#ok
NET D_PLLLCK<1> LOC  = N2 | IOSTANDARD=LVCMOS25 | PULLDOWN ;		#ok
NET D_PLLLCK<2> LOC  = AA2 | IOSTANDARD=LVCMOS25 | PULLDOWN ;		#ok
NET D_PLLLCK<3> LOC  = AC2 | IOSTANDARD=LVCMOS25 | PULLDOWN ;		#ok

# SROUT input: read stop position here
# bus??
NET D0_SROUT LOC  = B2 | IOSTANDARD=LVCMOS25;		#ok
NET D1_SROUT LOC  = E3 | IOSTANDARD=LVCMOS25;		#ok
NET D2_SROUT LOC  = N4 | IOSTANDARD=LVCMOS25;		#ok
NET D3_SROUT LOC  = U1 | IOSTANDARD=LVCMOS25;		#ok

# RSRLOAD & SRCLK output: clock out analog samples here
# 														SRCLK bus??
NET RSRLOAD LOC  = H1 | IOSTANDARD=LVCMOS25;		#ok
#
NET D0_SRCLK LOC  = F2 | IOSTANDARD=LVCMOS25;		#ok
NET D1_SRCLK LOC  = F3 | IOSTANDARD=LVCMOS25;		#ok
NET D2_SRCLK LOC  = R3 | IOSTANDARD=LVCMOS25;		#ok
NET D3_SRCLK LOC  = V1 | IOSTANDARD=LVCMOS25;		#ok

# Testpoints near DRS Chips 
# oganized in 3 times 4x2 pins
NET D_T<0> LOC  = D3 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<1> LOC  = G3 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<2> LOC  = G4 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<3> LOC  = J4 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<4> LOC  = K5 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<5> LOC  = L4 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<6> LOC  = M3 | IOSTANDARD=LVCMOS25;			#ok
NET D_T<7> LOC  = T3 | IOSTANDARD=LVCMOS25;			#ok
NET D_T2<0> LOC  = U2 | IOSTANDARD=LVCMOS25;			#ok  was D_T<8>
NET D_T2<1> LOC  = V2 | IOSTANDARD=LVCMOS25;			#ok  was D_T<9>
NET D_T2<2> LOC  = W3 | IOSTANDARD=LVCMOS25;		#ok aka D_TA  was D_T<10>
NET D_T2<3> LOC  = AA3 | IOSTANDARD=LVCMOS25;		#ok aka D_TB  was D_T<11>



# ADC Signals
#######################################################
NET OE_ADC LOC  = D6 | IOSTANDARD=LVCMOS33;			#ok FIXME was A-OEB

NET A_CLK<0> LOC  = B23 | IOSTANDARD=LVCMOS33; 		#ok aka A0_CLK
NET A_CLK<1> LOC  = A3 | IOSTANDARD=LVCMOS33;		#ok aka A1_CLK
NET A_CLK<2> LOC  = AE3 | IOSTANDARD=LVCMOS33;		#ok aka A2_CLK
NET A_CLK<3> LOC  = AE25 | IOSTANDARD=LVCMOS33;		#ok aka A3_CLK

NET A_OTR<0> LOC  = A22 | IOSTANDARD=LVCMOS33;		#ok aka A0_OTR
NET A_OTR<1> LOC  = B12 | IOSTANDARD=LVCMOS33;		#ok aka A1_OTR
NET A_OTR<2> LOC  = AF3 | IOSTANDARD=LVCMOS33;		#ok aka A2_OTR
NET A_OTR<3> LOC  = AE17 | IOSTANDARD=LVCMOS33;		#ok aka A3_OTR

# ADC data
NET A0_D<0> LOC  = D13 | IOSTANDARD=LVCMOS33;		#ok 
NET A0_D<1> LOC  = A15 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<2> LOC  = B15 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<3> LOC  = B17 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<4> LOC  = D16 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<5> LOC  = A18 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<6> LOC  = B18 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<7> LOC  = A19 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<8> LOC  = B19 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<9> LOC  = A20 | IOSTANDARD=LVCMOS33;		#ok
NET A0_D<10> LOC  = B21 | IOSTANDARD=LVCMOS33; 		#ok
NET A0_D<11> LOC  = C22 | IOSTANDARD=LVCMOS33;		#ok

NET A1_D<0> LOC  = B3 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<1> LOC  = A4 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<2> LOC  = B4 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<3> LOC  = B6 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<4> LOC  = B7 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<5> LOC  = A8 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<6> LOC  = B8 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<7> LOC  = A9 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<8> LOC  = B9 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<9> LOC  = A10 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<10> LOC  = B10 | IOSTANDARD=LVCMOS33;		#ok
NET A1_D<11> LOC  = A12 | IOSTANDARD=LVCMOS33;		#ok

NET A2_D<0> LOC  = AD14 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<1> LOC  = AD11 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<2> LOC  = AD7 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<3> LOC  = AE8 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<4> LOC  = AF8 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<5> LOC  = AE7 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<6> LOC  = AC6 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<7> LOC  = AE6 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<8> LOC  = AF5 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<9> LOC  = AD6 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<10> LOC  = AF4 | IOSTANDARD=LVCMOS33;		#ok
NET A2_D<11> LOC  = AE4 | IOSTANDARD=LVCMOS33;		#ok

NET A3_D<0> LOC  = AF25 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<1> LOC  = AE23 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<2> LOC  = AF23 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<3> LOC  = AD22 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<4> LOC  = AE21 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<5> LOC  = AD21 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<6> LOC  = AF20 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<7> LOC  = AE20 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<8> LOC  = AF19 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<9> LOC  = AC22 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<10> LOC  = AE19 | IOSTANDARD=LVCMOS33;		#ok
NET A3_D<11> LOC  = AD19 | IOSTANDARD=LVCMOS33;		#ok

# testpoints near ADC

NET A0_T<0> LOC  = D8 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<1> LOC  = D9 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<2> LOC  = D10 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<3> LOC  = E10 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<4> LOC  = E12 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<5> LOC  = E14 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<6> LOC  = D17 | IOSTANDARD=LVCMOS33;		#ok
NET A0_T<7> LOC  = D18 | IOSTANDARD=LVCMOS33;		#ok

NET A1_T<0> LOC  = AB9 | IOSTANDARD=LVCMOS33;		#ok
NET A1_T<1> LOC  = AB12 | IOSTANDARD=LVCMOS33;		#ok
NET A1_T<2> LOC  = AC12 | IOSTANDARD=LVCMOS33;		#ok
NET A1_T<3> LOC  = AC14 | IOSTANDARD=LVCMOS33;		#ok
NET A1_T<4> LOC  = AC15 | IOSTANDARD=LVCMOS33;		#ok
#NET A1_T<5> LOC  = AB16 | IOSTANDARD=LVCMOS33; 		#ok
#NET A1_T<6> LOC  = AC16 | IOSTANDARD=LVCMOS33;		#ok
#NET A1_T<7> LOC  = AB18 | IOSTANDARD=LVCMOS33;		#ok



# SPI bus
#######################################################
NET S_CLK LOC  = C10 | IOSTANDARD=LVCMOS33;			#ok
NET MOSI LOC  = C11 | IOSTANDARD=LVCMOS33;			#ok
NET MISO LOC  = C12 | IOSTANDARD=LVCMOS33;			#ok

NET T0_CS LOC  = C15 | IOSTANDARD=LVCMOS33;			#ok
NET T1_CS LOC  = C16 | IOSTANDARD=LVCMOS33;			#ok
NET T2_CS LOC  = C17 | IOSTANDARD=LVCMOS33;			#ok
NET T3_CS LOC  = C18 | IOSTANDARD=LVCMOS33;			#ok
NET DAC_CS LOC  = C20 | IOSTANDARD=LVCMOS33;		#ok
NET EE_CS LOC  = C21 | IOSTANDARD=LVCMOS33; 		#ok



# LEDs
#######################################################
NET LED<0> LOC  = T4 | IOSTANDARD=LVCMOS25 | DRIVE = 2;		
NET LED<1> LOC  = C23 | IOSTANDARD=LVCMOS33 | DRIVE = 2; 
NET LED<2> LOC  = AD20 | IOSTANDARD=LVCMOS33 | DRIVE = 2;	


