hithesh123
Full Member level 6

I am using SPI clk to clock-in data. The SPI Master toggles data on rising edge and sample data on falling edge.
From the slave side, I am sampling data on rising edge and loading data on the rising edge. The SPI clock is a slightly delayed version of the external SPI clk due to synchronizer.
The data coming in is 16bits, with first 8 bits give the read/write bit and address. The last 8 bits are the data.
All the logic is done in one process under rising_edge(sclk).
Instead of sampling & loading data on rising edge, can I do sample/load on 2 edges - rising and falling?
This means 2 process, right?
From the slave side, I am sampling data on rising edge and loading data on the rising edge. The SPI clock is a slightly delayed version of the external SPI clk due to synchronizer.
The data coming in is 16bits, with first 8 bits give the read/write bit and address. The last 8 bits are the data.
All the logic is done in one process under rising_edge(sclk).
Instead of sampling & loading data on rising edge, can I do sample/load on 2 edges - rising and falling?
This means 2 process, right?