Add FuseSoC .core file for SPI Flash model

This allows other cores to depend on spiflash. Can also be used to
run the spiflash testbench with

fusesoc run --tool=<tool> spiflash --firmware=path/to/firmware.hex

This has been tested with icarus, modelsim and xsim. Fails with isim
If --tool is left out, icarus will be used as default
This commit is contained in:
Olof Kindgren 2018-05-11 23:27:53 +02:00
parent 9b6ea045f9
commit 262da6444c
1 changed files with 24 additions and 0 deletions

24
picosoc/spiflash.core Normal file
View File

@ -0,0 +1,24 @@
CAPI=2:
name : ::spiflash:0
filesets:
model:
files : [spiflash.v]
file_type : verilogSource
tb:
files : [spiflash_tb.v]
file_type : verilogSource
targets:
default:
default_tool : icarus
filesets : [model, "is_toplevel? (tb)"]
parameters : [firmware]
toplevel : [testbench]
parameters :
firmware:
datatype : file
description : Initial SPI Flash contents (in verilog hex format)
paramtype : plusarg