The tutorial for the wave capture states that the existing tutorial is obsolete and gives a short description of how to setup wave capture.
I'm trying to add it to an existing project and here's what I have:
Code: Select all
.rst(rst) {
// ... other stuff
avr_interface avr;
reg_interface reg;
}
always {
// ... more stuff ...
// connect inputs of avr
avr.cclk = cclk;
avr.spi_ss = spi_ss;
avr.spi_mosi = spi_mosi;
avr.spi_sck = spi_sck;
avr.rx = avr_tx;
avr.channel = hf; // ADC is unused so disable
avr.tx_block = avr_rx_busy; // block TX when AVR is busy
// connect outputs of avr
spi_miso = avr.spi_miso;
spi_channel = avr.spi_channel;
avr_rx = avr.tx;
// connect reg interface to avr interface
reg.rx_data = avr.rx_data;
reg.new_rx_data = avr.new_rx_data;
avr.tx_data = reg.tx_data;
avr.new_tx_data = reg.new_tx_data;
reg.tx_busy = avr.tx_busy;
reg.regIn.drdy = 0; // default to not ready
reg.regIn.data = 32bx; // don't care
}
"Failed to get wave capture information!"
I also tried adding my signals to the regIn.data in the always block (at the bottom) like so:
Code: Select all
reg.regIn.data = c{ max.sck, max.dout, max.cs };
reg.regIn.drdy = 1; // signal data ready
Code: Select all
reg.regIn.data = c{ 29x{b0}, max.sck, max.dout, max.cs };
Any ideas?
Thanks!