library: Use ad_ip_intf_s_axi were applicable
Use the ad_ip_intf_s_axi helper function to create the axi4lite slave interface for memory mapped peripherals. This slightly reduces the amount of boilerplate code in the peripheral's *hw.tcl Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
7a04b4723b
commit
bd8d676346
|
@ -41,35 +41,7 @@ set_parameter_property NUM_OF_LANES HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave interface
|
# axi4 slave interface
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn 12
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 12
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 12
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# xcvr interface
|
# xcvr interface
|
||||||
|
|
||||||
|
|
|
@ -60,35 +60,7 @@ set_parameter_property DEVICE_TYPE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -52,35 +52,7 @@ set_parameter_property DEVICE_TYPE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -52,35 +52,7 @@ set_parameter_property DEVICE_TYPE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -75,35 +75,7 @@ set_parameter_property ADC_DATAPATH_DISABLE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -60,35 +60,7 @@ set_parameter_property QUAD_OR_DUAL_N HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -52,35 +52,7 @@ set_parameter_property DEVICE_TYPE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# transceiver interface
|
# transceiver interface
|
||||||
|
|
||||||
|
|
|
@ -152,35 +152,7 @@ set_parameter_property FIFO_SIZE HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn 12
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 14
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 14
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
|
|
||||||
add_interface interrupt_sender interrupt end
|
add_interface interrupt_sender interrupt end
|
||||||
set_interface_property interrupt_sender associatedAddressablePoint ""
|
set_interface_property interrupt_sender associatedAddressablePoint ""
|
||||||
|
|
|
@ -68,35 +68,7 @@ set_parameter_property EMBEDDED_SYNC HDL_PARAMETER true
|
||||||
|
|
||||||
# axi4 slave
|
# axi4 slave
|
||||||
|
|
||||||
add_interface s_axi_clock clock end
|
ad_ip_intf_s_axi s_axi_aclk s_axi_aresetn
|
||||||
add_interface_port s_axi_clock s_axi_aclk clk Input 1
|
|
||||||
|
|
||||||
add_interface s_axi_reset reset end
|
|
||||||
set_interface_property s_axi_reset associatedClock s_axi_clock
|
|
||||||
add_interface_port s_axi_reset s_axi_aresetn reset_n Input 1
|
|
||||||
|
|
||||||
add_interface s_axi axi4lite end
|
|
||||||
set_interface_property s_axi associatedClock s_axi_clock
|
|
||||||
set_interface_property s_axi associatedReset s_axi_reset
|
|
||||||
add_interface_port s_axi s_axi_awvalid awvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_awaddr awaddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_awprot awprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_awready awready Output 1
|
|
||||||
add_interface_port s_axi s_axi_wvalid wvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_wdata wdata Input 32
|
|
||||||
add_interface_port s_axi s_axi_wstrb wstrb Input 4
|
|
||||||
add_interface_port s_axi s_axi_wready wready Output 1
|
|
||||||
add_interface_port s_axi s_axi_bvalid bvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_bresp bresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_bready bready Input 1
|
|
||||||
add_interface_port s_axi s_axi_arvalid arvalid Input 1
|
|
||||||
add_interface_port s_axi s_axi_araddr araddr Input 16
|
|
||||||
add_interface_port s_axi s_axi_arprot arprot Input 3
|
|
||||||
add_interface_port s_axi s_axi_arready arready Output 1
|
|
||||||
add_interface_port s_axi s_axi_rvalid rvalid Output 1
|
|
||||||
add_interface_port s_axi s_axi_rresp rresp Output 2
|
|
||||||
add_interface_port s_axi s_axi_rdata rdata Output 32
|
|
||||||
add_interface_port s_axi s_axi_rready rready Input 1
|
|
||||||
|
|
||||||
# hdmi interface
|
# hdmi interface
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue