spi: Add simulation support
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Jun 2020 03:35:10 +0000 (13:35 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 13 Jun 2020 01:33:41 +0000 (11:33 +1000)
commita89e1469ef9eaee0a85cf48731dd3a3aa102dea0
treea866fd815b8df83a808bd194f13f9ae3d1444766
parentcc4dcb3597914bcf6730cdbabc7fbe3605c80c94
spi: Add simulation support

This require the s25fl128s.vhd flash model and FMF libraries,
which will be built when passed to the Makefile via the
FLASH_MODEL_PATH argument. Otherwise a dummy module is used
which ties MISO to '1'.

The model isn't included as I'm not sure its licence (GPL) is
at this point, but it can be obtained from

https://github.com/ozbenh/microspi

FLASH_MODEL_PATH=<path to microspi>/model

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Makefile
core_dram_tb.vhdl
core_flash_tb.vhdl [new file with mode: 0644]
sim_no_flash.vhdl [new file with mode: 0644]