Thursday, 2021-01-07

*** tpb has joined #litex00:00
*** lf has joined #litex00:16
*** lf_ has quit IRC00: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 IRC00:40
*** Degi has joined #litex00:42
*** Dolu has quit IRC00:57
*** chgavilana has quit IRC02:05
*** awordnot0 has joined #litex03:30
*** awordnot has quit IRC03:31
*** awordnot0 is now known as awordnot03:31
*** peepsalot has quit IRC03:50
*** lkcl has quit IRC04:20
*** Degi_ has joined #litex04:25
*** peepsalot has joined #litex04:26
*** Degi has quit IRC04:27
*** Degi_ is now known as Degi04:27
*** lkcl has joined #litex04:33
*** lkcl has quit IRC05:11
*** lkcl has joined #litex05:25
hansfbaierDoes 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
hansfbaierAlso I didn't find much googling05:46
*** kgugala_ has joined #litex05:58
*** kgugala has quit IRC05:58
*** proteusguy has quit IRC06:02
*** proteusguy has joined #litex06:04
*** martinraison has joined #litex06:15
*** kgugala has joined #litex06:18
*** kgugala_ has quit IRC06:22
*** lkcl has quit IRC06:39
*** awordnot has quit IRC06:40
*** lkcl has joined #litex06:51
*** awordnot has joined #litex07:10
*** kgugala_ has joined #litex07:42
*** kgugala has quit IRC07:45
*** martinraison has joined #litex07:50
*** martinraison has quit IRC07: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-L13207: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 #litex08:21
hansfbaier_florent_: I will fill in the wiki page once I get it working08: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 IRC08:38
*** hansfbaier has joined #litex08:40
*** somlo has quit IRC09:04
*** somlo has joined #litex09:14
*** hansfbaier1 has joined #litex09:14
*** hansfbaier has quit IRC09:17
*** martinraison has quit IRC09:29
*** _whitelogger has quit IRC09:36
*** _whitelogger has joined #litex09:38
*** keesj has quit IRC10:11
*** keesj has joined #litex10:13
*** Dolu has joined #litex10:20
*** keesj has quit IRC10:29
*** keesj has joined #litex10:32
*** keesj has quit IRC10:38
*** keesj has joined #litex10:39
*** martinraison has joined #litex11:26
*** hansfbaier1 has quit IRC11:37
*** martinraison has quit IRC12:38
*** martinraison has joined #litex12:39
*** Bertl is now known as Bertl_oO12:42
*** martinraison has quit IRC12:43
*** martinraison has joined #litex12:59
*** martinraison has quit IRC13:04
*** martinraison has joined #litex14:55
somlo_florent_: I can now get 100MHz with rocket (linuxq variant, 256 wide litedram connection), ethernet, and litesdcard on genesys215:33
somlonow I need to find out how much additional gateware I can stuff in: non-emulated FPU, multi-core, etc.15:35
somloand of course test on the actual board :)15:35
zypnice15:56
*** lkcl has quit IRC17:29
*** lkcl has joined #litex17:42
*** peeps[zen] has joined #litex18:01
*** peepsalot has quit IRC18:02
*** martinraison has quit IRC18:10
*** martinraison has joined #litex18:11
*** martinraison has quit IRC18:17
*** Dolu has quit IRC18:32
*** martinraison has joined #litex18:53
*** martinraison has quit IRC18:58
*** martinraison has joined #litex19:00
*** Dolu has joined #litex20:44
*** martinraison has quit IRC20:48
*** martinraison has joined #litex20:51
*** martinraison has quit IRC21:07
*** FFY00 has quit IRC21:52
*** FFY00 has joined #litex21:53
*** feldim2425_ has joined #litex22:25
*** feldim2425 has quit IRC22:25
*** feldim2425_ is now known as feldim242522:25
somloturns 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
somlonow I *have* to go grab my board and see this thing in action!22:36
somlofor context, this is on a genesys2 board22:36
daveshahWow nice22:36
daveshahI didn't know we even had multi core Rocket support yet22:37
somlodaveshah: it's the same AXI interface to litedram, mmio, and dma-slave as any other rocket22:37
somlomight be a bit fiddly w.r.t. the device tree table, but I'll find out soon enough22:38
somlothe Rocket is sort-of its own SoC, with internal L1, interrupt controllers, etc.22:39
somlothe cache coherency is (well, "should be") handled internally, so there's nothing for us LiteX folks to worry about22:39
somloagain, 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
daveshahYeah, I wonder if the LiteX init code will need changing to do something with the other harts too22:41
daveshahI guess whatever works for smp vexriscv would work for smp rocket too there22:41
somlodaveshah: probably...22:42
daveshahIf you're very patient it should be possible to test that in sim :)22:42
somlofor now, here's the only as-of-yet unpublished portion -- patch against pythondata_cpu_rocket: https://pastebin.com/R3bwgQUD22:42
tpbTitle: diff --git a/pythondata_cpu_rocket/verilog/update.sh b/pythondata_cpu_rocket/ver - Pastebin.com (at pastebin.com)22:42
somlodaveshah: 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
somloblah, obviously there's another unpublished bit (using that quad/fpu-enabled variant in litex itself): https://pastebin.com/Bh0crNQA22:46
tpbTitle: 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 #litex22:56
*** martinraison has joined #litex23:07
*** martinraison has quit IRC23:12

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!