Thursday, 2022-09-01

*** tpb <[email protected]> has joined #litex00:00
*** Degi <[email protected]> has quit IRC (Ping timeout: 255 seconds)00:55
*** Degi <[email protected]> has joined #litex00:57
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)03:04
*** TMM_ <[email protected]> has joined #litex03:05
keesj1_florent_: do you know ... what tutorial to follow?07:04
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)08:01
*** Brinx <[email protected]> has joined #litex08:01
*** Brinx <[email protected]> has quit IRC (Ping timeout: 255 seconds)08:06
*** Brinx <[email protected]> has joined #litex08:44
*** Brinx <[email protected]> has quit IRC (Ping timeout: 268 seconds)08:48
*** Brinx <[email protected]> has joined #litex09:01
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)10:58
*** negut <[email protected]> has quit IRC (Read error: Connection reset by peer)11:50
*** negut <[email protected]> has joined #litex11:50
*** indy <[email protected]> has quit IRC (Ping timeout: 252 seconds)12:09
*** indy <[email protected]> has joined #litex12:13
*** Brinx <[email protected]> has joined #litex12:23
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)12:47
*** Brinx <[email protected]> has joined #litex12:48
*** xenador77[m] <xenador77[m]!~xenador77@2001:470:69fc:105::2:5a64> has quit IRC (Ping timeout: 248 seconds)12:54
*** xenador77[m] <xenador77[m]!~xenador77@2001:470:69fc:105::2:5a64> has joined #litex12:55
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)12:56
*** Brinx <[email protected]> has joined #litex12:59
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)16:03
*** Guest13 <[email protected]> has joined #litex16:30
*** Guest13 <[email protected]> has quit IRC (Client Quit)16:31
_florent_keesj1: The bare metal demo should provide you a basis to do what you want. You can also probably have a look at: https://github.com/litex-hub/fpga_101/tree/master/lab004/firmware16:38
cr1901_florent_: Do you have a few mins to answer basic litedram qs? If not, I'll be able to figure out the answer myself16:40
cr1901asking you is just quicker :)16:40
cr1901Such as: Does litedram start out under software control after push-button reset? Or is a CPU or bridge expected to put it into software mode?16:43
_florent_cr1901: it defaults to HW control: https://github.com/enjoy-digital/litedram/blob/master/litedram/dfii.py#L7016:45
_florent_cr1901: and software is expected to put it in software control mode when required16:46
_florent_cr1901: previously it was software control by default16:46
_florent_but this has been changed to simplify simulation16:47
_florent_https://github.com/enjoy-digital/litedram/commit/f3f89ed8d101fc021e1ad3f147a4bc5120c557c516:47
cr1901Hmmm, okay... so that means nominally DRAM should "just work" after pushbutton reset16:47
cr1901and if it doesn't, then I should put it under software control and play w/ dram control registers via litex_cli until things "just work"?16:48
_florent_DRAM requires an initialization, that is done by the software by default with LiteX16:52
cr1901Is using litex_cli supported for doing the initialization (just for testing that litedram is working? I saw a BIST core as well)16:53
_florent_do it will not work without the initialization for SDR/DDR/DDR2 and calibration is also also required for DDR3/ DDR4 (and recent standards)16:53
cr1901Ahhh okay, I thought the initialization was to _optimize_ the core operation, not necessarily required just for testing16:54
*** Brinx <[email protected]> has joined #litex16:54
_florent_it can be done over litex_server with python scripts, but this is not integrated in the repository16:55
_florent_this gist can be useful: https://gist.github.com/enjoy-digital/529a4d9994f0cc95e45382e4eb253b0916:56
cr1901That's fine, no need to integrate16:56
_florent_https://gist.github.com/enjoy-digital/529a4d9994f0cc95e45382e4eb253b09#file-test_sdram_init-py-L18-L2716:56
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)16:57
*** Brinx <[email protected]> has joined #litex16:57
_florent_LiteDRAM can generate the init sequence in python: https://github.com/enjoy-digital/litedram/blob/master/litedram/init.py#L102116:57
_florent_this is what is used by the scripts I just provided before16:58
cr1901I have a connection to litex_server already, I've just forgotten how to talk to it directly (aside from litex_cli)16:58
cr1901In any case, thanks, this should help very much16:58
cr1901I'm trying to get Gowin internal DRAM working on a design w/o a SoC16:59
_florent_with litex_server in place, it's very easy to write/read registers:17:08
_florent_by looking at https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_client.py#L97-L147, you'll have different example for registers/memories, etc...17:08
cr1901Oh, RemoteClient is exported/intendded for external code to use?17:13
cr1901Anyways, tyvm for the help/hints17:16
_florent_yes, you can even run multiple scripts/RemoteClient connected to the same LiteXServer, hardware access will automatically be shared17:17
cr1901Neat :o! I know litex_server has existed in some form since... well, 2015 at least when I started contributing. But I've since forgotten how to use most of its functionality :P17:19
cr1901But looks like, as w/ much of LiteX, it has gotten a lot better over the years17:19
cr1901Btw, I know the gateware works because I can talk to the LEDs via UART/litex_server :P. So I've eliminated that problem17:20
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)18:48
*** TMM_ <[email protected]> has joined #litex18:48
*** style- <[email protected]> has joined #litex20:09
*** genpaku <[email protected]> has quit IRC (Remote host closed the connection)21:50
*** genpaku <[email protected]> has joined #litex21:52
*** Administrator_ <[email protected]> has joined #litex21:53
*** ilia__s058 <[email protected]> has joined #litex21:54
*** pbsds9 <[email protected]> has joined #litex21:55
*** oter_ <oter_!5e7a0135f3@2604:bf00:561:2000::25f> has joined #litex21:55
*** mlaga97_ <mlaga97_!~quassel@user/mlaga97> has joined #litex21:57
*** shenki_ <shenki_!~j@2404:9400:2:0:216:3eff:fee2:21ea> has joined #litex21:58
*** rektide_ <[email protected]> has joined #litex21:58
*** style- <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:58
*** oter <oter!5e7a0135f3@2604:bf00:561:2000::25f> has quit IRC (Ping timeout: 244 seconds)21:58
*** shenki <shenki!~j@2404:9400:2:0:216:3eff:fee2:21ea> has quit IRC (Ping timeout: 244 seconds)21:59
*** toshywoshy <toshywoshy!~toshywosh@ptr-377wf33o3bnthuddmycb.18120a2.ip6.access.telenet.be> has quit IRC (Ping timeout: 244 seconds)21:59
*** rektide <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:59
*** negut <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:59
*** pbsds <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:59
*** ilia__s05 <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:59
*** mlaga97 <mlaga97!~quassel@user/mlaga97> has quit IRC (Ping timeout: 244 seconds)21:59
*** joseng <[email protected]> has quit IRC (Ping timeout: 244 seconds)21:59
*** style- <[email protected]> has joined #litex21:59
*** oter_ is now known as oter21:59
*** ilia__s058 is now known as ilia__s0521:59
*** toshywoshy <toshywoshy!~toshywosh@ptr-377wf33o3bnthuddmycb.18120a2.ip6.access.telenet.be> has joined #litex21:59
*** pbsds9 is now known as pbsds21:59
*** Administrator__ <[email protected]> has joined #litex22:00
*** joseng <[email protected]> has joined #litex22:02
*** Administrator_ <[email protected]> has quit IRC (Ping timeout: 268 seconds)22:03

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