FPGAwars / Alhambra-II-FPGA

:star2: Alhambra II FPGA board
GNU Lesser General Public License v3.0
83 stars 26 forks source link

Speed-up memory access using PLL? #10

Open drtrigon opened 3 years ago

drtrigon commented 3 years ago

I was working on https://github.com/drtrigon/fpgarduino-icestorm and have setup a picorv32 with peripherials in order to emulate/mimic an arduino uno board. During this I came to the point where I would have to implement delayMicroseconds() which is not possible due to the slow memory access.

Is it possible to speed up the SPI memory access, by making the clock faster using e.g. a PLL? Does a PLL block exist for icestudio? Does it work with the Alhambra II board?

drtrigon commented 3 years ago

@Obijuan and @Jesus89 do you see a way of speeding-up SPI memory access (e.g. using a PLL)?

jcmadrioso commented 3 years ago

I have been using PLL for speeding up clock, but only with icestorm. I'm trying to use it in IceStudio via module instantiation.

drtrigon commented 2 years ago

@jcmadrioso: Can you share the code?

jcmadrioso commented 2 years ago

You can access it at https://github.com/jcfabero/PLL40