Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- I built it from examples that i saw. there are hooks from the spi to the onboard memory, so i assume that the spi reads will go into memory somewhere. --- Quote End --- If you provide a link or attach the example(s), someone will be able to comment/explain on what that example is doing. But the Altera SPI core does not by itself implement any access to memory. It relies on either your software or a DMA controller to perform those transfers from it's peripheral registers. --- Quote Start --- My question is how do i know what addresses the spi uses in the onboard memory to store rxdata? And, how do i guarantee that successive spi write of 2 bytes dont just keep overwriting each other, but instead, get their own spot in memory? --- Quote End --- Unless you're trying to do something more sophisticated from the example your following, managing the storage of the SPI data is up to your software program: you just need to allocate/reserve a block of memory and place the samples there yourself.