
NET sram_clk FEEDBACK = 1.0 NET sram_clk_fb;
NET "clkm" 		TNM_NET = "clkm";

NET sysace_clk_in   TNM_NET    = "sysace_clk_in";
# Leave 1 ns margin
TIMESPEC "TSSYSACE" = PERIOD "sysace_clk_in" 29 ns;
#TIMESPEC "TS_clkm_sysace_clk_in" = FROM "clkm" TO "sysace_clk_in" TIG;
#TIMESPEC "TS_sysace_clk_in_clkm" = FROM "sysace_clk_in" TO "clkm" TIG;
#OFFSET = OUT : 8.000 AFTER sysace_clk_in;
#OFFSET = IN : 7.000 BEFORE sysace_clk_in;

NET "phy_rx_clk" PERIOD = 8.000 ;
OFFSET = IN : 5.000 : BEFORE phy_rx_clk ;

NET "phy_tx_clk" PERIOD = 40.000 ;
OFFSET = OUT : 15.000 : AFTER phy_tx_clk ;
OFFSET = IN : 8.000 : BEFORE phy_tx_clk ;

NET "phy_tx_clk" MAXSKEW= 1.0 ns;
NET "phy_rx_clk" MAXSKEW= 1.0 ns;


#NET "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/dqsclk(*)" TNM_NET = "dqsclk"; 
#TIMEGRP "dqsclk_rise" = FALLING "dqsclk";
#TIMEGRP "clkml_rise" = RISING "clkml";
#TIMESPEC "TS_dqsclk_clkml_rise" = FROM "dqsclk_rise" TO "clkml_rise" 3.500;

#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl.0.u" LOC = "IDELAYCTRL_X2Y4";
##INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl.1.u" LOC = "IDELAYCTRL_X2Y3";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl.2.u" LOC = "IDELAYCTRL_X2Y2";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl.3.u" LOC = "IDELAYCTRL_X0Y0";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl[0].u" LOC = "IDELAYCTRL_X2Y4";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl[1].u" LOC = "IDELAYCTRL_X2Y3";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl[2].u" LOC = "IDELAYCTRL_X2Y2";
#INST "ddrsp0.ddrc0/nftphy.ddr_phy0/ddr_phy0/xc4v.ddr_phy0/idelctrl[3].u" LOC = "IDELAYCTRL_X0Y0";


NET clk_100 period = 10.000 ;
NET clk_200 period = 5.000;

NET  clk_100              LOC="AD8" | IOSTANDARD = LVCMOS33;  # Bank 4, Vcco=3.3V, No DCI
NET  clk_200_p            LOC="E16";   # Bank 3, Vcco=2.5V, No DCI      
NET  clk_200_n            LOC="E17";   # Bank 3, Vcco=2.5V, No DCI      


NET sys_rst_in PULLUP;
NET sys_rst_in TIG;
NET sys_rst_in      LOC="T23" | IOSTANDARD = LVCMOS33;    # Bank 17, Vcco=3.3V, DCI using 49.9 ohm resistors


////////////////////////////////////////////////////////////////////////////
// Buttons, LEDs, Piezo, and DIP Switches 
////////////////////////////////////////////////////////////////////////////

# GPLED
NET led(0)  LOC = E11; #GPLED7 (Rightmost - LSB)
NET led(1)  LOC = E10; #GPLED6
NET led(2)  LOC = E15; #GPLED5
NET led(3)  LOC = D15; #GPLED4
NET led(4) LOC = F12; #GPLED3
NET led(5) LOC = E12; #GPLED2
NET led(6) LOC = D14; #GPLED1
NET led(7) LOC = E13; #GPLED0 (Leftmost - MSB)

NET led(0)  IOSTANDARD = LVCMOS25;
NET led(1)  IOSTANDARD = LVCMOS25;
NET led(2)  IOSTANDARD = LVCMOS25;
NET led(3)  IOSTANDARD = LVCMOS25;
NET led(4) IOSTANDARD = LVCMOS25;
NET led(5) IOSTANDARD = LVCMOS25;
NET led(6) IOSTANDARD = LVCMOS25;
NET led(7) IOSTANDARD = LVCMOS25;
# North-East-South-West-Center LEDs
NET led(8)  LOC = T22;  # C LED
NET led(9)  LOC = AA18; # W LED
NET led(10)  LOC = AA8;  # S LED
NET led(11)  LOC = Y18;  # E LED
NET led(12)  LOC = Y8;   # N LED
NET led(8) IOSTANDARD = LVCMOS33;
NET led(9) IOSTANDARD = LVCMOS33;
NET led(10) IOSTANDARD = LVCMOS33;
NET led(11) IOSTANDARD = LVCMOS33;
NET led(12) IOSTANDARD = LVCMOS33;
# North-East-South-West-Center Buttons
NET gpio(9)  LOC = B21; # C Button
NET gpio(10) LOC = C21; # W Button
NET gpio(11) LOC = B22; # S Button
NET gpio(12) LOC = A23; # E Button
NET gpio(13) LOC = A22; # N Button
NET gpio(9)  IOSTANDARD = LVCMOS33;
NET gpio(10) IOSTANDARD = LVCMOS33;
NET gpio(11) IOSTANDARD = LVCMOS33;
NET gpio(12) IOSTANDARD = LVCMOS33;
NET gpio(13) IOSTANDARD = LVCMOS33;

