mirror of https://github.com/openXC7/prjxray.git
26 lines
998 B
Tcl
26 lines
998 B
Tcl
# Create a simple design with a few IOs
|
|
|
|
create_project -force -part $::env(XRAY_PART) design design
|
|
read_verilog $::env(TOP_V)
|
|
synth_design -top top -flatten_hierarchy none
|
|
|
|
set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_00) IOSTANDARD LVCMOS33" [get_ports clk]
|
|
set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_01) IOSTANDARD LVCMOS33" [get_ports stb]
|
|
set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_02) IOSTANDARD LVCMOS33" [get_ports di]
|
|
set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_03) IOSTANDARD LVCMOS33" [get_ports do]
|
|
|
|
set_property CFGBVS VCCO [current_design]
|
|
set_property CONFIG_VOLTAGE 3.3 [current_design]
|
|
set_property BITSTREAM.GENERAL.PERFRAMECRC YES [current_design]
|
|
|
|
set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_IBUF]
|
|
|
|
place_design
|
|
route_design
|
|
write_checkpoint -force design.dcp
|
|
|
|
# set port [create_port -direction OUT myport]
|
|
# set_property -dict "PACKAGE_PIN D19 IOSTANDARD LVCMOS33" $port
|
|
# set_property PULLTYPE PULLUP $port
|
|
# set_property PULLTYPE PULLDOWN $port
|