*** tpb has joined #litex | 00:00 | |
*** lf has joined #litex | 00:16 | |
*** lf_ has quit IRC | 00:16 | |
somlo | _florent_: thanks, that took care of it! With that out of the way, any objections to https://github.com/litex-hub/litex-boards/pull/144 ? | 00:19 |
---|---|---|
*** Degi has quit IRC | 00:40 | |
*** Degi has joined #litex | 00:42 | |
*** Dolu has quit IRC | 00:57 | |
*** chgavilana has quit IRC | 02:05 | |
*** awordnot0 has joined #litex | 03:30 | |
*** awordnot has quit IRC | 03:31 | |
*** awordnot0 is now known as awordnot | 03:31 | |
*** peepsalot has quit IRC | 03:50 | |
*** lkcl has quit IRC | 04:20 | |
*** Degi_ has joined #litex | 04:25 | |
*** peepsalot has joined #litex | 04:26 | |
*** Degi has quit IRC | 04:27 | |
*** Degi_ is now known as Degi | 04:27 | |
*** lkcl has joined #litex | 04:33 | |
*** lkcl has quit IRC | 05:11 | |
*** lkcl has joined #litex | 05:25 | |
hansfbaier | Does anyone know about an example of using a nmigen-based core in litex. I looked at the minerva cpu example, but that seems to be quite different from a regular core.... | 05:46 |
hansfbaier | Also I didn't find much googling | 05:46 |
*** kgugala_ has joined #litex | 05:58 | |
*** kgugala has quit IRC | 05:58 | |
*** proteusguy has quit IRC | 06:02 | |
*** proteusguy has joined #litex | 06:04 | |
*** martinraison has joined #litex | 06:15 | |
*** kgugala has joined #litex | 06:18 | |
*** kgugala_ has quit IRC | 06:22 | |
*** lkcl has quit IRC | 06:39 | |
*** awordnot has quit IRC | 06:40 | |
*** lkcl has joined #litex | 06:51 | |
*** awordnot has joined #litex | 07:10 | |
*** kgugala_ has joined #litex | 07:42 | |
*** kgugala has quit IRC | 07:45 | |
*** martinraison has joined #litex | 07:50 | |
*** martinraison has quit IRC | 07:52 | |
_florent_ | hansfbaier: to integrate a nmigen-based core you can generate it as verilog and then just use instance and add the sources to the platform, as done for example here with a verilog core: https://github.com/betrusted-io/gateware/blob/master/gateware/i2c/core.py#L106-L132 | 07:56 |
hansfbaier | _florent_: Thank you so much, that's what I was looking for (I digged through the lab examples, it had the platform.add_source() call, but was missing the verilog file, so I could not get a complete picture from that) | 08:05 |
*** martinraison has joined #litex | 08:21 | |
hansfbaier | _florent_: I will fill in the wiki page once I get it working | 08:29 |
_florent_ | hansfbaier: starting filling https://github.com/enjoy-digital/litex/wiki/Add-A-Verilog-VHDL-Core could be useful yes (we could rename it to Add-A-Verilog-VHDL-nMigen-Core later) | 08:30 |
hansfbaier | _florent_: Yes, I saw that page. Will do. | 08:35 |
*** hansfbaier has quit IRC | 08:38 | |
*** hansfbaier has joined #litex | 08:40 | |
*** somlo has quit IRC | 09:04 | |
*** somlo has joined #litex | 09:14 | |
*** hansfbaier1 has joined #litex | 09:14 | |
*** hansfbaier has quit IRC | 09:17 | |
*** martinraison has quit IRC | 09:29 | |
*** _whitelogger has quit IRC | 09:36 | |
*** _whitelogger has joined #litex | 09:38 | |
*** keesj has quit IRC | 10:11 | |
*** keesj has joined #litex | 10:13 | |
*** Dolu has joined #litex | 10:20 | |
*** keesj has quit IRC | 10:29 | |
*** keesj has joined #litex | 10:32 | |
*** keesj has quit IRC | 10:38 | |
*** keesj has joined #litex | 10:39 | |
*** martinraison has joined #litex | 11:26 | |
*** hansfbaier1 has quit IRC | 11:37 | |
*** martinraison has quit IRC | 12:38 | |
*** martinraison has joined #litex | 12:39 | |
*** Bertl is now known as Bertl_oO | 12:42 | |
*** martinraison has quit IRC | 12:43 | |
*** martinraison has joined #litex | 12:59 | |
*** martinraison has quit IRC | 13:04 | |
*** martinraison has joined #litex | 14:55 | |
somlo | _florent_: I can now get 100MHz with rocket (linuxq variant, 256 wide litedram connection), ethernet, and litesdcard on genesys2 | 15:33 |
somlo | now I need to find out how much additional gateware I can stuff in: non-emulated FPU, multi-core, etc. | 15:35 |
somlo | and of course test on the actual board :) | 15:35 |
zyp | nice | 15:56 |
*** lkcl has quit IRC | 17:29 | |
*** lkcl has joined #litex | 17:42 | |
*** peeps[zen] has joined #litex | 18:01 | |
*** peepsalot has quit IRC | 18:02 | |
*** martinraison has quit IRC | 18:10 | |
*** martinraison has joined #litex | 18:11 | |
*** martinraison has quit IRC | 18:17 | |
*** Dolu has quit IRC | 18:32 | |
*** martinraison has joined #litex | 18:53 | |
*** martinraison has quit IRC | 18:58 | |
*** martinraison has joined #litex | 19:00 | |
*** Dolu has joined #litex | 20:44 | |
*** martinraison has quit IRC | 20:48 | |
*** martinraison has joined #litex | 20:51 | |
*** martinraison has quit IRC | 21:07 | |
*** FFY00 has quit IRC | 21:52 | |
*** FFY00 has joined #litex | 21:53 | |
*** feldim2425_ has joined #litex | 22:25 | |
*** feldim2425 has quit IRC | 22:25 | |
*** feldim2425_ is now known as feldim2425 | 22:25 | |
somlo | turns out I can get a quad-core, "hard" FPU Rocket cpu with litex to pass timing at 100MHz, and LUT utilization is 58.96% | 22:35 |
somlo | now I *have* to go grab my board and see this thing in action! | 22:36 |
somlo | for context, this is on a genesys2 board | 22:36 |
daveshah | Wow nice | 22:36 |
daveshah | I didn't know we even had multi core Rocket support yet | 22:37 |
somlo | daveshah: it's the same AXI interface to litedram, mmio, and dma-slave as any other rocket | 22:37 |
somlo | might be a bit fiddly w.r.t. the device tree table, but I'll find out soon enough | 22:38 |
somlo | the Rocket is sort-of its own SoC, with internal L1, interrupt controllers, etc. | 22:39 |
somlo | the cache coherency is (well, "should be") handled internally, so there's nothing for us LiteX folks to worry about | 22:39 |
somlo | again, in theory - I've just been building bitstreams to test for timing and utilization, haven't actually run into any "in practice" brick walls yet :) | 22:40 |
daveshah | Yeah, I wonder if the LiteX init code will need changing to do something with the other harts too | 22:41 |
daveshah | I guess whatever works for smp vexriscv would work for smp rocket too there | 22:41 |
somlo | daveshah: probably... | 22:42 |
daveshah | If you're very patient it should be possible to test that in sim :) | 22:42 |
somlo | for now, here's the only as-of-yet unpublished portion -- patch against pythondata_cpu_rocket: https://pastebin.com/R3bwgQUD | 22:42 |
tpb | Title: diff --git a/pythondata_cpu_rocket/verilog/update.sh b/pythondata_cpu_rocket/ver - Pastebin.com (at pastebin.com) | 22:42 |
somlo | daveshah: I'm going to try to drop by the office later this evening (somewhat less painful process to get in and out) and grab the board; then tomorrow I can hit that brick wall (likely before any sim I'd start right now would get anywhere useful :D) | 22:44 |
somlo | blah, obviously there's another unpublished bit (using that quad/fpu-enabled variant in litex itself): https://pastebin.com/Bh0crNQA | 22:46 |
tpb | Title: diff --git a/litex/soc/cores/cpu/rocket/core.py b/litex/soc/cores/cpu/rocket/cor - Pastebin.com (at pastebin.com) | 22:46 |
*** chgavilana has joined #litex | 22:56 | |
*** martinraison has joined #litex | 23:07 | |
*** martinraison has quit IRC | 23:12 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!