# Dip Switches 1-8
NET gpio(0) LOC = T7; # DIP SW 8
NET gpio(1) LOC = U7; # DIP SW 7
NET gpio(2) LOC = U5; # DIP SW 6
NET gpio(3) LOC = U6; # DIP SW 5
NET gpio(4) LOC = T5; # DIP SW 4
NET gpio(5) LOC = T4; # DIP SW 3
NET gpio(6) LOC = V3; # DIP SW 2
NET gpio(7) LOC = U4; # DIP SW 1
NET gpio(0) IOSTANDARD = LVCMOS18;
NET gpio(1) IOSTANDARD = LVCMOS18;
NET gpio(2) IOSTANDARD = LVCMOS18;
NET gpio(3) IOSTANDARD = LVCMOS18;
NET gpio(4) IOSTANDARD = LVCMOS18;
NET gpio(5) IOSTANDARD = LVCMOS18;
NET gpio(6) IOSTANDARD = LVCMOS18;
NET gpio(7) IOSTANDARD = LVCMOS18;
#SMA Connectors
NET gpio(8) LOC = F10; # SMA_IN_N
#NET gpio(9) LOC = F9;  # SMA_IN_P
#NET gpio(10) LOC = F19; # SMA_OUT_N
#NET gpio(11) LOC = E18; # SMA_OUT_P
#NET gpio(26) LOC = AD8; # USERCLK
NET gpio(8) IOSTANDARD = LVCMOS25;
#NET gpio(9) IOSTANDARD = LVCMOS25;
#NET gpio(10) IOSTANDARD = LVCMOS25;
#NET gpio(11) IOSTANDARD = LVCMOS25;
#NET gpio(26) IOSTANDARD = LVCMOS33;

NET "gpio(*)" PULLDOWN;
NET "gpio(*)" TIG;
NET "gpio(*)" SLEW = SLOW;
NET "gpio(*)" DRIVE = 2;

#NET "gpio(8)" SLEW = FAST;
#NET "gpio(8)" DRIVE = 12;
#NET "gpio(9)" SLEW = FAST;
#NET "gpio(9)" DRIVE = 12;
#NET "gpio(10)" SLEW = FAST;
#NET "gpio(10)" DRIVE = 12;
#NET "gpio(11)" SLEW = FAST;
#NET "gpio(11)" DRIVE = 12;

#NET  "gpio2_d_out(*)" TIG;
#NET  "gpio2_t_out(*)" TIG;
#NET  "gpio2_in(*)" TIG;

#NET  "piezo" LOC = V1;
#NET  "piezo" IOSTANDARD = LVCMOS18;
#NET  "piezo" TIG;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for PS/2 Ports
#------------------------------------------------------------------------------

#Keyboard
NET ps2_keyb_clk  LOC = J1;
NET ps2_keyb_clk  SLEW = SLOW;
NET ps2_keyb_clk  DRIVE = 2;
NET ps2_keyb_clk  IOSTANDARD = LVCMOS18;
NET ps2_keyb_clk  TIG;
NET ps2_keyb_data LOC = H2;
NET ps2_keyb_data SLEW = SLOW;
NET ps2_keyb_data DRIVE = 2;
NET ps2_keyb_data IOSTANDARD = LVCMOS18;
NET ps2_keyb_data TIG;

#Mouse
NET ps2_mouse_clk  LOC = L2;
NET ps2_mouse_clk  SLEW = SLOW;
NET ps2_mouse_clk  DRIVE = 2;
NET ps2_mouse_clk  IOSTANDARD = LVCMOS18;
NET ps2_mouse_clk  TIG;
NET ps2_mouse_data LOC = K1;
NET ps2_mouse_data SLEW = SLOW;
NET ps2_mouse_data DRIVE = 2;
NET ps2_mouse_data IOSTANDARD = LVCMOS18;
NET ps2_mouse_data TIG;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for IIC Controller
#------------------------------------------------------------------------------

NET iic_scl    LOC = R20;
NET iic_sda    LOC = T20;
NET iic_scl    SLEW = SLOW;
NET iic_scl    DRIVE = 6;
NET iic_scl    TIG;
NET iic_scl    IOSTANDARD = LVCMOS33;
NET iic_sda    SLEW = SLOW;
NET iic_sda    DRIVE = 6;
NET iic_sda    TIG;
NET iic_sda    IOSTANDARD = LVCMOS33;

#NET ddr_iic_scl  LOC = Y7;
#NET ddr_iic_sda  LOC = AA7;
#NET ddr_iic_scl  SLEW = SLOW;
#NET ddr_iic_scl  DRIVE = 6;
#NET ddr_iic_scl  TIG;
#NET ddr_iic_scl  IOSTANDARD = LVCMOS18;
#NET ddr_iic_sda  SLEW = SLOW;
#NET ddr_iic_sda  DRIVE = 6;
#NET ddr_iic_sda  TIG;
#NET ddr_iic_sda  IOSTANDARD = LVCMOS18;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for System ACE MPU / USB
#------------------------------------------------------------------------------

NET sysace_clk_in   LOC        = AB12;
NET sysace_clk_in   IOSTANDARD = LVCMOS33;

