Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
simonogg_st
Posts: 5
Registered: ‎06-28-2012
0
Accepted Solution

ISE10.1 versus ISE14.1 xps_sysmon_adc BSP drivers

Hi,

 

I've been migrating a design from ISE10.1 to ISE14.1 (the peripherals were regenerated in ISE14.1) and noticed that the sysmon peripheral was giving strange readings and failing a system test. A quick look at the actual peripheral address in the XMD showed that the register contents at the memory mapped register locations were generally the same for both versions which showed the peripheral was generating the right values. However it looked like the values are shifted in binary and indeed when digging into the BSP code xsysmon.c from an ISE14.1 generated BSP it looks like this:

 

u16 XSysMon_GetAdcData(XSysMon *InstancePtr, u8 Channel)

{

// some code etc...

return AdcData;

}

 

and in the old ISE10.1 generated BSP it looks like it's shifted before returning the value:

 

u16 XSysMon_GetAdcData(XSysMon *InstancePtr, u8 Channel)

{

// some code etc...

return ((AdcData >> 6) & XSM_ADCDATA_MAX_MASK);

}

 

The same thing goes for the temperature reading function I beleive. Is this an oversight or are these changes intended and we now have to handle the shifting myself outside the BSP functions?

 

Thanks

Simon

Visitor
simonogg_st
Posts: 5
Registered: ‎06-28-2012
0

Re: ISE10.1 versus ISE14.1 xps_sysmon_adc BSP drivers

Actually ignore the above, v2.00 onwards of the drivers looks like it was modified to return 16 bit values.

Newbie
xielei
Posts: 1
Registered: ‎08-02-2012
0

Re: ISE10.1 versus ISE14.1 xps_sysmon_adc BSP drivers

Do you know tri_mode_eth_mac?how did you solve the problem