<somlo>
gatecat: with latest yosys/trellis/nextpnr (as of yesterday afternoon), I can not just fit an FPU-enabled 64-bit rocket core (and ethernet and sdcard) on an 85-k ecp5, but it even boots and runs linux (no hang-ups, memory errors, whatever) -- nice work, thanks!
<tpw_rules>
somlo: is that using linux-on-litex-rocket?
<gatecat>
ooh, very nice :3
<tpw_rules>
your name is on that repo so i'm assuming yes
<somlo>
tpw_rules: yes, that's right
<somlo>
nice thing about this is I can switch away from bbl and use opensbi on both xilinx and ecp5
<somlo>
(opensbi does not do fpu emulation, which up until now I needed on ecp5)
<somlo>
so yay for progress :)
cr1901_ is now known as cr1901
<somlo>
gatecat: I might have spoken too soon: either I used the wrong (non-fpu) bitstream or it was a (very) lucky p&r and timing run -- I'm back to where the fpu-enabled rocket fits well but fails memory test (likely due to timing) :( Sorry about the noise...
fuzziphy has joined #litex
<fuzziphy>
Hi, I'm looking for a way to add custom peripherals into the simulator (a peripheral on the wishbone bus with CSRs) but am unclear on the best way to do that
<fuzziphy>
I know how to get it onto my ECPIX5 board by creating a custom board based on litex-boards as a template and adding to submodules in BaseSoC, but how can I run this in verilator?
<fuzziphy>
It looks like I can copy and modify litex_sim.py and add the peripheral in there
fuzziphy has quit [Remote host closed the connection]
fuzziphy has joined #litex
fuzziphy has quit [Remote host closed the connection]
fuzziphy has joined #litex
<_florent_>
Hi,
<_florent_>
Moe_Icenowy: I started playing with the tang primer 20k, but haven't started looking at the DDR3
<_florent_>
Moe_Icenowy: Since I don't have lots of time to look at it, I was planning to start from the work you did, is it available somewhere?
<_florent_>
somlo: just for info, Dolu got Debian working on NaxRiscv(64-bit)/LiteX
fuzziphy has quit [Remote host closed the connection]
fuzziphy has joined #litex
fuzziphy has quit [Ping timeout: 248 seconds]
fuzziphy has joined #litex
fuzziphy has quit [Remote host closed the connection]
fuzziphy has joined #litex
fuzziphy has quit [Ping timeout: 244 seconds]
fuzziphy has joined #litex
<somlo>
_florent_: nice! -- Was it with systemd and everything, or some "Lite" version of Debian? :)
<somlo>
Fedora for instance comes with yosys/trellis/nextpnr packages, so getting it to load on an ecp5-based board would take us to the holy grail of "self hosting"
<somlo>
I'm guessing it should be rather trivial to get yosys/trellis/nextpnr packaged (or just simply built) for debian, so maybe we're already there...
<fuzziphy>
I've run them in debian, but never tried self hosting
<somlo>
I've once successfully built litex+rocket+ethernet+sdcard bitstream for ecp5 in fedora-riscv running in qemu -- spitting distance, one might say :)
<somlo>
running on litex/rocket itself, the issue might be not enough RAM for yosys, and way too slow CPU at 50MHz, even once an actual distro is successfully loaded (debian or fedora or whatever)