Wednesday, 2019-10-30

*** tpb has joined #litex00:00
*** _whitelogger has quit IRC01:06
*** _whitelogger has joined #litex01:09
*** Dolu has joined #litex06:17
*** freemint has joined #litex07:34
*** rohitksingh has joined #litex08:26
*** john_k[m] has quit IRC10:42
*** nrossi has quit IRC10:42
*** synaption[m] has quit IRC10:43
*** xobs has quit IRC10:43
*** nrossi has joined #litex11:05
*** synaption[m] has joined #litex11:27
*** xobs has joined #litex11:27
*** john_k[m] has joined #litex11:27
*** _franck_ has joined #litex13:26
*** freemint has quit IRC13:30
*** freemint has joined #litex13:45
*** freemint has quit IRC15:53
*** freemint has joined #litex16:08
*** CarlFK has joined #litex16:23
mithro_florent_: Could you give me access to https://github.com/enjoy-digital/minerva-verilog/ ?16:42
tpbTitle: GitHub - enjoy-digital/minerva-verilog (at github.com)16:42
_florent_mithro: done, but with https://github.com/enjoy-digital/litex/commit/ab8af28213c5d744e6749b76452f5053feadcf58 we no longer need it16:50
tpbTitle: cpu/minerva: elaborate from nmigen sources during build, enable hardw… · enjoy-digital/litex@ab8af28 · GitHub (at github.com)16:50
mithro_florent_: still needed until I update litex-buildenv16:52
*** ironsteel has joined #litex17:08
mithro_florent_: https://docs.google.com/spreadsheets/d/1XTHfdYXuvwoYdPXm4M6qDA0D2fZCPy220-9q6qZpTw4/edit#gid=113161955017:27
tpbTitle: LiteX BuildEnv Support - Google Sheets (at docs.google.com)17:27
somloPSA: Rocket currently hates yosis: https://github.com/chipsalliance/rocket-chip/issues/216817:31
tpbTitle: commit #f31e21b5b breaks yosys synthesis · Issue #2168 · chipsalliance/rocket-chip · GitHub (at github.com)17:31
*** freemint has quit IRC17:31
mithrosomlo: Yosys :-P18:06
somlomithro: sorry, didn't mean no disrespect (I'm just not good at spelling in real time) :D18:10
somloat least I got it right in #riscv, apparently :)18:11
*** CarlFK has quit IRC18:15
mithro_florent_: Could we move rocket-litex-verilog to litex-hub?18:20
_florent_yes18:24
_florent_mithro: we could also move minerva-verilog/vexriscv-verilog to litex-hub18:26
*** ironsteel has quit IRC18:38
*** ironsteel has joined #litex18:38
mithro_florent_: Where did get_memory_regions() go? https://github.com/enjoy-digital/litex/issues/29018:53
tpbTitle: Where did soc.get_memory_regions() go? · Issue #290 · enjoy-digital/litex · GitHub (at github.com)18:53
*** rohitksingh has quit IRC18:55
mithro_florent_: Now I need to figure out how to fix19:04
mithroValueError: Memory region conflict between spiflash and rom19:04
mithro_florent_: I think I want "add_linker_region" ?19:05
_florent_mithro: you need to use type="cached+linker" when adding memory region20:03
_florent_https://github.com/enjoy-digital/litex/pull/285#issuecomment-54797366220:09
tpbTitle: [RFC] Linker region concept by mateusz-holenko · Pull Request #285 · enjoy-digital/litex · GitHub (at github.com)20:09
mithroLooks like the CSR region moved?20:16
mithroValueError: cas region (0x60006800-0x60006fff) is not located in an IO region.20:16
mithroAvailable IO regions:20:16
mithro- 0x80000000-0xffffffff20:16
_florent_mithro: where is the code generating this error?20:31
mithrohttps://github.com/timvideos/litex-buildenv/blob/96ab220b0f60e3d509ca0a66dcfb81676ef294d9/targets/arty/base.py#L105-L12720:32
tpbTitle: litex-buildenv/base.py at 96ab220b0f60e3d509ca0a66dcfb81676ef294d9 · timvideos/litex-buildenv · GitHub (at github.com)20:32
_florent_ok, we no longer have shadow_base, so you need to make sure your CSR is in a io region (ie not cached)20:35
_florent_so you can change https://github.com/timvideos/litex-buildenv/blob/96ab220b0f60e3d509ca0a66dcfb81676ef294d9/targets/arty/base.py#L120 to use 0xe000000020:36
tpbTitle: litex-buildenv/base.py at 96ab220b0f60e3d509ca0a66dcfb81676ef294d9 · timvideos/litex-buildenv · GitHub (at github.com)20:36
_florent_and remove the shadow comments20:36
mithroWhy 0xe0000000 rather than 0x80000000 ?20:37
_florent_you can also use 0x80000000, that's was just to use the same addressing as your previous code20:42
somlo_florent_, mithro: for what it's worth, I've switched rocket over to csr/mmio below 0x80000000, and cached RAM above20:43
somloso that I can grow the RAM to whatever size the hardware provides, without any MMIO region getting in the way20:44
mithro_florent_: https://github.com/enjoy-digital/litedram/pull/9420:53
tpbTitle: Fix broken LPDDR support. by mithro · Pull Request #94 · enjoy-digital/litedram · GitHub (at github.com)20:53
mithrohttps://github.com/enjoy-digital/litex/pull/29320:53
tpbTitle: Fix file names for the mor1kx processor. by mithro · Pull Request #293 · enjoy-digital/litex · GitHub (at github.com)20:53
somlotrellisboard running LiteX/Rocket, using the full 1GB RAM: https://imgur.com/a/1aIzzL221:13
tpbTitle: Imgur: The magic of the Internet (at imgur.com)21:13
daveshahVery nice!21:15
*** Dolu has quit IRC21:15
somlodaveshah: there's some "hidden slack" in nextpnr's timing analysis, it's usually rated at 52MHz tops, but feels pretty solid at 65MHz21:19
daveshahYes, that's because it's based on Diamond's default model21:20
somlosome of the lingering weirdness includes passing memtest on svf push via openocd, but failing upon hitting the reset switch21:20
somlopushing via openocd gets it to pass again (same bitstream)21:20
daveshahWhich itself is worst process, minimum Vcc, 85 degrees C21:20
somlobut the latter is related to litedram, not timing, afaict, for the record...21:21
daveshahHave you tried another board yet? It does seem like something is marginal21:21
somlonot yet, will try that tomorrow21:22
daveshahI seem to remember a minimum frequency for the ECP5 DDRDLL21:22
daveshahthat was around the 70MHz ish mark21:22
daveshahThis was in my experiments before litedram21:22
daveshahIt is possible something misbehaves in a way that varies between boards and chips below this21:22
daveshahUnfortunately I don't think it's actually documented anywhere21:23
somloso maybe the versa has more slack than the trellisboard, since the former works OK at 55MHz (with rocket, that is), and the latter pretty consistently at 65, both of which are lower than the "official" number you quoted :)21:23
daveshahBut a DDRDLL issue would explain why either it works or doesn't after a reset21:23
daveshahA typical "marginal" issue would likely not change after a reset and just be odd errors here or there, including in Linux21:24
somlook, so I'll add "unboxing a secontr trellisboard" to my agenda for tomorrow, then maybe adding sdcard support, so I can boot fedora or debian from there similarly to how LowRISC does it21:26
somloas an alternative to a diskless NFS setup, which might be painful for other reasons... :)21:27
mithrosomlo / daveshah: antmicro + kgugala are working on LiteSDCard support for both Linux and testing on hardware21:28
mithroDoes the trellisboard have a sd card connector?21:28
daveshahYes, it does21:28
mithrodaveshah: What would we need to do to get antmicro a trellis board?21:29
daveshahI can't really encourage anyone to build more given there is an unknown DDR3 reliability issue21:29
daveshahAlong with a few other rev 1.0 niggles21:30
daveshahI don't know if forksand or somlo would be able to part with one of theirs21:32
mithrodaveshah: How similar is the versa board?21:33
daveshahmithro: smaller fpga, less ddr, no HDMI, only x1 pcie, less IO21:34
daveshahsomlo: FYI, this patch was to get nfs boot working on a previous litex lnux project21:34
daveshahhttps://github.com/daveshah1/litex-linux-riscv/compare/master...daveshah1:nfs21:34
tpbTitle: Comparing master...nfs · daveshah1/litex-linux-riscv · GitHub (at github.com)21:34
daveshahAlthough fairly slow, it was pretty painless21:35
mithrodaveshah: Can you log an issue somewhere for someone to clean that up?21:38
daveshahYeah, sure21:39
mithrodaveshah: I mean -- if you log an issue somewhere with that, I'll see if someone at antmicro has time to clean that up and make it work21:39
daveshahmithro: https://github.com/litex-hub/linux-on-litex-vexriscv/issues/5421:41
tpbTitle: Add support for NFS rootfs · Issue #54 · litex-hub/linux-on-litex-vexriscv · GitHub (at github.com)21:41
*** _franck_ has quit IRC22:08
*** freemint has joined #litex22:27
*** Dolu has joined #litex22:52
*** CarlFK has joined #litex22:53

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!