Tuesday, 2020-10-06

*** tpb has joined #litex00:00
*** CarlFK has quit IRC00:44
*** peepsalot has quit IRC00:55
*** peepsalot has joined #litex01:00
*** Degi has quit IRC02:35
*** Degi has joined #litex02:36
*** _whitelogger has quit IRC04:45
*** _whitelogger has joined #litex04:47
*** kgugala_ has joined #litex04:59
*** kgugala has quit IRC05:01
*** st-gourichon-fid has quit IRC05:22
*** st-gourichon-fid has joined #litex05:22
*** keesj has quit IRC06:05
*** keesj has joined #litex06:10
*** kgugala has joined #litex07:10
*** kgugala_ has quit IRC07:14
st-gourichon-fidpepijndevos, if my PR was useful to your "good news! vexrisc boots to console no" then I'm happy about it, any way that's okay. https://github.com/enjoy-digital/litex/pull/66307:58
tpbTitle: Fix SoC CPU crash on minimal variants on call to flush_cpu_dcache(). by fidergo-stephane-gourichon · Pull Request #663 · enjoy-digital/litex · GitHub (at github.com)07:58
*** kgugala_ has joined #litex08:27
*** kgugala has quit IRC08:29
*** kgugala has joined #litex08:44
*** kgugala_ has quit IRC08:47
*** david-sawatzke[m has quit IRC10:33
*** CarlFK[m]1 has quit IRC10:33
*** david-sawatzke[m has joined #litex10:34
*** CarlFK[m]1 has joined #litex10:34
st-gourichon-fidHi! When building documentation for a design we get "AttributeError: 'CDCUsbPHY' object has no attribute 'duid'". Investigating the hypothesis that this means "document id" and something is missing in CSCUsbPHY. Any hint appreciated.11:12
st-gourichon-fidon calling generate_docs(soc, "build/"+target+"/documentation")11:16
zypsounds to me like the CDCUsbPHY instance gets passed to some code that expects a CSR instance (the CSR instances have a duid attribute)11:17
zypi.e. you're probably passing in the wrong object somewhere11:17
st-gourichon-fidThanks zyp for the feedback.  The design compiles and works fine, only generating doc fails like this.11:18
zypcan you pastebin the full traceback of the error?11:21
st-gourichon-fidyes11:31
st-gourichon-fidhttps://paste.ubuntu.com/p/SHngNPcQbw/11:35
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)11:35
zypah, right, it's not the CSR duid, it's the ModuleDoc duid11:41
zypwhere does the CDCUsbPHY come from?11:43
st-gourichon-fidStrangely, the code does test if object is of ModuleDoc class.11:43
st-gourichon-fidLet me check.11:43
st-gourichon-fidIn ValentyUSB11:44
st-gourichon-fidWe were instructed to follow https://gist.github.com/enjoy-digital/82ed88b77ef0b1e3e91b0592e44eaa14#file-gistfile1-txt-L83 which requires branch hw_cdc_eptri of valentyusb11:48
tpbTitle: Fomu · GitHub (at gist.github.com)11:48
zypah, right11:50
st-gourichon-fidhttps://github.com/gregdavill/valentyusb/blob/hw_cdc_eptri/valentyusb/usbcore/cpu/cdc_eptri.py#L18011:50
tpbTitle: valentyusb/cdc_eptri.py at hw_cdc_eptri · gregdavill/valentyusb · GitHub (at github.com)11:50
st-gourichon-fidclass CDCUsbPHY(Module, AutoDoc, ModuleDoc):11:50
zypyeah, I found it11:51
*** kgugala_ has joined #litex11:51
zypI have an idea of what the problem might be11:52
st-gourichon-fidI'm interested.11:53
*** kgugala has quit IRC11:53
*** kgugala has joined #litex11:54
zypwell, ref. https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/doc.py#L2711:57
tpbTitle: litex/doc.py at master · enjoy-digital/litex · GitHub (at github.com)11:57
zypthat claims there's no need to call __init__(), but __init__() is what calls DUID.__init__() which is what sets self.duid11:58
*** kgugala_ has quit IRC11:58
zypso I don't really understand how it's supposed to work without calling __init__11:58
zyptry adding ModuleDoc.__init__(self) to CDCUsbPHY12:00
st-gourichon-fiddoing that12:02
zypI guess it got overlooked because __init__() doesn't do anything else useful when called without arguments12:03
st-gourichon-fidDone. No more exception.12:05
st-gourichon-fidConsidering PR to https://github.com/gregdavill/valentyusb/blob/hw_cdc_eptri/valentyusb/usbcore/cpu/cdc_eptri.py#L18012:05
tpbTitle: valentyusb/cdc_eptri.py at hw_cdc_eptri · gregdavill/valentyusb · GitHub (at github.com)12:05
zypyeah, and probably a PR to litex as well to remove the line about __init__ not being required :)12:06
zypunless there is a better way to solve it12:06
st-gourichon-fidCan do that.  Will include your hints in the PR.12:06
*** kgugala_ has joined #litex12:06
*** kgugala_ has quit IRC12:08
*** kgugala_ has joined #litex12:09
*** kgugala has quit IRC12:10
st-gourichon-fidzyp, where is that mentioned in litex that __init__ is not required?12:12
st-gourichon-fidI grepped and did not find.12:12
zypI linked it12:13
zyp13:57:37 < zyp> well, ref. https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/doc.py#L2712:13
tpbTitle: litex/doc.py at master · enjoy-digital/litex · GitHub (at github.com)12:13
*** kgugala_ has quit IRC12:14
*** kgugala has joined #litex12:14
st-gourichon-fidAh thanks. I grepped excluding *.py ...12:14
st-gourichon-fidThanks zyp, things were not clear to me before, re-reading your lines above things are clear now. Doing PRs.12:22
st-gourichon-fidDone https://github.com/gregdavill/valentyusb/pull/112:29
tpbTitle: Fix incompatibility with ModuleDoc(). by fidergo-stephane-gourichon · Pull Request #1 · gregdavill/valentyusb · GitHub (at github.com)12:29
st-gourichon-fidand https://github.com/enjoy-digital/litex/pull/66812:29
tpbTitle: Change misleading comment about ModuleDoc. by fidergo-stephane-gourichon · Pull Request #668 · enjoy-digital/litex · GitHub (at github.com)12:29
*** kgugala_ has joined #litex12:35
*** kgugala_ has quit IRC12:38
*** kgugala has quit IRC12:38
*** kgugala has joined #litex12:38
*** kgugala_ has joined #litex12:48
*** kgugala has quit IRC12:52
*** FFY00 has quit IRC13:17
*** FFY00 has joined #litex13:18
*** FFY00 has quit IRC13:18
*** FFY00 has joined #litex13:19
*** [Matt] has quit IRC14:22
*** [Matt] has joined #litex14:40
*** vup has quit IRC14:43
*** vup has joined #litex14:44
*** CarlFK has joined #litex18:00
futarisIRCcloudhttps://github.com/secworks/poly130522:44
tpbTitle: GitHub - secworks/poly1305: Hardware implementation of the poly1305 message authentication function. (at github.com)22:44
*** lf has quit IRC23:10
*** lf has joined #litex23:10

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