NET sace_usb_a(0)   LOC        = N6;
NET sace_usb_a(1)   LOC        = E5;
NET sace_usb_a(2)   LOC        = F5;
NET sace_usb_a(3)   LOC        = F4;
NET sace_usb_a(4)   LOC        = J5;
NET sace_usb_a(5)   LOC        = E7;
NET sace_usb_a(6)   LOC        = G7;
NET sace_usb_a(*)   IOSTANDARD = LVCMOS33;
NET sace_usb_a(*)   SLEW       = FAST;
NET sace_usb_a(*)   DRIVE      = 8;
NET sace_mpce       LOC        = F7;
NET sace_mpce       IOSTANDARD = LVCMOS33;
NET sace_mpce       SLEW       = FAST;
NET sace_mpce       DRIVE      = 8;
NET sace_usb_d(0)   LOC        = M6;
NET sace_usb_d(1)   LOC        = K5;
NET sace_usb_d(2)   LOC        = L3;
NET sace_usb_d(3)   LOC        = L4;
NET sace_usb_d(4)   LOC        = L7;
NET sace_usb_d(5)   LOC        = L5;
NET sace_usb_d(6)   LOC        = H6;
NET sace_usb_d(7)   LOC        = G5;
NET sace_usb_d(8)   LOC        = M7;
NET sace_usb_d(9)   LOC        = H7;
NET sace_usb_d(10)  LOC        = J6;
NET sace_usb_d(11)  LOC        = G4;
NET sace_usb_d(12)  LOC        = K7;
NET sace_usb_d(13)  LOC        = J4;
NET sace_usb_d(14)  LOC        = H4;
NET sace_usb_d(15)  LOC        = K6;
NET sace_usb_d(*)   IOSTANDARD = LVCMOS33;
NET sace_usb_d(*)   SLEW       = FAST;
NET sace_usb_d(*)   DRIVE      = 8;
NET sace_usb_d(*)   PULLDOWN;
NET sace_usb_oen    LOC        = E6;
NET sace_usb_oen    IOSTANDARD = LVCMOS33;
NET sace_usb_oen    SLEW       = FAST;
NET sace_usb_oen    DRIVE      = 8;
NET sace_usb_wen    LOC        = M5;
NET sace_usb_wen    IOSTANDARD = LVCMOS33;
NET sace_usb_wen    SLEW       = FAST;
NET sace_usb_wen    DRIVE      = 8;
NET sysace_mpirq    LOC        = G6;
NET sysace_mpirq    IOSTANDARD = LVCMOS33;
NET sysace_mpirq    TIG;
NET sysace_mpirq    PULLDOWN;

NET usb_rstn         LOC        = P3;
NET usb_rstn         IOSTANDARD = LVCMOS33;
NET usb_csn         LOC        = N3;
NET usb_csn         IOSTANDARD = LVCMOS33;
NET usb_csn         SLEW       = FAST;
NET usb_csn         DRIVE      = 8;
#NET usb_hpi_reset_n LOC        = P3;
#NET usb_hpi_reset_n IOSTANDARD = LVCMOS33;
#NET usb_hpi_reset_n TIG;
#NET usb_hpi_int     LOC        = M4;
#NET usb_hpi_int     IOSTANDARD = LVCMOS33;
#NET usb_hpi_int     TIG;
#NET usb_hpi_int     PULLDOWN;

////////////////////////////////////////////////////////////////////////////
// Misc Board Signals
////////////////////////////////////////////////////////////////////////////

NET bus_error(0) LOC = N4; # Bus Error 1
NET bus_error(0) IOSTANDARD = LVCMOS33;
NET bus_error(0) TIG;
NET bus_error(1) LOC = P5; # Bus Error 2
NET bus_error(1) IOSTANDARD = LVCMOS33;
NET bus_error(1) TIG;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for Expansion Header GPIO
#------------------------------------------------------------------------------

