usafape
Newbie level 4
Hi all,
I am developing a product where the FPGA will have several sub-systems and a micro controller will do some computations and send commands to these several subsystems. The plan is to use registers to tell what each subsystem should do.
The SPI protocol is quite simple. It contains two bytes. The first byte is the address (128) and it contains a read/write bit. The second byte is the information (read or written to the register). I have the SPI code written and simulated, but I am having a hard time trying to figure out the other part (addressing). Could somebody shine me a light on this? I am writing it in Verilog.
Thanks
I am developing a product where the FPGA will have several sub-systems and a micro controller will do some computations and send commands to these several subsystems. The plan is to use registers to tell what each subsystem should do.
The SPI protocol is quite simple. It contains two bytes. The first byte is the address (128) and it contains a read/write bit. The second byte is the information (read or written to the register). I have the SPI code written and simulated, but I am having a hard time trying to figure out the other part (addressing). Could somebody shine me a light on this? I am writing it in Verilog.
Thanks