Skip to content

Commit

Permalink
axi_ad9361: add_instance command must have a version attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Istvan Csomortani authored and acostina committed Aug 11, 2020
1 parent a66029a commit fe90fc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions library/axi_ad9361/axi_ad9361_hw.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ proc axi_ad9361_elab {} {
set m_fpga_technology [get_parameter_value "FPGA_TECHNOLOGY"]
set m_cmos_or_lvds_n [get_parameter_value "CMOS_OR_LVDS_N"]
set rx_nodpa [get_parameter_value "RX_NODPA"]

# 103 - stands for "Arria 10" see adi_intel_device_info_enc.tcl
if {$m_fpga_technology == 103} {

add_hdl_instance axi_ad9361_serdes_clk intel_serdes
add_hdl_instance axi_ad9361_serdes_clk intel_serdes 1.0
set_instance_parameter_value axi_ad9361_serdes_clk {DEVICE_FAMILY} {Arria 10}
set_instance_parameter_value axi_ad9361_serdes_clk {MODE} {CLK}
set_instance_parameter_value axi_ad9361_serdes_clk {DDR_OR_SDR_N} {1}
Expand All @@ -188,27 +188,27 @@ proc axi_ad9361_elab {} {
set rx_serdes_mode IN
if {$rx_nodpa == 1} {set rx_serdes_mode IN_NODPA}

add_hdl_instance axi_ad9361_serdes_in intel_serdes
add_hdl_instance axi_ad9361_serdes_in intel_serdes 1.0
set_instance_parameter_value axi_ad9361_serdes_in {DEVICE_FAMILY} {Arria 10}
set_instance_parameter_value axi_ad9361_serdes_in {MODE} $rx_serdes_mode
set_instance_parameter_value axi_ad9361_serdes_in {DDR_OR_SDR_N} {1}
set_instance_parameter_value axi_ad9361_serdes_in {SERDES_FACTOR} {4}
set_instance_parameter_value axi_ad9361_serdes_in {CLKIN_FREQUENCY} {250.0}

add_hdl_instance axi_ad9361_serdes_out intel_serdes
add_hdl_instance axi_ad9361_serdes_out intel_serdes 1.0
set_instance_parameter_value axi_ad9361_serdes_out {DEVICE_FAMILY} {Arria 10}
set_instance_parameter_value axi_ad9361_serdes_out {MODE} {OUT}
set_instance_parameter_value axi_ad9361_serdes_out {DDR_OR_SDR_N} {1}
set_instance_parameter_value axi_ad9361_serdes_out {SERDES_FACTOR} {4}
set_instance_parameter_value axi_ad9361_serdes_out {CLKIN_FREQUENCY} {250.0}

add_hdl_instance axi_ad9361_data_out altera_gpio
add_hdl_instance axi_ad9361_data_out altera_gpio 19.1
set_instance_parameter_value axi_ad9361_data_out {DEVICE_FAMILY} {Arria 10}
set_instance_parameter_value axi_ad9361_data_out {PIN_TYPE_GUI} {Output}
set_instance_parameter_value axi_ad9361_data_out {SIZE} {1}
set_instance_parameter_value axi_ad9361_data_out {gui_io_reg_mode} {DDIO}

add_hdl_instance clk_buffer altclkctrl
add_hdl_instance clk_buffer altclkctrl 19.1
set_instance_parameter_value clk_buffer {DEVICE_FAMILY} {Arria 10}

}
Expand Down
6 changes: 3 additions & 3 deletions library/intel/common/intel_serdes/intel_serdes_hw.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ proc p_intel_serdes {} {
## arria 10 only

if {$m_mode == "CLK"} {
add_instance intel_serdes_pll altera_iopll
add_instance intel_serdes_pll altera_iopll 19.1
set_instance_parameter_value intel_serdes_pll {gui_reference_clock_frequency} $m_clkin_frequency
set_instance_parameter_value intel_serdes_pll {gui_use_locked} {1}
set_instance_parameter_value intel_serdes_pll {gui_operation_mode} {lvds}
Expand Down Expand Up @@ -78,7 +78,7 @@ proc p_intel_serdes {} {
}

if {$m_mode == "IN" || $m_mode == "IN_NODPA"} {
add_instance intel_serdes_in altera_lvds
add_instance intel_serdes_in altera_lvds 19.1
if {$m_mode == "IN"} {
set_instance_parameter_value intel_serdes_in {MODE} {RX_DPA-FIFO}
} else {
Expand Down Expand Up @@ -112,7 +112,7 @@ proc p_intel_serdes {} {
}

if {$m_mode == "OUT"} {
add_instance intel_serdes_out altera_lvds
add_instance intel_serdes_out altera_lvds 19.1
set_instance_parameter_value intel_serdes_out {MODE} {TX}
set_instance_parameter_value intel_serdes_out {NUM_CHANNELS} {1}
set_instance_parameter_value intel_serdes_out {DATA_RATE} $m_hs_data_rate
Expand Down

0 comments on commit fe90fc7

Please sign in to comment.