#NET gpio_exp_hdr1(31) LOC = AB26; # HDR1_64
#NET gpio_exp_hdr1(30) LOC = AC26; # HDR1_62
#NET gpio_exp_hdr1(29) LOC = AA25; # HDR1_60
#NET gpio_exp_hdr1(28) LOC = P26;  # HDR1_58
#NET gpio_exp_hdr1(27) LOC = Y26; # HDR1_56
#NET gpio_exp_hdr1(26) LOC = Y25; # HDR1_54
#NET gpio_exp_hdr1(25) LOC = W26; # HDR1_52
#NET gpio_exp_hdr1(24) LOC = W25; # HDR1_50
#NET gpio_exp_hdr1(23) LOC = U25; # HDR1_48
#NET gpio_exp_hdr1(22) LOC = U24; # HDR1_46
#NET gpio_exp_hdr1(21) LOC = T25; # HDR1_44
#NET gpio_exp_hdr1(20) LOC = T24; # HDR1_42
#NET gpio_exp_hdr1(19) LOC = P24; # HDR1_40
#NET gpio_exp_hdr1(18) LOC = P25; # HDR1_38
#NET gpio_exp_hdr1(17) LOC = N26; # HDR1_36
#NET gpio_exp_hdr1(16) LOC = AB25; # HDR1_34
#NET gpio_exp_hdr1(15) LOC = M24; # HDR1_32
#NET gpio_exp_hdr1(14) LOC = N24; # HDR1_30
#NET gpio_exp_hdr1(13) LOC = M25; # HDR1_28
#NET gpio_exp_hdr1(12) LOC = M26; # HDR1_26
#NET gpio_exp_hdr1(11) LOC = K25; # HDR1_24
#NET gpio_exp_hdr1(10) LOC = K26; # HDR1_22
#NET gpio_exp_hdr1(9)  LOC = L24; # HDR1_20
#NET gpio_exp_hdr1(8)  LOC = L25; # HDR1_18
#NET gpio_exp_hdr1(7)  LOC = M21; # HDR1_16
#NET gpio_exp_hdr1(6)  LOC = K21; # HDR1_14
#NET gpio_exp_hdr1(5)  LOC = K20; # HDR1_12
#NET gpio_exp_hdr1(4)  LOC = M22; # HDR1_10
#NET gpio_exp_hdr1(3)  LOC = H23; # HDR1_8
#NET gpio_exp_hdr1(2)  LOC = J21; # HDR1_6
#NET gpio_exp_hdr1(1)  LOC = J23; # HDR1_4
#NET gpio_exp_hdr1(0)  LOC = J20; # HDR1_2
#NET gpio_exp_hdr1(*) TIG;
#NET gpio_exp_hdr1(*) PULLDOWN;
#NET gpio_exp_hdr1(*) IOSTANDARD = LVCMOS25;
#
#NET gpio_exp_hdr2(31) LOC = P21; # HDR2_64
#NET gpio_exp_hdr2(30) LOC = P20; # HDR2_62
#NET gpio_exp_hdr2(29) LOC = H24; # HDR2_60
#NET gpio_exp_hdr2(28) LOC = J24; # HDR2_58
#NET gpio_exp_hdr2(27) LOC = M20; # HDR2_56
#NET gpio_exp_hdr2(26) LOC = M19; # HDR2_54
#NET gpio_exp_hdr2(25) LOC = G24; # HDR2_52
#NET gpio_exp_hdr2(24) LOC = G25; # HDR2_50
#NET gpio_exp_hdr2(23) LOC = P23; # HDR2_48
#NET gpio_exp_hdr2(22) LOC = N23; # HDR2_46
#NET gpio_exp_hdr2(21) LOC = L20; # HDR2_44
#NET gpio_exp_hdr2(20) LOC = L19; # HDR2_42
#NET gpio_exp_hdr2(19) LOC = G26; # HDR2_40
#NET gpio_exp_hdr2(18) LOC = H26; # HDR2_38
#NET gpio_exp_hdr2(17) LOC = K23; # HDR2_36
#NET gpio_exp_hdr2(16) LOC = K22; # HDR2_34
#NET gpio_exp_hdr2(15) LOC = V26; # HDR2_32
#NET gpio_exp_hdr2(14) LOC = U26; # HDR2_30
#NET gpio_exp_hdr2(13) LOC = N22; # HDR2_28
#NET gpio_exp_hdr2(12) LOC = N21; # HDR2_26
#NET gpio_exp_hdr2(11) LOC = R22; # HDR2_24
#NET gpio_exp_hdr2(10) LOC = R23; # HDR2_22
#NET gpio_exp_hdr2(9)  LOC = J25; # HDR2_20
#NET gpio_exp_hdr2(8)  LOC = J26; # HDR2_18
#NET gpio_exp_hdr2(7)  LOC = P19; # HDR2_16
#NET gpio_exp_hdr2(6)  LOC = N19; # HDR2_14
#NET gpio_exp_hdr2(5)  LOC = G21; # HDR2_12
#NET gpio_exp_hdr2(4)  LOC = G22; # HDR2_10
#NET gpio_exp_hdr2(3)  LOC = E25; # HDR2_8
#NET gpio_exp_hdr2(2)  LOC = E26; # HDR2_6
#NET gpio_exp_hdr2(1)  LOC = F24; # HDR2_4
#NET gpio_exp_hdr2(0)  LOC = F25; # HDR2_2
#NET gpio_exp_hdr2(*) TIG;
#NET gpio_exp_hdr2(*) PULLDOWN;
#NET gpio_exp_hdr2(*) IOSTANDARD = LVCMOS25;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for Character LCD GPIO
#------------------------------------------------------------------------------

#NET gpio_char_lcd(6) LOC = P6; # LCD_E
#NET gpio_char_lcd(5) LOC = R7; # LCD_RS
#NET gpio_char_lcd(4) LOC = R5; # LCD_RW
#NET gpio_char_lcd(3) LOC = P4; # LCD_DB7
#NET gpio_char_lcd(2) LOC = R3; # LCD_DB6
#NET gpio_char_lcd(1) LOC = T3; # LCD_DB5
#NET gpio_char_lcd(0) LOC = R6; # LCD_DB4
#NET gpio_char_lcd(*) IOSTANDARD = LVCMOS33;
#NET gpio_char_lcd(*) TIG;
#NET gpio_char_lcd(*) PULLDOWN;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for DDR Controllers
#------------------------------------------------------------------------------

