Forum Discussion
Altera_Forum
Honored Contributor
10 years agoYour first request was for the information to be "analysed in a sensible tool", which I think XML fits that description.
Human readable? I think the answer to that question is "no, it is not available" and your best bet would be creating a fake BSP and pulling the system.h that gets generated. Getting the information you asked about out of the XML is pretty easy, even if you don't know anything about XML or scripting with XML by following a random tutorial. Here is an XSLT that dumps comma-delimited baseAddress and span of all the slaves connected to 'jtag_avalon_master_0'.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="/EnsembleReport/module/interface/memoryBlock">
<xsl:value-of select="name"/>, <xsl:value-of select="baseAddress"/>, <xsl:value-of select="span"/>,
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>