Skip to content

Commit

Permalink
Add FuseSoC .core file for SPI Flash model
Browse files Browse the repository at this point in the history
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
  • Loading branch information
olofk committed Jul 26, 2018
1 parent 9b6ea04 commit 262da64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions picosoc/spiflash.core
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 262da64

Please sign in to comment.