NET ddr2_a(0)  LOC = Y5; # DDR_A0
NET ddr2_a(1)  LOC = Y6; # DDR_A1
NET ddr2_a(2)  LOC = W6; # DDR_A2
NET ddr2_a(3)  LOC = W5; # DDR_A3
NET ddr2_a(4)  LOC = V7; # DDR_A4
NET ddr2_a(5)  LOC = V6; # DDR_A5
NET ddr2_a(6)  LOC = Y3; # DDR_A6
NET ddr2_a(7)  LOC = W3; # DDR_A7
NET ddr2_a(8)  LOC = W4; # DDR_A8
NET ddr2_a(9)  LOC = V4; # DDR_A9
NET ddr2_a(10) LOC = AD3; # DDR_A10
NET ddr2_a(11) LOC = AD4; # DDR_A11
NET ddr2_a(12) LOC = AC3; # DDR_A12
NET ddr2_a(13) LOC = AD5; # DDR_A13
NET ddr2_ba(0)  LOC = AB5; # DDR_BA0
NET ddr2_ba(1)  LOC = AB6; # DDR_BA1
NET ddr2_ba(2)  LOC = AC4; # DDR_BA2
NET ddr2_cas_n   LOC = AE3; # DDR_CAS_N
NET ddr2_cke(0) LOC = AA3; # DDR_CKE
NET ddr2_cke(1) LOC = AB4; # DDR_CKE
NET ddr2_cs_n(0)  LOC = AF3; # DDR_CS_N
NET ddr2_cs_n(1)  LOC = AD6; # DDR_CS_N
NET ddr2_ras_n   LOC = AC6; # DDR_RAS_N
NET ddr2_we_n    LOC = AB7; # DDR_WE_N
NET ddr2_ck(0)    LOC = E2; # DDR_CK0_P
NET ddr2_ck_n(0)   LOC = E1; # DDR_CK0_N
NET ddr2_ck(1)    LOC = P1; # DDR_CK1_P
NET ddr2_ck_n(1)   LOC = R1; # DDR_CK1_N
NET ddr2_odt(0)  LOC =AE6; # DDR_ODT0
NET ddr2_odt(1)  LOC =AE5; # DDR_ODT1

NET ddr2_dm(0)  LOC = B9; # DDR_DM0
NET ddr2_dm(1)  LOC = A8; # DDR_DM1
NET ddr2_dm(2)  LOC = C4; # DDR_DM2
NET ddr2_dm(3)  LOC = F2; # DDR_DM3
NET ddr2_dm(4)  LOC = AB1; # DDR_DM4
NET ddr2_dm(5)  LOC = AF24; # DDR_DM5
NET ddr2_dm(6)  LOC = AF22; # DDR_DM6
NET ddr2_dm(7)  LOC = AF8; # DDR_DM7

NET ddr2_dqs(0)  LOC = B7; # DDR_DQS0
NET ddr2_dqs_n(0) LOC = A7; # DDR_DQSN0
NET ddr2_dqs(1)  LOC = D5; # DDR_DQS1
NET ddr2_dqs_n(1) LOC = D6; # DDR_DQSN1
NET ddr2_dqs(2)  LOC = C6; # DDR_DQS2
NET ddr2_dqs_n(2) LOC = C7; # DDR_DQSN2
NET ddr2_dqs(3)  LOC = M1; # DDR_DQS3
NET ddr2_dqs_n(3) LOC = N1; # DDR_DQSN3
NET ddr2_dqs(4)  LOC = T2; # DDR_DQS4
NET ddr2_dqs_n(4) LOC = R2; # DDR_DQSN4
NET ddr2_dqs(5)  LOC = AF18; # DDR_DQS5
NET ddr2_dqs_n(5) LOC = AE18; # DDR_DQSN5
NET ddr2_dqs(6)  LOC = AF19; # DDR_DQS6
NET ddr2_dqs_n(6) LOC = AF20; # DDR_DQSN6
NET ddr2_dqs(7)  LOC = AF17; # DDR_DQS7
NET ddr2_dqs_n(7) LOC = AE17; # DDR_DQSN7

NET ddr2_dq(0) LOC = C11; # DDR_D0
NET ddr2_dq(1) LOC = C13; # DDR_D1
NET ddr2_dq(2) LOC = A12; # DDR_D2
NET ddr2_dq(3) LOC = C9; # DDR_D3
NET ddr2_dq(4) LOC = D10; # DDR_D4
NET ddr2_dq(5) LOC = C12; # DDR_D5
NET ddr2_dq(6) LOC = B12; # DDR_D6
NET ddr2_dq(7) LOC = A13; # DDR_D7
NET ddr2_dq(8) LOC = A10; # DDR_D8
NET ddr2_dq(9) LOC = A9; # DDR_D9
NET ddr2_dq(10) LOC = B5; # DDR_D10
NET ddr2_dq(11) LOC = D3; # DDR_D11
NET ddr2_dq(12) LOC = B10; # DDR_D12
NET ddr2_dq(13) LOC = B11; # DDR_D13
NET ddr2_dq(14) LOC = B6; # DDR_D14
NET ddr2_dq(15) LOC = B4; # DDR_D15
NET ddr2_dq(16) LOC = C2; # DDR_D16
NET ddr2_dq(17) LOC = A2; # DDR_D17
NET ddr2_dq(18) LOC = D1; # DDR_D18
NET ddr2_dq(19) LOC = B1; # DDR_D19
NET ddr2_dq(20) LOC = C3; # DDR_D20
NET ddr2_dq(21) LOC = A3; # DDR_D21
NET ddr2_dq(22) LOC = C1; # DDR_D22
NET ddr2_dq(23) LOC = B2; # DDR_D23
NET ddr2_dq(24) LOC = F3; # DDR_D24
NET ddr2_dq(25) LOC = G1; # DDR_D25
NET ddr2_dq(26) LOC = G2; # DDR_D26
NET ddr2_dq(27) LOC = H3; # DDR_D27
NET ddr2_dq(28) LOC = E3; # DDR_D28
NET ddr2_dq(29) LOC = H1; # DDR_D29
NET ddr2_dq(30) LOC = K3; # DDR_D30
NET ddr2_dq(31) LOC = J3; # DDR_D31

