Friday, 2020-11-06

*** tpb has joined #litex00:00
*** CarlFK has quit IRC00:32
*** lf has quit IRC01:00
*** lf has joined #litex01:01
*** Degi has quit IRC02:33
*** Degi has joined #litex02:34
*** kgugala_ has joined #litex05:49
*** kgugala has quit IRC05:53
*** kgugala has joined #litex07:13
*** kgugala_ has quit IRC07:17
_florent_somlo: here is how i was testing with the SDCard on PMOD: https://github.com/enjoy-digital/litesdcard/blob/master/bench/trellisboard.py#L40-L5109:44
*** midnight has quit IRC10:11
*** midnight has joined #litex10:14
*** kgugala_ has joined #litex11:59
*** kgugala has quit IRC11:59
kbeckmannthinking if i should try to make a litex configuration for the chameleon96 devkit that features a Cyclone V, but wondering if it makes sense at all. it has 2x ARM A9 cores. has anyone done a litex config for an FPGA like this?15:18
daveshahYes, there is LiteX support for the Zynq15:20
kbeckmannoh, neat!15:20
kbeckmanni will take a look at that then.15:20
daveshahhttps://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/zynq7000/core.py15:21
kbeckmannthanks, this is great. looks like i should be able to reuse quite a lot of this.15:22
_florent_kbeckmann: you could also find here an initial discussion about adding HPS support to LiteX: https://github.com/enjoy-digital/litex/issues/46615:24
kbeckmannoh15:24
_florent_it could be interesting to read it, but it's a bit outdated15:25
_florent_looking at the Zynq7000 support as suggested by daveshah will probably be more insteresting15:26
kbeckmanndo you know what happened with this work? was is abandoned or still WIP?15:26
kbeckmannyeah it looks like a quite nice starting point at least15:27
_florent_https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/zybo_z7.py will also be interesting to see how zynq7000 is integrated15:27
kbeckmannthanks, great resources.15:27
somlo_florent_, daveshah: with the external pmod microSD reader, behavior is more-or-less the same as with the built-in reader: spi-mode works, litesdcard crashes out of the terminal upon insertion of a microSD card into the reader15:27
daveshahCan you put the svf file somewhere and I will try?15:28
_florent_kbeckmann: i'm not sure ilesser went further and i personnaly don't have CycloneV SoC, but i would be happy to help if you have troubles15:29
somlodaveshah: http://mirror.ini.cmu.edu/trellisboard.svf.xz15:29
somloit's built for the pmod sdcard reader15:30
daveshahoh, I don't have one of those15:30
daveshahI will need an internal SD bitstream15:30
somloI'll build one and link you (should be anywhere between 30-60 minutes) -- thanks for offering to look into it!15:32
daveshahI should do a m.2 to SATA adapter for the trellisboard for litesata one day16:00
kbeckmannis the m.2 pinout of the trellisboard following any kind of standard btw?16:03
daveshahE key16:04
kbeckmannalright, nice16:04
daveshahI've never actually tested it though...16:04
*** acathla has quit IRC16:21
*** acathla has joined #litex16:21
somlodaveshah: http://mirror.ini.cmu.edu/trellisboard_sdcard.tgz17:07
_florent_daveshah: a m.2 to SATA adapter would be nice! I'm also planning to experiment with LiteSATA on ECP517:11
somloon closer observation, it only crashes if the ethernet cable happens to also be plugged in at the time the microsd card is inserted17:11
_florent_daveshah: most of the code should already be there, we could reuse the SerDes code from LiteICLink17:12
somlooh, and it also crashes when inserting the ethernet cable while an sdcard is already in, and working fine up to that point17:12
somlodaveshah: so I can see how it might be an electrical load thing (either works fine, but things go south when the second one is plugged in)17:13
daveshahnot seeing a failure here (but I haven't actually tested a boot)17:13
_florent_daveshah: only the OOB code will be missing (since we as using the internal features of the Xilinx transceiver), but it should not be too complicated17:13
daveshahyeah definitely sounds like a power issue17:13
somloalso interestingly, it works fine when both ethernet and sdcard are already in when the board is programmed17:13
daveshahECP5 SERDES have OOB support too so should be fine17:13
somloas long as I don't futz around unplugging and plugging things back in17:13
somlodaveshah: so I guess no simultaneous LiteETH and LiteSDCard on the trellisboard for me, at least not with the current usb cable and/or usb power settings17:17
somlodaveshah: would a power supply from an 5g-versa board work with the trellisboard?17:18
somloI could test if applying external power helps with stability17:18
daveshahI've never tried external power but it should do17:19
daveshahYou'll need to swap over the power jumper too17:19
somlolike to EXT instead of USB?17:20
somlodoesn't seem to light up when I plug in the versa power supply (with the power jumper on EXT or completeley removed)17:22
somlo(still works with usb power as before, so at least I didn't fry it :)17:23
somlodaveshah: super dumb question, but those two sockets (the one that says "pcie pwr" and the similar-looking one right next to the 12V external power plug -- those look like they could be sockets for a fuse. And obviously there aren't any fuses in them (if that's what they're even for), which might explain why external power doesn't work for me17:27
somloor I could be completely clueless as to what those things are... :)17:27
daveshahYes they are for fuses17:28
daveshahI can't remember the model number of fuse know though17:28
daveshahEasiest option is probably just to find a thicker or shorter USB cable tbh17:28
daveshahA fuse borrowed from the Versa should also work if it physically fits17:29
somlook, I feel a bit better now :) If you ever remember the fuse model number, please share! I guess whether I wait for amazon to deliver a fuse, a new usb cable, or both, it's the same delay, and I won't be able to do anything right away regardless :)17:29
somloif I'm lucky and didn't leave the versa at the office, which requires lots of voodoo to get into these days...17:30
daveshahI believe the fuse is Schurter OMF 125 series17:40
daveshahe.g. https://uk.farnell.com/schurter/3404-0009-11/chip-fuse-smd-fast-acting-1a/dp/165177317:41
daveshahAny other rating in the 1A-3A sort of range would be fine17:43
*** CarlFK has joined #litex18:21
*** FFY00 has quit IRC18:42
*** FFY00 has joined #litex18:43
somlodaveshah: I got someone to photograph the fuse on a versa (it's at the office, unfortunately): https://imgur.com/a/RCzT13E20:50
tpbTitle: Imgur: The magic of the Internet (at imgur.com)20:50
somlobut I'm going to just order the thing you linked rather than mess about :)20:51
daveshahHmm, not sure if it will fit. But I did briefly test 12V on my board (one from your batch) with a shorted out fuse and it didn't blow up20:51
daveshahSo at least we know the 12V input is safe now20:52
somloI'm curious if my bitstream will survive ethernet + sdcard insertion after being programmed, with a proper power supply :)20:53
somloso I'll order a couple of those fuses right now, and report back when I get to try one out20:54
*** Claude has quit IRC21:15

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