<ZipCPU>
cr1901_modern: Are you building a SPI (or QSPI) controller?
* ZipCPU
looks up shapr's board ..
<shapr>
after reading some of the blog posts, I think maybe I need a bitstream loaded onto the xilinx chip to pass through pins or something?
<cr1901_modern>
ZipCPU: Neither, I want to use this core to debug something. But I want to understand how it works too :)
GuzTech has quit [Quit: Leaving]
<ZipCPU>
shapr: Does that design even have a Xilinx chip?
<shapr>
The novena has a ... 6 series ... spartan?
<cr1901_modern>
io0/1/2/3, when treated as inputs, will change at any time, typically after the previous clk edge.
<cr1901_modern>
I don't see how delaying by #1 ns will all of a sudden get you to "1 ns before the next SPI clock edge",
<ZipCPU>
Have you dug into what the flash is doing?
<cr1901_modern>
If anything, it looks like the model "samples 1ns after the previous SPI clock edge", not 1ns _before_ the upcoming clk edge
<cr1901_modern>
ZipCPU: Hmmm, I missed something (spi_action task), but Idk if it'll answer my q
* ZipCPU
pulls up novena's schematic ...
seldridge has quit [Ping timeout: 260 seconds]
<shapr>
w00
<shapr>
I was hoping to have this working last night so I could do a lightning talk about it today, but instead I'm doing audience participation of bitcoin proof of work.
<ZipCPU>
There are *two* FPGA's on that board? Or do I have the wrong board .. ?
<tpb>
Title: Novena Main Page - Studio Kousagi Wiki (at www.kosagi.com)
<shapr>
spartan-6 CSG324
<ZipCPU>
cr1901_modern: I've done all of my SPI testing with my own (verilator-based, c++) xSPI flash simulator.
<ZipCPU>
It's full featured enough that I can boot my CPU off of it.
<knielsen>
cr1901_modern: If you sample io0_delayed at the SPI clock edge, then you (effectively) sample io0 1 second before the clock edge
<knielsen>
cr1901_modern: because io0_delayed is equal to the value io0 had 1 ns earlier
<shapr>
knielsen: oh, I use your floorplan viewer when I'm doing FPGA intro lightning talks, thanks for writing that.
<knielsen>
(but I didn't check in detail what the code is doing)
<knielsen>
shapr: glad if you found it useful!
<ZipCPU>
shapr: Ok, I see the S6 reference ... the board should've come with software to load it, or at least instructions on how to load it using Xilinx or some other tool ...
<cr1901_modern>
knielsen: Oh... ._.
<shapr>
ZipCPU: I suspect this is "if you have to ask, shouldn't have ordered"
<cr1901_modern>
ZipCPU, knielsen: thanks for both your help. I just didn't see it
<shapr>
oh well, I'll figure it out.
<ZipCPU>
shapr: Not necessarily. I've seen a lot of customers ask on the forums for well supported boards. Most often the problem is that they just don't know where to look (yet) for what they need.
<shapr>
I think 50-80 of these boards were produced