Wednesday, 2021-07-28

*** tpb <[email protected]> has joined #litex00:00
*** somlo_vacation <[email protected]> has quit IRC (Read error: Connection reset by peer)00:09
*** somlo_vacation <[email protected]> has joined #litex00:09
*** rom <rom!~rom@2405:4802:9013:d6d0:c0c5:1666:6558:caa6> has quit IRC (Ping timeout: 246 seconds)00:16
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)00:23
*** pftbest <[email protected]> has joined #litex00:44
*** pftbest <[email protected]> has quit IRC (Ping timeout: 276 seconds)00:49
*** pftbest <[email protected]> has joined #litex01:01
*** rom <[email protected]> has joined #litex01:01
*** pftbest <[email protected]> has quit IRC (Ping timeout: 258 seconds)01:05
*** Degi_ <[email protected]> has joined #litex01:25
*** Degi <[email protected]> has quit IRC (Ping timeout: 240 seconds)01:27
*** Degi_ is now known as Degi01:27
romI think external Wishbone/AXI for my application is ok, since I will also generate the clock from FPGA01:34
promach[m]<_florent_ "On Spartan6 we are using a fixed"> fixed phase shift as in `rd_bitslip = 1` which means a 360 degree phase delay ?01:39
promach[m]_florent_: 01:39
*** pftbest <[email protected]> has joined #litex01:43
*** pftbest <[email protected]> has quit IRC (Ping timeout: 252 seconds)01:47
*** pftbest <[email protected]> has joined #litex02:25
*** pftbest <[email protected]> has quit IRC (Ping timeout: 240 seconds)02:28
*** pftbest <[email protected]> has joined #litex03:06
*** pftbest <[email protected]> has quit IRC (Ping timeout: 268 seconds)03:11
*** rom <[email protected]> has quit IRC (Ping timeout: 246 seconds)03:32
*** pftbest <[email protected]> has joined #litex03:48
*** pftbest <[email protected]> has quit IRC (Ping timeout: 240 seconds)03:52
*** pftbest <[email protected]> has joined #litex04:09
*** pftbest <[email protected]> has quit IRC (Ping timeout: 245 seconds)04:13
*** pftbest <[email protected]> has joined #litex04:51
*** pftbest <[email protected]> has quit IRC (Ping timeout: 250 seconds)04:55
*** rom <rom!~rom@2405:4802:9013:d6d0:c0c5:1666:6558:caa6> has joined #litex04:56
*** pftbest <[email protected]> has joined #litex05:11
*** rom <rom!~rom@2405:4802:9013:d6d0:c0c5:1666:6558:caa6> has quit IRC (Quit: Client closed)05:16
*** pftbest <[email protected]> has quit IRC (Ping timeout: 256 seconds)05:16
*** rom <rom!~rom@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has joined #litex05:27
*** pftbest <[email protected]> has joined #litex05:32
*** pftbest <[email protected]> has quit IRC (Ping timeout: 240 seconds)05:37
*** pftbest <[email protected]> has joined #litex06:14
*** pftbest <[email protected]> has quit IRC (Ping timeout: 256 seconds)06:19
*** pftbest <[email protected]> has joined #litex06:31
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)06:37
*** pftbest <[email protected]> has joined #litex06:37
*** rom <rom!~rom@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has quit IRC (Ping timeout: 246 seconds)06:46
*** rom <[email protected]> has joined #litex06:46
*** michalsieron <[email protected]> has joined #litex07:03
*** rom <[email protected]> has quit IRC (Ping timeout: 246 seconds)07:05
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)07:07
*** pftbest <[email protected]> has joined #litex07:08
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)07:41
*** TMM_ <[email protected]> has joined #litex07:41
_florent_promach[m]: For the value of wr/rd_bitstlip in the example code I provided, the hardware and rest of the code also needs to be considered. This was more an example of values that needs to be manually adapted07:55
_florent_You can see that these values are different between hardware:07:55
_florent_https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/targets/galatea/base.py#L214-L21607:56
_florent_https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/targets/opsis/base.py#L287-L28907:57
_florent_https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/targets/pipistrello/base.py#L222-L22407:57
_florent_https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/targets/waxwing/base.py#L206-L20807:58
_florent_I'm not saying that's necessarily the way to go but the way we did it in the past on Spartan6  :) (That has been improved since then with software auto calibration on  7-Series/Ultrascale).07:59
promach[m]_florent_: cool, I was thinking about using PLL dynamic phase shift feature before you mentioned about bitslip delay08:23
_florent_promach[m]: In fact you can see phase shift as a fine delay (adjusting sampling delay) and bitstlip as a coarse delay (adjusting bit order in the deserialized data)08:25
promach[m]_florent_: may I know if you also used PLL dynamic phase shift feature together with bitslip for spartan-6 ?08:37
_florent_promach[m]: no we manage to get it working without, but dynamic phase shift can provide you more flexibility08:39
promach[m]does spartan-6 use both fine delay and course delay ?08:39
_florent_fine delay was done using fixed phase shift of the clocks with the PLL and coarse delays with the bitslio08:43
_florent_bitslip08:43
promach[m]<_florent_ "fine delay was done using fixed "> _florent_: you mean on spartan-6, the fine delay is calibrated during the **initial read calibration** , and then is fixed during actual read operations ?08:47
_florent_promach[m]: yes, and the calibration was done manually08:49
* promach[m] uploaded an image: (53KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GOnspzoJjVVvQXhVayaQoZEV/image.png >09:01
promach[m]_florent_:  I am reading up on fixed phase shift in https://www.xilinx.com/support/documentation/user_guides/ug382.pdf#page=6509:01
promach[m]is this what is being used on spartan-6 ?09:02
promach[m]_florent_: strange, I do no see any attribute named as "PHASE_SHIFT"09:24
* promach[m] uploaded an image: (130KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/ELEwNKEtGjNexAopWCNFikZc/image.png >09:24
_florent_the phase is applied on CLK_OUTN outputs10:22
promach[m]<_florent_ "the phase is applied on CLK_OUTN"> you mean **CLKOUTn_PHASE** ?10:39
promach[m]as inside the PLL_BASE Settings page ?10:39
*** Coldberg <[email protected]> has quit IRC (Read error: Connection reset by peer)11:44
*** Coldberg <[email protected]> has joined #litex11:44
_florent_promach[m]: In fixed mode, the phase is configured through the CLKOUTN_PHASE attributes, in dynamic mode through the DRP interface and phase shift is then present on  CLK_OUTN outputs12:01
promach[m]_florent_: I suppose litedram is not using dynamic mode for spartan-6 ?12:07
promach[m]and what do you mean by DRP interface ?12:09
promach[m]Do you mean DCM_SP Settings instead ?12:09
* promach[m] uploaded an image: (128KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/PMONsdpunnJjPqihoyYyFTrO/image.png >12:10
promach[m]there is also PHASE_SHIFT attribute inside DCM_SP Settings page12:10
promach[m]and CLKOUT_PHASE_SHIFT can choose between VARIABLE and FIXED12:10
promach[m]I am bit confused now12:12
DerekKozel[m]_florent_: I have a built image, programmed both by openocd (I think successfully) and by Vivado's hardware manager, I've built and loaded the litepcie kernel module and it shows as loaded. However the only output in dmesg is12:48
DerekKozel[m]> [  658.091296] litepcie: loading out-of-tree module taints kernel.12:48
gatecatis anything showing up in lspci ?12:49
DerekKozel[m]litepcie_util info says it Could not init driver12:49
DerekKozel[m]lspci originally showed the SQRL blah blah blah at 0000:00:01.012:50
DerekKozel[m]now it does not show the device12:50
gatecatyou might want to try a rescan as per https://github.com/enjoy-digital/litepcie/issues/36 ?12:50
DerekKozel[m]when I print the verbose tree that node shows as blank12:50
gatecatbeware, I've locked up machines doing this12:50
DerekKozel[m]Thankfully working on a separate machine12:51
DerekKozel[m]the rescan did not seem to produce a useful result12:51
* DerekKozel[m] < https://libera.ems.host/_matrix/media/r0/download/libera.chat/3bce10288389403ddb0d4302c45a9916455cd925/message.txt >12:52
gatecatyeah, not much sign of anything showing up :/12:52
DerekKozel[m]I had this all working last year when I was using a Thunderbolt adapter, should have written more notes!12:54
*** michalsieron <[email protected]> has quit IRC (Ping timeout: 252 seconds)14:25
*** michalsieron <[email protected]> has joined #litex15:14
*** rom <[email protected]> has joined #litex15:36
romHi16:12
romI want to ask about the --with-wishbone-memory option for VexRiscV-SMP16:12
romwhat does it do exactly? Because afaik, if it's true then the core itself won't generate the LiteDRAM bus and do nothing after that16:12
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex16:33
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 240 seconds)16:34
OmkarBhilare[m]We had produced the litex core with serv+litedram with this target file https://github.com/BeagleWire/litex-boards/blob/beaglewire-mw/litex_boards/targets/beaglewire.py17:40
OmkarBhilare[m]I wanted to put a user wishbone port so I can connect some other logic with the sdram.17:41
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)17:44
*** TMM_ <[email protected]> has joined #litex17:44
romOmkarBhilare[m]: Hey, you have (almost) the same goal as I do, for me it's to connect the SDRAM itself17:49
_florent_DerekKozel[m]: sorry  I'm leaving the office but could provide you a "known to work" bitstream for the Acorn tomorrow morning17:52
_florent_rom: with "--with-wishbone-memory" VexRiscv-SMP is connected to the main bus of the SoC which is then connected to LiteDRAM17:54
_florent_rom: without, VexRiscv-SMP each core has 2 direct interfaces connected to LiteDRAM17:55
rom_florent_: So that is the exact use case that you told me yesterday, "configure VexRiscv-SMP to use the Wishbone interface", if I understand it correctly?17:56
_florent_OmkarBhilare[m]: you can use what I was describing yesterday to rom: https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_gen.py#L133-L13917:56
_florent_rom: exactly17:56
_florent_sorry I have to go17:57
rom_florent_: thank you for the big help!17:58
*** rom72 <[email protected]> has joined #litex18:17
*** rom <[email protected]> has quit IRC (Ping timeout: 246 seconds)18:20
*** rom <[email protected]> has joined #litex18:28
*** rom72 <[email protected]> has quit IRC (Quit: Client closed)18:29
*** michalsieron <[email protected]> has quit IRC (Ping timeout: 256 seconds)18:53
*** rom <[email protected]> has quit IRC (Quit: Konversation terminated!)19:08
*** rom <rom!~user@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has joined #litex19:09
*** rom <rom!~user@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has quit IRC (Client Quit)19:09
*** rom <rom!~user@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has joined #litex19:09
DerekKozel[m]_florent_: thanks. That'd be useful to ensure that my problems are "limited" to UEFI signing (Seems to work) and PCIe re-enumeration19:34
DerekKozel[m]I'm trying to get the base example gateware working so vomoniyi can take it forwards with developing some new features.19:36
*** Coldberg <[email protected]> has quit IRC (Ping timeout: 252 seconds)20:11
*** rom_ <rom_!~user@2405:4802:9013:d6d0:c1be:e620:3e70:d488> has joined #litex20:18
*** rom <rom!~user@2405:4802:9013:d6d0:4100:2f54:87be:3bf8> has quit IRC (Ping timeout: 256 seconds)20:22
*** rom_ <rom_!~user@2405:4802:9013:d6d0:c1be:e620:3e70:d488> has quit IRC (Client Quit)20:23
*** rom_ <[email protected]> has joined #litex20:24
*** rom_ <[email protected]> has quit IRC (Ping timeout: 276 seconds)20:31
*** Coldberg <[email protected]> has joined #litex21:19
*** pftbest <[email protected]> has quit IRC (Remote host closed the connection)22:56
*** pftbest <pftbest!~pftbest@2a01:4f8:c17:6afc::1:2> has joined #litex23:00

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