NET ddr2_dq(32) LOC = Y1; # DDR_D32
NET ddr2_dq(33) LOC = Y2; # DDR_D33
NET ddr2_dq(34) LOC = AC1; # DDR_D34
NET ddr2_dq(35) LOC = AD1; # DDR_D35
NET ddr2_dq(36) LOC = AA2; # DDR_D36
NET ddr2_dq(37) LOC = AB2; # DDR_D37
NET ddr2_dq(38) LOC = AC2; # DDR_D38
NET ddr2_dq(39) LOC = AE1; # DDR_D39
NET ddr2_dq(40) LOC = AD23; # DDR_D40
NET ddr2_dq(41) LOC = AD26; # DDR_D41
NET ddr2_dq(42) LOC = AF25; # DDR_D42
NET ddr2_dq(43) LOC = AD25; # DDR_D43
NET ddr2_dq(44) LOC = AD24; # DDR_D44
NET ddr2_dq(45) LOC = AE26; # DDR_D45
NET ddr2_dq(46) LOC = AE25; # DDR_D46
NET ddr2_dq(47) LOC = AF23; # DDR_D47
NET ddr2_dq(48) LOC = AD20; # DDR_D48
NET ddr2_dq(49) LOC = AE20; # DDR_D49
NET ddr2_dq(50) LOC = AF14; # DDR_D50
NET ddr2_dq(51) LOC = AF12; # DDR_D51
NET ddr2_dq(52) LOC = AD21; # DDR_D52
NET ddr2_dq(53) LOC = AE21; # DDR_D53
NET ddr2_dq(54) LOC = AF13; # DDR_D54
NET ddr2_dq(55) LOC = AE12; # DDR_D55
NET ddr2_dq(56) LOC = AE11; # DDR_D56
NET ddr2_dq(57) LOC = AE10; # DDR_D57
NET ddr2_dq(58) LOC = AF7; # DDR_D58
NET ddr2_dq(59) LOC = AE7; # DDR_D59
NET ddr2_dq(60) LOC = AF10; # DDR_D60
NET ddr2_dq(61) LOC = AF9; # DDR_D61
NET ddr2_dq(62) LOC = AE8; # DDR_D62
NET ddr2_dq(63) LOC = AD9; # DDR_D63

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for UART
#------------------------------------------------------------------------------

NET rxd1 LOC = AC7;
NET rxd1 IOSTANDARD = LVCMOS33;
NET rxd1 TIG;
NET txd1 LOC = AD14;
NET txd1 IOSTANDARD = LVCMOS33;
NET txd1 TIG;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for SRAM
#------------------------------------------------------------------------------

NET sram_clk            LOC = U22;
NET sram_clk_fb         LOC = AD15;
NET sram_clk_fb         IOSTANDARD = LVCMOS33;
NET sram_clk            IOSTANDARD = LVDCI_33;

NET sram_flash_addr(23) LOC = Y10;
NET sram_flash_addr(22) LOC = Y11;
NET sram_flash_addr(21) LOC = AA17;
NET sram_flash_addr(20) LOC = AB17;
NET sram_flash_addr(19) LOC = G14;
NET sram_flash_addr(18) LOC = F13;
NET sram_flash_addr(17) LOC = H14;
NET sram_flash_addr(16) LOC = H13;
NET sram_flash_addr(15) LOC = F15;
NET sram_flash_addr(14) LOC = G15;
NET sram_flash_addr(13) LOC = G12;
NET sram_flash_addr(12) LOC = H12;
NET sram_flash_addr(11) LOC = G16;
NET sram_flash_addr(10) LOC = H16;
NET sram_flash_addr(9)  LOC = H11;
NET sram_flash_addr(8)  LOC = G11;
NET sram_flash_addr(7)  LOC = H17;
NET sram_flash_addr(6)  LOC = G17;
NET sram_flash_addr(5)  LOC = G10;
NET sram_flash_addr(4)  LOC = G9;
NET sram_flash_addr(3)  LOC = G19;
NET sram_flash_addr(2)  LOC = H18;
NET sram_flash_addr(1)  LOC = H9;
NET sram_flash_addr(0)  LOC = H8;
NET sram_flash_addr(*)  IOSTANDARD = LVCMOS33;
NET sram_flash_addr(*)  SLEW = FAST;
NET sram_flash_addr(*)  DRIVE = 8;

