david-sawatzke[m has quit [Ping timeout: 244 seconds]
nrossi1 has quit [Ping timeout: 244 seconds]
leons has quit [Ping timeout: 244 seconds]
disasm[m] has quit [Ping timeout: 260 seconds]
lambda has quit [Ping timeout: 260 seconds]
abeljj[m] has joined #litex
feldim2425 has quit [Ping timeout: 260 seconds]
CarlFK[m]1 has joined #litex
disasm[m] has joined #litex
DerFetzer[m] has joined #litex
xobs1 has joined #litex
lambda has joined #litex
feldim2425 has joined #litex
david-sawatzke[m has joined #litex
leons has joined #litex
nrossi1 has joined #litex
Degi has joined #litex
_whitelogger has joined #litex
DerFetzer[m] has joined #litex
Degi has quit [Ping timeout: 272 seconds]
Degi has joined #litex
_whitelogger has joined #litex
shorne has quit [Ping timeout: 258 seconds]
peepsalot has joined #litex
peeps[zen] has quit [Ping timeout: 264 seconds]
risto has joined #litex
keesj has quit [Ping timeout: 265 seconds]
keesj has joined #litex
<dkozel>
Has anyone generated a "big little" type arrangement using LiteX and different RISCV cores?
HoloIRCUser1 has joined #litex
HoloIRCUser2 has joined #litex
HoloIRCUser1 has quit [Read error: Connection reset by peer]
HoloIRCUser has quit [Ping timeout: 246 seconds]
shorne has joined #litex
peeps[zen] has joined #litex
peepsalot has quit [Ping timeout: 246 seconds]
shorne has quit [Ping timeout: 256 seconds]
shorne has joined #litex
CarlFK has joined #litex
<pepijndevos>
Is it possible to use SDRAM as sram?
<pepijndevos>
The Icebreaker puts the bios in spiflash, but uses Up5kSPRAM as sram.
<pepijndevos>
On 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.
<daveshah>
In general, no, as the SRAM is used by the BIOS to do the SDRAM init/test
<daveshah>
Once stuff is booted, then the SDRAM is used as main RAM for whatever you are running
<pepijndevos>
alright, keeping some bram around then I guess.
<daveshah>
In theory you could probably do a very minimal SDRAM init with almost no SRAM
<daveshah>
And then run the rest of the BIOS using SDRAM as RAM
<daveshah>
But it would be hard to debug if things went wrong
<pepijndevos>
If I do 2k it complains the .bss doesn't fit.
<pepijndevos>
Or you mean full custom bios
<daveshah>
That said, is the SDRAM in this case HyperRAM?
<pepijndevos>
no
<pepijndevos>
Or... I think no...
<pepijndevos>
The GW1NR-9 comes with either PSRAM which is indeed HyperRAM, and the other variant which I have, is just normal SDRAM I think.
<daveshah>
It might be possible to use that SRAM, I don't know how the LiteX hyperram stuff works
<daveshah>
I think I'm getting confused with the variants
HoloIRCUser has joined #litex
HoloIRCUser2 has quit [Read error: Connection reset by peer]
midnight has quit [Ping timeout: 272 seconds]
midnight has joined #litex
<pepijndevos>
huuuuh... 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 prompt
<pepijndevos>
how can i debug that?
<_florent_>
pepijndevos: are you using a specific variant of Vexriscv? can you try with adding self.add_constant("UART_POLLING") to your design?
<pepijndevos>
To the SoC class?
<_florent_>
yes
<_florent_>
pepijndevos: btw i just received some TEC0117 boards :)
<pepijndevos>
woohoo
<pepijndevos>
_florent_, still same... only the header, no bios prompt
shorne has quit [Ping timeout: 240 seconds]
<_florent_>
pepijndevos: what are the specific changes? can you share the design to have a look?
<pepijndevos>
I guess I'll submit the PR I have so far for the platform/target stuff.
<pepijndevos>
Progress on the SDRAM is basically: Gowin only gives you encrypted IP, no docs on the actual SDRAM
<tpb>
Title: Add initial support for Trenz TEC0117 board by pepijndevos · Pull Request #110 · litex-hub/litex-boards · GitHub (at github.com)
<pepijndevos>
huh... it's stuck at 0% on uploading the kernel. This worked before...
<pepijndevos>
[LXTERM] Uploading litex-example.bin to 0x40000000 (1440 bytes)...
<pepijndevos>
|> | 0%
shorne has joined #litex
<daveshah>
might be worth trying the minimal/lite variants of vexriscv to see if there is a difference
<daveshah>
also, check with another platform just to rule out environment issues
<pepijndevos>
This upload issue is now actually the same for serv and picorv32 (I can't try for vexriscv because the bios is not functional)
<pepijndevos>
sram is just completely broken or something... or not mapped where I think it is.
<pepijndevos>
It tries to write to 0x40000000 but that just reads as 0xffffffff
<pepijndevos>
writes seem to get ignored
<pepijndevos>
yes so... mem_map says sram is at 0x1000000
<pepijndevos>
It's trying to write to main_ram, but I don't have any of that... huh??
<pepijndevos>
okay so if I pass --kernel-adr 0x1000000 that should be where sram is, but still stuck...
<pepijndevos>
I'm confused... I reverted to simple.py and it's happily uploading to 0x40000000 despite not having any memory there to my knowledge.
<pepijndevos>
Yea so... on simple.py it happily writes into a void at 0x40000000. With mem_read/write it's always ff no matter what.
<pepijndevos>
I'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...
<pepijndevos>
on simple.py writing to 0x01000000 goes to 12% until presumable it overwrites some data the bios was using.
kgugala has quit [Ping timeout: 272 seconds]
<tcal>
I'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?
kgugala has joined #litex
<tcal>
Ok, 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.
HoloIRCUser2 has joined #litex
HoloIRCUser has quit [Ping timeout: 240 seconds]
<somlo>
_florent_: one of today's litedram and/or litex commits causes memtest to fail on my nexys4ddr (only tried with Rocket)
<somlo>
I 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 :)
<tpb>
Title: Imgur: The magic of the Internet (at imgur.com)
CarlFK has quit [Ping timeout: 240 seconds]
CarlFK has joined #litex
risto has quit [Remote host closed the connection]
indy has quit [Ping timeout: 256 seconds]
indy has joined #litex
shorne has quit [Ping timeout: 258 seconds]
CarlFK has quit [Ping timeout: 265 seconds]
<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?
<kbeckmann>
i checked the pads used and this should be fine - left and right side are used.
lf_ has quit [Ping timeout: 244 seconds]
lf has joined #litex
<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 c4d7083