UCF中的管教约束如下:
Net led_control_0_led_pin<0> LOC = R20;
Net led_control_0_led_pin<0> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<1> LOC = T19;
Net led_control_0_led_pin<1> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<2> LOC = U20;
Net led_control_0_led_pin<2> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<3> LOC = U19;
Net led_control_0_led_pin<3> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<4> LOC = V19;
Net led_control_0_led_pin<4> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<5> LOC = V20;
Net led_control_0_led_pin<5> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<6> LOC = Y22;
Net led_control_0_led_pin<6> IOSTANDARD = LVCMOS33;
Net led_control_0_led_pin<7> LOC = W21;
Net led_control_0_led_pin<7> IOSTANDARD = LVCMOS33;
mhs文件中的定制ip部分如下:
BEGIN led_control
PARAMETER INSTANCE = led_control_0
PARAMETER HW_VER = 1.00.a
PARAMETER C_BASEADDR = 0x84418000
PARAMETER C_HIGHADDR = 0x8441ffff
BUS_INTERFACE SPLB = plb_v46_0
PORT led = led_control_0_led
END
xparameters.h文件中的自制ip部分如下:
/* Definitions for driver LED_CONTROL */
#define XPAR_LED_CONTROL_NUM_INSTANCES 1