emrenass Posted November 26, 2016 Share Posted November 26, 2016 Hi guys. I've just finished my project and I need to program the basys3 with QSPI in order to demonstrate the project. But I have one question, after the demonstration I want to take it back to default program of Basys3. Is it possible? Thank you! Link to comment Share on other sites More sharing options...
D@n Posted November 26, 2016 Share Posted November 26, 2016 To answer your question, yes, it is possible. I've used the QSPI controller found here to read/write my flash on the Basys3. I've built a similar project for the Arty, in case you are wondering how it might be used. (See the dumpflash.cpp file, that actually reads the contents off the flash and into a file.) Be aware, as you look at these though, that the Arty flash and Basys3 flash are two different different chips, from different suppliers, and have a ... bit of a different interface. Using the controller, you can dump the current values from your flash to a file, which you can then reprogram into your Basys3 board. I'm attaching to this post the Basys3 configuration I initially downloaded from my device. I've done nothing to verify that it is valid, though, so ... your mileage might vary. Dan qspifdump.bin Link to comment Share on other sites More sharing options...
emrenass Posted November 26, 2016 Author Share Posted November 26, 2016 Thank you for your answer sadly, I haven't use C++ for programming an FPGA(I'm more like SystemVerilog guy) and only used C++ for understanding the concept of pointers and trees, never used C++ for personal coding. Therefore I dont really understand the codes you send me but thank you for telling me that it's possible now I'm going to search deeper, I tried to download qspi controller they're making me wait for 1-2 days in order to download. Anyway tahnk you for your answer. Link to comment Share on other sites More sharing options...
D@n Posted November 26, 2016 Share Posted November 26, 2016 So ... you didn't look up the Verilog based QSPI controller I pointed you at then? Dan Link to comment Share on other sites More sharing options...
emrenass Posted November 26, 2016 Author Share Posted November 26, 2016 No I clicked to download link, I register in order to download but it said my accunt has been queued for approval. I twill be approve in 1-2 days so I cant download right now. Link to comment Share on other sites More sharing options...
D@n Posted November 26, 2016 Share Posted November 26, 2016 @emrenass, Is OpenCores insisting on a 2-day waiting period?? Ouch! That's unacceptable. I may have to move the rest of my projects over to GitHub. For now, here are the basic files you need--a high level driver that accepts commands from a wishbone bus, a lower level driver that actually toggles the pins, and a specification PDF that tells you how the whole thing works. If you want the full project, you should be able to get it (I just did) without a password via a subversion checkout command: svn co http://opencores.org/ocsvn/qspiflash/qspiflash Either way, I've attached many of the relevant files anyway. (A QSPI flash simulator remains in the project, in case you wish to use Verilator, as well as a version of the flash driver for the extended QSPI flash, but .... this should get you going for the Basys-3) Cheers! Dan spec.pdf llqspi.v wbqspiflash.v Link to comment Share on other sites More sharing options...
emrenass Posted November 27, 2016 Author Share Posted November 27, 2016 @D@n Thank you so much, I'm checking those codes and document right now. Link to comment Share on other sites More sharing options...
Question
emrenass
Hi guys.
I've just finished my project and I need to program the basys3 with QSPI in order to demonstrate the project. But I have one question, after the demonstration I want to take it back to default program of Basys3. Is it possible?
Thank you!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.