# Definitional proc to organize widgets for parameters.
proc init_gui { IPINST } {
  ipgui::add_param $IPINST -name "Component_Name"
  #Adding Page
  set Page_0 [ipgui::add_page $IPINST -name "Page 0"]
  ipgui::add_param $IPINST -name "C_S_AXI_ADDR_WIDTH" -parent ${Page_0}
  ipgui::add_param $IPINST -name "C_S_AXI_DATA_WIDTH" -parent ${Page_0}
  ipgui::add_param $IPINST -name "g_axi_timeout" -parent ${Page_0}
  ipgui::add_param $IPINST -name "g_lane_count" -parent ${Page_0}
  ipgui::add_param $IPINST -name "g_lmfc_buffer_size" -parent ${Page_0}
  ipgui::add_param $IPINST -name "g_scrambler_incl" -parent ${Page_0}
  ipgui::add_param $IPINST -name "g_stat_cnt_length" -parent ${Page_0}


}

proc update_PARAM_VALUE.C_S_AXI_ADDR_WIDTH { PARAM_VALUE.C_S_AXI_ADDR_WIDTH } {
	# Procedure called to update C_S_AXI_ADDR_WIDTH when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.C_S_AXI_ADDR_WIDTH { PARAM_VALUE.C_S_AXI_ADDR_WIDTH } {
	# Procedure called to validate C_S_AXI_ADDR_WIDTH
	return true
}

proc update_PARAM_VALUE.C_S_AXI_DATA_WIDTH { PARAM_VALUE.C_S_AXI_DATA_WIDTH } {
	# Procedure called to update C_S_AXI_DATA_WIDTH when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.C_S_AXI_DATA_WIDTH { PARAM_VALUE.C_S_AXI_DATA_WIDTH } {
	# Procedure called to validate C_S_AXI_DATA_WIDTH
	return true
}

proc update_PARAM_VALUE.g_axi_timeout { PARAM_VALUE.g_axi_timeout } {
	# Procedure called to update g_axi_timeout when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.g_axi_timeout { PARAM_VALUE.g_axi_timeout } {
	# Procedure called to validate g_axi_timeout
	return true
}

proc update_PARAM_VALUE.g_lane_count { PARAM_VALUE.g_lane_count } {
	# Procedure called to update g_lane_count when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.g_lane_count { PARAM_VALUE.g_lane_count } {
	# Procedure called to validate g_lane_count
	return true
}

proc update_PARAM_VALUE.g_lmfc_buffer_size { PARAM_VALUE.g_lmfc_buffer_size } {
	# Procedure called to update g_lmfc_buffer_size when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.g_lmfc_buffer_size { PARAM_VALUE.g_lmfc_buffer_size } {
	# Procedure called to validate g_lmfc_buffer_size
	return true
}

proc update_PARAM_VALUE.g_scrambler_incl { PARAM_VALUE.g_scrambler_incl } {
	# Procedure called to update g_scrambler_incl when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.g_scrambler_incl { PARAM_VALUE.g_scrambler_incl } {
	# Procedure called to validate g_scrambler_incl
	return true
}

proc update_PARAM_VALUE.g_stat_cnt_length { PARAM_VALUE.g_stat_cnt_length } {
	# Procedure called to update g_stat_cnt_length when any of the dependent parameters in the arguments change
}

proc validate_PARAM_VALUE.g_stat_cnt_length { PARAM_VALUE.g_stat_cnt_length } {
	# Procedure called to validate g_stat_cnt_length
	return true
}


proc update_MODELPARAM_VALUE.g_lane_count { MODELPARAM_VALUE.g_lane_count PARAM_VALUE.g_lane_count } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.g_lane_count}] ${MODELPARAM_VALUE.g_lane_count}
}

proc update_MODELPARAM_VALUE.g_stat_cnt_length { MODELPARAM_VALUE.g_stat_cnt_length PARAM_VALUE.g_stat_cnt_length } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.g_stat_cnt_length}] ${MODELPARAM_VALUE.g_stat_cnt_length}
}

proc update_MODELPARAM_VALUE.g_scrambler_incl { MODELPARAM_VALUE.g_scrambler_incl PARAM_VALUE.g_scrambler_incl } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.g_scrambler_incl}] ${MODELPARAM_VALUE.g_scrambler_incl}
}

proc update_MODELPARAM_VALUE.g_lmfc_buffer_size { MODELPARAM_VALUE.g_lmfc_buffer_size PARAM_VALUE.g_lmfc_buffer_size } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.g_lmfc_buffer_size}] ${MODELPARAM_VALUE.g_lmfc_buffer_size}
}

proc update_MODELPARAM_VALUE.g_axi_timeout { MODELPARAM_VALUE.g_axi_timeout PARAM_VALUE.g_axi_timeout } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.g_axi_timeout}] ${MODELPARAM_VALUE.g_axi_timeout}
}

proc update_MODELPARAM_VALUE.C_S_AXI_DATA_WIDTH { MODELPARAM_VALUE.C_S_AXI_DATA_WIDTH PARAM_VALUE.C_S_AXI_DATA_WIDTH } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.C_S_AXI_DATA_WIDTH}] ${MODELPARAM_VALUE.C_S_AXI_DATA_WIDTH}
}

proc update_MODELPARAM_VALUE.C_S_AXI_ADDR_WIDTH { MODELPARAM_VALUE.C_S_AXI_ADDR_WIDTH PARAM_VALUE.C_S_AXI_ADDR_WIDTH } {
	# Procedure called to set VHDL generic/Verilog parameter value(s) based on TCL parameter value
	set_property value [get_property value ${PARAM_VALUE.C_S_AXI_ADDR_WIDTH}] ${MODELPARAM_VALUE.C_S_AXI_ADDR_WIDTH}
}

