Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZipCPU/qspiflash
A set of Wishbone Controlled SPI Flash Controllers
https://github.com/ZipCPU/qspiflash
Last synced: 3 months ago
JSON representation
A set of Wishbone Controlled SPI Flash Controllers
- Host: GitHub
- URL: https://github.com/ZipCPU/qspiflash
- Owner: ZipCPU
- Created: 2018-11-23T03:32:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T00:44:25.000Z (about 2 years ago)
- Last Synced: 2024-06-15T23:35:48.727Z (5 months ago)
- Language: Verilog
- Size: 316 KB
- Stars: 71
- Watchers: 11
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository has been repurposed from the original [QSPI flash core
repository](https://opencores.org/project/qspiflash). Instead of two large
and monolithic QSPI flash cores for two different types of flash, this
repository now contains three cores: a [SPI flash core](rtl/spixpress.v),
a [Dual SPI flash core](rtl/dualflexpress.v), and a
[Quad SPI flash core](rtl/qflexpress.v) which should be usable across a wider
range of SPI flash chips. Even better, these new controllers use the
DDR primitive for the SCK line, so they should be able to run twice as fast
as the older cores.The normal [SPI flash core](rtl/spixpress.v) has been
[blogged about](http://zipcpu.com/blog/2018/08/16/spiflash.html)
on [ZipCPU.com](http://zipcpu.com).- Each of these cores has been [formally verified](http://zipcpu.com/blog/2017/10/19/formal-intro.html), though not all of them
have seen hardware (yet). [SymbiYosys](https://symbiyosys.readthedocs.io/en/latest) scripts for verification may be found
in the [bench/formal](bench/formal) directory, together with
[GTKwave](https://gtkwave.sourceforge.net) save files for viewing any
resulting traces.If you'd like to get a glimpse of how these various cores might work, feel
free to run [SymbiYosys](https://symbiyosys.readthedocs.io/en/latest) to generate demonstration cover traces.- A [flash simulator](bench/cpp/flashsim.cpp) has been placed into the
[bench/cpp](bench/cpp) directory. You may find this useful when simulating
any of these flash cores using [Verilator](https://www.veripool.org/wiki/verilator).- A [software flash driver](sw/flashdrvr.cpp) can be found in the [sw](sw)
directory. You may find this useful for writing values to any of these
flash controllers. This driver has seen some simulation testing, but it has
not (yet) been completed.- [AutoFPGA scripts](autodata/) have been created for each flash device, though
not yet tested.## Status
Although this project has been around for quite some time, it is currently in
the process of getting a massive rewrite. As of today, the RTL code is
complete although it still needs to see hardware. The simulation software
is also full featured, and has been used to simulate many flash devices.
Work remains integrating the flash controllers into their various designs using
[AutoFPGA](https://github.com/ZipCPU/autofpga),
as well as testing the various flash controllers in hardware once integrated.
The [software driver code](sw/flashdrvr.cpp) will be used for this test, and will need to be
full featured by then for that purpose.In some, the following are left to do:
- Write a simulation script to demonstrate each of the respective flash
controllers. This would replace the [old script](bench/cpp/qspiflash_tb.cpp)
from before the rewrite.- Update the [AutoFPGA](https://github.com/ZipCPU/autofpga) scripts to make
certain they work with both Xilinx and iCE40 parts. (Intel parts remain in
the distance)Currently, the [QSPI flash controller](rtl/qflexpress.v) works nicely in
simultion within a different project.- Update the [software flash driver](sw/flashdrvr.cpp) so that one driver
can apply to any controller- The last remains of the [older driver](rtl/wbqspiflash.v), and [its
cousin](rtl/eqspiflash.v) need to be removed from the repository.- The specification needs some formatting work and editing.
## License
These three cores, together with their supporting infrastructure, have
been released under the [LGPL license](doc/lgpl-3.0.pdf). You are welcome
to use these cores under that license.