How to use the SPI protocol to implement data interaction with the UFM of MAX V
Hi all,
I have read the handbook for MAX V and have written the verilog code following the timings in the handbook. The mode of SPI is set to mode 0 and the host samples the data on the rising edge and changes the data on the falling edge. Unfortunately, while looking at the waveforms on the SPI pins using a logic analyzer, I noticed that the UFM is not responding to the currently issued command via the SO pin. I followed the handbook's instructions and enabled the oscena pin. Also, the SPI has a CLK frequency of 12.5M, so I wonder if this is caused by the CLK frequency being too high. I would also like to ask what additional verilog files I need to add to the project if I want to emulate ufm in Modelsim, similar to how I need to add alter_mf.v when emulating the RAM in the IP core.