Monday, 2021-12-06

*** tpb <[email protected]> has joined #litex00:00
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)00:18
*** TMM_ <[email protected]> has joined #litex00:18
*** zjason` is now known as zjason00:21
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has quit IRC (Remote host closed the connection)01:19
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has joined #litex01:19
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has quit IRC (Remote host closed the connection)01:20
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has joined #litex01:27
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has quit IRC (Remote host closed the connection)01:29
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has joined #litex01:30
*** Degi_ <[email protected]> has joined #litex02:01
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds)02:02
*** Degi_ is now known as Degi02:02
CarlFKcan the Arty board work with the foss tools? (even a little, like blink and led) ?03:08
bjonnh(Arty Z7-20 with a Zynq-7000   XC7Z020-1CLG400C )03:22
bjonnhI'm installing the xilinx … thingies for now03:23
bjonnhbut if there are more open tools, I would be happy to use them03:23
bjonnhCarlFK: https://github.com/timvideos/litex-buildenv/wiki/Xilinx-Vivado03:48
bjonnhseems to have instructions that look familiar03:48
CarlFK Carl Karsten edited this page on Feb 19, 2020 · 17 revisions 03:49
CarlFK:D03:49
CarlFKalmost 2 years old.  03:50
bjonnhthat's promising03:52
bjonnhI may just have to create a file with the pinout of that specific board03:53
bjonnhif I understand how all of that is organized03:53
CarlFKhttps://symbiflow-examples.readthedocs.io/en/latest/building-examples.html#xilinx-7-series03:54
tpbTitle: Building example designs — SymbiFlow examples documentation (at symbiflow-examples.readthedocs.io)03:54
CarlFKno vava or other closed source needed 03:55
bjonnhbut that's not those I think03:57
CarlFKthat link should show you how to make the arty do stuff with only foss tools 04:07
CarlFKand a bunch of other boards 04:07
bjonnhhmmm yeah not those arty I think, They are artix bazed04:08
bjonnhbased04:09
bjonnhbut I don't know maybe the fpga part is the same04:09
bjonnhbut symbiflow seems to handle the zybo z7 that has the same chip as my board04:09
bjonnhso that's promising04:09
bjonnhand the exact bitstream format seem to have been reversed as well according to https://github.com/SymbiFlow/prjxray-db/tree/master/zynq7/xc7z020clg400-304:16
*** linear_cannon <[email protected]> has quit IRC (Read error: Connection reset by peer)05:14
*** Degi <[email protected]> has quit IRC (*.net *.split)05:26
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has quit IRC (*.net *.split)05:26
*** TMM_ <[email protected]> has quit IRC (*.net *.split)05:26
*** Emantor <[email protected]> has quit IRC (*.net *.split)05:26
*** joseng <[email protected]> has quit IRC (*.net *.split)05:26
*** tcal <[email protected]> has quit IRC (*.net *.split)05:26
*** Wolf0 <Wolf0!~Wolf0@user/wolf0> has quit IRC (*.net *.split)05:26
*** shorne_ <[email protected]> has quit IRC (*.net *.split)05:26
*** trabucayre <[email protected]> has quit IRC (*.net *.split)05:26
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has quit IRC (*.net *.split)05:26
*** nats` <nats`[email protected]> has quit IRC (*.net *.split)05:26
*** Xesxen <Xesxen!~cyber@hackalot/deelnemer/xesxen> has quit IRC (*.net *.split)05:26
*** jeffdi <[email protected]> has quit IRC (*.net *.split)05:26
*** guan <[email protected]> has quit IRC (*.net *.split)05:26
*** alanvgreen <[email protected]> has quit IRC (*.net *.split)05:26
*** somlo <[email protected]> has quit IRC (*.net *.split)05:26
*** simeonm <[email protected]> has quit IRC (*.net *.split)05:26
*** key2 <[email protected]> has quit IRC (*.net *.split)05:26
*** philpax_ <[email protected]> has quit IRC (*.net *.split)05:26
*** kbeckmann <[email protected]> has quit IRC (*.net *.split)05:26
*** kgugala <[email protected]> has quit IRC (*.net *.split)05:26
*** bjonnh <bjonnh!~jo@about/aquilenet/bjonnh> has quit IRC (*.net *.split)05:26
*** pavelow_ <[email protected]> has quit IRC (*.net *.split)05:26
*** tpw_rules <[email protected]> has quit IRC (*.net *.split)05:26
*** Degi <[email protected]> has joined #litex05:27
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has joined #litex05:27
*** TMM_ <[email protected]> has joined #litex05:27
*** Emantor <[email protected]> has joined #litex05:27
*** Wolf0 <Wolf0!~Wolf0@user/wolf0> has joined #litex05:27
*** joseng <[email protected]> has joined #litex05:27
*** jeffdi <[email protected]> has joined #litex05:27
*** guan <[email protected]> has joined #litex05:27
*** alanvgreen <[email protected]> has joined #litex05:27
*** shorne_ <[email protected]> has joined #litex05:27
*** tcal <[email protected]> has joined #litex05:27
*** somlo <[email protected]> has joined #litex05:27
*** simeonm <[email protected]> has joined #litex05:27
*** key2 <[email protected]> has joined #litex05:27
*** philpax_ <[email protected]> has joined #litex05:27
*** trabucayre <[email protected]> has joined #litex05:27
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has joined #litex05:27
*** nats` <nats`[email protected]> has joined #litex05:27
*** Xesxen <Xesxen!~cyber@hackalot/deelnemer/xesxen> has joined #litex05:27
*** kgugala <[email protected]> has joined #litex05:27
*** kbeckmann <[email protected]> has joined #litex05:27
*** bjonnh <bjonnh!~jo@about/aquilenet/bjonnh> has joined #litex05:27
*** pavelow_ <[email protected]> has joined #litex05:27
*** tpw_rules <[email protected]> has joined #litex05:27
*** linear_cannon <[email protected]> has joined #litex05:27
*** FabM <FabM!~FabM@2a03:d604:103:600:d548:ae3f:3517:1a5> has joined #litex05:32
*** benh <[email protected]> has quit IRC (*.net *.split)05:37
*** zyp <[email protected]> has quit IRC (*.net *.split)05:37
*** mtretter_ <[email protected]> has quit IRC (*.net *.split)05:37
*** zyp <[email protected]> has joined #litex05:37
*** mtretter <[email protected]> has joined #litex05:37
*** benh <[email protected]> has joined #litex05:38
*** gatecat <[email protected]> has quit IRC (*.net *.split)05:50
*** _whitelogger <[email protected]> has quit IRC (*.net *.split)05:50
*** CarlosEDP <CarlosEDP!~carlosedp@2001:470:69fc:105::218e> has quit IRC (*.net *.split)05:50
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has quit IRC (*.net *.split)05:50
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has quit IRC (*.net *.split)05:50
*** tumbleweed <tumbleweed!~stefanor@ubuntu/member/tumbleweed> has quit IRC (*.net *.split)05:50
*** mntmn <[email protected]> has quit IRC (*.net *.split)05:50
*** G33KatWork <[email protected]> has quit IRC (*.net *.split)05:50
*** G33KatWork <[email protected]> has joined #litex05:50
*** gatecat <[email protected]> has joined #litex05:50
*** mntmn <[email protected]> has joined #litex05:50
*** _whitelogger <[email protected]> has joined #litex05:51
*** a3f <a3f!~a3f@2001:470:69fc:105::41d> has joined #litex05:53
*** mikolajw <mikolajw!~mikolajtc@2001:470:69fc:105::3b02> has joined #litex05:53
*** tumbleweed <tumbleweed!~stefanor@ubuntu/member/tumbleweed> has joined #litex05:55
*** CarlosEDP <CarlosEDP!~carlosedp@2001:470:69fc:105::218e> has joined #litex05:56
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has quit IRC (Remote host closed the connection)07:04
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:f03e:bc82:cee9:8ee9> has joined #litex07:04
*** essele <[email protected]> has joined #litex08:01
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 252 seconds)08:13
tcalIn LiteX/migen, is it possible to modify a "special" (wrapped instantiation) after it's been added?    Specifically, to add more I/Os?08:29
*** FabM <FabM!~FabM@2a03:d604:103:600:5bdc:260d:1bd0:40c4> has joined #litex08:34
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 265 seconds)09:23
*** FabM <[email protected]> has joined #litex09:35
*** ilia__s <[email protected]> has joined #litex10:57
_florent_tcal: it's possible yes. For this, you can put the special in the do_finalize, as done in most CPUs, for example VexRiscv: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/vexriscv/core.py#L36312:39
*** emkat <emkat!~emkat@2001:67c:2564:518:9e7b:efff:fe46:1776> has joined #litex12:57
emkatGood afternoon. I was wondering how the internal clock of the LiteDRAM module works when using the simsoc target. The simsoc sets the internal clock frequency to 100 MHz by default, but where and how exactly is that 100 MHz clock created? It is my guess that it is somehow derived from the (default) 1 MHz system clock, but I was unable to find where this happens.12:59
somlo_florent_: any recent success programming the ecpix5 with openocd? If you scroll up a bit I posted some logs of what I'm seeing -- used to work a few weeks ago, now I can't seem to get it to work; not sure if I'm screwing up something subtle enough that I can't notice, or if anything changed...13:02
_florent_somlo: Sorry, saw it yesterday but forgot to answer today :)13:03
_florent_somlo: So you are not able to load the bitstream with OpenOCD?13:04
somlo_florent_: this https://pastebin.com/cJ7QiUQB is what I see on the terminal, and nothing happens with the board; also, this https://pastebin.com/Pj5wB64R is what I get in dmesg before and after running openocd13:50
tpbTitle: $ openocd -f openocd_ecpix5.cfg -c 'transport select jtag; init; svf lamdaconcep - Pastebin.com (at pastebin.com)13:50
somlocurious if this is reproducible by anyone else but me13:50
_florent_somlo: I'll try in 20-30 min13:51
somlobtw, the nature of the bitstream .svf file doesn't seem to matter -- tried it with an old .svf I posted to linux-on-litex-rocket, which I know for a fact worked in the past13:52
somloso either I broke my board (again) when I unplugged it a few weeks ago, or (less likely) something changed in litex-boards or with openocd, or whatever13:53
_florent_somlo: sadly I don't think anything changed on this in last week13:54
_florent_weeks13:54
somloweird thing is when plugging in I get the usual two ttyUSB (0 and 1) devices recognized, power goes to the board, so I'm having a hard time imagining *how* I might have broken it :)14:08
*** Melkhior <Melkhior!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has quit IRC (Read error: No route to host)14:40
*** Melkhior_ <Melkhior_!~Melkhior@2a01:e0a:1b7:12a0:225:90ff:fefb:e717> has joined #litex14:40
*** ilia__s0 <[email protected]> has joined #litex14:43
*** ilia__s <[email protected]> has quit IRC (Ping timeout: 240 seconds)14:45
*** ilia__s0 is now known as ilia__s14:45
*** ilia__s4 <[email protected]> has joined #litex14:52
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)14:53
*** TMM_ <[email protected]> has joined #litex14:53
*** ilia__s <[email protected]> has quit IRC (Ping timeout: 265 seconds)14:54
*** ilia__s <[email protected]> has joined #litex14:55
*** ilia__s4 <[email protected]> has quit IRC (Ping timeout: 265 seconds)14:57
*** peeps <peeps!~peepsalot@openscad/peepsalot> has joined #litex15:15
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 256 seconds)15:17
acathlasomlo, I don't know how it's wired on the icebreaker, but on the lattice up5k breakout board, with the same FTDI, I also have two ttyUSB but none are usable for an uart in litex, so I use an external one.16:47
*** indy <[email protected]> has quit IRC (Read error: Connection reset by peer)17:00
*** indy <[email protected]> has joined #litex17:01
somloacathla: the weird thing is that the ecpix5 worked great for *weeks*; then I unplugged it for the last two weeks (cleaning up and moving stuff around in my office), now it no longer works17:12
gatecatit sounds like something changing in openocd tbh17:13
gatecatcould you try reverting the openocd version to an older package ?17:13
somloso either I broke it (but then why the heck can it still speak usb on both jtag and uart, ttyUSB0 *and* ttyUSB1) to the linux host?!?), or something changed (not in litex-boards, but maybe some other related bit of software or library or something)17:13
somlogatecat: I might have updated my fedora once while the ecpix5 card was packed away, but `dnf updateinfo list` doesn't seem to suggest openocd was part of it... In fact, openocd hasn't been updated at all since f34 was released, so that can't be it. At least not the openocd package itself, maybe one of its dependencies, who knows...17:19
gatecatit looks suspiciously like it's reporting a syntax error in the svf command, which is very strange17:20
gatecatthe ttyUSB0 disconnected thing is normal - that's just openocd taking over from the usb serial driver on interface 017:20
somlogatecat: yeah, I noticed that on the trellisboard too (now that I started paying attention) -- and happily the trellisboard still works, so I can check the "before" and "after" I package the new yosys release as an rpm (which is why I started dusting off my ecp5 cards in the first place)17:22
somlo* the ttyUSB0 disconnect thing, to be precise17:22
somlogatecat: do you have an ecpix5 (specifically, the 85k version)? If so, can *you* program a current litex .svf to it ?17:24
gatecatunfortunately not17:24
somlono worries, worth a question :)17:25
somlohttp://mirror.ini.cmu.edu/litex/lambdaconcept_ecpix5.svf.xz in case anyone else reading this wants to give it a shot17:27
somlogatecat: re. syntax error in the .svf, I tried an old .svf posted for linux-on-litex-rocket which worked when I uploaded it, so I have no reason to believe recent generated .svf files are somehow broken where they weren't earlier17:29
tntsomlo: in https://pastebin.com/cJ7QiUQB  the svf filename is wrong.17:32
tpbTitle: $ openocd -f openocd_ecpix5.cfg -c 'transport select jtag; init; svf lamdaconcep - Pastebin.com (at pastebin.com)17:32
tntmissing the 'b' of lambda17:32
tntSo ... was that the problem ?18:01
somlotnt: thanks! I suspected it's something silly that I'm perceptually unable to notice (I once spent a few days chasing a missing semicolon in some code I was working on :) )18:01
somlowould have been nice if openocd threw a more useful error message (such as "I can't find your file named <foo>"), but since it turns out my board isn't broken after all, I'm willing to forgive it for that :D18:03
somlothanks for spoting my typo for me, and sorry to everyone for the noise :D18:03
tnthehe. Yeah, when I saw the help message, I thought "Ok ... what would make it believe that this is not a <file> ..."18:04
tcal_florent_: Thanks!   So once you do the `self.specials += Instance("xxxx",  self.xxx_params)`, you can't modify i/o/p.  But if you hold off doing that until the very end, then `self.xxx_params` can be tweaked between the time it is created and the finalization step.19:27
tcal_florent_: So, for the CFU, instead of doing it like this: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/vexriscv/core.py#L299-L315,  I should create a `self.cfu_params` that can be updated, and then not actually add the CFU as a special until finalization.19:28
tcal....if I understand correctly..19:32
tnt_florent_: I'm looking at the jesd example you provided last week. The S7MMCM and the BUFGMUX are not really needed right ? If I don't need any dynamic way to change the user clock freq.19:37
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)20:12
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has joined #litex20:16
*** Martoni42 <Martoni42!~Martoni@2a03:d604:103:600:2ad2:44ff:fe23:2f72> has quit IRC (Ping timeout: 240 seconds)21:32

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