Thursday, 2020-07-09

*** tpb has joined #yosys00:00
*** emeb has quit IRC00:08
*** Degi has quit IRC01:35
*** Degi has joined #yosys01:37
*** smkz has quit IRC02:49
*** smkz has joined #yosys02:52
*** craigo has quit IRC04:02
*** N2TOH__ is now known as N2TOH04:34
*** cr1901_modern has quit IRC06:15
*** cr1901_modern has joined #yosys06:16
*** emeb_mac has quit IRC06:46
*** y2kbugger has quit IRC06:54
*** y2kbugger has joined #yosys06:55
*** futarisIRCcloud has joined #yosys07:12
*** Asu has joined #yosys07:16
*** jakobwenzel has joined #yosys07:23
*** kraiskil has joined #yosys07:35
*** flammit has quit IRC08:03
*** flammit has joined #yosys08:05
*** dys has joined #yosys08:22
*** proteusguy has quit IRC09:11
*** proteusguy has joined #yosys09:24
*** kraiskil has quit IRC09:42
*** kraiskil has joined #yosys09:55
*** Asuu has joined #yosys09:59
*** Asu has quit IRC10:02
*** craigo has joined #yosys10:14
*** kraiskil has quit IRC10:55
*** kraiskil has joined #yosys11:00
*** jakobwenzel1 has joined #yosys11:00
*** jakobwenzel1 has quit IRC11:03
*** jakobwenzel1 has joined #yosys11:04
*** kraiskil has quit IRC11:34
*** Asuu has quit IRC12:11
*** Asuu has joined #yosys12:14
*** kraiskil has joined #yosys12:39
*** craigo has quit IRC12:41
*** SpaceCoaster_ has joined #yosys12:43
*** adjtm has quit IRC12:47
*** kraiskil has quit IRC12:57
*** craigo has joined #yosys13:53
*** emeb has joined #yosys14:51
*** AdamHorden has joined #yosys15:04
*** kraiskil has joined #yosys15:10
*** craigo has quit IRC15:11
*** jakobwenzel1 has quit IRC16:01
*** maartenBE has quit IRC16:11
*** maartenBE has joined #yosys16:13
*** kraiskil has quit IRC16:31
*** bubble_buster_ has joined #yosys16:48
*** esden_ has joined #yosys16:48
*** ovf has quit IRC16:48
*** ovf_ has joined #yosys16:49
*** az0re has joined #yosys16:50
*** rjeli has quit IRC16:55
*** lukego has quit IRC16:55
*** bubble_buster has quit IRC16:55
*** esden has quit IRC16:55
*** nurelin has quit IRC16:55
*** heijligen has quit IRC16:55
*** dxld has quit IRC16:55
*** Kamilion has quit IRC16:55
*** cyrozap has quit IRC16:55
*** bubble_buster_ is now known as bubble_buster16:55
*** esden_ is now known as esden16:55
*** dys has quit IRC16:56
*** fevv8[m] has quit IRC16:56
*** promach3 has quit IRC16:56
*** rjeli has joined #yosys16:58
*** lukego has joined #yosys16:58
*** heijligen has joined #yosys16:58
*** dxld has joined #yosys16:58
*** Kamilion has joined #yosys16:58
*** fevv8[m] has joined #yosys17:02
*** indy has joined #yosys17:14
*** promach3 has joined #yosys17:27
*** nurelin has joined #yosys17:27
*** craigo has joined #yosys17:27
*** somlo has quit IRC18:13
ross_sDoes anyone have a good handle on how to debug inout problems in yosys? I have a PMOD port defined as inout wire [7:0] PMOD, and some signals are assigned driven nets, others are used as inputs. I have generally had this work in the past, but now I have connected a motor peripheral and the gate drive outputs from the fpga are getting distorted, even though they are connected to inputs on the peripheral.18:23
ross_sChanging the port def from inout to output fixes the problem, but breaks the input parts of the port.18:23
ross_sDoes anyone know why this behaviour is occurring? Is there a solution other than changing the placement file to break the pmod into inputs and outputs?18:23
ross_sI notice that yosys warns a lot about 'limited support for tri-state logic', how limited is limited?18:23
*** somlo has joined #yosys18:24
daveshahThis seems like it is a more subtle issue18:26
daveshahThe limited tristate support is for more complex cases than this18:26
daveshahIt is possible that enabling the input buffer or tristate control is messing something up18:26
daveshahWhat do you mean by distorted?18:27
daveshahand is this ECP5 or iCE4018:27
ross_sECP5. The expected output signal is the 6 gate high / gate low outputs from a three channel complementary timer18:28
ross_sOn the scope, with no load attached, the signals look correct. If I attach the pmod and the top level ports are inout, I see a 'breathing' effect where the duty cycles of the signals wobble slowly by a significant margin18:29
*** nengel has quit IRC18:30
daveshahWhat IO standard?18:31
daveshahIs the rise/fall time still OK? Or does it change too?18:31
ross_s3.3v?18:31
ross_srise/fall seems fine18:31
daveshahNothing differential presumably18:31
ross_sno, single-ended18:32
daveshahI think it would need a small example to look further18:32
daveshahThen you could use Yosys show to try and see what was going on18:32
ross_sI'll try and pare it down to something small that exhibits the issue18:32
daveshahThanks, that should make things a lot easier18:34
Loftyhttps://puu.sh/G5lSb/fa119a6462.png18:35
Lofty...sorry18:35
LoftyI'll go18:35
*** Lofty has left #yosys18:35
*** Lofty has joined #yosys18:48
ross_sIt looks like if I use any member of the port as an input, it triggers the problem https://gist.github.com/rschlaikjer/1c7125fd3dbb4a6bd4e135f93bae24f118:50
tpbTitle: pmod_bldc.v ยท GitHub (at gist.github.com)18:50
ross_s(still working on making a complete compilable example)18:50
*** Asuu has quit IRC18:53
*** Asuu has joined #yosys18:54
daveshahIf you don't use any ports as an input, then Yosys will demote the port to an output19:00
daveshahso that behaviour so far makes sense19:00
daveshahIs there any possibility that it is actually the input part that is misbehaving?19:01
daveshahThere was a bug in nextpnr a while ago where the input part of a inout, with the output path unused, actually ended up as an output driving 119:02
daveshahThat should long since have been fixed but maybe it has surfaced in another form19:02
*** jakobwenzel has quit IRC19:09
ross_shm, I don't think that there's any unexpected output from the input port. Still struggling to get a small repro; currently at the point where the original project (top containing a field oriented control module containing a timer) causes the problem, but if I detach the foc module timer outputs and instantiate a second copy of the same timer module it contains and attach that instead, the problem disappears19:28
daveshahVery interesting. Do you know if other small design changes trigger it?19:30
daveshahIt is possible that it is another issue and the inout/not inout distinction peturbs the design enough to trigger it19:30
daveshahDo you have multiple clock domains in the problematic functionality?19:30
ross_sthe only other change I have noticed that triggers it is detaching the input line from the module. There is only one clock domain. The only yosys warnings I get are re: limited tristate, a 'replacing memory with list of registers' and some ABC combinatorial warnings19:37
daveshahNone of those sound problematic in any way19:40
*** m4ssi has joined #yosys19:45
*** citypw has quit IRC20:11
*** citypw has joined #yosys20:12
*** Asuu has quit IRC20:13
ross_sAlright, afer much debugging I'm ashamed to say this may just be user error. I had forgotten that the data from the input pin was involved in the datapath for the pwm generation, and so it is actually expected that it will shift around as circumstances change. Disconnecting the pin causes the spi to read a consistent value, removing the floating behaviour. Sorry for any wasted time!20:23
whitequarkhappens to the best of us20:27
*** ananan is now known as aaaa20:36
*** emeb_mac has joined #yosys20:45
*** X-Scale` has joined #yosys20:46
*** X-Scale has quit IRC20:47
*** X-Scale` is now known as X-Scale20:47
*** m4ssi has quit IRC21:01
*** SpaceCoaster_ has quit IRC21:32
*** X-Scale` has joined #yosys21:51
*** X-Scale has quit IRC21:52
*** X-Scale` is now known as X-Scale21:52
*** citypw has quit IRC22:15
*** citypw has joined #yosys22:16

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