NET sram_flash_data(15) LOC = AD18 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(14) LOC = AC18 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(13) LOC = AB10 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(12) LOC = AB9  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(11) LOC = AC17 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(10) LOC = AC16 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(9) LOC = AC8  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(8) LOC = AC9  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(7) LOC = Y12  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(6) LOC = Y13  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(5) LOC = AA15 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(4) LOC = AB14 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(3) LOC = AA12 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(2) LOC = AB11 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(1) LOC = AA13 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(0) LOC = AA14 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_data(31) LOC = AC24 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(30) LOC = AB22 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(29) LOC = AA22 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(28) LOC = AC21 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(27) LOC = AB21 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(26) LOC = W21  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(25)  LOC = W20  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(24)  LOC = U19  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(23)  LOC = U20  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(22)  LOC = V19  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(21)  LOC = W19  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(20)  LOC = Y21  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(19)  LOC = Y20  | IOSTANDARD = LVDCI_33;
NET sram_flash_data(18)  LOC = AD19 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(17)  LOC = AC19 | IOSTANDARD = LVDCI_33;
NET sram_flash_data(16)  LOC = AB20 | IOSTANDARD = LVDCI_33;

NET sram_flash_data(*) PULLDOWN;

NET sram_cen            LOC = AB24 | IOSTANDARD = LVDCI_33;
NET sram_oen            LOC = AC22 | IOSTANDARD = LVDCI_33;
NET flash_oen           LOC = AA9  | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_flash_we_n     LOC = AB15 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_bw(3)          LOC = W24  | IOSTANDARD = LVDCI_33; 
NET sram_bw(2)          LOC = W23  | IOSTANDARD = LVDCI_33; 
NET sram_bw(1)          LOC = V24  | IOSTANDARD = LVDCI_33;  
NET sram_bw(0)          LOC = V23  | IOSTANDARD = LVDCI_33; 
NET flash_ce            LOC = AA10 | IOSTANDARD = LVCMOS33 | DRIVE = 12 | SLEW = FAST;
NET sram_adv_ld_n       LOC = U21  | IOSTANDARD = LVDCI_33;
NET sram_mode           LOC = AC23 | IOSTANDARD = LVDCI_33;
#NET flash_audio_reset_n LOC = AD10 | IOSTANDARD = LVCMOS33;
NET flash_adv_n         LOC="AA20";   # Bank 17, Vcco=3.3V (FLASH_ADV_B)


#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for TFT VGA LCD Controller
#------------------------------------------------------------------------------

NET dvi_iic_scl  LOC = D21;
NET dvi_iic_sda  LOC = D20;
NET dvi_iic_scl  SLEW = SLOW;
NET dvi_iic_scl  DRIVE = 6;
NET dvi_iic_scl  TIG;
NET dvi_iic_scl  IOSTANDARD = LVCMOS33;
NET dvi_iic_sda  SLEW = SLOW;
NET dvi_iic_sda  DRIVE = 6;
NET dvi_iic_sda  TIG;
NET dvi_iic_sda  IOSTANDARD = LVCMOS33;
#
NET tft_lcd_data(0)  LOC = A17; 
NET tft_lcd_data(1)  LOC = B17; 
NET tft_lcd_data(2)  LOC = C17; 
NET tft_lcd_data(3)  LOC = D18; 
NET tft_lcd_data(4)  LOC = C16; 
NET tft_lcd_data(5)  LOC = D16; 
NET tft_lcd_data(6)  LOC = B16; 
NET tft_lcd_data(7)  LOC = B15; 
NET tft_lcd_data(8)  LOC = A15; 
NET tft_lcd_data(9)  LOC = A14; 
NET tft_lcd_data(10) LOC = B14; 
NET tft_lcd_data(11) LOC = C14; 
NET tft_lcd_data(*) IOSTANDARD = LVDCI_33;
#
NET tft_lcd_clk_p LOC = A20;
NET tft_lcd_clk_p IOSTANDARD = LVCMOS33;
NET tft_lcd_clk_n LOC = B20;
NET tft_lcd_clk_n IOSTANDARD = LVCMOS33;
#
NET tft_lcd_hsync LOC = C19;
NET tft_lcd_hsync IOSTANDARD = LVDCI_33;
NET tft_lcd_vsync LOC = D19;
NET tft_lcd_vsync IOSTANDARD = LVDCI_33;
NET tft_lcd_de    LOC = C18;
NET tft_lcd_de    IOSTANDARD = LVDCI_33;
NET tft_lcd_reset_b LOC = A18;
NET tft_lcd_reset_b IOSTANDARD = LVCMOS33;
#

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for Ethernet
#------------------------------------------------------------------------------

NET phy_col        LOC = G20 | IOSTANDARD = LVCMOS25;
NET phy_crs        LOC = H22 | IOSTANDARD = LVCMOS25;
NET phy_dv         LOC = J19 | IOSTANDARD = LVCMOS25;
NET phy_rx_clk     LOC = F14 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(7) LOC = H21 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(6) LOC = F23 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(5) LOC = F22 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(4) LOC = E23 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(3) LOC = E22 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(2) LOC = E20 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(1) LOC = E21 | IOSTANDARD = LVCMOS25;
NET phy_rx_data(0) LOC = F20 | IOSTANDARD = LVCMOS25;

