Breadboarding a Spartan 7 series FPGA

Constraints code

set_property CFGBVS VCCO [current_design]
set_property CONFIG_VOLTAGE 3.3 [current_design]
set_property -dict { PACKAGE_PIN V6 IOSTANDARD LVCMOS33 } [get_ports { led1 }]; #IO_L22N_T3_AD7N_35 Sch=led0_b
set_property -dict { PACKAGE_PIN V7 IOSTANDARD LVCMOS33 } [get_ports { led2 }]; #IO_L21P_T3_DQS_AD14P_35 Sch=led0_r
set_property -dict { PACKAGE_PIN V2 IOSTANDARD LVCMOS33 } [get_ports { button1 }]; #IO_L4N_T0_35 Sch=btn[0]
set_property -dict { PACKAGE_PIN V3 IOSTANDARD LVCMOS33 } [get_ports { button2 }]; #IO_L4P_T0_35 Sch=btn[1]
set_property -dict { PACKAGE_PIN V4 IOSTANDARD LVCMOS33 } [get_ports { button3 }]; #IO_L4N_T0_35 Sch=btn[0]
set_property -dict { PACKAGE_PIN V5 IOSTANDARD LVCMOS33 } [get_ports { button4 }]; #IO_L4P_T0_35 Sch=btn[1]
view raw constraints.xdc hosted with ❤ by GitHub

Demo code

module top(
input button1,
input button2,
input button3,
input button4,
output led1,
output led2
);
assign led1 = button1 & button2 & button3 & button4;
assign led2 = button1 | button2 | button3 | button4;
endmodule
view raw top.v hosted with ❤ by GitHub