Hi,
I have finally found some time to look into parsing BDC’s.
I find that the BDC HWH fragment does not have an ADDRESSBLOCKS section. I am testing with a simple BDC containing a single core IP core that defines 2 registers each with two fields.
If I connect the demo IP directly to the bus in the top diagram, the exported HWH in the XSA contains the register and field definitions. But if I put the IP in a BDC the exported BDC instance HWH (loopback_inst_0.hwh) has no definitions the same is true of the HWH in the source diagram folder.
Am I doing something incorrectly or is this expected behavior?
Cheers,
Geoff.
<ADDRESSBLOCKS>
<ADDRESSBLOCK ACCESS="" INTERFACE="mm_reg" NAME="reg0" RANGE="4096" USAGE="register">
<REGISTERS>
<REGISTER NAME="ctl0">
<PROPERTY NAME="DESCRIPTION" VALUE="generated AXI lite RW register"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="4"/>
<PROPERTY NAME="SIZE" VALUE="32"/>
<PROPERTY NAME="ACCESS" VALUE="read-write"/>
<PROPERTY NAME="IS_ENABLED" VALUE="true"/>
<FIELDS>
<FIELD NAME="alpha">
<PROPERTY NAME="DESCRIPTION" VALUE="alpha control field"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="0"/>
<PROPERTY NAME="ACCESS" VALUE="read-write"/>
<PROPERTY NAME="MODIFIED_READ_VALUES" VALUE=""/>
<PROPERTY NAME="WRITE_CONSTRAINT" VALUE="0"/>
<PROPERTY NAME="READ_ACTION" VALUE=""/>
<PROPERTY NAME="BIT_OFFSET" VALUE="0"/>
<PROPERTY NAME="BIT_WIDTH" VALUE="16"/>
</FIELD>
<FIELD NAME="beta">
<PROPERTY NAME="DESCRIPTION" VALUE="beta control field"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="16"/>
<PROPERTY NAME="ACCESS" VALUE="read-write"/>
<PROPERTY NAME="MODIFIED_READ_VALUES" VALUE=""/>
<PROPERTY NAME="WRITE_CONSTRAINT" VALUE="0"/>
<PROPERTY NAME="READ_ACTION" VALUE=""/>
<PROPERTY NAME="BIT_OFFSET" VALUE="16"/>
<PROPERTY NAME="BIT_WIDTH" VALUE="16"/>
</FIELD>
</FIELDS>
</REGISTER>
<REGISTER NAME="sts0">
<PROPERTY NAME="DESCRIPTION" VALUE="generated AXI lite RO register"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="8"/>
<PROPERTY NAME="SIZE" VALUE="32"/>
<PROPERTY NAME="ACCESS" VALUE="read-only"/>
<PROPERTY NAME="IS_ENABLED" VALUE="true"/>
<FIELDS>
<FIELD NAME="gamma">
<PROPERTY NAME="DESCRIPTION" VALUE="gamma status field"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="0"/>
<PROPERTY NAME="ACCESS" VALUE="read-only"/>
<PROPERTY NAME="MODIFIED_READ_VALUES" VALUE=""/>
<PROPERTY NAME="WRITE_CONSTRAINT" VALUE="0"/>
<PROPERTY NAME="READ_ACTION" VALUE=""/>
<PROPERTY NAME="BIT_OFFSET" VALUE="0"/>
<PROPERTY NAME="BIT_WIDTH" VALUE="16"/>
</FIELD>
<FIELD NAME="delta">
<PROPERTY NAME="DESCRIPTION" VALUE="delta status field"/>
<PROPERTY NAME="ADDRESS_OFFSET" VALUE="16"/>
<PROPERTY NAME="ACCESS" VALUE="read-only"/>
<PROPERTY NAME="MODIFIED_READ_VALUES" VALUE=""/>
<PROPERTY NAME="WRITE_CONSTRAINT" VALUE="0"/>
<PROPERTY NAME="READ_ACTION" VALUE=""/>
<PROPERTY NAME="BIT_OFFSET" VALUE="16"/>
<PROPERTY NAME="BIT_WIDTH" VALUE="16"/>
</FIELD>
</FIELDS>
</REGISTER>
</REGISTERS>
</ADDRESSBLOCK>