_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
lf_ has quit [Ping timeout: 240 seconds]
lf has joined #litex
mikeK_de1soc has joined #litex
cr1901_modern has quit [Read error: Connection reset by peer]
cr1901_modern has joined #litex
CarlFK has joined #litex
Degi_ has joined #litex
Bertl_oO is now known as Bertl_zZ
Degi has quit [Ping timeout: 265 seconds]
Degi_ is now known as Degi
_whitelogger has joined #litex
_whitelogger has joined #litex
<cr1901_modern> Getting this core running at all has been quite frustrating
<cr1901_modern> Okay I can't build microwatt w/ the FOSS tools. The autoname pass brings my Linux machine to its knees w/ 7GB of RAM usage (wtaf?!)
CarlFK has joined #litex
<cr1901_modern> https://twitter.com/cr1901/status/1363373598354907137 I am stumped by this, tbh. Would appreciate any insight from anyone who has compiled a litex SoC using microwatt w/ the free tools
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 256 seconds]
Emantor has joined #litex
scanakci has quit [Quit: Connection closed for inactivity]
<_florent_> cr1901_modern: Hi, IIRC there was an with Microwatt and the FOSS tools (not sure it has been fixed), you had reduce the I/D Cache:
<_florent_> IIRC I was setting it to 2
mikeK_de1soc has quit [Quit: Connection closed]
Melkhior has joined #litex
peepsalot has quit [Remote host closed the connection]
peeps[zen] has joined #litex
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
<cr1901_modern> _florent_: I'll take a look. What about this line? https://github.com/antonblanchard/microwatt/blob/master/xics.vhdl#L309
<cr1901_modern> I had to comment out this assert manually, because litex wants 256 interrupt lines
<cr1901_modern> Did you have a modified microwatt repo you were testing against?
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
<_florent_> cr1901_modern: not sure about xics, I just know we are using a specific commit of pythondata-cpu-microwatt since things were moving fast in the microwatt repo
<cr1901_modern> Anyways, would you be willing to run the following command at the root of litex-boards?
<cr1901_modern> python3 litex_boards/targets/orangecrab.py --cpu-type=microwatt --cpu-variant=standard+ghdl+irq --integrated-rom-size=40960 --no-compile-gateware --no-compile-software
<cr1901_modern> And tell me if it fails or not?
Bertl_zZ is now known as Bertl
Finde has quit [Read error: Connection reset by peer]
Finde_ has joined #litex
kgugala_ has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
mikeK_de1soc has joined #litex
_whitelogger has joined #litex
<_florent_> cr1901_modern: I'll be able to run it tomorrow yes
<cr1901_modern> Alright, tyvm. Taking a break from microwatt for the time being lol
<_florent_> (don't have access to my dev computer now)
<cr1901_modern> >(4:17:38 AM) _florent_: IIRC I was setting it to 2
<cr1901_modern> 2 lines, or 2 words per line
<cr1901_modern> (Seems to make more sense to do 2 words per line)
<cr1901_modern> Anyways, looking at the repo, the autoname issue has come up before, but I still may make an issue
Finde_ is now known as Finde
mikeK_de1soc has quit [Quit: Connection closed]
kgugala has quit [Remote host closed the connection]
Bertl is now known as Bertl_oO
shoragan[m] has joined #litex
tannewt has quit [Read error: Connection reset by peer]
y2kbugger has quit [Read error: Connection reset by peer]
y2kbugger has joined #litex
tannewt has joined #litex
<nickoe> What editor are you using for litex python scripts?
<zyp> «you» as in anybody? I use vscode, as for anything else these days
<nickoe> zyp: yes
<nickoe> anyone.
<nickoe> Ok, I am currently using pycharm, but it is not happy about jumping around the code for things like: dma = LiteDRAMDMAReader() ... dma.source it can find, but not dma.source.data as for example used in https://github.com/enjoy-digital/litedram/blob/master/litedram/frontend/bist.py#L509
<zyp> with a dynamic language like python, there's limits to what you can reasonably expect your editor to know about
<nickoe> yeah
<nickoe> I understand that.
<nickoe> Just a bit annoying when you are learning the codebase.
<zyp> I guess you could run the code in a debugger, set a breakpoint at what you're working, and inspect the actual objects that exist :)
<nickoe> yeah
<nickoe> that works at least.
<nickoe> Anyway, I am trying to dump that memory region from ram to some output pins / registers. So readin the bist.py stuff, https://github.com/enjoy-digital/litedram/blob/master/litedram/frontend/bist.py#L134 there is a mention of awidth and ashift. For the native interface they are ashift = 4 and awidth 28.
<nickoe> How should I understand that? Is that because four bytes are read for each word read?
<zyp> sounds like 16 to me
<nickoe> I don't understand why the awidth is not just 32.
<zyp> 2**4 is 16, and if you've got a 32-bit address accessing a 16-byte word then the lower four bits in the address will be all zeroes, so you can shift it by 4 and only keep the upper 28 bits of the address
<zyp> I don't know the details of the particular code you're looking at, but I guess something like this is what is going on
<zyp> if you have a 32-bit wide data bus, it's common to leave out the bottom two address bits
<zyp> and in this case it sounds like you've got 128-bit wide data
<nickoe> mm, ok, I guess that makes sense a the RAM is accessed with 128 bit widths for the data?
<nickoe> = 16 bytes
<zyp> that's how it sounds to me
<zyp> I think that's a result of the dram being accessed in bursts
<nickoe> "bursts" is that a general term used for SDRAM?
<zyp> I'm not an expert on SDRAM, but as far as I understand it you can't ask a RAM for only one word, it'll give you a burst of 8 words or something,
<nickoe> How many sysclk cycles does it take to read that from the RAM?
<nickoe> zyp: ok, that sounds about right
<zyp> several, it's part of the reason SDRAM has higher latency :)
<zyp> I mean, I figure bursts are a throughput optimization
<nickoe> in thi case it is also ddr3
<zyp> if there's a several cycle delay for the memory to locate the data you asked for, it makes sense to return more than just a single word at a time
<nickoe> yes
<zyp> but as far as I'm concerned, the details are not all that interesting unless you're writing the memory controller, I just want to use the memory controller :)
<nickoe> yeah, my goal is also just to _use_ it and not write it.
<nickoe> How can I buffer my data such that I can push it out at a sysclk rate?
<zyp> think in terms of streams
<nickoe> Well, I do want to attempt to stream out data from the ram. I wanted to read it with LiteDRAMDMAReader and then push it in to an AXI Stream Interface.