<somlo>
_florent_: I got LiteSDCard working fine with rocket on the trellisboard (built-in slot, no pmod) by further lowering SDCARD_CLK_FREQ to 15MHz (admittedly, sys_clk on the trellisboard was 60MHz, rather than 75 like on nexys4ddr)
m4ssi has quit [Remote host closed the connection]
FFY00 has quit [Ping timeout: 260 seconds]
FFY00 has joined #litex
MyGreenBalloon has joined #litex
<_florent_>
somlo: the throttling mechanism should be in place and seems to behave correctly on hardware, could you do a test on your side?
<somlo>
_florent_: will start a build right away, thanks!
<somlo>
_florent_: do we also want to put the sdcard frequency back up to 50MHz?
<somlo>
with the throttling in place, I mean?
<_florent_>
somlo: ah yes, i did that locally but forgot to push
<_florent_>
can you try at 50MHzN
<_florent_>
?
<somlo>
will do
<_florent_>
or at least with a speed that was not working correctly before throttling
<somlo>
building (nexys4ddr and trellisboard) with 50...
<somlo>
I'd rather not add parameters to each cpu's core.py __init__() method -- it'd be nicer if we could detect the extra address width closer to where the interface is created...
<_florent_>
yes sure, i'm looking at this, i want to revert the default adr_width to 30 and just specify when needed for the dma
<somlo>
I want to try that as soon as the sdcard throttling builds are done, see if it's enough to get rocket working with reverted wishbone width changes
<tpb>
Title: A Rust HAL for your LiteX FPGA SoC - Wishful Coding (at pepijndevos.nl)
<pepijndevos>
and also thanks to _florent_ :)))
<pepijndevos>
esden you may also find it interesting, I based it loosely on your icebreaker examples, but focused more on implementing HAL traits so you can reuse libraries
<disasm[m]>
I don't really like extensive use of macros in hals for reasons, but this is quite a good experiment :)
<levi>
@pepijndevos Nice writeup! I will be following along that path at some point, as I've got a pile of Spartan 6 boards with gigabit ethernet that I want to do RiscV+Rust on.
<somlo>
_florent_: back down at 25MHz, and with b1008b01, vivado is happy to compile a nexys4ddr bitstream (the reverted wb addr. width enlargement was to stop vivado from erroring out)
<somlo>
and the bitstream works OK (at 25MHz liteSDcard clock)
<somlo>
so it's just the sdcard clock vs. throttling that's still an issue...
<_florent_>
somlo: ok, that's already good if the DMA works
<_florent_>
somlo: i'll see if i can have another look tomorrow at the throttling mechanism, but otherwise we'll keep 25MHz for now, it does not make that much difference with the size of the binaries we are currently loading
<_florent_>
pepijndevos: nice, thanks for sharing
<pepijndevos>
disasm[m], all ears to ways to avoid extensive macros in HALs... after some good sleep ;)
<pepijndevos>
Even the STM HAL is basically one giant macro and that's supposed to be a reference
<disasm[m]>
I'll try to make a PR, but in general we need a better approach for other parts too :)
CarlFK has quit [Quit: Leaving.]
<disasm[m]>
pepijndevos: where can I get the `litex-pac` lib?