How to read a register in a schematic component | Cypress Semiconductor
How to read a register in a schematic component
I've learned how to access control registers and write to status registers from within a schematic component, but how do you read from a registers defined in another component?
I'm attempting to make an SPI slave which takes two bytes of input: <read/write + address> <data to write or 0x00>
As output, it gives: <data for read or 0x00>
Read / Write is the MSb in the first byte. Address is a 7-bit memory address. I'd like to make a schematic component which will examine the MSb and then fire off either a DMA read or DMA write to the specified address.
My problem is: How do I access the SPI data from a schematic component? I.e. to get the data sent in, I'd like to access RXDATA_REG and then make decisions based on that.