Tuesday, 2021-10-05

*** tpb <[email protected]> has joined #litex00:00
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)03:02
*** TMM_ <[email protected]> has joined #litex03:02
*** Degi_ <[email protected]> has joined #litex03:06
*** Degi <[email protected]> has quit IRC (Ping timeout: 252 seconds)03:07
*** Degi_ is now known as Degi03:07
sajattack[m]seems #siglenthax died with freenode05:37
sajattack[m]unless there's a libera with another name05:37
*** FabM <[email protected]> has joined #litex07:05
*** cr1901 <cr1901!~William@2601:8d:8600:911:e181:7751:b072:f52> has quit IRC (Ping timeout: 260 seconds)07:30
*** cr1901 <cr1901!~William@2601:8d:8600:911:b44d:5c72:cb42:b1e8> has joined #litex07:30
_florent_sajattack[m]: Hi, for things related to https://github.com/360nosc0pe/scope you can discuss it here07:31
sajattack[m]Alright thanks07:32
_florent_for now the project is pause, but I'm playing to play with it again with micropython07:32
sajattack[m]I ordered an SDS1104X-E yesterday and was trying to decipher the eevblog instructions but I think I've figured it out now07:33
sajattack[m]I was curious if your yocto would work with default gateware or only the custom bitstream?07:33
_florent_with micropython configuring/handling the peripherals, providing a standalone scope and processing still done on the Host with GlScopeClient07:33
sajattack[m]redbeard in the unnamed re discord has made some progress towards a buildroot/yocto for the default gateware as I understand it07:35
_florent_sajattack[m]: I sorry I haven't used the yocto part, on my side I reused the existing reverse engineering of the Scope and have been porting LiteX to it07:35
_florent_so only focused on the PL side07:35
sajattack[m]Oh I didn't realize it was someone else07:36
_florent_@07:37
_florent_G33KatWork here has been involved in the yocto part IIRC07:37
_florent_If you want to play with the default gateware/software over SCPI, there are also some efforts to support it with GLScopeClient (#scopehal)07:41
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (*.net *.split)08:12
*** linear_cannon <[email protected]> has quit IRC (*.net *.split)08:12
*** _franck_ <[email protected]> has quit IRC (*.net *.split)08:12
*** awordnot <awordnot!~awordnot@user/awordnot> has quit IRC (*.net *.split)08:12
*** shorne <[email protected]> has quit IRC (*.net *.split)08:12
*** RaYmAn_ <[email protected]> has quit IRC (*.net *.split)08:12
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex08:24
*** linear_cannon <[email protected]> has joined #litex08:24
*** _franck_ <[email protected]> has joined #litex08:24
*** awordnot <awordnot!~awordnot@user/awordnot> has joined #litex08:24
*** shorne <[email protected]> has joined #litex08:24
*** RaYmAn_ <[email protected]> has joined #litex08:24
tntAny special trick to get litex to generate a .bin instead of .bit ?09:08
_florent_tnt: With a XIlinx device, you can use this for QSPI: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sqrl_acorn.py#L124-L13109:37
tntHeh, build <> target env.09:38
sajattack[m]I think the relevant bit is line 13009:44
*** Guest53 <[email protected]> has quit IRC (Quit: Ping timeout (120 seconds))09:45
sajattack[m]Or maybe I misunderstood your comment09:46
tntOh no, it's me ... I confused channels.09:48
tntI also asked somewhere else where to program the fpga with OSS tools and I thought this was an answer to that.09:48
tntI ended up instaling Vivado Lab edition to the remote machine so I could program the fpga.10:02
tntUnfortunately ... bitstream doesn't seem to do anything :/10:03
tntIf I just have the SoCCore and pretty much nothing else, I should still see something on the serial right ?10:04
sajattack[m]I think so10:07
tntDamn, being remote suck ... can't check wiring, can't see if leds are blinking, ...10:08
_florent_tnt: OpenOCD will work allow to load the .bit, but not sure anyone did the BSCAN<>SPI proxy bitstreams for Ultrascale10:39
_florent_tnt: you can try a very minimal bistream:10:42
_florent_with LiteX, set with_uart to False10:42
_florent_and10:42
_florent_serial_pads = platform.request("serial")10:42
_florent_self.comb += serial_pads.tx.eq(serial_pads.rx)10:42
_florent_Then just see if you get an echo :)10:43
tnt_florent_: Ah thanks, I was just looking how to do that :p ( do an echo without conflicting ).10:52
tntWell, echo seems to work.11:05
_florent_ok, so UART is ok, maybe an issue with the clock?11:13
_florent_you can test something like this:11:13
_florent_https://hastebin.com/olomacubit.pl11:13
tpbTitle: hastebin (at hastebin.com)11:13
_florent_ah, you can directly pass serial_pads to IOStreamer11:14
_florent_otherwise can you share the target file you were testing?11:15
tntSure I can upload them, gimme a sec.11:16
tnt_florent_: https://people.osmocom.org/~tnt/stuff/adi/11:18
tpbTitle: Index of /~tnt/stuff/adi/ (at people.osmocom.org)11:18
_florent_it looks fine, are you sure the 122.88MHz clock is enabled at startup?11:21
tntI am not ... I just hope so because it's the only clock source to the PL I could find on this board ...11:23
_florent_If the PCIe is plugged, you can probably get the 100MHz PCIe clock with something like this:11:29
_florent_https://www.irccloud.com/pastebin/Nzx47rR5/11:29
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)11:29
tnt_florent_: I'll give that a shot.11:31
tntERROR: [DRC REQP-1929] IBUFDS_GTE4_O_may_only_drive_GTxE4: The IBUFDS_GTE4 IBUFDS_GTE4 O pin may only be connected to the GTREFCLK pin of a GTHE4_COMMON, GTHE4_CHANNEL, GTYE4_COMMON, or GTYE4_CHANNEL component. The IBUFDS_GTE4 O pin cannot drive MMCME2_ADV.11:36
tntERROR: [DRC RTSTAT-1] Unrouted nets: 1 net(s) are unrouted. The problem bus(es) and/or net(s) are main_crg_clkin.11:36
_florent_ok, you can try with the ODIV2 output11:45
_florent_and set p_REFCLK_HROW_CK_SEL=0 to have ODIV2 = O11:47
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has joined #litex12:19
tntCan litex configure the PS part to get its clock from there ?13:54
tnt(on a 10k$ dev board with thousands of IO, you would think they'd put a oscillator somewhere that's always running ....)13:54
_florent_tnt: Have you been able to do a test with the PCIe clock?14:07
tnt_florent_: yeah, no luck either. I had to add a BUFG_GT after the IBUFDS_GTE4 for it to route, but still nothng. 14:10
tntI made a 'cloked' echo ( self.sync += serial_pads.tx.eq(serial_pads.rx) ) to be as simple as I could, and no joy.14:11
tntI asked for configrmation that the board was indeed plugged into a PC, didn't get an answer yet.14:11
_florent_for the Zynq, you can look at:14:12
_florent_https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/zynq7000/core.py14:12
_florent_and14:12
_florent_https://github.com/antmicro/litex-rowhammer-tester/blob/master/rowhammer_tester/targets/zcu104.py#L69-L18014:12
_florent_tnt: otherwise, here is something I was doing on a 7-series board to use the clock from the configuration internal oscillator: 14:18
_florent_https://www.irccloud.com/pastebin/QIatcBGM/14:18
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)14:18
_florent_you can probably do something similar on Ultrascale14:19
tnt_florent_: tx, I'll give that a shot.14:24
tntI got confirmation the board is in a pcie slot at least.14:24
tnt_florent_: \o/ Got to the bios prompt :)14:55
tntI guess now the best would be to use that clock to configure the 120.88 MHz clock and actually use that as the system clock.14:56
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex15:12
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 252 seconds)15:13
_florent_tnt: great, so you used the STARTUPE3's CFGMCLK?15:17
tntATM I just let Xilinx remap the STARTUPE2 but I'll clean it up to E3 version.15:18
tntOnly difference is clock is 50MHz and not 65MHz 15:18
_florent_tnt: ok, as you were saying it's really a shame you don't have a valid input clock available from the PL for a board of this price :)15:19
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 245 seconds)15:23
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex15:24
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)15:25
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #litex16:57
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 252 seconds)16:58
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex17:02
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 245 seconds)17:03
G33KatWorksajattack[m]: I did some yocto stuff for the Siglent scope, but it was all custom. We ditched everything Siglent did including the gateware, so at this stage it's pretty useless. We started building our own, but florent got way farther with LiteX than we did17:22
G33KatWorkI also reverse engineered a good part of the hardware17:22
sajattack[m]ok good to know, thanks17:25
*** Guest53 <[email protected]> has joined #litex17:57
Wolf0G33KatWork: I'm working on doing that with Xilinx's HBM2 memory controller. It's a REALLY cool design17:58
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)18:07
*** TMM_ <[email protected]> has joined #litex18:08
*** C-Man <[email protected]> has joined #litex18:27
*** nickoe <[email protected]> has joined #litex18:46
*** Guest53 <[email protected]> has quit IRC (Ping timeout: 256 seconds)23:49

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