Getting Started With the ECP5

You'll want to first follow the steps listed here.

Pin Constraints Example

example.lpf

#12 MHZ clock
LOCATE COMP "osc_clk_in" SITE "A10";
IOBUF PORT "osc_clk_in" IO_TYPE=LVCMOS33;

LOCATE COMP "led[0]" SITE "A13";
LOCATE COMP "led[1]" SITE "A12";
LOCATE COMP "led[2]" SITE "B19";
LOCATE COMP "led[3]" SITE "A18";
LOCATE COMP "led[4]" SITE "B18";
LOCATE COMP "led[5]" SITE "C17";
LOCATE COMP "led[6]" SITE "A17";
LOCATE COMP "led[7]" SITE "B17";

IOBUF PORT "led[0]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[1]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[2]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[3]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[4]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[5]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[6]" IO_TYPE=LVCMOS33;
IOBUF PORT "led[7]" IO_TYPE=LVCMOS33;

LOCATE COMP "G1_data"	SITE "T17";
LOCATE COMP "GND1"		SITE "U16";
LOCATE COMP "G2_data"	SITE "U17";
LOCATE COMP "GND2"		SITE "N19";
LOCATE COMP "B"			SITE "M18";
LOCATE COMP "D"			SITE "N17";
LOCATE COMP "LAT"		SITE "U20";
LOCATE COMP "GND3"		SITE "T19";

IOBUF PORT "G1_data" IO_TYPE=LVCMOS33;
IOBUF PORT "GND1"	 IO_TYPE=LVCMOS33;
IOBUF PORT "G2_data" IO_TYPE=LVCMOS33;
IOBUF PORT "GND2"	 IO_TYPE=LVCMOS33;
IOBUF PORT "B"		 IO_TYPE=LVCMOS33;
IOBUF PORT "D"		 IO_TYPE=LVCMOS33;
IOBUF PORT "LAT"	 IO_TYPE=LVCMOS33;
IOBUF PORT "GND3"	 IO_TYPE=LVCMOS33;

  • ecp5_development_board.txt
  • Last modified: 2019/04/11 11:09
  • by yehowshua