Skip to content
Snippets Groups Projects
Commit aa7b0863 authored by Aude Grabas's avatar Aude Grabas
Browse files

first commit

parent d40d0409
No related branches found
No related tags found
No related merge requests found
= Documentation
set ProjectDirPath [file join ${::fwfwk::PrjBuildPath} ${::fwfwk::PrjBuildName}]
## ------------------------------------- ##
## 1GB ETHERNET CORE
## ------------------------------------- ##
set ipName "gig_axi_ethernet_$idx"
#VLNV (cf GUI vivado)
set xcipath [create_ip \
-name axi_ethernet \
-vendor xilinx.com \
-library ip -version 7.2 \
-module_name $ipName]
# These parameters are "hard coded" for our application:
# GT_TYPE : GTY (we are on FMC1 slot) GTH_LOC = X0Y5
# Here we select IP configuration as if we were using the wizard
# TBC : Management Interface ?
set ipProp [list \
# Interface
CONFIG.PHY_TYPE {1000BaseX}\
#GT parameters
CONFIG.gt_type $GT_TYPE\
CONFIG.gtlocation $GT_LOC\
CONFIG.gtrefclkrate {156.25}\
CONFIG.speed_1_2p5 $GB_SPEED\
CONFIG.processor_mode {false}\
#Mac Features
CONFIG.Statistics_Counters {true}\
CONFIG.Statistics_Reset {true}\
CONFIG.Statistics_Width {64bit}\
]
set_property -dict $ipProp [get_ips $ipName]
generate_target all [get_files ${ProjectDirPath}.srcs/sources_1/ip/$ipName/$ipName.xci]
export_ip_user_files -of_objects [get_files ${ProjectDirPath}.srcs/sources_1/ip/$ipName/$ipName.xci] -no_script -sync -force -quiet
create_ip_run [get_files -of_objects [get_fileset sources_1] ${ProjectDirPath}.srcs/sources_1/ip/$ipName/$ipName.xci]
## ------------------------------------- ##
## GT WIZARD
## ------------------------------------- ##
#default config
\ No newline at end of file
################################################################################
# Main tcl for the module
################################################################################
# ==============================================================================
proc init {} {
# Configuration
variable Config
}
# ==============================================================================
proc setSources {} {
variable Sources
# Generate VHDL package with module version
genModVerFile VHDL ../hdl/pkg_ccn_ethernet_version.vhd
# {SrcFile SrcType srcLib usedIn procOrder}
lappend Sources {"../hdl/top_ccn_ethernet.vhd" "VHDL" "ccn_eth_lib"}
lappend Sources {"../hdl/ccn_ethernet.vhd" "VHDL" "ccn_eth_lib"}
lappend Sources {"../hdl/pkg_ccn_ethernet.vhd" "VHDL" "ccn_eth_lib"}
lappend Sources {"../hdl/pkg_ccn_ethernet_version.vhd" "VHDL" "ccn_eth_lib"}
lappend Sources {"../hdl/ccn_ethernet_reset.vhd" "VHDL" "ccn_eth_lib"}
}
# ==============================================================================
proc setAddressSpace {} {
variable AddressSpace
addAddressSpace AddressSpace "ccn_ethernet" RDL {} ../rdl/ccn_ethernet.rdl
addAddressSpace AddressSpace "xilinx_ethsubsyst" RDL {} ../rdl/xilinx_ethsubsyst.rdl
}
# ==============================================================================
proc doOnCreate {} {
variable Sources
variable Config
addSources Sources
set idx 0
foreach GTH_LOC $Config(GTH_LOC) {
source generate_ethernet.tcl
incr idx
}
}
# ==============================================================================
proc doOnBuild {} {
}
# ==============================================================================
proc setSim {} {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment