Forum Discussion
TRAN_HIEU_007
Occasional Contributor
4 years agoI was tried to debug program. So funtion alt_32 data = IORD(&pmac->mdio0.CONTROL, ALTERA_TSE_PCS_IF_MODE); was not working.
/* @Function Description: Configure operating mode of Altera PCS if available
* @API Type: Internal
* @param pmac_info pointer to MAC info variable
* @return return SUCCESS
*/
alt_32 alt_tse_phy_cfg_pcs(alt_tse_mac_info *pmac_info) {
alt_tse_system_info *psys = pmac_info->psys_info;
np_tse_mac *pmac = (np_tse_mac *) psys->tse_mac_base;
alt_tse_mac_group *pmac_group = pmac_info->pmac_group;
/* get index of the pointers in pointer array list */
alt_8 mac_info_index = alt_tse_get_mac_info_index(pmac_info);
alt_8 mac_group_index = alt_tse_get_mac_group_index(pmac_group);
if(psys->tse_pcs_ena)
{
tse_dprintf(5, "INFO : PCS[%d.%d] - Configuring PCS operating mode\n", mac_group_index, mac_info_index);
alt_32 data = IORD(&pmac->mdio0.CONTROL, ALTERA_TSE_PCS_IF_MODE); // Program stop debug at here
if(psys->tse_pcs_sgmii) {
tse_dprintf(5, "INFO : PCS[%d.%d] - PCS SGMII mode enabled\n", mac_group_index, mac_info_index);
IOWR(&pmac->mdio0.CONTROL, ALTERA_TSE_PCS_IF_MODE, data | 0x03);
}
else {
tse_dprintf(5, "INFO : PCS[%d.%d] - PCS SGMII mode disabled\n", mac_group_index, mac_info_index);
IOWR(&pmac->mdio0.CONTROL, ALTERA_TSE_PCS_IF_MODE, data & ~0x03);
}
}
return SUCCESS;
}
Can you tell me a solution to this problem? Thank!
EngWei_O_Intel
Frequent Contributor
4 years agoHi
Are you saying you no longer having compilation issue and the issue now is on the TSE IP? Pin planner and assignment editor should generate the same outcomes if the changes made is regarding to pin location.
Thanks.
Eng Wei
- EngWei_O_Intel4 years ago
Frequent Contributor
Hi there
We do not receive any response from you to the previous reply that have been provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.
Eng Wei