Tuesday, 2022-03-29

*** tpb <[email protected]> has joined #litex00:00
*** DoubleJ2 <DoubleJ2!~DoubleJ@user/doublej> has joined #litex00:13
*** DoubleJ <DoubleJ!~DoubleJ@user/doublej> has quit IRC (Ping timeout: 245 seconds)00:16
*** DoubleJ2 is now known as DoubleJ00:16
*** Johnsel <[email protected]> has quit IRC (Remote host closed the connection)00:26
*** esden <esden!sid32455@2a03:5180:f:4::7ec7> has quit IRC (Ping timeout: 250 seconds)00:41
*** esden <[email protected]> has joined #litex00:43
*** vup <[email protected]> has quit IRC (Ping timeout: 250 seconds)01:11
*** vup <[email protected]> has joined #litex01:11
*** Degi_ <[email protected]> has joined #litex01:18
*** Degi <[email protected]> has quit IRC (Ping timeout: 272 seconds)01:18
*** Degi_ is now known as Degi01:18
trabucayretnt: no. But I can check datasheets04:45
tnttrabucayre: I randomly just added it pretending it was a kintex 7 and it seemed to have worked just fine.05:59
tnt_florent_: and forget what I said about hold violations, I was dumbly looking at _timing_synth.rpt instead of _timing.rpt ... doh ....06:00
trabucayretnt: xilinx is quite coherent: all devices works with the same programming sequence :)06:06
trabucayreIf you have devices to add ... 06:07
*** sebo <[email protected]> has joined #litex06:37
*** sebo <[email protected]> has quit IRC (Ping timeout: 246 seconds)07:02
*** C-Man <[email protected]> has quit IRC (Ping timeout: 260 seconds)08:21
tnttrabucayre: PR opened :)08:47
*** sebo <[email protected]> has joined #litex09:55
*** sebo <[email protected]> has quit IRC (Ping timeout: 272 seconds)10:03
*** davebee <davebee!~davebee@cpc138570-newt42-2-0-cust29.19-3.cable.virginm.net> has joined #litex10:57
davebeeI'm trying to integrate some Amaranth into Litex. I have the Verilog generation working. I've written a function to build a Python migen stub with a Module to wrap the Instance and add the Verilog source. I've built a simple free running counter and it works fine. I want to be able to connect the wishbone bus of the CPU generated by Litex to my11:04
davebeeAmaranth component. I don't know where the bus signals are in Litex. Where should I be looking?11:04
*** C-Man <[email protected]> has joined #litex11:21
*** davebee <davebee!~davebee@cpc138570-newt42-2-0-cust29.19-3.cable.virginm.net> has quit IRC (Quit: Client closed)11:46
*** sebo <[email protected]> has joined #litex11:54
*** sebo <[email protected]> has quit IRC (Ping timeout: 260 seconds)12:01
*** FabM <FabM!~FabM@2a03:d604:103:600:9fa4:1c96:ebe5:2471> has joined #litex12:04
*** davebee <davebee!~davebee@cpc138570-newt42-2-0-cust29.19-3.cable.virginm.net> has joined #litex13:36
*** sebo <[email protected]> has joined #litex13:42
_florent_davebee: Hi, you can have a look at: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/usb_ohci.py14:02
_florent_davebee: You can create a wrapper around your generated Amaranth core exposing a Wishbone interface:14:03
_florent_https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/usb_ohci.py#L2614:03
_florent_then create your instance/connections: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/usb_ohci.py#L38-L7814:03
_florent_add the generated sources: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/usb_ohci.py#L10814:04
davebeeGreat. Thanks. I'll take a look at that. I've got everything else running - so I'm running a mix of Amaranth, VHDL and migen/Litex, but not connected together yet.14:05
_florent_and finally integrate this wrapper module in the LiteX SoC, ex: https://github.com/enjoy-digital/litex_vexriscv_smp_usb_host_test/blob/master/digilent_arty.py#L149-L15014:05
davebeeI was fiddling with add_slave() and SoCRegion() but couldn't work it out. Many thanks.#14:06
*** sebo <[email protected]> has quit IRC (Ping timeout: 260 seconds)14:47
*** sebo <[email protected]> has joined #litex15:37
_florent_tnt: I've improved the reset of the CDC modules used in LitePCIe PHY and this fixed the dma_hanging I was seeing on a design. It also seems to have fixed the Decklink behaviour since I'm now able to get PCIe + DRAM working simultaneously. 15:43
_florent_tnt: I'm doing more tests, but that's also possible it fixed https://github.com/enjoy-digital/litepcie/issues/9015:43
*** davebee <davebee!~davebee@cpc138570-newt42-2-0-cust29.19-3.cable.virginm.net> has quit IRC (Quit: Client closed)16:26
*** sebo <[email protected]> has quit IRC (Ping timeout: 260 seconds)16:44
tnt_florent_: oh, very interesting. I'll test that on the declink since I'm preparing now and then on the ADI board.17:01
*** sebo <[email protected]> has joined #litex17:10
_florent_tnt: great, thanks17:31
*** sebo <[email protected]> has quit IRC (Ping timeout: 246 seconds)17:43
*** sebo <[email protected]> has joined #litex18:13
*** sebo <[email protected]> has quit IRC (Ping timeout: 250 seconds)18:18
tnt_florent_: decklink with ram indeeds seems to work now.18:36
tntI'm still having trouble getting uart to work on it, but might be a physical issue / cable thing. I need to check that.18:36
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)18:40
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex18:42
*** sebo <[email protected]> has joined #litex18:45
_florent_tnt: Good for the ram. For the UART, I just probed the pins, I haven't tested them as UART.19:17
_florent_tnt: BTW, if you have time for a build, I would be interesting to know if the two other DRAM modules have been reversed correctly:19:18
_florent_tnt: here: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/decklink_quad_hdmi_recorder.py#L7919:18
_florent_tnt: changing to 4, 5, 6, 7 would use the two other DRAM modules19:19
tnt_florent_: sure, I can give that a shot. Need to find a way to see the memtest results :p19:39
tnt_florent_: the other ram banks works fine.20:01
*** sebo <[email protected]> has quit IRC (Ping timeout: 260 seconds)20:12
_florent_tnt: did you managed to get the UART working? :)20:24
tnt_florent_: yes.20:24
_florent_tnt: ah good, what was the issue?20:24
_florent_tnt: Thanks for the ram test, nice to know this is also working20:25
tnt_florent_: tbh, I have no idea what I screwed up the first time around.  I disconnected everything and plugged in the scope to see what was wrong ... and everything looked fine. I reconnect the usb-serial cable ... and it works.20:25
tntAnd now I also got uartbone working at 2M baud so it's all fine.20:26
_florent_BTW, when generating the design with PCIe (and with Crossover UART), you can just also load the Linux driver and do get the console on /dev/LXU020:26
tntyeah, I saw that. But since I wanted to use the bridge to debug dma peripheral, I figured avoiding going through pcie is probably a good idea :p20:28
tntI'm rebuilding an ADI board bitstream with x8 pcie, we'll see if the fix you made helped with that too.20:29
*** Martoni <Martoni!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 252 seconds)20:39
*** sebo <[email protected]> has joined #litex20:40
tnt_florent_: btw, ever tried having 2 litepcie devices in the same system ?20:51
tnt[13858.278069] sysfs: cannot create duplicate filename '/devices/platform/liteuart'20:51
_florent_tnt: yes, but probably not with the LiteUART driver20:53
tnt_florent_: at first glance it didn't seem to have solved my x8 issues :/20:58
tntonly litepcie needed updating right ?20:58
*** C-Man <[email protected]> has quit IRC (Ping timeout: 272 seconds)21:03
_florent_litex too21:07
*** sebo <[email protected]> has quit IRC (Ping timeout: 250 seconds)21:12
*** C-Man <[email protected]> has joined #litex22:11

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