From 262da6444cd653eae57adc400ccaf8cea330deda Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Fri, 11 May 2018 23:27:53 +0200 Subject: 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= 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 --- picosoc/spiflash.core | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 picosoc/spiflash.core (limited to 'picosoc') diff --git a/picosoc/spiflash.core b/picosoc/spiflash.core new file mode 100644 index 0000000..1b7d153 --- /dev/null +++ b/picosoc/spiflash.core @@ -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 -- cgit