I am trying to follow the instructions from this mailing list post:
http://lists.opencpi.org/pipermail/discuss_lists.opencpi.org/2019-May/000184.html
I am trying to start with a simple port to the ADALM-PLUTO platform, but I
prefer to keep their top level names for the platform so I don't have to
modify the XDC very much.
I defined the HdlPlatform to have:
<device worker="ad9361_spi">
<signal name="SPI_CLK" platform='spi_clk'/>
<signal name="SPI_DO" platform='spi_miso'/>
<signal name="SPI_DI" platform='spi_mosi'/>
<signal name="SPI_ENB" platform='spi_csn'/>
<signal name="RESETB" platform='gpio_resetb'/>
</device>
I then added, as recommended:
<!-- SPI Interface -->
<signal output="spi_mosi" />
<signal input="spi_miso" />
<signal output="spi_clk" />
<signal output="spi_csn" />
<signal output="gpio_resetb" />
I then created a config called pluto_txrx which is defined as:
<HdlConfig Language="vhdl">
<device name="ad9361_adc"/>
<device name="ad9361_dac"/>
</HdlConfig>
But, my spi_mosi signal isn't connected to ad9361_spi_SPI_DI as I would
have expected in the generated code.
Also, it seems like the HdlPlatform defines some base platform, and the
HdlConfig is some more specific thing with the devices instantiated?
Is there a way to get the base to include the ad9361_adc and ad9361_dac for
all builds and get rid of the HdlConfig requirement? Essentially think of
it as a part of the board proper? I tried to look at the matchstiq_z1 as
an example, but it wasn't clear to me on how to make that happen.
Thanks,
Brian
Received on Wed Jan 08 2020 - 15:51:32 CST