Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
1
1gb_ethernet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
1gb_ethernet
Commits
aa7b0863
Commit
aa7b0863
authored
6 months ago
by
Aude Grabas
Browse files
Options
Downloads
Patches
Plain Diff
first commit
parent
d40d0409
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/main.adoc
+1
-0
1 addition, 0 deletions
doc/main.adoc
tcl/generate_ethernet.tcl
+51
-0
51 additions, 0 deletions
tcl/generate_ethernet.tcl
tcl/main.tcl
+56
-0
56 additions, 0 deletions
tcl/main.tcl
with
108 additions
and
0 deletions
doc/main.adoc
0 → 100644
+
1
−
0
View file @
aa7b0863
= Documentation
This diff is collapsed.
Click to expand it.
tcl/generate_ethernet.tcl
0 → 100644
+
51
−
0
View file @
aa7b0863
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
This diff is collapsed.
Click to expand it.
tcl/main.tcl
0 → 100644
+
56
−
0
View file @
aa7b0863
################################################################################
# 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
{}
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment