Skip to content
Snippets Groups Projects
Commit fec74c4d authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

altera: support quartus 13.1

Changes to the TCL scripts were needed.
To simplify future changes, the work was handed off to a shared function.
parent bb12daa4
Branches
Tags
No related merge requests found
set files { arria2gx/dual_region arria2gx/single_region arria2gx/global_region }
set dir [file dirname [info script]]
post_message "Testing for megawizard regeneration in $dir:$files"
foreach i $files {
if {![file exists "$dir/$i.qip"] || [file mtime "$dir/$i.txt"] > [file mtime "$dir/$i.qip"]} {
post_message "Regenerating $i using qmegawiz"
file copy -force "$dir/$i.txt" "$dir/$i.vhd"
set sf [open "| qmegawiz -silent $dir/$i.vhd" "r"]
while {[gets $sf line] >= 0} { post_message "$line" }
close $sf
file mtime "$dir/$i.qip" [file mtime "$dir/$i.vhd"]
}
}
qmegawiz { arria2gx/dual_region arria2gx/single_region arria2gx/global_region }
set files { arria5/dual_region arria5/single_region arria5/global_region }
set dir [file dirname [info script]]
post_message "Testing for megawizard regeneration in $dir:$files"
foreach i $files {
if {![file exists "$dir/$i.qip"] || [file mtime "$dir/$i.txt"] > [file mtime "$dir/$i.qip"]} {
post_message "Regenerating $i using qmegawiz"
file copy -force "$dir/$i.txt" "$dir/$i.vhd"
set sf [open "| qmegawiz -silent $dir/$i.vhd" "r"]
while {[gets $sf line] >= 0} { post_message "$line" }
close $sf
file mtime "$dir/$i.qip" [file mtime "$dir/$i.vhd"]
}
}
qmegawiz { arria5/dual_region arria5/single_region arria5/global_region }
......@@ -12,6 +12,7 @@ arria5_pcie_reconf_sim
arria5_pcie_reconf.sip
arria5_pcie_reconf.spd
arria5_pcie_reconf.vhd
arria5_pcie_reconf_sim.f
# arria5 pcie hard ip core
arria5_pcie_hip_example_design/
arria5_pcie_hip_sim/
......@@ -24,6 +25,7 @@ arria5_pcie_hip_sim
arria5_pcie_hip.sip
arria5_pcie_hip.spd
arria5_pcie_hip.vhd
arria5_pcie_hip_sim.f
# arria2 pcie reconfig core
arria2_pcie_reconf.cmp
arria2_pcie_reconf.qip
......
set files { arria2_pcie_hip arria2_pcie_reconf }
set dir [file dirname [info script]]
post_message "Testing for megawizard regeneration in $dir:$files"
foreach i $files {
if {![file exists "$dir/$i.qip"] || [file mtime "$dir/$i.txt"] > [file mtime "$dir/$i.qip"]} {
post_message "Regenerating $i using qmegawiz"
file copy -force "$dir/$i.txt" "$dir/$i.vhd"
# disable error reporting as arria2 hip is broken
# set sf [open "| qmegawiz -silent $dir/$i.vhd" "r"]
# while {[gets $sf line] >= 0} { post_message "$line" }
# close $sf
qexec "qmegawiz -silent $dir/$i.vhd"
file mtime "$dir/$i.qip" [file mtime "$dir/$i.vhd"]
}
}
qmegawiz { arria2_pcie_hip arria2_pcie_reconf }
# erase the broke SDC file that gets generated
open "$dir/arria2_pcie_hip.sdc" "w"
\ No newline at end of file
set dir [file dirname [info script]]
open "$dir/arria2_pcie_hip.sdc" "w"
-- megafunction wizard: %IP Compiler for PCI Express v12.1%
-- Retrieval info: <?xml version="1.0"?>
-- Retrieval info: <MEGACORE title="IP Compiler for PCI Express" version="12.1" build="243" iptb_version="1.3.0 Build 243" format_version="120" >
-- megafunction wizard: %IP Compiler for PCI Express v13.1%
-- Retrieval info: <MEGACORE title="IP Compiler for PCI Express" version="13.1" build="162" iptb_version="1.3.0 Build 162" format_version="120" >
-- Retrieval info: <NETLIST_SECTION class="altera.ipbu.flowbase.netlist.model.MVCModel" active_core="altpcie_hip_pipen1b" >
-- Retrieval info: <STATIC_SECTION>
-- Retrieval info: <PRIVATES>
......@@ -41,7 +40,7 @@
-- Retrieval info: <PRIVATE name = "actualBAR4Size" value="0" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "actualBAR5AvalonAddress" value="0" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "actualBAR5Size" value="0" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "allowedDeviceFamilies" value="[Stratix II, Arria II GZ, Arria V, Arria V GZ, Stratix GX, Cyclone III, Cyclone II, Cyclone IV E, Cyclone V, HardCopy II, HardCopy III, HardCopy IV, MAX V, Arria II GX, Cyclone IV GX, Stratix II GX, Arria GX, Stratix V, Cyclone III LS, Stratix IV, Stratix III, Cyclone, MAX II, Stratix]" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "allowedDeviceFamilies" value="[Arria II GX, Arria II GZ, Arria V, Cyclone III, Cyclone III LS, Cyclone IV E, Cyclone IV GX, Cyclone V]" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "altgx_generated" value="0" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "clockSource" value="N/A" type="STRING" enable="1" />
-- Retrieval info: <PRIVATE name = "contextState" value="NativeContext" type="STRING" enable="1" />
......
......@@ -4,11 +4,11 @@
-- MODULE: alt2gxb_reconfig
--alt2gxb_reconfig BASE_PORT_WIDTH=1 CBX_AUTO_BLACKBOX="ALL" DEVICE_FAMILY="Arria II GX" ENABLE_BUF_CAL="TRUE" ENABLE_CHL_ADDR_FOR_ANALOG_CTRL="TRUE" NUMBER_OF_CHANNELS=1 NUMBER_OF_RECONFIG_PORTS=1 READ_BASE_PORT_WIDTH=1 RECONFIG_FROMGXB_WIDTH=17 RECONFIG_TOGXB_WIDTH=4 busy reconfig_clk reconfig_fromgxb reconfig_mode_sel reconfig_togxb
--VERSION_BEGIN 12.1SP1 cbx_alt2gxb_reconfig 2013:01:31:18:04:54:SJ cbx_alt_cal 2013:01:31:18:04:54:SJ cbx_alt_dprio 2013:01:31:18:04:54:SJ cbx_altsyncram 2013:01:31:18:04:54:SJ cbx_cycloneii 2013:01:31:18:04:54:SJ cbx_lpm_add_sub 2013:01:31:18:04:54:SJ cbx_lpm_compare 2013:01:31:18:04:54:SJ cbx_lpm_counter 2013:01:31:18:04:54:SJ cbx_lpm_decode 2013:01:31:18:04:54:SJ cbx_lpm_mux 2013:01:31:18:04:54:SJ cbx_lpm_shiftreg 2013:01:31:18:04:54:SJ cbx_mgl 2013:01:31:19:27:12:SJ cbx_stratix 2013:01:31:18:04:54:SJ cbx_stratixii 2013:01:31:18:04:54:SJ cbx_stratixiii 2013:01:31:18:04:54:SJ cbx_stratixv 2013:01:31:18:04:54:SJ cbx_util_mgl 2013:01:31:18:04:54:SJ VERSION_END
--VERSION_BEGIN 13.1 cbx_alt2gxb_reconfig 2013:10:17:04:07:49:SJ cbx_alt_cal 2013:10:17:04:07:49:SJ cbx_alt_dprio 2013:10:17:04:07:49:SJ cbx_altsyncram 2013:10:17:04:07:49:SJ cbx_cycloneii 2013:10:17:04:07:49:SJ cbx_lpm_add_sub 2013:10:17:04:07:49:SJ cbx_lpm_compare 2013:10:17:04:07:49:SJ cbx_lpm_counter 2013:10:17:04:07:49:SJ cbx_lpm_decode 2013:10:17:04:07:49:SJ cbx_lpm_mux 2013:10:17:04:07:49:SJ cbx_lpm_shiftreg 2013:10:17:04:07:49:SJ cbx_mgl 2013:10:17:04:34:36:SJ cbx_stratix 2013:10:17:04:07:49:SJ cbx_stratixii 2013:10:17:04:07:49:SJ cbx_stratixiii 2013:10:17:04:07:49:SJ cbx_stratixv 2013:10:17:04:07:49:SJ cbx_util_mgl 2013:10:17:04:07:49:SJ VERSION_END
--alt_dprio address_width=16 CBX_AUTO_BLACKBOX="ALL" device_family="Arria II GX" quad_address_width=9 address busy datain dataout dpclk dpriodisable dprioin dprioload dprioout quad_address rden reset wren wren_data
--VERSION_BEGIN 12.1SP1 cbx_alt_dprio 2013:01:31:18:04:54:SJ cbx_cycloneii 2013:01:31:18:04:54:SJ cbx_lpm_add_sub 2013:01:31:18:04:54:SJ cbx_lpm_compare 2013:01:31:18:04:54:SJ cbx_lpm_counter 2013:01:31:18:04:54:SJ cbx_lpm_decode 2013:01:31:18:04:54:SJ cbx_lpm_shiftreg 2013:01:31:18:04:54:SJ cbx_mgl 2013:01:31:19:27:12:SJ cbx_stratix 2013:01:31:18:04:54:SJ cbx_stratixii 2013:01:31:18:04:54:SJ VERSION_END
--VERSION_BEGIN 13.1 cbx_alt_dprio 2013:10:17:04:07:49:SJ cbx_cycloneii 2013:10:17:04:07:49:SJ cbx_lpm_add_sub 2013:10:17:04:07:49:SJ cbx_lpm_compare 2013:10:17:04:07:49:SJ cbx_lpm_counter 2013:10:17:04:07:49:SJ cbx_lpm_decode 2013:10:17:04:07:49:SJ cbx_lpm_shiftreg 2013:10:17:04:07:49:SJ cbx_mgl 2013:10:17:04:34:36:SJ cbx_stratix 2013:10:17:04:07:49:SJ cbx_stratixii 2013:10:17:04:07:49:SJ VERSION_END
-- ============================================================
-- CNX file retrieval info
......
set files { arria5_pcie_hip arria5_pcie_reconf }
set dir [file dirname [info script]]
post_message "Testing for megawizard regeneration in $dir:$files"
foreach i $files {
if {![file exists "$dir/$i.qip"] || [file mtime "$dir/$i.txt"] > [file mtime "$dir/$i.qip"]} {
post_message "Regenerating $i using qmegawiz"
file copy -force "$dir/$i.txt" "$dir/$i.vhd"
set sf [open "| qmegawiz -silent $dir/$i.vhd" "r"]
while {[gets $sf line] >= 0} { post_message "$line" }
close $sf
file mtime "$dir/$i.qip" [file mtime "$dir/$i.vhd"]
}
}
qmegawiz { arria5_pcie_hip arria5_pcie_reconf }
-- megafunction wizard: %Arria V Hard IP for PCI Express v12.1%
-- Retrieval info: <instance entity-name="altera_pcie_av_hip_ast" version="12.1" >
-- Retrieval info: <generic name="INTENDED_DEVICE_FAMILY" value="Stratix" />
-- megafunction wizard: %Arria V Hard IP for PCI Express v13.1%
-- megafunction wizard: %Arria V Hard IP for PCI Express v13.1%
-- Retrieval info: <instance entity-name="altera_pcie_av_hip_ast" version="13.1" >
-- Retrieval info: <generic name="INTENDED_DEVICE_FAMILY" value="Arria V" />
-- Retrieval info: <generic name="pcie_qsys" value="1" />
-- Retrieval info: <generic name="lane_mask_hwtcl" value="x4" />
-- Retrieval info: <generic name="gen12_lane_rate_mode_hwtcl" value="Gen1 (2.5 Gbps)" />
-- Retrieval info: <generic name="porttype_func_hwtcl" value="Native endpoint" />
-- Retrieval info: <generic name="pcie_spec_version_hwtcl" value="2.1" />
-- Retrieval info: <generic name="altpcie_avmm_hwtcl" value="0" />
-- Retrieval info: <generic name="ast_width_hwtcl" value="Avalon-ST 64-bit" />
-- Retrieval info: <generic name="rxbuffer_rxreq_hwtcl" value="Low" />
-- Retrieval info: <generic name="pll_refclk_freq_hwtcl" value="100 MHz" />
......@@ -71,6 +73,7 @@
-- Retrieval info: <generic name="serial_sim_hwtcl" value="0" />
-- Retrieval info: <generic name="override_rxbuffer_cred_preset" value="0" />
-- Retrieval info: <generic name="advanced_default_parameter_override" value="0" />
-- Retrieval info: <generic name="override_tbpartner_driver_setting_hwtcl" value="0" />
-- Retrieval info: <generic name="enable_rx_buffer_checking_advanced_default_hwtcl" value="false" />
-- Retrieval info: <generic name="disable_link_x2_support_advanced_default_hwtcl" value="false" />
-- Retrieval info: <generic name="device_number_advanced_default_hwtcl" value="0" />
......
-- megafunction wizard: %Transceiver Reconfiguration Controller v12.1%
-- Retrieval info: <instance entity-name="alt_xcvr_reconfig" version="12.1" >
-- megafunction wizard: %Transceiver Reconfiguration Controller v13.1%
-- Retrieval info: <instance entity-name="alt_xcvr_reconfig" version="13.1" >
-- Retrieval info: <generic name="device_family" value="Arria V" />
-- Retrieval info: <generic name="number_of_reconfig_interfaces" value="5" />
-- Retrieval info: <generic name="gui_split_sizes" value="" />
......@@ -8,6 +8,7 @@
-- Retrieval info: <generic name="enable_dcd_power_up" value="1" />
-- Retrieval info: <generic name="enable_analog" value="1" />
-- Retrieval info: <generic name="enable_eyemon" value="0" />
-- Retrieval info: <generic name="ber_en" value="0" />
-- Retrieval info: <generic name="enable_dfe" value="0" />
-- Retrieval info: <generic name="enable_adce" value="0" />
-- Retrieval info: <generic name="enable_mif" value="0" />
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment