Wednesday, 2020-09-30

*** tpb has joined #litex00:00
*** CarlFK has quit IRC00:10
*** HoloIRCUser has joined #litex00:49
*** Degi has quit IRC01:06
*** abeljj[m] has quit IRC01:22
*** xobs1 has quit IRC01:22
*** DerFetzer[m] has quit IRC01:23
*** CarlFK[m]1 has quit IRC01:23
*** david-sawatzke[m has quit IRC01:23
*** nrossi1 has quit IRC01:23
*** leons has quit IRC01:23
*** disasm[m] has quit IRC01:24
*** lambda has quit IRC01:24
*** abeljj[m] has joined #litex01:25
*** feldim2425 has quit IRC01:26
*** CarlFK[m]1 has joined #litex01:26
*** disasm[m] has joined #litex01:31
*** DerFetzer[m] has joined #litex01:34
*** xobs1 has joined #litex01:36
*** lambda has joined #litex01:38
*** feldim2425 has joined #litex01:41
*** david-sawatzke[m has joined #litex01:41
*** leons has joined #litex01:42
*** nrossi1 has joined #litex01:42
*** Degi has joined #litex02:12
*** DerFetzer[m] has quit IRC02:14
*** lf has quit IRC02:14
*** daveshah has quit IRC02:14
*** tannewt has quit IRC02:14
*** st-gourichon-fid has quit IRC02:14
*** guan has quit IRC02:14
*** _whitelogger has quit IRC02:14
*** acathla has quit IRC02:14
*** guan has joined #litex02:15
*** st-gourichon-fid has joined #litex02:15
*** lf_ has joined #litex02:15
*** acathla has joined #litex02:15
*** tannewt has joined #litex02:15
*** daveshah has joined #litex02:15
*** _whitelogger has joined #litex02:17
*** DerFetzer[m] has joined #litex02:18
*** Degi has quit IRC02:47
*** Degi has joined #litex02:50
*** _whitelogger has quit IRC03:39
*** _whitelogger has joined #litex03:41
*** shorne has quit IRC06:12
*** peepsalot has joined #litex06:32
*** peeps[zen] has quit IRC06:33
*** risto has joined #litex07:13
*** keesj has quit IRC07:16
*** keesj has joined #litex07:17
dkozelHas anyone generated a "big little" type arrangement using LiteX and different RISCV cores?07:17
*** HoloIRCUser1 has joined #litex07:18
*** HoloIRCUser2 has joined #litex07:19
*** HoloIRCUser1 has quit IRC07:19
*** HoloIRCUser has quit IRC07:19
*** shorne has joined #litex08:13
*** peeps[zen] has joined #litex08:17
*** peepsalot has quit IRC08:18
*** shorne has quit IRC08:18
*** shorne has joined #litex08:44
*** CarlFK has joined #litex08:57
pepijndevosIs it possible to use SDRAM as sram?10:15
pepijndevosThe Icebreaker puts the bios in spiflash, but uses Up5kSPRAM as sram.10:19
pepijndevosOn Gowin there is blockram and SDRAM (which is not working yet), so it has to have at least 4k bram as sram to make the bios happy it seems.10:20
daveshahIn general, no, as the SRAM is used by the BIOS to do the SDRAM init/test10:22
daveshahOnce stuff is booted, then the SDRAM is used as main RAM for whatever you are running10:23
pepijndevosalright, keeping some bram around then I guess.10:23
daveshahIn theory you could probably do a very minimal SDRAM init with almost no SRAM10:24
daveshahAnd then run the rest of the BIOS using SDRAM as RAM10:24
daveshahBut it would be hard to debug if things went wrong10:24
pepijndevosIf I do 2k it complains the .bss doesn't fit.10:24
pepijndevosOr you mean full custom bios10:25
daveshahThat said, is the SDRAM in this case HyperRAM?10:25
pepijndevosno10:25
pepijndevosOr... I think no...10:25
pepijndevosThe GW1NR-9 comes with either PSRAM which is indeed HyperRAM, and the other variant which I have, is just normal SDRAM I think.10:26
daveshahIt might be possible to use that SRAM, I don't know how the LiteX hyperram stuff works10:26
daveshahI think I'm getting confused with the variants10:26
*** HoloIRCUser has joined #litex10:27
*** HoloIRCUser2 has quit IRC10:27
*** midnight has quit IRC10:38
*** midnight has joined #litex10:43
pepijndevoshuuuuh... yea it's totally not liking vexriscv. picorv32 and serv boot the bios just fine, but vexrisc gets stuck after the ascii art and copyright and never gets to the prompt10:48
pepijndevoshow can i debug that?10:48
_florent_pepijndevos: are you using a specific variant of Vexriscv? can you try with adding self.add_constant("UART_POLLING") to your design?11:48
pepijndevosTo the SoC class?11:49
_florent_yes11:49
_florent_pepijndevos: btw i just received some TEC0117 boards :)11:53
pepijndevoswoohoo11:53
pepijndevos_florent_, still same... only the header, no bios prompt11:55
*** shorne has quit IRC11:56
_florent_pepijndevos: what are the specific changes? can you share the design to have a look?11:59
pepijndevosI guess I'll submit the PR I have so far for the platform/target stuff.12:00
pepijndevosProgress on the SDRAM is basically: Gowin only gives you encrypted IP, no docs on the actual SDRAM12:00
pepijndevoshttps://github.com/litex-hub/litex-boards/pull/11012:08
tpbTitle: Add initial support for Trenz TEC0117 board by pepijndevos · Pull Request #110 · litex-hub/litex-boards · GitHub (at github.com)12:08
pepijndevoshuh... it's stuck at 0% on uploading the kernel. This worked before...12:51
pepijndevos[LXTERM] Uploading litex-example.bin to 0x40000000 (1440 bytes)...12:52
pepijndevos|>                    | 0%12:52
*** shorne has joined #litex12:52
daveshahmight be worth trying the minimal/lite variants of vexriscv to see if there is a difference12:57
daveshahalso, check with another platform just to rule out environment issues12:58
pepijndevosThis upload issue is now actually the same for serv and picorv32 (I can't try for vexriscv because the bios is not functional)12:59
pepijndevossram is just completely broken or something... or not mapped where I think it is.13:07
pepijndevosIt tries to write to 0x40000000 but that just reads as 0xffffffff13:08
pepijndevoswrites seem to get ignored13:08
pepijndevosyes so... mem_map says sram is at 0x100000013:15
pepijndevosIt's trying to write to main_ram, but I don't have any of that... huh??13:16
pepijndevosokay so if I pass --kernel-adr 0x1000000 that should be where sram is, but still stuck...13:26
pepijndevosI'm confused... I reverted to simple.py and it's happily uploading to 0x40000000 despite not having any memory there to my knowledge.13:36
pepijndevosYea so... on simple.py it happily writes into a void at 0x40000000. With mem_read/write it's always ff no matter what.13:48
pepijndevosI'm not even clear how this is *supposed* to work under normal circumstances. Because overwriting the bios at 0x0100000 is of probably also slightly problematic...13:49
pepijndevoson simple.py writing to 0x01000000 goes to 12% until presumable it overwrites some data the bios was using.13:51
*** kgugala has quit IRC15:24
tcalI'm trying to use `wishbone-tool -s gdb` over an ethernet bridge, with etherbone on the SoC.   With a full+debug VexRiscv CPU.   Most things work, but breakpoints don't.   That is, I can set a breakpoint to somewhere in my code and then `continue` in gdb, but then the program running on the SoC goes through the breakpoint without stopping.  Is this expected, or am I doing something wrong?16:35
*** kgugala has joined #litex17:34
tcalOk, I got some hints from kgugala.   I looked at the VexRiscv DebugPlugin, and by default it's built with 0 breakpoints, and that's how it's built in my SoC.   So I could try changing that.   But I'm also trying to coerce GDB to use a software breakpoint.   Although then I might need to figure out how to flush the ICache so that the CPU gets the modified instruction.18:23
*** HoloIRCUser2 has joined #litex18:27
*** HoloIRCUser has quit IRC18:29
somlo_florent_: one of today's litedram and/or litex commits causes memtest to fail on my nexys4ddr (only tried with Rocket)19:02
somloI have to be afk for a few hours, but will try to get more specific about it later (e.g., bisect) unless you beat me to it :)19:03
somlomeanwhile, here's a screenshot: https://imgur.com/a/7LAGKMC19:05
tpbTitle: Imgur: The magic of the Internet (at imgur.com)19:05
*** CarlFK has quit IRC19:33
*** CarlFK has joined #litex19:35
*** risto has quit IRC21:14
*** indy has quit IRC21:27
*** indy has joined #litex21:41
*** shorne has quit IRC22:05
*** CarlFK has quit IRC22:17
kbeckmann_florent_: i tested the colorlight with ethernet today and was thinking if we could solve the timing issues by using the DDR2X primitives. has this been looked in to at already or are patches welcome here?22:33
kbeckmanni checked the pads used and this should be fine - left and right side are used.22:33
*** lf_ has quit IRC23:15
*** lf has joined #litex23:16
somlo_florent_: it's a PITA to `git bisect` across two repos, litex and litedram, but here's two fairly recent (as of this morning) commits that still worked: litex 6f136f9f, and litedram c4d708323:42

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