NET phy_rx_er      LOC = H19 | IOSTANDARD = LVCMOS25;
NET phy_tx_clk     LOC = D13 | IOSTANDARD = LVCMOS25;
NET phy_mii_clk    LOC = F18 | IOSTANDARD = LVCMOS25;
#NET phy_mii_int_n  LOC = F17 | IOSTANDARD = LVCMOS25;
NET phy_rst_n      LOC = F8  | IOSTANDARD = LVCMOS25;
NET phy_tx_data(7) LOC = D25 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(6) LOC = C26 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(5) LOC = B26 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(4) LOC = A25 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(3) LOC = B25 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(2) LOC = C24 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(1) LOC = D24 | IOSTANDARD = LVDCI_33;
NET phy_tx_data(0) LOC = C23 | IOSTANDARD = LVDCI_33;
NET phy_tx_en      LOC = B24 | IOSTANDARD = LVDCI_33;
NET phy_tx_er      LOC = A24 | IOSTANDARD = LVDCI_33;
NET phy_gtx_clk    LOC = D26 | IOSTANDARD = LVDCI_33;
NET phy_mii_data   LOC = E8  | IOSTANDARD = LVCMOS25;

#NET phy_mii_int_n  PULLUP;

#NET phy_mii_int_n  TIG;
#NET phy_rst_n      TIG;

# Timing Constraints (these are recommended in documentation and
# are unaltered except for the TIG)
#NET "phy_rx_clk" TNM_NET = "RXCLK_GRP";
#NET "phy_tx_clk" TNM_NET = "TXCLK_GRP";
#TIMESPEC "TSTXOUT" = FROM "TXCLK_GRP" TO "PADS" 10 ns;
#TIMESPEC "TSRXIN" = FROM "PADS" TO "RXCLK_GRP" 6 ns;
#
#NET "phy_rx_data(7)" IOBDELAY=NONE;
#NET "phy_rx_data(6)" IOBDELAY=NONE;
#NET "phy_rx_data(5)" IOBDELAY=NONE;
#NET "phy_rx_data(4)" IOBDELAY=NONE;
#NET "phy_rx_data(3)" IOBDELAY=NONE;
#NET "phy_rx_data(2)" IOBDELAY=NONE;
#NET "phy_rx_data(1)" IOBDELAY=NONE;
#NET "phy_rx_data(0)" IOBDELAY=NONE;
#NET "phy_dv" IOBDELAY=NONE;
#NET "phy_rx_er" IOBDELAY=NONE;
#NET "phy_crs" IOBDELAY=NONE;
#NET "phy_col" IOBDELAY=NONE;
#
## Timing ignores (to specify unconstrained paths)
#TIMESPEC "TS_PHYTX_OPB" = FROM "TXCLK_GRP" TO "clkm" TIG;
#TIMESPEC "TS_OPB_PHYTX" = FROM "clkm" TO "TXCLK_GRP" TIG;
#TIMESPEC "TS_PHYRX_OPB" = FROM "RXCLK_GRP" TO "clkm" TIG;
#TIMESPEC "TS_OPB_PHYRX" = FROM "clkm" TO "RXCLK_GRP" TIG;

#------------------------------------------------------------------------------
# IO Pad Location Constraints / Properties for AC97 Sound Controller
#------------------------------------------------------------------------------

#NET ac97_bit_clk   LOC = AC13;
#NET ac97_bit_clk   IOSTANDARD = LVCMOS33;
#NET ac97_bit_clk   PERIOD = 80;
#NET ac97_sdata_in  LOC = AC12;
#NET ac97_sdata_in  IOSTANDARD = LVCMOS33;
#NET ac97_sdata_out LOC = AC11;
#NET ac97_sdata_out IOSTANDARD = LVCMOS33;
#NET ac97_sync      LOC = AD11;
#NET ac97_sync      IOSTANDARD = LVCMOS33;


NET  "ddr2_dq[*]"                               IOSTANDARD = SSTL18_II_DCI;
NET  "ddr2_a[*]"                                IOSTANDARD = SSTL18_II;
NET  "ddr2_ba[*]"                               IOSTANDARD = SSTL18_II;
NET  "ddr2_ras_n"                               IOSTANDARD = SSTL18_II;
NET  "ddr2_cas_n"                               IOSTANDARD = SSTL18_II;
NET  "ddr2_we_n"                                IOSTANDARD = SSTL18_II;
NET  "ddr2_cs_n[*]"                             IOSTANDARD = SSTL18_II;
NET  "ddr2_odt[*]"                              IOSTANDARD = SSTL18_II;
NET  "ddr2_cke[*]"                              IOSTANDARD = SSTL18_II;
NET  "ddr2_dm[*]"                               IOSTANDARD = SSTL18_II;
#NET  "sys_clk_p"                                IOSTANDARD = LVDS_25 | DIFF_TERM = TRUE;
#NET  "sys_clk_n"                                IOSTANDARD = LVDS_25 | DIFF_TERM = TRUE;
NET  "clk_200_p"                                 IOSTANDARD = LVDS_25 | DIFF_TERM = TRUE;
NET  "clk_200_n"                                 IOSTANDARD = LVDS_25 | DIFF_TERM = TRUE;
#NET  "sys_rst_n"                                IOSTANDARD = LVCMOS18;
#NET  "phy_init_done"                           IOSTANDARD = LVCMOS18;
#NET  "error"                                   IOSTANDARD = LVCMOS18;
NET  "ddr2_dqs[*]"                              IOSTANDARD = DIFF_SSTL18_II_DCI;
NET  "ddr2_dqs_n[*]"                            IOSTANDARD = DIFF_SSTL18_II_DCI;
NET  "ddr2_ck[*]"                               IOSTANDARD = DIFF_SSTL18_II;
NET  "ddr2_ck_n[*]"                             IOSTANDARD = DIFF_SSTL18_II;


