Skip to content
Snippets Groups Projects
Commit 62031a68 authored by Jonathan Hargreaves's avatar Jonathan Hargreaves
Browse files

Ten GbE phy ip for arria 10 e3sge3 (unb2a) device

parent 16efe183
No related branches found
No related tags found
No related merge requests found
#------------------------------------------------------------------------------
#
# Copyright (C) 2014
# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
# JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#------------------------------------------------------------------------------
# This file is based on generated file mentor/msim_setup.tcl.
# - the values for modelsim_search_libraries key in the hdllib.cfg follow from altera libraries vmap section in the msim_setup.tcl
# - vmap for the IP specific libraries and compile all IP source files into those libraries similar as in the msim_setup.tcl
# - replace QSYS_SIMDIR by IP_DIR
# - if the testbench is also generated with QSYS then only the IP_TBDIR files are needed, because these also contain the source files.
set IP_DIR "$env(RADIOHDL)/libraries/technology/ip_arria10_e3sge3/phy_10gbase_r/generated/sim"
#vlib ./work/ ;# Assume library work already exists
vmap altera_common_sv_packages ./work/
vmap ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151 ./work/
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/altera_xcvr_native_a10_functions_h.sv" -work altera_common_sv_packages
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_resync.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_arbiter.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/alt_xcvr_resync.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/alt_xcvr_arbiter.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_pcs.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_pma.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_xcvr_avmm.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_xcvr_native.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_pcs.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_pma.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_xcvr_avmm.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_xcvr_native.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/a10_avmm_h.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_avmm_csr.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_prbs_accum.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_odi_accel.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_rcfg_arb.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151_vst4egi.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_rcfg_opt_logic_vst4egi.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
vcom "$IP_DIR/ip_arria10_e3sge3_phy_10gbase_r.vhd"
#!/bin/bash
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2014
# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
# JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# -------------------------------------------------------------------------- #
#
# Purpose: Generate IP with Qsys
# Description:
# Generate the IP in a separate generated/ subdirectory.
#
# Usage:
#
# ./generate_ip.sh
#
# Tool settings for selected target "unb2" with arria10
. ${RADIOHDL}/tools/quartus/set_quartus unb2a
#qsys-generate --help
# Only generate the source IP
# - use --synthesis=VHDL to have top level in VHDL similar as with MegaWizard
qsys-generate ip_arria10_e3sge3_phy_10gbase_r.qsys \
--synthesis=VHDL \
--simulation=VHDL \
--output-directory=generated \
--allow-mixed-language-simulation
hdl_lib_name = ip_arria10_e3sge3_phy_10gbase_r
hdl_library_clause_name = ip_arria10_e3sge3_phy_10gbase_r_altera_xcvr_native_a10_151
hdl_lib_uses_synth =
hdl_lib_uses_sim =
hdl_lib_technology = ip_arria10_e3sge3
modelsim_compile_ip_files =
$RADIOHDL/libraries/technology/ip_arria10_e3sge3/phy_10gbase_r/compile_ip.tcl
synth_files =
test_bench_files =
quartus_qip_files =
generated/ip_arria10_e3sge3_phy_10gbase_r.qip
#------------------------------------------------------------------------------
#
# Copyright (C) 2014
# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
# JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#------------------------------------------------------------------------------
# This file is based on generated file mentor/msim_setup.tcl.
# - the values for modelsim_search_libraries key in the hdllib.cfg follow from altera libraries vmap section in the msim_setup.tcl
# - vmap for the IP specific libraries and compile all IP source files into those libraries similar as in the msim_setup.tcl
# - replace QSYS_SIMDIR by IP_DIR
# - if the testbench is also generated with QSYS then only the IP_TBDIR files are needed, because these also contain the source files.
set IP_DIR "$env(RADIOHDL)/libraries/technology/ip_arria10_e3sge3/phy_10gbase_r_4/generated/sim"
#vlib ./work/ ;# Assume library work already exists
vmap altera_common_sv_packages ./work/
vmap ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151 ./work/
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/altera_xcvr_native_a10_functions_h.sv" -work altera_common_sv_packages
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_resync.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_arbiter.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/alt_xcvr_resync.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/alt_xcvr_arbiter.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_pcs.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_pma.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_xcvr_avmm.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/twentynm_xcvr_native.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_pcs.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_pma.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_xcvr_avmm.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/mentor/twentynm_xcvr_native.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/a10_avmm_h.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_avmm_csr.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_prbs_accum.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_odi_accel.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_rcfg_arb.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151_xb3mmhi.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vlog -sv "$IP_DIR/../altera_xcvr_native_a10_151/sim/alt_xcvr_native_rcfg_opt_logic_xb3mmhi.sv" -L altera_common_sv_packages -work ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
vcom "$IP_DIR/ip_arria10_e3sge3_phy_10gbase_r_4.vhd"
#!/bin/bash
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2014
# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
# JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# -------------------------------------------------------------------------- #
#
# Purpose: Generate IP with Qsys
# Description:
# Generate the IP in a separate generated/ subdirectory.
#
# Usage:
#
# ./generate_ip.sh
#
# Tool settings for selected target "unb2" with arria10
. ${RADIOHDL}/tools/quartus/set_quartus unb2a
#qsys-generate --help
# Only generate the source IP
# - use --synthesis=VHDL to have top level in VHDL similar as with MegaWizard
qsys-generate ip_arria10_e3sge3_phy_10gbase_r_4.qsys \
--synthesis=VHDL \
--simulation=VHDL \
--output-directory=generated \
--allow-mixed-language-simulation
hdl_lib_name = ip_arria10_e3sge3_phy_10gbase_r_4
hdl_library_clause_name = ip_arria10_e3sge3_phy_10gbase_r_4_altera_xcvr_native_a10_151
hdl_lib_uses_synth =
hdl_lib_uses_sim =
hdl_lib_technology = ip_arria10_e3sge3
modelsim_compile_ip_files =
$RADIOHDL/libraries/technology/ip_arria10_e3sge3/phy_10gbase_r_4/compile_ip.tcl
synth_files =
test_bench_files =
quartus_qip_files =
generated/ip_arria10_e3sge3_phy_10gbase_r_4.qip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment